2 次代码提交 797abeea95 ... fa32b91130

作者 SHA1 备注 提交日期
  wuhongyu fa32b91130 Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-test 4 年之前
  wuhongyu c90b16595a 更新 4 年之前
共有 1 个文件被更改,包括 8 次插入3 次删除
  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;