张文飞 3 anni fa
parent
commit
8d5d31afc9
2 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 4 1
      App.vue
  2. 1 3
      pages/homePage/homePage.vue

+ 4 - 1
App.vue

@@ -52,7 +52,10 @@
 		},
 		},
 		onShow: function() {
 		onShow: function() {
 			let token = this.$cache.get('_token_owner_union');
 			let token = this.$cache.get('_token_owner_union');
-			let userId =  this.$cache.get('_user_id')
+			let userId =  this.$cache.get('_user_id');
+			uni.showModal({
+				content:"调注册"
+			})
 			if (!token) {
 			if (!token) {
 				this.regist();
 				this.regist();
 			} else {
 			} else {

+ 1 - 3
pages/homePage/homePage.vue

@@ -217,9 +217,7 @@
 			this.color4 = app.globalData.color4;
 			this.color4 = app.globalData.color4;
 			let token = this.$cache.get('_token_owner_union');
 			let token = this.$cache.get('_token_owner_union');
 			this.token = token;
 			this.token = token;
-			if(token){
-				this.getData();
-			}
+			this.getData();
 			uni.$on("request",()=>{
 			uni.$on("request",()=>{
 				let token2 = this.$cache.get('_token_owner_union');
 				let token2 = this.$cache.get('_token_owner_union');
 				this.token = token2;
 				this.token = token2;