Commit 1c0545e1 authored by wangxuelai's avatar wangxuelai

我也要制作上架到按钮点击埋点事件

parent c53c3ffe
......@@ -46,9 +46,13 @@ Component({
type: String,
value: '/ucenter/index'
},
newpath: {//来源路径
type: String,
value: ''
},
},
ready () {
console.log(this.data.newpath, 'this')
},
methods: {
goUserBusiness () {
......@@ -96,9 +100,14 @@ Component({
})
},
bindContactDialog (){
this.triggerEvent('opendia');
this.setData({
showModal: !this.data.showModal
})
},
godialog () {
console.log('dddd');
this.triggerEvent('godialog');
}
}
})
\ No newline at end of file
......@@ -10,6 +10,6 @@
<image class="icon-close" src="{{imageRoot}}2b/common/closeicon.png?{{imageVersion}}" bindtap="bindContactDialog"></image>
<view class="modal-title">进入客服消息,点击右下角,获取公众号二维码。</view>
<image class="pic" src="{{imageRoot}}service/service_enter.png?{{imageVersion}}"></image>
<button class="btn-open" open-type='contact' keyword="{{keyword}}" show-message-card="true" send-message-title="{{sharetitle}}" send-message-path="{{path}}" send-message-img="{{imageRoot}}{{coverimg}}?{{imageVersion}}">点击获取</button>
<button class="btn-open" bindtap="godialog" open-type='contact' keyword="{{keyword}}" show-message-card="true" send-message-title="{{sharetitle}}" send-message-path="{{path}}" send-message-img="{{imageRoot}}{{coverimg}}?{{imageVersion}}">点击获取</button>
</view>
</view>
\ No newline at end of file
......@@ -585,6 +585,38 @@ Page({
})
})
},
opendia () { // 点击我也要用小程序
const {
originParams,
originScene,
} = app.globalData;
behaviorLog({
source_path: `ucenter/index:useqxt`,
source_id: this.data.sid,
source_type_model: 1,
scene: originScene || '',
param: JSON.stringify({
from: originParams,
source: this.data.options,
})
})
},
godialog () { // 点击进入客服消息
const {
originParams,
originScene,
} = app.globalData;
behaviorLog({
source_path: `ucenter/index:gogetqxt`,
source_id: this.data.sid,
source_type_model: 1,
scene: originScene || '',
param: JSON.stringify({
from: originParams,
source: this.data.options,
})
})
},
true(){}
})
\ No newline at end of file
......@@ -181,6 +181,9 @@
pagetitle="我也要用小程序 > "
pagetitletip="立即使用"
sharetitle="校区管理,打卡作业招生"
bind:opendia="opendia"
bind:godialog="godialog"
newpath="/ucenter/index"
coverimg="service/tosue.png"
></sjdbottombar>
<view class="modal modalUsers {{modelUsersAnimate? 'hide': ''}}" hidden="{{!modalUsers}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment