| | |
| | | formPath: '', |
| | | loading: true, |
| | | hidden: true, |
| | | videoError: false |
| | | videoError: false, |
| | | videoLoaidng: false |
| | | }, |
| | | // 格式化笔记时间 |
| | | convertTimestamp(timestamp) { |
| | |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度 |
| | | console.log(options, 'options'); |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | |
| | | parentName: options.parentName, |
| | | }) |
| | | } |
| | | console.log(options, 'options'); |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | }, |
| | |
| | | wx.navigateBack(); |
| | | }, |
| | | resourceDetailsData() { |
| | | this.setData({ |
| | | videoLoaidng: true |
| | | }) |
| | | let query = { |
| | | path: '*', |
| | | queryType: '*', |
| | |
| | | } |
| | | app.MG.store.getProductDetail(query).then(res => { |
| | | res.datas.cmsDatas[0].datas.forEach((item) => { |
| | | console.log(item); |
| | | if (item.selectType === "video" || item.learnSelectType === "video") { |
| | | this.data.threeLeveData.push(item) |
| | | this.setData({ |
| | |
| | | onVideo(e) { |
| | | const item = e.currentTarget.dataset.item |
| | | this.setData({ |
| | | videoLoaidng: true, |
| | | selectedId: e.currentTarget.dataset.index, |
| | | showData: '', |
| | | titleName: item.name |
| | |
| | | textvalue: e.detail.value |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // 获取笔记列表 |
| | | async getNoteList() { |
| | | // this.setData({ |
| | |
| | | this.setData({ |
| | | videoError: true |
| | | }); |
| | | }, |
| | | loadedmetadata(e) { |
| | | this.setData({ |
| | | videoLoaidng: false |
| | | }) |
| | | } |
| | | }) |