Commit 02ee19d9 by liangjianmin

js

parent 11913492
...@@ -62,29 +62,21 @@ ...@@ -62,29 +62,21 @@
} }
} }
}, },
// beforeCreate(){
// let href = window.location.href;
// if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
// href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
// window.location.replace(href);
// }
// },
created() { created() {
//无需登录的情况下 //无需登录的情况下
if (!this.isLogin) { if (!this.isLogin) {
this.$store.dispatch({ this.$store.dispatch({
type: "wxShare", type: "wxShare",
current_url:location.href current_url: location.href
}); });
} } else {
else{ if (util.getCookie("Yo4teW_uid")) {
if (util.getCookie("Yo4teW_uid")) { this.$store.dispatch({
this.$store.dispatch({ type: "wxShare",
type: "wxShare", current_url: location.href
current_url:location.href });
}); }
}
} }
}, },
......
...@@ -320,10 +320,8 @@ ...@@ -320,10 +320,8 @@
window.location.href='https://www.pcbhunt.com/pcbonline.html?BoardHeight=10&BoardWidth=10&Num=5&BoardLayers=2&BoardThickness=1.6'; window.location.href='https://www.pcbhunt.com/pcbonline.html?BoardHeight=10&BoardWidth=10&Num=5&BoardLayers=2&BoardThickness=1.6';
} }
} else { } else {
if(this.userSpecialInfo.has_order == 0){ if(this.userSpecialInfo.has_order == '1'){
Toast.loading({ Toast('您当前已申请领取了哟,请前往订单中心查看');
message: '您当前已申请领取了哟,请前往订单中心查看'
});
}else{ }else{
this.getPops = true; this.getPops = true;
} }
......
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 sign in to comment