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

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

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