|
|
@@ -6,7 +6,7 @@ import {
|
|
|
getCollectRealVideoUrl,
|
|
|
getRecCollectList,
|
|
|
} from "../../api/api";
|
|
|
-import { rnd, goToVideoDetail, SendEvent } from "../../utils/util";
|
|
|
+import { rnd, SendEvent } from "../../utils/util";
|
|
|
import { apple } from "../../config/config";
|
|
|
|
|
|
const app = getApp();
|
|
|
@@ -70,6 +70,10 @@ Page({
|
|
|
});
|
|
|
this.interstitalLoad();
|
|
|
this.rewardVideoLoad();
|
|
|
+ setTimeout(() => {
|
|
|
+ this.interstitalPlayFn();
|
|
|
+ }, 5000);
|
|
|
+
|
|
|
// 获取合集视频详情
|
|
|
this.getCollectVideoDetail();
|
|
|
this.loadVideoList();
|
|
|
@@ -177,8 +181,6 @@ Page({
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // 2. 如果视频ID在已解锁列表中,当前视频解锁
|
|
|
- console.log(JSON.parse(wx.getStorageSync("unlock_collect_ids") || "[]"));
|
|
|
if (unlockCollectIds.includes(this.data.collectId)) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -194,6 +196,11 @@ Page({
|
|
|
this.setData({
|
|
|
"videoDetail.playUrl": res.url_info[0].url,
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ const videoContext = wx.createVideoContext("my-video");
|
|
|
+ videoContext.play();
|
|
|
+ }, 200);
|
|
|
+ // 获取视频实例并播放
|
|
|
} catch (error) {}
|
|
|
},
|
|
|
|
|
|
@@ -426,15 +433,6 @@ Page({
|
|
|
// 分享给朋友
|
|
|
onShareAppMessage(e) {},
|
|
|
|
|
|
- // 跳转视频详情
|
|
|
- goToVideoDetail(videoId, tagId) {
|
|
|
- // 使用公共的goToVideoDetail函数
|
|
|
- goToVideoDetail({
|
|
|
- videoId: videoId,
|
|
|
- tagId: tagId,
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
// 激励视频加载
|
|
|
rewardVideoLoad() {
|
|
|
if (this.data.globalConfig.isShowReward !== 1) return;
|