闫增涛
2025-01-22 d00d7f8ba2dfed17984aa5d41c7694c24d9d198a
packageBookService/pages/bookServices/list/index.js
@@ -131,7 +131,7 @@
    // 获取二级分类
    this.getSecondList(`${options.assortCode}\\${options.stairCode}`);
    this.getBookList(`${options.assortCode}\\${options.stairCode}`);
    // 获取重点项目
    // 获取获奖情况
    this.getProjectList("bookClassification");
    this.getProjectList("newFormsTextbooks");
  },
@@ -200,6 +200,7 @@
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareTimeline() {},
  goBack() {
    wx.navigateBack();
  },
@@ -272,12 +273,13 @@
        "secondList.options": options,
      });
      const second = [this.data.secondCode];
      console.log(second);
      this.setData({
        "secondList.value": second,
      });
    });
  },
  // 获取重点项目
  // 获取获奖情况
  getProjectList(type) {
    this.setData({
      disabledProject: false,
@@ -334,7 +336,7 @@
        this.setData({
          "newTextBook.options": options,
        });
        console.log("重点项目", this.data.newTextBook);
        console.log("获奖情况", this.data.newTextBook);
      }
    });
  },
@@ -410,6 +412,7 @@
        "||author*": this.data.searchValue,
        "||isbn*": this.data.searchValue,
        "||seriesName*": this.data.searchValue,
        "||projectLeader*": this.data.searchValue
      };
    }
    const query = {
@@ -419,6 +422,9 @@
        field: "state",
      }, ],
      sort,
      coverSize: {
        width: 180
      },
      paging: {
        start: 0,
        size: this.data.pageCount.page * 8,
@@ -535,7 +541,7 @@
    });
    this.getBookList(this.data.path);
  },
  // 重点项目改变
  // 获奖情况改变
  changeMajorProject(e) {
    this.setData({
      backTop: "#assort-title",
@@ -543,7 +549,7 @@
    });
    this.getBookList(this.data.path);
  },
  // 重点项目重置
  // 获奖情况重置
  resetMajorProject() {
    this.setData({
      "majorProjectList.value": [],