From 611457d5bedd5386999dbbbee55048dc1e1ee624 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 06 九月 2024 14:43:44 +0800 Subject: [PATCH] test --- packageDomain/pages/resourceDetails/myVideo/index.js | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 24c52d0..f31ea0f 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.js +++ b/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, -- Gitblit v1.9.1