Data tracking point updated

This commit is contained in:
Vion 2022-02-17 14:34:57 +08:00
parent 7235b37129
commit 660e166101
2 changed files with 77 additions and 91 deletions

View File

@ -247,73 +247,57 @@ export default {
} }
}, },
findall(){ findall(){
console.log('PPP'); let user= this.$store.state.userInfo;
console.log(this.userid.length); if(user==undefined||user==null||user==''){
this.$message({
let user= localStorage.getItem("userInfo"); type: 'warning',
if(user==undefined||user==null||user==''){ message: '您还未登录'
this.$message({ });
type: 'warning', return
message: '您还未登录'
}); } else {
return this.$router.push({
path: "/personal/useraddress/",
}else{ query: {
this.$router.push({ stype: 0,
path: "/personal/useraddress/", },
query: { });
stype: 0, }
},
});
}
}, },
// //
obligation(item,index){ obligation(item,index){
console.log(index); let user= this.$store.state.userInfo;
console.log(item); if(user==undefined||user==null||user==''){
let user= localStorage.getItem("userInfo"); this.$message({
if(user==undefined||user==null||user==''){ type: 'warning',
this.$message({ message: '您还未登录'
type: 'warning', });
message: '您还未登录' return
}); }else{
return if(item.title=='待付款'){
this.$router.push({
path: "/personal/useraddress",
}else{ query: {
if(item.title=='待付款'){ stype: 1,
this.$router.push({ },
path: "/personal/useraddress", });
query: { } else if(item.title=='待发货') {
stype: 1, this.$router.push({
}, path: "/personal/useraddress",
}); query: {
stype: 2,
} },
});
else if(item.title=='待发货'){ } else if(item.title=='待收货') {
this.$router.push({ this.$router.push({
path: "/personal/useraddress", path: "/personal/useraddress",
query: { query: {
stype: 2, stype: 3,
}, },
}); });
} }
else if(item.title=='待收货'){ }
this.$router.push({ },
path: "/personal/useraddress",
query: {
stype: 3,
},
});
}
}
},
handleClose(){ handleClose(){
this.dialogInfo1=false; this.dialogInfo1=false;
console.log(this.dialogInfo1); console.log(this.dialogInfo1);
@ -347,39 +331,41 @@ obligation(item,index){
} }
}, },
openaddress(item,index){ openaddress(item,index){
let user= localStorage.getItem("userInfo"); let user= this.$store.state.userInfo;
if(user==undefined||user==null||user==''){ if(user==undefined||user==null||user==''){
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '您还未登录' message: '您还未登录'
}); });
return return
} else {
}else{ if(item.title=='收货地址'){
if(item.title=='收货地址'){ this.$router.push({
this.$router.push({ path: `/useraddress/openaddress/`
path: `/useraddress/openaddress/` })
}) }
if(index==0){
this.userlog=true
_hmt.push([
"_trackCustomEvent",
"jump_to_crmMiniApp",
{
"type":"积分商城",
}
])
let isMobile = this.ifadroind();
if(isMobile)
window.location.href="weixin://dl/business/?t=BE1OA2AngRs";
}
if(index==1){
this.$router.push({
path: `/personal/discount/`
})
}
} }
if(index==0){
this.userlog=true
let isMobile = this.ifadroind();
if(isMobile)
window.location.href="weixin://dl/business/?t=BE1OA2AngRs";
}
if(index==1){
this.$router.push({
path: `/personal/discount/`
})
}
}
}, },
opendialog(){ opendialog(){
this.ifadroind();
this.ifadroind();
} }
}, },
mounted() { mounted() {

View File

@ -659,7 +659,7 @@ export default {
this.courseId(item); this.courseId(item);
if (orderm == 0) { if (orderm == 0) {
this.$message({ this.$message({
type: "warning", type: "success",
message: "加入购物车成功", message: "加入购物车成功",
}); });
_hmt.push([ _hmt.push([