| | |
| | | size: 999, |
| | | }, |
| | | }; |
| | | console.log(value.childrenFolderCount, 1234578) |
| | | if (value.childrenFolderCount == 0) { |
| | | wx.hideLoading(); |
| | | return wx.showToast({ |
| | |
| | | type: item.type, |
| | | }); |
| | | }); |
| | | console.log(idPathList, 123413456578) |
| | | } |
| | | } |
| | | wx.hideLoading(); |
| | |
| | | this.setData({ |
| | | tabValue: options.tabValue, |
| | | }); |
| | | const checkData = this.data.cmsDatas.find( |
| | | (item) => item.refCode == options.tabValue |
| | | ); |
| | | if (this.data.tabValue == "questionBank") { |
| | | this.getResourceData(checkData) |
| | | } else { |
| | | this.getResourceDataList(checkData) |
| | | } |
| | | |
| | | |
| | | } |
| | | }, |
| | |
| | | await this.getBookClass(classData); |
| | | } |
| | | } |
| | | if (this.data.tabValue == 'questionBank' || this.data.tabValue == 'jsek_cloudLearning' || this.data.tabValue == 'jsek_teachingResources') { |
| | | const checkData = this.data.cmsDatas.find( |
| | | (item) => item.refCode == this.data.tabValue |
| | | ); |
| | | if (this.data.tabValue == "questionBank") { |
| | | this.getResourceData(checkData) |
| | | } else { |
| | | this.getResourceDataList(checkData) |
| | | } |
| | | } |
| | | |
| | | // 获取组卷销售id |
| | | if (res.datas.saleMethod && res.datas.saleMethod.length) { |
| | |
| | | parentProductLinkPath: '', |
| | | productLinkPath: '', |
| | | threeLeveData: [], |
| | | source: "", |
| | | showData: '', |
| | | src: '', |
| | | selectedId: null, |
| | |
| | | cmsId: options.cmsId, |
| | | parentProductLinkPath: options.parentProductLinkPath, |
| | | productLinkPath: options.productLinkPath, |
| | | formPath: options.formPath |
| | | formPath: options.formPath, |
| | | source: options.source, |
| | | }) |
| | | |
| | | if (options.parentName !== "教学资源" && options.parentName !== "云学习") { |
| | |
| | | let titleName = ''; |
| | | |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | if (item.selectType === "audio" || item.learnSelectType === "audio") { |
| | | this.data.threeLeveData.push(item); |
| | | if (this.data.source == 'qrcode') { |
| | | if (item.id == this.data.activeId) { |
| | | this.data.threeLeveData.push(item); |
| | | } |
| | | } else { |
| | | if (item.selectType === "audio" || item.learnSelectType === "audio") { |
| | | this.data.threeLeveData.push(item); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | this.data.threeLeveData.forEach((items, indexs) => { |
| | | if (this.data.productLinkPath == items.productLinkPath) { |
| | |
| | | parentProductLinkPath: '', |
| | | productLinkPath: '', |
| | | threeLeveData: [], |
| | | source: "", |
| | | showData: '', |
| | | showDataVod: '', |
| | | src: '', |
| | |
| | | productLinkPath: options.productLinkPath, |
| | | formPath: options.formPath, |
| | | flag: false, |
| | | source: options.source, |
| | | }) |
| | | if (options.parentName !== "教学资源" && options.parentName !== "云学习") { |
| | | this.setData({ |
| | |
| | | } |
| | | app.MG.store.getProductDetail(query).then(res => { |
| | | res.datas.cmsDatas[0].datas.forEach((item) => { |
| | | if (item.selectType === "video" || item.learnSelectType === "video") { |
| | | this.data.threeLeveData.push(item) |
| | | this.setData({ |
| | | threeLeveData: this.data.threeLeveData |
| | | }) |
| | | if (this.data.source == 'qrcode') { |
| | | if (item.id == this.data.activeId) { |
| | | this.data.threeLeveData.push(item); |
| | | } |
| | | } else { |
| | | if (item.selectType === "video" || item.learnSelectType === "video") { |
| | | this.data.threeLeveData.push(item) |
| | | this.setData({ |
| | | threeLeveData: this.data.threeLeveData |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | this.data.threeLeveData.forEach((items, index) => { // 修改此处添加index参数 |
| | |
| | | } |
| | | } |
| | | app.MG.store.getProductDetail(query).then(async res => { |
| | | console.log('信息', res); |
| | | if (res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId)) { |
| | | this.setData({ |
| | | isBuy: true |
| | |
| | | (data) => { |
| | | let width = data.width |
| | | let height = data.height |
| | | console.log(width, height) |
| | | that.setData({ |
| | | imageWidth: width, |
| | | imageHeight: height, |
| | |
| | | (data) => { |
| | | let width = data.width |
| | | let height = data.height |
| | | console.log(width, height) |
| | | that.setData({ |
| | | imageWidth: width, |
| | | imageHeight: height, |
| | |
| | | element: 'myCanvas', |
| | | progress(percent) {}, |
| | | finish(url) { |
| | | console.log("生成的图片地址", url) |
| | | wx.getFileSystemManager().readFile({ |
| | | filePath: url, |
| | | encoding: 'base64', |
| | | success: (res) => { |
| | | let MyImageBase64 = 'data:image/jpg;base64,' + res.data |
| | | console.log('MyImageBase64', MyImageBase64) |
| | | that.setData({ |
| | | cbzsImg: MyImageBase64, |
| | | pubCertificateHide: false, |
| | |
| | | element: 'myCanvas1', |
| | | progress(percent) {}, |
| | | finish(url) { |
| | | console.log("生成的图片地址", url) |
| | | wx.getFileSystemManager().readFile({ |
| | | filePath: url, |
| | | encoding: 'base64', |
| | | success: (res) => { |
| | | let MyImageBase641 = 'data:image/jpg;base64,' + res.data |
| | | console.log('MyImageBase64', MyImageBase641) |
| | | that.setData({ |
| | | rzzsImg: MyImageBase641, |
| | | pubCertificateHide: false, |
| | |
| | | this.setData({ |
| | | "sortActive": e.detail.value, |
| | | }); |
| | | console.log(e) |
| | | this.getCourseList(this.data.activeItem); |
| | | }, |
| | | courseDetail(e) { |