| | |
| | | videoError: false, |
| | | videoLoading: false, |
| | | progress: 0, |
| | | playerList: [] |
| | | playerList: [], |
| | | |
| | | }, |
| | | // 格式化笔记时间 |
| | | convertTimestamp(timestamp) { |
| | |
| | | }) |
| | | } |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | |
| | | }, |
| | | onTabsChange(event) { |
| | | |
| | | console.log(event, 234) |
| | | let tabValue = event.detail.value |
| | | if (tabValue == '1') { |
| | | this.getNoteList() |
| | | } |
| | | }, |
| | | |
| | | onTabsClick(event) { |
| | | |
| | | }, |
| | | handleChange(e) { |
| | | this.setData({ |
| | | activeValues: e.detail.value, |
| | |
| | | }, |
| | | resourceDetailsData() { |
| | | this.setData({ |
| | | videoLoaidng: true |
| | | videoLoaidng: true, |
| | | loading: true |
| | | }) |
| | | let query = { |
| | | storeInfo: this.data.storeInfo, |
| | |
| | | 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 |
| | | }) |
| | | } |
| | | }) |
| | | this.data.threeLeveData.forEach((items, index) => { // 修改此处添加index参数 |
| | |
| | | }, |
| | | // 获取笔记列表 |
| | | async getNoteList() { |
| | | // this.setData({ |
| | | // loading: true |
| | | // }) |
| | | this.setData({ |
| | | loading: true |
| | | }) |
| | | let topicId |
| | | await app.MG.ugc |
| | | .getProductUserSubmitTopic({ |