panhui před 4 roky
rodič
revize
a606c4eb5e
1 změnil soubory, kde provedl 18 přidání a 1 odebrání
  1. 18 1
      src/pages/mine.vue

+ 18 - 1
src/pages/mine.vue

@@ -48,7 +48,7 @@
                 height="86"
                 src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/info_img_renzhengdianjia1.png"
                 fit="contain"
-                @click="wait"
+                @click="navigateTo('/pages/store/apply')"
             />
         </div>
 
@@ -163,7 +163,24 @@ export default {
                 .catch(() => {
                     this.navigateTo('/pages/store/review');
                 });
+        },
+        loginMethods() {
+            this.$nextTick(() => {
+                if (this.isLogin) {
+                    var authStatus = wx.getStorageSync('authStatus');
+                    this.$store.dispatch('getUserStore').then(res => {
+                        console.log(authStatus);
+                        if (authStatus !== res.id + '_PASS') {
+                            this.$refs.reviewPass.show = true;
+                            wx.setStorageSync('authStatus', res.id + '_PASS');
+                        }
+                    });
+                }
+            });
         }
+    },
+    onShow() {
+        this.loginMethods();
     }
 };
 </script>