guhongwei 5 năm trước cách đây
mục cha
commit
6a92551643
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      src/views/market/index.vue

+ 4 - 5
src/views/market/index.vue

@@ -209,16 +209,15 @@ export default {
     ...product(['newquery']),
     ...talentExperts({ expertQuery: 'query' }),
     async search() {
-      let res = await this.newquery({ skip: 0, limit: 4, totaltype: '0' });
+      let res = await this.newquery({ skip: 0, limit: 4, totaltype: '0', status: '1' });
       if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
-      res = await this.newquery({ skip: 0, limit: 4, totaltype: '1' });
+      res = await this.newquery({ skip: 0, limit: 4, totaltype: '1', status: '1' });
       if (this.$checkRes(res)) this.$set(this, `productList`, res.data);
       if (this.$checkRes(res)) this.$set(this, `newList`, res.data);
-      res = await this.newquery({ skip: 0, limit: 4, totaltype: '2' });
+      res = await this.newquery({ skip: 0, limit: 4, totaltype: '2', status: '1' });
       if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
-      res = await this.expertQuery({ skip: 0, limit: 4 });
+      res = await this.expertQuery({ skip: 0, limit: 4, status: '1' });
       if (this.$checkRes(res)) this.$set(this, `expertsList`, res.data);
-      console.log(res.data);
     },
     toProductList() {
       this.$router.push({ path: '/supermaket/supermarketlist', query: { totaltype: 1 } });