Commit 906b942e by chenwq

拨打电话,跳转众筹小程序

1 parent dadc72b1
......@@ -141,6 +141,10 @@ Component({
this.setData({
showCard: !this.data.showCard
})
}
},
phoneCall(e) {
let { phone } = e.currentTarget.dataset;
wx.$api.phoneCall(phone);
},
}
})
......@@ -23,7 +23,7 @@
<image webp wx:if="{{ index < 3}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon" />
请联系我
......
......@@ -12,12 +12,10 @@ Page({
},
toActivity(){
const activityInfo = this.data.activityInfo
wx.navigateToMiniProgram({
appId: 'wxe10067a63c1856ac',
path: 'pages/crowdfunding/index/index',
extraData: {
id: this.data.activityInfo.id
},
path: 'pages/crowdfunding/index/index?id=' + activityInfo.id + '&merchantId=' + activityInfo.merchantNo,
envVersion: 'trial',
success(res) {
// 打开成功
......
......@@ -27,7 +27,7 @@
<image wx:if="{{ index < 3}}" webp class="img-item img-item{{index}} img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon"></glsx-image>
请联系我
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!