2 Commits 797abeea95 ... fa32b91130

Author SHA1 Message Date
  wuhongyu fa32b91130 Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-test 4 years ago
  wuhongyu c90b16595a 更新 4 years ago
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/market/marketlists.vue

+ 8 - 3
src/views/market/marketlists.vue

@@ -179,24 +179,29 @@ export default {
         let totaltype = '1';
         res = await this.list({ skip, limit, totaltype, status: 1, ...info });
         this.$set(this, `zhuantiList`, res.data);
+        this.$set(this, `pageTotal`, res.total);
       } else if (name == '技术供求') {
-        this.skip = 0;
+        // this.skip = 0;
         this.limit = 10;
+        this.pageSize = 10;
         let totaltype = '0';
-        res = await this.list({ skip, limit, totaltype, status: 1, ...info });
+        res = await this.list({ skip, limit: 10, totaltype, status: 1, ...info });
         this.$set(this, `jishuList`, res.data);
+        this.$set(this, `pageTotal`, res.total);
       } else if (name == '服务供求') {
         let totaltype = '2';
         this.skip = 0;
         this.limit = 10;
         res = await this.list({ skip, limit, totaltype, status: 1, ...info });
         this.$set(this, `hangyeList`, res.data);
+        this.$set(this, `pageTotal`, res.total);
       } else if (name == '专家供求') {
         let totaltype = this.totaltype;
         res = await this.lists({ skip, limit, ...info });
         this.$set(this, `jiaoyuList`, res.data);
+        this.$set(this, `pageTotal`, res.total);
       }
-      this.$set(this, `pageTotal`, res.total);
+      // this.$set(this, `pageTotal`, res.total);
     },
     handleCurrentChange(val) {
       const name = this.menuName;