litian
2024-09-06 611457d5bedd5386999dbbbee55048dc1e1ee624
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -1,6 +1,8 @@
// pages/resourceDetails/index.js
const app = getApp()
import {
  loginInfo
} from '../../../../assets/js/login';
Page({
  /**
@@ -86,6 +88,12 @@
    if (options.parentName !== "教学资源" && options.parentName !== "云学习") {
      this.setData({
        parentName: options.parentName,
      })
    }
    const token = wx.getStorageSync(app.config.tokenKey)
    if (!token) {
      loginInfo(app, (data) => {
        if (data) {} else {}
      })
    }
    this.resourceDetailsData()
@@ -307,13 +315,19 @@
  aliVod(md5, currentVideo) {
    let query = {
      md5: md5,
      appRefCode: config.appRefCode
      appRefCode: app.config.appRefCode
    }
    MG.file.getAliVod(query).then((res) => {
    app.MG.file.getAliVod(query).then((res) => {
      if (res) {
        this.setData({
          showDataVod: res,
        })
        if (res && res.data == '') {
          this.setData({
            showDataVod: currentVideo,
          })
        } else {
          this.setData({
            showDataVod: res,
          })
        }
      } else if (currentVideo) {
        this.setData({
          showDataVod: currentVideo,