| | |
| | | this.setData({ |
| | | resourceCodeList: res.datas.cmsDatas[0].datas |
| | | }) |
| | | // console.log('图书资源', res.datas.cmsDatas[0].datas) |
| | | }) |
| | | }, |
| | | //请求子商品的文件 |
| | |
| | | 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, |
| | |
| | | applyState: "Normal", |
| | | deadline: "永久", |
| | | }); |
| | | console.log("有效日期", this.data.deadline); |
| | | } else { |
| | | let endTime = new Date(endDate + " 23:59:59").getTime(); |
| | | this.setData({ |
| | |
| | | } |
| | | }); |
| | | 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) { |
| | |
| | | |
| | | }, |
| | | 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, |
| | | }); |
| | | }, |