Refactor(购物车&我的):增加未登录或者登录过期显示以便微信审核

This commit is contained in:
lifizer
2025-04-27 15:22:33 +08:00
parent 05cdb3ac34
commit 069ef49839
+7 -1
View File
@@ -22,7 +22,7 @@
/> />
<view class="txt">您还未登录</view> <view class="txt">您还未登录</view>
<view class="desc">请注册/登录账户后重试</view> <view class="desc">请注册/登录账户后重试</view>
<view class="btn">去登录</view> <view class="btn" @click="toLoginHandle">去登录</view>
</view> </view>
<view v-else> <view v-else>
<view class="v12-justify-between v12-px-2"> <view class="v12-justify-between v12-px-2">
@@ -440,6 +440,12 @@ export default {
this.pageToHideHandle() this.pageToHideHandle()
}, },
methods: { methods: {
toLoginHandle() {
cookie.set('redirect', '/pages/cart')
uni.reLaunch({
url: '/pages/authorization/index'
})
},
goGoodsCon(item) { goGoodsCon(item) {
this.$yrouter.push({ this.$yrouter.push({
path: '/pages/shop/GoodsCon/index', path: '/pages/shop/GoodsCon/index',