gyh change

This commit is contained in:
Gdpao
2020-07-31 08:45:30 +08:00
parent 8bb1cdfd39
commit d817d0c28b
15 changed files with 708 additions and 460 deletions

View File

@@ -124,7 +124,11 @@
</template>
<script>
import { mapState } from 'vuex';
export default {
computed: {
...mapState(['hasLogin', 'token'])
},
data() {
return {
userInfo: {},
@@ -136,6 +140,12 @@ export default {
}
},
onShow() {
// 尝试登录
if (!this.hasLogin) {
uni.navigateTo({
url: "../../pageA/login/login"
})
}
this.getUserInfo();
},
onNavigationBarButtonTap() {
@@ -160,7 +170,7 @@ export default {
</script>
<style lang="scss" scoped>
.mine {
min-height: calc(calc(100vh - var(--window-top)) - 50px);
min-height: calc(calc(100vh - var(--window-top)));
background: #ECECEC;
.mine-top {
// width: 100%;