Commit be33f271 authored by gengchunlei's avatar gengchunlei

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

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