@ -100,7 +100,8 @@
id: '',
tel: '',
tags: []
}
},
showLogin: true
computed: {
@ -122,10 +123,11 @@
onLoad() {
this.getData();
onShow(){
onShow(e){
this.verifyUserInfo();
methods: {
verifyUserInfo(){
@ -135,7 +137,13 @@
// }
let userInfo = uni.getStorageSync('userinfo') || {};
if(!userInfo.id || !userInfo.nickname || !userInfo.avatar){
this.$url('/pages/login/index?type=userinfo');
if(this.showLogin){
this.showLogin = false;
}else{
this.showLogin = true;
this.$url('/pages/index/index', {type: 'switch'});
getData(){
@ -104,7 +104,8 @@
current: 0, // tab下表
pageSize: 10,
assetsType: '', //账户类型
orderType: []
orderType: [],
onLoad(e) {
@ -124,7 +125,13 @@
// 切换tab