forked from nsjcy/frontEnd/nsjcy

liuwh
2020-06-09 5a887acf1924950715086633d329db045223b5c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// pages/wjjb/wjjb.js
Page({
 
  /**
   * 页面的初始数据
   */
  data: {
 
  },
 
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
 
  },
 
  // 跳转
  linkFunction: function (event) {
    var str = event.currentTarget.dataset['str'];
    wx.navigateTo({
      url: `../${str}/${str}`
    })
  },
 
  makePhoneCall() {
    wx.makePhoneCall({
      phoneNumber: '12309' // 仅为示例,并非真实的电话号码
    })
  }
 
})