This commit is contained in:
cao123
2026-09-07 09:03:11 +08:00
parent de47ffc773
commit 78bc9e3c86
4 changed files with 43 additions and 31 deletions
@@ -1,5 +1,5 @@
import UrlParamsHandler from "../../../utils/store";
import { appversion, version } from "../../../env";
import { version } from "../../../env";
import { request } from "../../../utils/request";
const defaultAvatarUrl =
"https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0";
@@ -45,7 +45,7 @@ Page({
};
const data = await request({
options: {
url: `/app/video-watch/details?version=${version.details}&appVer=${appversion}`,
url: `/app/video-watch/details`,
method: "GET",
data: params,
},
@@ -110,35 +110,35 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
onShow() { },
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
onShareAppMessage() { },
});
+4 -3
View File
@@ -30,7 +30,7 @@ Page({
nodes: [] as any[],
eveId: null,
store: {},
fileid: "5001834818839455549",
fileid: "",
active: 0,
canSubmit: false,
safeBottom: 24,
@@ -205,7 +205,7 @@ Page({
const detail = (e && e.detail) || e || {};
wx.showModal({
title: "播放出错",
content: String(detail.errMsg || detail.message || JSON.stringify(detail)),
content: String(detail.errMsg || detail.message || JSON.stringify(detail) + '请联系坐席'),
showCancel: false,
});
},
@@ -292,7 +292,7 @@ Page({
const targetData = code ? data.watch : data.data;
if (!targetData?.url) {
if (!targetData.extend?.fileid) {
const stateParam = code ? -1 : 5;
wx.reLaunch({
url: `/pages/live/registration/registration?content=${targetData?.content || ''}&state=${stateParam}`,
@@ -304,6 +304,7 @@ Page({
dataList: targetData,
eveId: targetData.eveId,
nodes: htmlToWxNodes(targetData.content),
fileid: targetData.extend.fileid,
});
this.syncResumeTime();