panhui 4 vuotta sitten
vanhempi
commit
4e0cc70f10
2 muutettua tiedostoa jossa 22 lisäystä ja 10 poistoa
  1. 2 2
      src/components/SortItem.vue
  2. 20 8
      src/pages/store/homePage.vue

+ 2 - 2
src/components/SortItem.vue

@@ -73,13 +73,13 @@ export default {
     }
 
     &.desc {
-        &::before {
+        &::after {
             color: @prim;
         }
     }
 
     &.asc {
-        &::after {
+        &::before {
             color: @prim;
         }
     }

+ 20 - 8
src/pages/store/homePage.vue

@@ -59,7 +59,6 @@
                     />
                     <product-info :info="item" :isMine="isMineShop" :showBtn="isManage" @click="choose"></product-info>
                 </div>
-                <van-icon name="checked" />
                 <van-empty
                     v-if="empty"
                     image="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/kong_png_wukabao.png"
@@ -114,12 +113,16 @@ export default {
         ...mapState(['systemInfo', 'userStoreInfo']),
         dropCaseStatusList() {
             let list = [...this.caseStatusList];
-            list = list.map(item => {
-                return {
-                    value: item.value,
-                    text: item.label
-                };
-            });
+            list = list
+                .filter(item => {
+                    return this.isMineShop || item.value !== 'UNDO';
+                })
+                .map(item => {
+                    return {
+                        value: item.value,
+                        text: item.label
+                    };
+                });
             let first = {
                 value: '',
                 text: '全部商品'
@@ -180,7 +183,16 @@ export default {
                 storeId: this.storeInfo.id
             };
             if (this.caseStatus) {
-                data.caseStatus = this.caseStatus;
+                data.caseStatuses = this.caseStatus;
+            } else {
+                data.caseStatuses = [...this.dropCaseStatusList]
+                    .filter(item => {
+                        return !!item.value;
+                    })
+                    .map(item => {
+                        return item.value;
+                    })
+                    .join(',');
             }
             if (this.sort) {
                 data.sortStr = this.sort;