js calling: function () { wx.makePhoneCall({ phoneNumber: '0532-87626668', //此号码并非真实电话号码,仅用于测试 success: function () { console.log("拨打电话成功!") }, fail: function () { console.log("拨打电话失败
calling: function () { wx.makePhoneCall({ phoneNumber: '0532-87626668', //此号码并非真实电话号码,仅用于测试 success: function () { console.log("拨打电话成功!") }, fail: function () { console.log("拨打电话失败!") } }) }, showMap: function (e) { var index = e.target['dataset'].index; wx.getLocation({ type: 'gcj02', //返回可以用于wx.openLocation的经纬度 success: function (res) { var latitude = res.latitude var longitude = res.longitude wx.openLocation({ latitude: 36.1581800000, longitude: 120.4385400000, scale: 28, name: "东小馆李沧店", address: "青岛市李沧区九水东路37-4号", }) } }) },wxml
wxss
.piao3 { position:fixed; z-index:100; bottom:220px; right:4px; width:59px; line-height:60px; height:59px; background:#e02f0a; border-radius:11%; box-shadow:0 0 8px #E94746; color:#ffffff; text-align:center; font-size:15px; } .piao2 { position:fixed; z-index:100; bottom:158px; right:4px; width:59px; line-height:60px; height:59px; background:#e02f0a; border-radius:11%; box-shadow:0 0 8px #E94746; color:#ffffff; text-align:center; font-size:15px; } .floatBoutique { position:fixed; z-index:100; bottom:96px; right:4px; width:59px; line-height:60px; height:59px; background:#e02f0a; border-radius:11%; box-shadow:0 0 8px #E94746; color:#ffffff; text-align:center; font-size:15px; }