Commit 7067f8d3 authored by Damon's avatar Damon

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents 2490b41f d79f002b
...@@ -179,6 +179,11 @@ export default { ...@@ -179,6 +179,11 @@ export default {
this.$u.vuex("vuex_token", userInfo.token); this.$u.vuex("vuex_token", userInfo.token);
this.$u.vuex("vuex_user", userInfo); this.$u.vuex("vuex_user", userInfo);
this.$u.vuex("vuex_wx_uid", userInfo.wxopenid); this.$u.vuex("vuex_wx_uid", userInfo.wxopenid);
this.track('auth_login', {
auth_token: userInfo.token,
auth_user: userInfo,
auth_wx_uid: userInfo.wxopenid
});
} else { } else {
this.$u.vuex("vuex_token", ""); this.$u.vuex("vuex_token", "");
this.$u.vuex("vuex_user", null); this.$u.vuex("vuex_user", null);
...@@ -219,7 +224,7 @@ export default { ...@@ -219,7 +224,7 @@ export default {
if (AnalysysAgent) { if (AnalysysAgent) {
// 易观添加事件 // 易观添加事件
let AnalysysAgent = wx.AnalysysAgent; let AnalysysAgent = wx.AnalysysAgent;
AnalysysAgent.track("take_order_" + event, properties); AnalysysAgent.track("self_support_" + event, properties);
} }
}, },
identify(userInfo, openid, unionid = null) { identify(userInfo, openid, unionid = null) {
......
<template> <template>
<view class="backView"> <view class="backView">
<Settle :index="3"> <Settle :index="3">
<!-- <template v-if="isStart==false">
<view class="noticeView">
<text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
</text>
</view>
<view class="bottomView">
<view class="bottomBtn" @click="startClick()">
<text class="bottomTitle">开始考试答题</text>
</view>
</view>
</template> -->
<!-- <template v-if="isStart==true && currentItem"> -->
<view class="bottom-padding" v-if="currentItem"> <view class="bottom-padding" v-if="currentItem">
<view class="title-view"> <view class="title-view">
<view :class="['title-text', {'radio': currentItem.question ? currentItem.question.answerType == 1 : true}]"> <view :class="['title-text', {'radio': currentItem.question ? currentItem.question.answerType == 1 : true}]">
...@@ -38,13 +26,8 @@ ...@@ -38,13 +26,8 @@
:class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' ">{{contentFilter(item.content)}}</view> :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' ">{{contentFilter(item.content)}}</view>
</view> </view>
<!--view class="itemView" v-for="(item,ikey) in currentItem.answerList":key="ikey">
<text :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' "
@click="itemClick(item,ikey)">{{item.content}}</text>
</view-->
</view> </view>
<!-- </template> -->
<template v-slot:bottom> <template v-slot:bottom>
<view class="answerBottomView"> <view class="answerBottomView">
<view class="bottom-left-view"> <view class="bottom-left-view">
...@@ -117,7 +100,7 @@ ...@@ -117,7 +100,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻考试答题页')
//this.postResult() //this.postResult()
this.getUserExamInfo() this.getUserExamInfo()
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻开始考试页')
}, },
methods: { methods: {
......
...@@ -155,7 +155,8 @@ ...@@ -155,7 +155,8 @@
return process.uniEnv.qn_base_url + 'weiruzhu.png' return process.uniEnv.qn_base_url + 'weiruzhu.png'
}, },
}, },
onLoad(e) { onLoad(e) {
app.trackPage('自营平台首页')
this._freshing = false; this._freshing = false;
if(this.vuex_token) { if(this.vuex_token) {
this.getOrderCount() this.getOrderCount()
......
...@@ -412,6 +412,7 @@ export default { ...@@ -412,6 +412,7 @@ export default {
}; };
}, },
onLoad(param) { onLoad(param) {
getApp().trackPage('学习首页')
var that = this; var that = this;
try { try {
if (param.tabs) { if (param.tabs) {
......
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
} }
}, },
onLoad() { onLoad() {
app.trackPage('我的首页')
if(this.vuex_token && !this.settled) { if(this.vuex_token && !this.settled) {
this.getData() this.getData()
} }
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
}; };
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('订单首页')
this._freshing = false; this._freshing = false;
// this.getLocation(); // 不需要获取位置 // this.getLocation(); // 不需要获取位置
// this.getOrderCount(); // this.getOrderCount();
......
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
}, },
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('学习考试答题页')
this.examId = e.examId; this.examId = e.examId;
this.userExamId = e.userExamId; this.userExamId = e.userExamId;
this.getNext(); this.getNext();
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
}; };
}, },
onLoad(param) { onLoad(param) {
getApp().trackPage('学习开始考试页')
this.examId = param.examId; this.examId = param.examId;
this.getExamResult(); this.getExamResult();
// this.getUserExamInfo(); // this.getUserExamInfo();
......
...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
}, },
}, },
onLoad(e) { onLoad(e) {
app.trackPage('入驻培训视频页')
if (e) { if (e) {
if (e.courseId) { if (e.courseId) {
this.courseId = e.courseId; this.courseId = e.courseId;
......
...@@ -57,9 +57,8 @@ ...@@ -57,9 +57,8 @@
} }
}, },
onLoad(a){ onLoad(a){
console.log(a) getApp().trackPage('学习课程简介页')
this.params.course_id=a.course_id this.params.course_id=a.course_id
console.log(this.params.course_id)
this.getCapterDetails() this.getCapterDetails()
this.getCourseInfo() this.getCourseInfo()
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
}; };
}, },
onLoad(a) { onLoad(a) {
getApp().trackPage('学习考试成功页')
this.examId = a.examId; this.examId = a.examId;
this.userExamId = a.userExamId; this.userExamId = a.userExamId;
this.getCourseResult(); this.getCourseResult();
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
} }
}, },
onLoad() { onLoad() {
getApp().trackPage('消息通知详情页')
var that = this; var that = this;
const eventChannel = this.getOpenerEventChannel() const eventChannel = this.getOpenerEventChannel()
eventChannel.on('acceptDataFromLearn', function(data) { eventChannel.on('acceptDataFromLearn', function(data) {
......
...@@ -43,6 +43,7 @@ export default { ...@@ -43,6 +43,7 @@ export default {
}; };
}, },
onLoad(a) { onLoad(a) {
getApp().trackPage('学习考试失败页')
this.userExamId = a.userExamId; this.userExamId = a.userExamId;
this.examId = a.examId; this.examId = a.examId;
this.getCourseResult(); this.getCourseResult();
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
}, },
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('学习视频详情页')
this.section_id = e.section_id this.section_id = e.section_id
this.params.course_id = e.course_id this.params.course_id = e.course_id
this.getCapterDetails() this.getCapterDetails()
......
...@@ -204,6 +204,11 @@ export default { ...@@ -204,6 +204,11 @@ export default {
this.$u.vuex('vuex_token',userInfo.token); this.$u.vuex('vuex_token',userInfo.token);
this.$u.vuex('vuex_user', userInfo); this.$u.vuex('vuex_user', userInfo);
this.$u.vuex('vuex_wx_uid', userInfo.wxopenid); this.$u.vuex('vuex_wx_uid', userInfo.wxopenid);
app.track('auth_login', {
auth_token: userInfo.token,
auth_user: userInfo,
auth_wx_uid: userInfo.wxopenid
});
} else { } else {
this.$u.vuex('vuex_token', ''); this.$u.vuex('vuex_token', '');
this.$u.vuex('vuex_user', null); this.$u.vuex('vuex_user', null);
......
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
}, },
computed: {}, computed: {},
async onLoad(e) { async onLoad(e) {
getApp().trackPage('我的收获地址修改页')
if(e && e.title) { if(e && e.title) {
this.title = decodeURIComponent(e.title) this.title = decodeURIComponent(e.title)
} }
......
...@@ -40,6 +40,9 @@ export default { ...@@ -40,6 +40,9 @@ export default {
return this.settled && this.settled.address && this.settled.id_card_name return this.settled && this.settled.address && this.settled.id_card_name
}, },
}, },
onLoad() {
getApp().trackPage('我的收获地址页')
},
onShow() { onShow() {
if(!this.vuex_token) { if(!this.vuex_token) {
this.$u.route({url: 'pages/login/index'}) this.$u.route({url: 'pages/login/index'})
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
} }
}, },
onLoad() { onLoad() {
getApp().trackPage('我的证件详情页')
var that = this; var that = this;
const eventChannel = this.getOpenerEventChannel() const eventChannel = this.getOpenerEventChannel()
eventChannel.on('acceptDataFromCert', function(data) { eventChannel.on('acceptDataFromCert', function(data) {
......
...@@ -29,56 +29,56 @@ ...@@ -29,56 +29,56 @@
id_card: { id_card: {
name: "身份证", name: "身份证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "id_card", keyName: "id_card",
color: "#999999" color: "#999999"
}, },
electrician_certificate: { electrician_certificate: {
name: "电工证", name: "电工证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "electrician_certificate", keyName: "electrician_certificate",
color: "#999999" color: "#999999"
}, },
driver_license: { driver_license: {
name: "驾驶证", name: "驾驶证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "driver_license", keyName: "driver_license",
color: "#999999" color: "#999999"
}, },
driving_license: { driving_license: {
name: "行驶证", name: "行驶证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "driving_license", keyName: "driving_license",
color: "#999999" color: "#999999"
}, },
vehicle: { vehicle: {
name: "车辆照", name: "车辆照",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "vehicle", keyName: "vehicle",
color: "#999999" color: "#999999"
}, },
high_sky_license: { high_sky_license: {
name: "高空证", name: "高空证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "high_sky_license", keyName: "high_sky_license",
color: "#999999" color: "#999999"
}, },
refrigeration_license: { refrigeration_license: {
name: "制冷证", name: "制冷证",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "refrigeration_license", keyName: "refrigeration_license",
color: "#999999" color: "#999999"
}, },
business_license: { business_license: {
name: "营业执照", name: "营业执照",
isUpload: false, isUpload: false,
isUploadName: "", isUploadName: "未上传",
keyName: "business_license", keyName: "business_license",
color: "#999999" color: "#999999"
}, },
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
} }
}, },
onLoad() { onLoad() {
getApp().trackPage('我的证件列表页')
let that = this; let that = this;
this.$u.api this.$u.api
.getCertList() .getCertList()
......
...@@ -34,6 +34,7 @@ export default { ...@@ -34,6 +34,7 @@ export default {
}; };
}, },
onLoad() { onLoad() {
getApp().trackPage('我的合同列表页')
this.getContract(this.type); this.getContract(this.type);
}, },
computed: {}, computed: {},
......
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
}; };
}, },
onLoad(option) { onLoad(option) {
getApp().trackPage('我的合同详情页')
this.url = option.url; this.url = option.url;
var app = getApp(); var app = getApp();
this.url = app.globalData.contractUrl; this.url = app.globalData.contractUrl;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
}; };
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('联系客服页')
if (e && e.type) { if (e && e.type) {
this.type = e.type this.type = e.type
} }
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
}, },
}, },
onLoad() { onLoad() {
getApp().trackPage('配件押金列表页')
if(!this.vuex_token) { if(!this.vuex_token) {
this.$u.route({url: 'pages/login/index'}) this.$u.route({url: 'pages/login/index'})
} else if(!this.settled) { } else if(!this.settled) {
......
...@@ -126,6 +126,9 @@ ...@@ -126,6 +126,9 @@
return ['settlement','statement'] return ['settlement','statement']
} }
}, },
onLoad() {
getApp().trackPage('我的钱包页')
},
onShow() { onShow() {
// 未登录,先跳转登录 // 未登录,先跳转登录
if(!this.vuex_token) { if(!this.vuex_token) {
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
}, },
}, },
onLoad() { onLoad() {
getApp().trackPage('结算账单列表页')
this.loadPayRecord() this.loadPayRecord()
}, },
methods: { methods: {
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
}, },
}, },
onLoad() { onLoad() {
getApp().trackPage('收入流水列表页')
this.loadStatement() this.loadStatement()
}, },
methods: { methods: {
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
}, },
}, },
onLoad() { onLoad() {
getApp().trackPage('钱包提现页')
this.loadAssets() this.loadAssets()
}, },
methods: { methods: {
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
}, },
computed: {}, computed: {},
onLoad() { onLoad() {
getApp().trackPage('我的仓库列表页')
this.getData(); this.getData();
}, },
methods: { methods: {
......
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
// console.log(allComponents,'allComponents') // console.log(allComponents,'allComponents')
}, },
onLoad(option) { onLoad(option) {
getApp().trackPage('订单完工信息页')
if (option) { if (option) {
this.orderId = option.orderId this.orderId = option.orderId
this.categoryId = option.categoryId this.categoryId = option.categoryId
......
...@@ -268,6 +268,7 @@ ...@@ -268,6 +268,7 @@
} }
}, },
onLoad(option) { onLoad(option) {
getApp().trackPage('订单详情页')
// 生命周期函数--监听页面加载 // 生命周期函数--监听页面加载
if (option && option.id) { if (option && option.id) {
this.orderId = option.id this.orderId = option.id
...@@ -693,6 +694,7 @@ ...@@ -693,6 +694,7 @@
if ((res.data.code!==undefined && res.data.code === 200) if ((res.data.code!==undefined && res.data.code === 200)
|| (res.code!==undefined && res.code === 200) ) { || (res.code!==undefined && res.code === 200) ) {
this.trackOrder()
this.$refs.uToast.show({ this.$refs.uToast.show({
title: this.centerButtonText + '操作成功', title: this.centerButtonText + '操作成功',
type: 'success', type: 'success',
...@@ -722,6 +724,15 @@ ...@@ -722,6 +724,15 @@
} }
}) })
}, },
trackOrder() {
// 接单成功事件,签到成功事件
if(this.submitType == 'orderAccept'
|| this.submitType == 'maintainWorkerCheckin') {
getApp().track(this.submitType, {
orderId: this.order.orderId
});
}
},
commonToast(message,type,url,params){ // 统一得toast commonToast(message,type,url,params){ // 统一得toast
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
......
...@@ -161,6 +161,7 @@ export default { ...@@ -161,6 +161,7 @@ export default {
} }
}, },
async onLoad(e) { async onLoad(e) {
getApp().trackPage('订单过程反馈页')
if (e) { if (e) {
this.orderId = e.orderId || null; this.orderId = e.orderId || null;
this.categoryId = e.categoryId || null; this.categoryId = e.categoryId || null;
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
}, },
}, },
onLoad(option) { onLoad(option) {
getApp().trackPage('订单材料列表页')
this.orderId = option.orderId this.orderId = option.orderId
this.fieldName = option.fieldName this.fieldName = option.fieldName
const eventChannel = this.getOpenerEventChannel(); const eventChannel = this.getOpenerEventChannel();
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
PopView PopView
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('订单拒单页')
if(e && e.orderId) { if(e && e.orderId) {
this.orderId = e.orderId this.orderId = e.orderId
if(e.count) { if(e.count) {
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
}; };
}, },
onLoad() { onLoad() {
getApp().trackPage('订单搜索页')
// this.searchOrder() // this.searchOrder()
}, },
onReachBottom() { onReachBottom() {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻工龄选择页')
this.getAgeData() this.getAgeData()
}, },
methods: { methods: {
......
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻基本信息提交页')
this.initLocation() this.initLocation()
}, },
onShow() { onShow() {
......
...@@ -187,6 +187,7 @@ export default { ...@@ -187,6 +187,7 @@ export default {
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻证件信息上传页')
this.initSettledInfo() this.initSettledInfo()
}, },
updated() { updated() {
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻首页')
this.initpageData(e) this.initpageData(e)
this.startCounting() this.startCounting()
}, },
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻配件押金支付页')
}, },
onShow() { onShow() {
if (!this.settledInfo.record.deposit) { if (!this.settledInfo.record.deposit) {
...@@ -112,6 +112,10 @@ ...@@ -112,6 +112,10 @@
uni.showToast({ uni.showToast({
title: '支付成功', title: '支付成功',
}) })
// 完成入驻后事件
getApp().track('settle_success', {
settle_id: this.settledInfo.record.id
});
let timer = setTimeout(() => { let timer = setTimeout(() => {
clearTimeout(timer) clearTimeout(timer)
this.successCallback() this.successCallback()
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
}, },
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('入驻结果中转页')
if (e) { if (e) {
if (e.pageIndex) { if (e.pageIndex) {
this.pageIndex = e.pageIndex; this.pageIndex = e.pageIndex;
......
...@@ -102,7 +102,9 @@ ...@@ -102,7 +102,9 @@
count: 9, count: 9,
} }
}, },
onLoad(e) {}, onLoad(e) {
getApp().trackPage('入驻签约信息页')
},
onShow() { onShow() {
/** 测试提了bug:ID1001079【首页-入驻-在线签约】:输入好各个字段信息,切换到其他APP再切换回来,会把已填的信息自动清空 /** 测试提了bug:ID1001079【首页-入驻-在线签约】:输入好各个字段信息,切换到其他APP再切换回来,会把已填的信息自动清空
不知道这一段当初为什么加,就屏蔽了 不知道这一段当初为什么加,就屏蔽了
......
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