审核失败的修改
This commit is contained in:
parent
faa16feedd
commit
97edfa228c
@ -8,6 +8,7 @@ Component({
|
|||||||
adBanner: null,
|
adBanner: null,
|
||||||
videoAlbumId: null,
|
videoAlbumId: null,
|
||||||
videoEpisodeId: null,
|
videoEpisodeId: null,
|
||||||
|
lockStatus: false
|
||||||
},
|
},
|
||||||
ready() {
|
ready() {
|
||||||
const pm = getPlayletManager();
|
const pm = getPlayletManager();
|
||||||
@ -32,8 +33,13 @@ Component({
|
|||||||
})
|
})
|
||||||
|
|
||||||
pm.onChangeEpisode((e) => {
|
pm.onChangeEpisode((e) => {
|
||||||
|
let lock = false;
|
||||||
|
if(e.status =='lock'){
|
||||||
|
lock = true;
|
||||||
|
}
|
||||||
//更新剧集信息
|
//更新剧集信息
|
||||||
this.setData({
|
this.setData({
|
||||||
|
lockStatus: lock,
|
||||||
videoAlbumId: e.albumId,
|
videoAlbumId: e.albumId,
|
||||||
videoEpisodeId: e.episodeId,
|
videoEpisodeId: e.episodeId,
|
||||||
})
|
})
|
||||||
@ -86,6 +92,9 @@ Component({
|
|||||||
console.log(res, "resres")
|
console.log(res, "resres")
|
||||||
if (res.isEnded) {
|
if (res.isEnded) {
|
||||||
this.emitInfoToParent('advunlock',{album_id: this.data.videoAlbumId,episode_id:this.data.videoEpisodeId})
|
this.emitInfoToParent('advunlock',{album_id: this.data.videoAlbumId,episode_id:this.data.videoEpisodeId})
|
||||||
|
this.setData({
|
||||||
|
lockStatus: false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
tt.showToast({
|
tt.showToast({
|
||||||
title: '看完广告方可解锁',
|
title: '看完广告方可解锁',
|
||||||
|
@ -1,55 +1,19 @@
|
|||||||
<view class="video-header">
|
<view class="lock-container" tt:if="{{lockStatus}}">
|
||||||
|
<view style="width: 100%;height: 100%">
|
||||||
<view hidden="{{!playerShow}}">
|
<view class="unlock_in_con_wa_operate">
|
||||||
<text style="background-color: deeppink;">这是顶部</text>
|
<view class="unlock_in_con_wa_oper_left">
|
||||||
<!-- <text style="color: aliceblue;">111111111111111111111111122\n22222222222222222222222222233333</text> -->
|
<!-- <view class="unlock_in_con_wa_i_vip" @tap="openPay">
|
||||||
|
<text class="unlock_in_con_wa_i_vi_text">立即充值</text>
|
||||||
|
</view> -->
|
||||||
<view style="width:100%;height:100%;display: flex;justify-content: space-between;">
|
<view class="unlock_in_con_wa_oper_right" style="width: auto">
|
||||||
<view style="width: 30%;">
|
<view class="unlock_in_con_wa_i_btn" bindtap="adOpen">
|
||||||
<button bindtap="showDetailChange" style="font-size: 10px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">
|
<text class="unlock_in_con_wa_i_tepp">
|
||||||
<label tt:if="{{showDetail}}"> 当前显示详细日志 </label>
|
<text class="unlock_in_con_wa_i_vi_text">看广告解锁</text>
|
||||||
<label tt:else> 当前显示简易日志 </label>
|
</text>
|
||||||
</button>
|
</view>
|
||||||
<button bindtap="showOnTimeUpdateChange" style="font-size:8px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">
|
<text>{{lockStatuss}}</text>
|
||||||
<label tt:if="{{showOnTimeUpdate}}"> 当前OnTimeUpdate日志开 </label>
|
</view>
|
||||||
<label tt:else> 当前OnTimeUpdate日志关 </label>
|
</view>
|
||||||
</button>
|
</view>
|
||||||
<button bindtap="getPlayletInfo" style="font-size: 10px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">调用getPlayletInfo</button>
|
|
||||||
|
|
||||||
<button bindtap="setPlayStatusPlay" style="font-size: 10px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">调用播放</button>
|
|
||||||
|
|
||||||
<button bindtap="setPlayStatusPause" style="font-size: 10px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">调用暂停</button>
|
|
||||||
|
|
||||||
<button bindtap="clearLog" style="font-size: 10px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">清除日志</button>
|
|
||||||
|
|
||||||
<!-- <button bindtap="changeSettings" style="font-size: small;">切换用户播放设置changeSettings</button> -->
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view style="width: 70%;">
|
|
||||||
|
|
||||||
<scroll-view scroll-y="{{true}}" scroll-with-animation="{{true}}" style="height: 500rpx;">
|
|
||||||
<text space="nbsp" style="margin-top: 20rpx;word-break:break-all;font-size: smaller;"
|
|
||||||
tt:if="{{showDetail && showOnTimeUpdate}}"> {{logDetail}} </text>
|
|
||||||
<text space="nbsp" style="margin-top: 20rpx;word-break:break-all;font-size: smaller;"
|
|
||||||
tt:elif="{{!showDetail && showOnTimeUpdate}}"> {{log}} </text>
|
|
||||||
<text space="nbsp" style="margin-top: 20rpx;word-break:break-all;font-size: smaller;"
|
|
||||||
tt:elif="{{showDetail && !showOnTimeUpdate}}"> {{logDetailWithoutOnTimeUpdate}} </text>
|
|
||||||
<text space="nbsp" style="margin-top: 20rpx;word-break:break-all;font-size: smaller;"
|
|
||||||
tt:else> {{logWithoutOnTimeUpdate}} </text>
|
|
||||||
<!-- <text space="nbsp" style="margin-top: 20rpx;word-break:break-all;font-size: smaller;">
|
|
||||||
{{log}}
|
|
||||||
|
|
||||||
</text> -->
|
|
||||||
</scroll-view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<button bindtap="emitInfoToParent" style="font-size:8px;margin-top: 20rpx;height: 80rpx;display: flex; justify-content: center; align-items: center; ">
|
|
||||||
第{{emitTimesPlayer}}次调用父组件方法
|
|
||||||
</button>
|
|
||||||
<text style="margin-bottom: 0;background-color: deeppink;">这是底部</text>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,6 +1,63 @@
|
|||||||
.video-header {
|
.unlock_in_con_wa_operate {
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
background-color: yellow;
|
/* background-color: yellow; */
|
||||||
|
bottom: 5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
|
||||||
|
display : flex;
|
||||||
|
flex-direction : row;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.unlock_in_con_wa_oper_left {
|
||||||
|
width : 45%;
|
||||||
|
padding-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock_in_con_wa_oper_right {
|
||||||
|
width : 45%;
|
||||||
|
padding-left: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock_in_con_wa_i_vip {
|
||||||
|
display : flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items : center;
|
||||||
|
width : 100%;
|
||||||
|
height : 68rpx;
|
||||||
|
background : linear-gradient(87deg, #F7DD60 0%, #FC8704 100%);
|
||||||
|
border-radius : 34rpx 34rpx 34rpx 34rpx;
|
||||||
|
padding : 0 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock_in_con_wa_i_vi_text {
|
||||||
|
line-height : 68rpx;
|
||||||
|
font-size : 28rpx;
|
||||||
|
color : #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock_in_con_wa_i_btn {
|
||||||
|
display : flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items : center;
|
||||||
|
width : 100%;
|
||||||
|
height : 68rpx;
|
||||||
|
background : linear-gradient(90deg, #FC8197 0%, #FE830C 100%);
|
||||||
|
border-radius : 34rpx 34rpx 34rpx 34rpx;
|
||||||
|
/* padding : 0 32rpx; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock_in_con_wa_i_text {
|
||||||
|
display : inline-block;
|
||||||
|
width : 100%;
|
||||||
|
line-height : 1;
|
||||||
|
font-size : 28rpx;
|
||||||
|
color : #fff;
|
||||||
|
overflow : hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space : nowrap;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ PlayletExtension({
|
|||||||
|
|
||||||
//是否展示解锁页
|
//是否展示解锁页
|
||||||
this.pm.setConfig({
|
this.pm.setConfig({
|
||||||
showLockPage: true
|
showLockPage: false
|
||||||
});
|
});
|
||||||
|
|
||||||
//播放器分享按钮
|
//播放器分享按钮
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"condition": {
|
"condition": {
|
||||||
"miniprogram": {
|
"miniprogram": {
|
||||||
"current": 1732245477906,
|
"current": -1,
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"id": 1715845062520,
|
"id": 1715845062520,
|
||||||
@ -131,8 +131,7 @@
|
|||||||
"scene": "011002",
|
"scene": "011002",
|
||||||
"launchFrom": "search_suggest_list_top",
|
"launchFrom": "search_suggest_list_top",
|
||||||
"location": "",
|
"location": "",
|
||||||
"mockUpdateType": "Noupdate",
|
"mockUpdateType": "Noupdate"
|
||||||
"addType": "manual"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user