yiming
2024-04-25 103db27cd0ca6b3305e95170dc297380f97fcc70
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -34,13 +34,13 @@
    style: 'height: 248rpx',
    submitType: "new", //  新建 or 编辑
    noteId: '',
    videoChange: true,
    startTime: "", //进入页面当前时间
    pauseTime: 0, //暂停时间
    formPath: '',
    loading: true,
    hidden: true
    hidden: true,
    videoError: false
  },
  // 格式化笔记时间
  convertTimestamp(timestamp) {
@@ -60,9 +60,7 @@
  onLoad(options) {
    wx.setNavigationBarTitle({
      title: '资源详情-音频'
      title: '资源详情-视频'
    });
    const systInfo = wx.getSystemInfoSync();
    const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息
@@ -248,7 +246,7 @@
                })
              } else {
                this.setData({
                  showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file,
                  showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
                  titleName: items.name
                })
              }
@@ -298,7 +296,7 @@
        })
      } else {
        this.setData({
          showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
          showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
        })
      }
@@ -564,5 +562,11 @@
  },
  videoErrorCallback(e) {
    console.log(e);
  },
  videoError: function (e) {
    console.log('视频加载失败', e);
    this.setData({
      videoError: true
    });
  }
})