litian
2024-09-12 bbba5d26e9e26c910ed337dcb65f462752ee6dce
packageBookService/pages/bookServices/list/index.js
@@ -200,6 +200,7 @@
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareTimeline() {},
  goBack() {
    wx.navigateBack();
  },
@@ -272,6 +273,7 @@
        "secondList.options": options,
      });
      const second = [this.data.secondCode];
      console.log(second);
      this.setData({
        "secondList.value": second,
      });
@@ -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,
@@ -491,8 +497,34 @@
    // }
    await this.getBookList(path);
  },
  // 二级分类切换
  onChangeSecond(e) {
  // // 二级分类切换
  // onChangeSecond(e) {
  //   const pathList = [];
  //   for (let index = 0; index < e.detail.value.length; index++) {
  //     const element = e.detail.value[index];
  //     pathList.push({
  //       Path: element,
  //       Type: "*",
  //       StoreRefCode: app.config.goodsStore,
  //     });
  //   }
  //   this.setData({
  //     backTop: "#assort-title",
  //     pathList: pathList,
  //     "secondList.value": e.detail.value,
  //   });
  // },
  // 二级分类重置
  resetSecond() {
    this.setData({
      backTop: "#assort-title",
      pathList: [],
      "secondList.value": [],
    });
    this.getBookList(this.data.path);
  },
  // 二级分类确定
  onConfirmSecond(e) {
    const pathList = [];
    for (let index = 0; index < e.detail.value.length; index++) {
      const element = e.detail.value[index];
@@ -507,9 +539,6 @@
      pathList: pathList,
      "secondList.value": e.detail.value,
    });
  },
  //
  onConfirmSecond() {
    this.getBookList(this.data.path);
  },
  // 重点项目改变