mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 02:36:39 +08:00
Data tracking point updated
This commit is contained in:
parent
7235b37129
commit
660e166101
@ -247,10 +247,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
findall(){
|
findall(){
|
||||||
console.log('PPP');
|
let user= this.$store.state.userInfo;
|
||||||
console.log(this.userid.length);
|
|
||||||
|
|
||||||
let user= localStorage.getItem("userInfo");
|
|
||||||
if(user==undefined||user==null||user==''){
|
if(user==undefined||user==null||user==''){
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
@ -266,21 +263,16 @@ export default {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//地址的跳转
|
//地址的跳转
|
||||||
obligation(item,index){
|
obligation(item,index){
|
||||||
console.log(index);
|
let user= this.$store.state.userInfo;
|
||||||
console.log(item);
|
|
||||||
let user= localStorage.getItem("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({
|
||||||
@ -289,18 +281,14 @@ obligation(item,index){
|
|||||||
stype: 1,
|
stype: 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
} 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: 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
} else if(item.title=='待收货') {
|
||||||
else if(item.title=='待收货'){
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/personal/useraddress",
|
path: "/personal/useraddress",
|
||||||
query: {
|
query: {
|
||||||
@ -309,11 +297,7 @@ obligation(item,index){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
handleClose(){
|
handleClose(){
|
||||||
this.dialogInfo1=false;
|
this.dialogInfo1=false;
|
||||||
console.log(this.dialogInfo1);
|
console.log(this.dialogInfo1);
|
||||||
@ -347,14 +331,13 @@ 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({
|
||||||
@ -363,22 +346,25 @@ obligation(item,index){
|
|||||||
}
|
}
|
||||||
if(index==0){
|
if(index==0){
|
||||||
this.userlog=true
|
this.userlog=true
|
||||||
|
_hmt.push([
|
||||||
|
"_trackCustomEvent",
|
||||||
|
"jump_to_crmMiniApp",
|
||||||
|
{
|
||||||
|
"type":"积分商城",
|
||||||
|
}
|
||||||
|
])
|
||||||
let isMobile = this.ifadroind();
|
let isMobile = this.ifadroind();
|
||||||
if(isMobile)
|
if(isMobile)
|
||||||
window.location.href="weixin://dl/business/?t=BE1OA2AngRs";
|
window.location.href="weixin://dl/business/?t=BE1OA2AngRs";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(index==1){
|
if(index==1){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: `/personal/discount/`
|
path: `/personal/discount/`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
opendialog(){
|
opendialog(){
|
||||||
|
|
||||||
this.ifadroind();
|
this.ifadroind();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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([
|
||||||
|
Loading…
Reference in New Issue
Block a user