Commit 3e2f2341 authored by youjie's avatar youjie

取消直接跳转赞羊

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