Refactor(购物车&我的):增加未登录或者登录过期显示以便微信审核
This commit is contained in:
+7
-1
@@ -22,7 +22,7 @@
|
||||
/>
|
||||
<view class="txt">您还未登录</view>
|
||||
<view class="desc">请注册/登录账户后重试</view>
|
||||
<view class="btn">去登录</view>
|
||||
<view class="btn" @click="toLoginHandle">去登录</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<view class="v12-justify-between v12-px-2">
|
||||
@@ -440,6 +440,12 @@ export default {
|
||||
this.pageToHideHandle()
|
||||
},
|
||||
methods: {
|
||||
toLoginHandle() {
|
||||
cookie.set('redirect', '/pages/cart')
|
||||
uni.reLaunch({
|
||||
url: '/pages/authorization/index'
|
||||
})
|
||||
},
|
||||
goGoodsCon(item) {
|
||||
this.$yrouter.push({
|
||||
path: '/pages/shop/GoodsCon/index',
|
||||
|
||||
Reference in New Issue
Block a user