Commit 4b436e2a by 前端

埋点、页面跳转添加

1 parent 913b05cf
......@@ -3,6 +3,7 @@ import {
entmicroApi
} from "../../../api/api";
import util from "../../../utils/util"
import { trackData } from "../../../utils/data";
Page({
/**
......@@ -47,6 +48,10 @@ Page({
});
},
toCesuan() {
wx.$router.go("measure");
},
/**
* 生命周期函数--监听页面加载
*/
......@@ -76,7 +81,17 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
const options = wx.getEnterOptionsSync()
if (options.query.cardId) {
wx.$trackData = options.query
}
getApp()
.login()
.then(({ data }) => {
if (!wx.$trackData.detailShare) {
wx.$Track.sendTrack(trackData.ACTIVITYAPPLICATION);
}
});
},
/**
......
......@@ -8,7 +8,7 @@
</view>
<button class="submit-btn" bindtap="submitApply">提交申请</button>
<!-- 展业测算 -->
<view class="caculate-box" wx:if="{{isStaff}}">
<view class="caculate-box" wx:if="{{isStaff}}" bindtap="toCesuan">
<image class="caculate-img" mode="widthFix" webp src="{{IMGURL}}application/caculate_icon.png?v={{img_version}}"></image>
<text class="caculate-text">展业测算</text>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!