闫增涛
2024-05-06 e8ec903206cb82e4dbb4687291d5f7788e7ff046
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -40,7 +40,8 @@
    formPath: '',
    loading: true,
    hidden: true,
    videoError: false
    videoError: false,
    videoLoaidng: false
  },
  // 格式化笔记时间
  convertTimestamp(timestamp) {
@@ -64,7 +65,6 @@
    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,
@@ -82,7 +82,6 @@
        parentName: options.parentName,
      })
    }
    console.log(options, 'options');
    this.resourceDetailsData()
    this.getNoteList()
  },
@@ -202,6 +201,9 @@
    wx.navigateBack();
  },
  resourceDetailsData() {
    this.setData({
      videoLoaidng: true
    })
    let query = {
      path: '*',
      queryType: '*',
@@ -228,7 +230,6 @@
    }
    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({
@@ -267,6 +268,7 @@
  onVideo(e) {
    const item = e.currentTarget.dataset.item
    this.setData({
      videoLoaidng: true,
      selectedId: e.currentTarget.dataset.index,
      showData: '',
      titleName: item.name
@@ -356,8 +358,6 @@
      textvalue: e.detail.value
    })
  },
  // 获取笔记列表
  async getNoteList() {
    // this.setData({
@@ -543,5 +543,10 @@
    this.setData({
      videoError: true
    });
  },
  loadedmetadata(e) {
    this.setData({
      videoLoaidng: false
    })
  }
})