Pārlūkot izejas kodu

图库管理优化

shish 6 gadi atpakaļ
vecāks
revīzija
516fb74cff
1 mainītis faili ar 11 papildinājumiem un 38 dzēšanām
  1. 11 38
      store/src/admin/goodsManage/img-store.vue

+ 11 - 38
store/src/admin/goodsManage/img-store.vue

@@ -107,8 +107,7 @@
                   class="admin-button-com"
                   :class="[form.categoryIdList.includes(item.id) ? '' : 'default']"
                   @click="selCategoryFn(item)"
-                >{{ item.categoryName || '暂无' }}
-                </button>
+                >{{ item.categoryName || '暂无' }}</button>
               </block>
             </div>
           </div>
@@ -129,16 +128,8 @@
           </div>
           <!-- button -->
           <div class="redeem-btn">
-            <button 
-              class="admin-button-com default big" 
-              @click="modalCancel">
-              取消
-            </button>
-            <button 
-              class="admin-button-com blue big" 
-              @click="saveFn">
-              确定
-            </button>
+            <button class="admin-button-com default big" @click="modalCancel">取消</button>
+            <button class="admin-button-com blue big" @click="saveFn">确定</button>
           </div>
         </div>
       </template>
@@ -206,39 +197,22 @@ export default {
         {
           text: "编辑",
           icon: "iconbianji",
-          click: () => {
-            this.modalCancel();
-            this.form.picIdList = [this.operateData.id];
-            this.settingModal = true;
-          }
+          click: () => {}
         },
         {
           text: "置顶",
           icon: "iconxiajia",
-          click: () => {
-            picTop({ id: this.operateData.id }).then(res => {
-              this.operateCloseFn();
-              this.$msg("置顶成功!");
-              setTimeout(() => {
-                this.resetList();
-                this._list();
-              }, 1000);
-            });
-          }
+          click: () => {}
         },
         {
           text: "删除",
           icon: "iconshanchu1",
-          click: () => {
-            this.delModal = true;
-          }
+          click: () => {}
         },
         {
           text: "分享",
           icon: "iconfenxiang1",
-          click: () => {
-            this.delModal = true;
-          }
+          click: () => {}
         }
       ]
     };
@@ -259,9 +233,10 @@ export default {
     operateList(index) {
       if (index === 0) {
         this.modalCancel();
-        this.form.categoryIdList = this.operateData.categoryIdList
+        this.form.categoryIdList = this.operateData.categoryIdList;
         this.form.picIdList = [this.operateData.id];
         this.settingModal = true;
+        this.operateCloseFn();
       } else if (index === 1) {
         picTop({ id: this.operateData.id }).then(res => {
           this.operateCloseFn();
@@ -274,7 +249,8 @@ export default {
       } else if (index === 2) {
         this.delModal = true;
       } else if (index === 3) {
-        this.delModal = true;
+        this.operateCloseFn();
+        this.$msg("即将开通...");
       }
     },
     // 获取高度
@@ -289,7 +265,6 @@ export default {
     async init() {
       uni.getSystemInfo({
         success: res => {
-          console.log("江总", res);
           this.listWidth = parseInt(res.screenWidth * 0.3);
         }
       });
@@ -320,7 +295,6 @@ export default {
         }, 1000);
       });
     },
-    // 操作
     selCategory(item) {
       this.categoryName = item.categoryName;
       this.categoryId = item.id;
@@ -367,7 +341,6 @@ export default {
         });
       }
     },
-    // operate
     operateFn(item, index) {
       if (this.operateIndex == index) {
         this.operateCancle();