Commit be33f271 authored by gengchunlei's avatar gengchunlei

前端有盟自定义访客类型埋点

parent 6eaa2721
......@@ -48,7 +48,6 @@
import {getQueryVariable} from "../../utils/common";
import {getCheckShortMessage, getShortMessage} from "../../utils/api";
import NoData from "../component/noData";
export default {
components: {NoData},
data() {
......@@ -69,17 +68,14 @@
}
},
created() {
// this.routerDetail = this.$route.query
// console.log( this.routerDetail)
// if (this.routerDetail.telephone) {
// this.formData = {
// residentName: this.routerDetail.residentName,
// idCar: this.routerDetail.idCar,
// telephone: this.routerDetail.telephone,
// }
// }
this.urltext()
},
mounted() {
let vm = this
this.$nextTick(() => {
vm.$uweb.setCustomVar('访客来源', '微信扫码', 0)
})
},
methods: {
// 接收url后的数据
urltext() {
......
......@@ -68,7 +68,7 @@
</div>
</div>
<!--class="item-right add sub"-->
<div class="sub" @click="singleSub(item)" v-log="['药具领取', '确定']">申请领取</div>
<div class="sub" @click="singleSub(item)" v-log="['药具领取', '确定按钮']">申请领取</div>
</div>
</div>
</div>
......@@ -119,24 +119,7 @@
},
created() {
this.routerDetail = this.$route.query
if (this.routerDetail.resource == '2') {
this.$uweb.ready().then(() => {
// window._czc.push(["_setCustomVar","访客来源", "微信扫码", 0])
this.$uweb.setCustomVar("访客来源", "微信扫码", 0)
}).catch(() => {
})
} else {
this.$uweb.ready().then(() => {
// window._czc.push(["_setCustomVar","访客来源", "医站到家", 0])
this.$uweb.setCustomVar("访客来源", "医站到家", 0)
}).catch(() => {
})
}
// this.sessionInfo = JSON.parse(window.sessionStorage.getItem('mobileTokenIno'))
},
mounted() {
},
methods: {
getRecordInfo(callBack) {
......@@ -332,8 +315,10 @@
}
addManualMedicalRecord(par).then(({data}) => {
if (data.code == 'SUCCESS') {
this.$uweb.trackEvent('药具领取结果', '成功')
this.$router.push({path:"/manualSuccess",query:{info: data.data}});
} else {
this.$uweb.trackEvent('药具领取结果', '失败')
Toast({
message: `${data.msg}`,
duration: 2000
......
......@@ -66,6 +66,9 @@
window['qrcodeContent'] = (result) => {
vm.subscanQRCallBack(result)
}
this.$nextTick(() => {
vm.$uweb.setCustomVar('访客来源', '医站到家', 0)
})
},
methods: {
// 接收url后的数据
......@@ -93,6 +96,7 @@
callMobile("qrcode", {});
}
})
// this.subscanQRCallBack(111)
},
subscanQRCallBack(val) {
let info = JSON.parse(window.sessionStorage.getItem('mobileTokenIno'))
......@@ -100,6 +104,7 @@
let urlP = ''
// let ios = isIOSWebKit()
// if (ios) {
// val = 'https://yaojuapp.yiboshi.com/resident/#/resident/manualDistribution?id=39&netType=2&netTypeName=人工发放网点&netName=祥云县沙龙卫生院&status=0'
urlP = val
// } else {
// urlP = JSON.parse(val)
......
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