Browse Source

检查店铺

panhui 5 years ago
parent
commit
a606c4eb5e
1 changed files with 18 additions and 1 deletions
  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>