完善手机密码登录和Vuex状态管理

This commit is contained in:
sfmind
2022-04-20 03:08:59 +08:00
parent 671b5d343e
commit 93352b5386
12 changed files with 187 additions and 100 deletions

View File

@ -4,7 +4,7 @@
<u-empty mode="car" width="500rpx" height="500rpx" icon="/static/images/empty/cart.png"></u-empty>
</view>
<view class="login-tips-box">
<view v-if="!hasLogin" class="login-tips-box">
<view class="login-tips">
<navigator url="/pages/login/login" open-type="navigate" hover-class="none">
<text class="login-link">登录</text>
@ -23,7 +23,12 @@ export default {
}
},
onLoad() {},
methods: {}
methods: {},
computed: {
hasLogin() {
return this.$store.getters.hasLogin
}
}
}
</script>