Commit 57008938 authored by 高铭波's avatar 高铭波

feat(*): 关键事件埋点,调整页面样式

parent 18060078
(function () {
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let NODE_ENV = 'prod'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null;
let VERSION_NUMBER = '1.3.13';//版本号
let VERSION_NUMBER = '1.3.15';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') {
......
......@@ -281,9 +281,15 @@
}
},
methods: {
handleExceptions() {
if(this.isException) {
getApp().track("order_handleExceptions", {})
}
},
// title:标题,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
handleClick() {
var func = 'click'
this.handleExceptions()
if (this.isWaitFinish || this.isException) { // 不是待完工、不是异常单点按钮算点cell
func = 'action'
}
......@@ -291,6 +297,7 @@
},
handleClickCell() {
var func = 'click'
this.handleExceptions()
if (this.isException) { // 异常单点cell算点按钮
func = 'action'
}
......
......@@ -8,8 +8,8 @@
<u-image :src="partsImage(info.images)" width="200rpx" height="200rpx" />
</view>
<view class="u-flex right-content">
<view class="right-content-name">{{ info.name }}</view>
<view class="right-content-desc">{{ info.remark }}</view>
<view class="right-content-name u-line-2">{{ info.name }}</view>
<view class="right-content-desc u-line-2">{{ info.remark }}</view>
<view class="u-flex right-content-opera">
<view class="no" v-if="info.stock">
可用{{ info.stock }}
......@@ -81,6 +81,7 @@
overflow: hidden;
.right-img {
padding-right: 20rpx;
align-self: baseline;
}
.right-content {
flex: 1;
......@@ -91,9 +92,6 @@
font-size: 32rpx;
color: #333;
font-weight: bold;
height: 48rpx;
// overflow: hidden;
word-break: hyphenate;
}
.right-content-desc {
font-size: 24rpx;
......
......@@ -749,6 +749,7 @@ export default {
},
// 安装文件
goToDocument() {
getApp().track("learn_goToDocument", {})
this.$u.route({
url: 'pages/order/document',
})
......@@ -826,6 +827,11 @@ export default {
},
//跳转到播放
goPlay(info) {
viewcounts
getApp().track("learn_allPlayCounts", {courseId: info.id})
if(info.title === "小程序使用指南") {
getApp().track("learn_guidePlayCounts", {courseId: info.id})
}
uni.navigateTo({
url:
"/pages/learn/section?section_id=" +
......@@ -834,13 +840,14 @@ export default {
info.id,
});
},
//跳转到
//跳转到消息详情页
bbb(e) {
var news = {
body: e.body,
title: e.title,
create_at: e.create_at,
};
getApp().track("learn_goToMessage", {})
let that = this;
wx.navigateTo({
url: "/pages/learn/news-details",
......
......@@ -77,6 +77,7 @@ export default {
});
},
goBaidu(a) {
getApp().track("mine_lookContract", {url: a})
getApp().globalData.contractUrl = a;
wx.navigateTo({
url: "./out",
......
......@@ -642,9 +642,11 @@
this.clickFeedback()
break
case 2:
getApp().track("order_errorSign", {orderId: this.orderId})
this.take()
break
case 3:
getApp().track("order_scenePhotoClick", {orderId: this.orderId})
this.scenePhotoClick()
break
case 4:
......@@ -763,6 +765,10 @@
},
// 去业务材料页面
handleClickFile() {
getApp().track("order_click_view_files", {
brandId: this.order.lianbaoBrandId,
partnerCompanyId: this.order.partnerCompanyId
})
this.$u.route({url: 'pages/order/document' + '?partnerCompanyId=' + this.order.partnerCompanyId + '&brandId=' + this.order.lianbaoBrandId})
},
trackOrder() {
......@@ -788,6 +794,10 @@
this.centerBtnDisabled = true
},
clickFeedback(){
getApp().track("order_clickFeedback", {
orderId: this.order.orderId,
categoryId: this.order.categoryId
})
// 过程反馈
uni.navigateTo({
url: 'pages/order/feedback?orderId='+this.order.orderId+'&categoryId='+this.order.categoryId+'&showGY=' + (this.bottomButtonText != '预约' ? '1' : '0')
......
......@@ -357,6 +357,10 @@ export default {
}
self.submiting = true;
getApp().track("order_feedback_submitForm", {
reasonType: self.trace.reasonType,
traceDate: self.traceDate
})
let params = this.$u.deepClone(self.trace);
if(self.trace.reasonType != '改约') {
if(self.timeItem && self.timeItem.pkey && self.traceDate){
......
......@@ -224,6 +224,7 @@ export default {
if(!this.validateForm()) {
return false
}
getApp().track("parts_application_submitParts", {})
const address = this.addressInfo
let params = {
applyType: '1',
......
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