Browse Source

修改bug

cr 4 years ago
parent
commit
48b8f2f82a
3 changed files with 17 additions and 12 deletions
  1. 12 9
      src/App.vue
  2. 1 1
      src/pages/assistant/re-status.vue
  3. 4 2
      src/pages/index/register.vue

+ 12 - 9
src/App.vue

@@ -40,16 +40,19 @@ export default {
40 40
         //         });
41 41
         //     }
42 42
         // }
43
-        if (!user.storeId) {
44
-            this.router.push({
45
-                path: "/pages/assistant/index",
46
-                isTabBar: true,
47
-            });
43
+        if (user.roleId && user.bundleId !== 0) {
48 44
         } else {
49
-            this.router.push({
50
-                path: "/pages/index/index",
51
-                isTabBar: true,
52
-            });
45
+            if (!user.storeId) {
46
+                this.router.push({
47
+                    path: "/pages/assistant/index",
48
+                    isTabBar: true,
49
+                });
50
+            } else {
51
+                this.router.push({
52
+                    path: "/pages/index/index",
53
+                    isTabBar: true,
54
+                });
55
+            }
53 56
         }
54 57
 
55 58
         // 测试

+ 1 - 1
src/pages/assistant/re-status.vue

@@ -40,7 +40,7 @@ export default {
40 40
         return {
41 41
             submitLoading: false,
42 42
             opts: [
43
-                { key: "待关联", value: 0 },
43
+                // { key: "待关联", value: 0 },
44 44
                 { key: "正常", value: 1 },
45 45
                 { key: "暂停", value: 2 },
46 46
             ],

+ 4 - 2
src/pages/index/register.vue

@@ -146,7 +146,7 @@ export default {
146 146
     // 数据
147 147
     data() {
148 148
         return {
149
-            step: 1,
149
+            step: 3,
150 150
             form: {
151 151
                 mobile: "",
152 152
                 smsCode: "",
@@ -339,7 +339,9 @@ export default {
339 339
         },
340 340
 
341 341
         saveOk() {
342
-            // self.fn.showToast("注册成功");  
342
+                        // this.router.push("/pages/index/register?step=2");
343
+                        // return;
344
+            self.fn.showToast("注册成功");  
343 345
             this.api
344 346
                 .get("/Group/CheckCode", {
345 347
                     platform: this.form.fromPlatform,