cr лет назад: 4
Родитель
Сommit
8c3ed2480f
1 измененных файлов с 17 добавлено и 43 удалено
  1. 17 43
      src/pages/manage/index.vue

+ 17 - 43
src/pages/manage/index.vue

@@ -27,18 +27,17 @@
27 27
                     </div>
28 28
                 </div>
29 29
             </block>
30
-            <block v-if="showMenu">
31
-                <ul class="menu" v-if="!menuLoading">
32
-                    <li
33
-                        class="item"
34
-                        v-for="item of menuList"
35
-                        :key="item.id"
36
-                        @click="jump(item.url)"
37
-                    >
38
-                        <my-image class="img" :src="item.icon"></my-image>
39
-                        <span class="text">{{ item.name }}</span>
40
-                    </li>
41
-                    <!-- <block v-if="storeStatus === 0 || storeStatus === 1">
30
+            <ul class="menu" v-if="!menuLoading">
31
+                <li
32
+                    class="item"
33
+                    v-for="item of menuList"
34
+                    :key="item.id"
35
+                    @click="jump(item.url)"
36
+                >
37
+                    <my-image class="img" :src="item.icon"></my-image>
38
+                    <span class="text">{{ item.name }}</span>
39
+                </li>
40
+                <!-- <block v-if="storeStatus === 0 || storeStatus === 1">
42 41
                         <li
43 42
                             class="item"
44 43
                             @click="jump('/pages/manage/shop/index')"
@@ -57,32 +56,6 @@
57 56
                         ></my-image>
58 57
                         <span class="text">我的钱包</span>
59 58
                     </li> -->
60
-                    <li class="item" @click="jump('/pages/manage/user/index')">
61
-                        <my-image
62
-                            class="img"
63
-                            src="/static/icon/user.png"
64
-                        ></my-image>
65
-                        <span class="text">账号设置</span>
66
-                    </li>
67
-                </ul>
68
-            </block>
69
-            <ul class="menu" v-if="!showMenu">
70
-                <!-- <block v-if="storeStatus === 0 || storeStatus === 1">
71
-                    <li class="item" @click="jump('/pages/manage/shop/index')">
72
-                        <my-image
73
-                            class="img"
74
-                            src="/static/icon/shop.png"
75
-                        ></my-image>
76
-                        <span class="text">店铺设置</span>
77
-                    </li>
78
-                </block>
79
-                <li class="item" @click="jump('/pages/wallet/index')">
80
-                    <my-image
81
-                        class="img"
82
-                        src="/static/icon/money.png"
83
-                    ></my-image>
84
-                    <span class="text">我的钱包</span>
85
-                </li> -->
86 59
                 <li class="item" @click="jump('/pages/manage/user/index')">
87 60
                     <my-image
88 61
                         class="img"
@@ -152,11 +125,11 @@ export default {
152 125
             }
153 126
         }
154 127
         // 判断页面显示
155
-        if (this.user.roleId && this.user.bundleId !== 0) {
156
-            this.showMenu = true;
157
-        } else {
158
-            this.showMenu = false;
159
-        }
128
+        // if (this.user.roleId && this.user.bundleId !== 0) {
129
+        //     this.showMenu = true;
130
+        // } else {
131
+        //     this.showMenu = false;
132
+        // }
160 133
         this.getUserMenu();
161 134
         this.$refs.tabbar.setIndex(2);
162 135
         // this.checkStatus();
@@ -222,6 +195,7 @@ export default {
222 195
             this.$store.commit("user/update", {
223 196
                 menuList: arr,
224 197
             });
198
+            console.log(arr, "menu");
225 199
             let arr2 = [];
226 200
             for (let item of arr) {
227 201
                 if (item.id !== "mobile_setting") {