Commit 906b942e by chenwq

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

1 parent dadc72b1
...@@ -141,6 +141,10 @@ Component({ ...@@ -141,6 +141,10 @@ Component({
this.setData({ this.setData({
showCard: !this.data.showCard showCard: !this.data.showCard
}) })
} },
phoneCall(e) {
let { phone } = e.currentTarget.dataset;
wx.$api.phoneCall(phone);
},
} }
}) })
...@@ -23,7 +23,7 @@ ...@@ -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}}"> <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}}"> <block wx:if="{{ index == 0}}">
<!-- && phone --> <!-- && 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> --> <!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon" /> <glsx-image webp src="index/phone.png" class="icon" />
请联系我 请联系我
......
...@@ -12,12 +12,10 @@ Page({ ...@@ -12,12 +12,10 @@ Page({
}, },
toActivity(){ toActivity(){
const activityInfo = this.data.activityInfo
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: 'wxe10067a63c1856ac', appId: 'wxe10067a63c1856ac',
path: 'pages/crowdfunding/index/index', path: 'pages/crowdfunding/index/index?id=' + activityInfo.id + '&merchantId=' + activityInfo.merchantNo,
extraData: {
id: this.data.activityInfo.id
},
envVersion: 'trial', envVersion: 'trial',
success(res) { success(res) {
// 打开成功 // 打开成功
......
...@@ -27,7 +27,7 @@ ...@@ -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}}"> <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}}"> <block wx:if="{{ index == 0}}">
<!-- && phone --> <!-- && 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> --> <!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon"></glsx-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!