bug
litian
2024-09-14 4c29b79d485d68d506e798f4fd381232ebc55a86
packageBookService/pages/bookServices/detail/index.js
@@ -547,7 +547,6 @@
      this.setData({
        resourceCodeList: res.datas.cmsDatas[0].datas
      })
      // console.log('图书资源', res.datas.cmsDatas[0].datas)
    })
  },
  //请求子商品的文件
@@ -1037,8 +1036,6 @@
        if (type.refCode == "jsek_teachingResources") {
          this.findChildIds(list, result);
          // const newUSeList = this.deleteTreeData(list, result)
          // console.log('树剔除', result, newUSeList);
          // console.log('树加一', this.increaseTreeData(list, newUSeList, 16094));
          this.setData({
            openTeachids: result,
            loading: false,
@@ -1422,7 +1419,6 @@
              applyState: "Normal",
              deadline: "永久",
            });
            console.log("有效日期", this.data.deadline);
          } else {
            let endTime = new Date(endDate + " 23:59:59").getTime();
            this.setData({
@@ -2238,7 +2234,6 @@
          }
        });
        const smBook = list.find(item => item.content[0].id == this.data.bookDetail.id)
        console.log('已申请', smBook);
        if (smBook && smBook.state == 'Normal') {
          const flag = new Date(smBook.feedBack.endDate + ' 23:59:59').getTime() > new Date().getTime()
          if (flag) {
@@ -2658,13 +2653,13 @@
  },
  onNameInput(e) {
    console.log(e.detail.value)
    this.setData({
      'resourceInfo.resourceName': e.detail.value,
    });
  },
  onResourcePicker(e) {
    this.setData({
      resourceValue: [this.data.resourceInfo.fileType],
      resourceVisible: true,
    });
  },