Commit 02ee19d9 by liangjianmin

js

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