panhui пре 3 година
родитељ
комит
8d581eddec
2 измењених фајлова са 43 додато и 5 уклоњено
  1. 18 2
      src/views/Discover.vue
  2. 25 3
      src/views/product/HopeMarket.vue

+ 18 - 2
src/views/Discover.vue

@@ -135,6 +135,7 @@
                 finished-text=""
                 @load="getList"
                 :class="{ hotList: sort === 'hot' }"
+                :immediate-check="false"
             >
                 <template v-for="(item, index) in list" :key="item.id">
                     <product-info v-if="sort === 'collection'" v-model:info="list[index]" dark></product-info>
@@ -200,7 +201,8 @@ export default {
                 require('../assets/info_icon_lvzhougongyi.png'),
                 require('../assets/info_icon_banquanshichang.png')
             ],
-            swiperRef: null
+            swiperRef: null,
+            notLike: ''
         };
     },
     mounted() {
@@ -211,6 +213,19 @@ export default {
             StatusBar.backgroundColorByHexString('#272b2e');
             StatusBar.styleLightContent();
         }
+        this.$http
+            .get('/sysConfig/get/collect_not')
+            .then(res => {
+                console.log(res);
+                this.notLike = res.value;
+                return Promise.resolve();
+            })
+            .catch(e => {
+                return Promise.resolve();
+            })
+            .then(() => {
+                this.getList(true);
+            });
     },
     methods: {
         getInit() {
@@ -295,7 +310,8 @@ export default {
             let query = {
                 onShelf: true,
                 del: false,
-                source: this.$store.state.reviewPay ? 'OFFICIAL' : ''
+                source: this.$store.state.reviewPay ? 'OFFICIAL' : '',
+                notLike: this.notLike
             };
             let sort = 'id,desc';
             if (this.sort === 'creator') {

+ 25 - 3
src/views/product/HopeMarket.vue

@@ -103,7 +103,13 @@
             :head-height="80"
             @refresh="onRefresh"
         >
-            <van-list v-model:loading="loading" :finished="finished" finished-text="" @load="getData">
+            <van-list
+                v-model:loading="loading"
+                :finished="finished"
+                finished-text=""
+                :immediate-check="false"
+                @load="getData"
+            >
                 <template v-for="(item, index) in showList" :key="index">
                     <product-info dark v-model:info="list[index]" @update:info="init"></product-info>
                 </template>
@@ -178,7 +184,8 @@ export default {
             normalHeight: 0,
             settingId: 0,
             showSetting: false,
-            barShow: false
+            barShow: false,
+            notLike: ''
         };
     },
     computed: {
@@ -251,6 +258,20 @@ export default {
         } else {
             this.barShow = false;
         }
+
+        this.$http
+            .get('/sysConfig/get/collect_not')
+            .then(res => {
+                console.log(res);
+                this.notLike = res.value;
+                return Promise.resolve();
+            })
+            .catch(e => {
+                return Promise.resolve();
+            })
+            .then(() => {
+                this.getData(true);
+            });
     },
     methods: {
         onRefresh() {
@@ -368,7 +389,8 @@ export default {
                     del: false,
                     minterId: this.minterId,
                     salable: this.salable,
-                    minPrice: 50
+                    minPrice: 50,
+                    notLike: this.notLike
                 },
                 sort: this.sort === 'id,desc' ? this.sortOptions[this.title] || sort : sort
             };