|
|
@@ -19,12 +19,14 @@ Page({
|
|
|
videoStatus: 0, // 0 未播放 1 播放中 2 暂停
|
|
|
duration: 0, // 视频总时长
|
|
|
currentTime: 0, // 当前播放时间
|
|
|
- relatedVideos: []
|
|
|
+ relatedVideos: [],
|
|
|
+ tagId: 0
|
|
|
},
|
|
|
|
|
|
onLoad: function (options) {
|
|
|
const videoId = parseInt(options.id);
|
|
|
const videoTitle = options.title ? decodeURIComponent(options.title) : '';
|
|
|
+ const tagId = parseInt(options.tag_id);
|
|
|
|
|
|
console.log('加载视频详情页,ID:', videoId, '标题:', videoTitle);
|
|
|
|
|
|
@@ -36,12 +38,14 @@ Page({
|
|
|
this.setData({
|
|
|
title: videoTitle,
|
|
|
videoId: videoId,
|
|
|
- isLoading: true
|
|
|
+ isLoading: true,
|
|
|
+ tagId: tagId
|
|
|
});
|
|
|
} else {
|
|
|
this.setData({
|
|
|
videoId: videoId,
|
|
|
- isLoading: true
|
|
|
+ isLoading: true,
|
|
|
+ tagId: tagId
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -99,7 +103,7 @@ Page({
|
|
|
// 构建请求参数
|
|
|
const params = {
|
|
|
id,
|
|
|
- tag_id: 2072,
|
|
|
+ tag_id: this.data.tagId,
|
|
|
uuid:getApp().globalData.uuid
|
|
|
};
|
|
|
|