Commit 3e2f2341 authored by youjie's avatar youjie

取消直接跳转赞羊

parent a41321f8
......@@ -19,7 +19,6 @@
import coupon from "@/components/coupons/coupons";
export default {
props:['zanYang'],
components: {
coupon,
},
......@@ -299,26 +298,14 @@
that.$emit("changeuserinfo");
uni.setStorageSync("lastLogin",new Date().getTime())
} else {
if(this.zanYang){
uni.redirectTo({
url: `/pages/jiuzhai/bind_Customer?zanYang=${this.zanYang}`
})
}else{
uni.redirectTo({
url: '/pages/jiuzhai/bind_Customer'
})
}
}
}, (error2) => {
if(this.zanYang){
uni.redirectTo({
url: `/pages/jiuzhai/bind_Customer?zanYang=${this.zanYang}`
})
}else{
uni.redirectTo({
url: '/pages/jiuzhai/bind_Customer'
})
}
}, (error2) => {
uni.redirectTo({
url: '/pages/jiuzhai/bind_Customer'
})
});
},
updateuserinfo(msg) {
......
......@@ -64,7 +64,7 @@
</template>
<coupon v-if="showCoupons" :coupon-message="couponMessage" :cform="ComeFrom"
@goLook="()=>showCoupons = false" @closeBtn="()=>showCoupons = false"></coupon>
<auth v-if="showAuth&&is_show_auth" :zanYang="zanYang" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<auth v-if="showAuth&&is_show_auth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<official-account></official-account>
</view>
</view>
......@@ -123,7 +123,6 @@
isNavPosition: 0,
scrollTop: 0,
is_show_auth: 0,
zanYang: 0
};
},
components: {
......@@ -178,10 +177,6 @@
this.showCoupons = true;
this.couponMessage = uni.getStorageSync('coupons');
}
if (options.zanYang) {
this.zanYang = options.zanYang
}
},
mounted() {
const that = this
......@@ -236,12 +231,6 @@
const bu = uni.getStorageSync('b2b_user')
if (!mu || !bu) this.showAuth = true
else{
if(this.zanYang){
this.$utils.goZanYangUrl()
}
}
},
methods: {
......@@ -380,9 +369,6 @@
setTimeout(() => {
uni.removeStorageSync("LoginState")
}, 1000);
if(this.zanYang){
this.$utils.goZanYangUrl()
}
},
gbAuth() {
this.showAuth = false;
......
......@@ -42,7 +42,6 @@
createBy:0,
},
ShareLoginstatus: false,
zanYang: 0,
}
},
onLoad(option) {
......@@ -59,7 +58,6 @@
}
})
}
if(option.zanYang) this.zanYang = option.zanYang
},
mounted() {
......@@ -150,13 +148,13 @@
uni.setStorageSync('coupons',[{Name:tempData.CouponsName,Num:1}])
}
let newUrl = this.zanYang?`/pages/index/index?zanYang=${this.zanYang}`:'/pages/index/index';
let newUrl = '/pages/index/index';
uni.redirectTo({
url: newUrl
})
} else {
uni.redirectTo({
url: this.zanYang?`/pages/index/index?zanYang=${this.zanYang}`:'/pages/index/index'
url: '/pages/index/index'
})
}
} else {
......
......@@ -240,7 +240,6 @@
methods: {
goExchange(){
this.$utils.goZanYangUrl()
console.log(uni.getStorageSync('mall_UserInfo').OpenId,'积分商场')
// uni.navigateToMiniProgram({
// appId: 'wxacd9f8cc3480d29e',
// path: `pages/index/index?jzTravelOpenId=${uni.getStorageSync('mall_UserInfo').OpenId}`, // 目标页面路径(可选)
......
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