This commit is contained in:
lipenggao 2024-10-22 10:29:07 +08:00
parent 30bbabbe22
commit aa3995cbad
3 changed files with 42 additions and 13 deletions

View File

@ -92,11 +92,14 @@
<text class="_mo_one_con_li_it_wa_co_ta_text">新剧</text>
</view>
</block> -->
<block tt:if="{{index <= 3}}">
<block tt:if="{{item.fiery}}">
<view class="_mo_one_con_li_it_w_c_ta bg_color">
<text class="_mo_3_con_li_it_wa_co_ta_text">火热</text>
<text class="_mo_3_con_li_it_wa_co_ta_text">{{item.fiery}}</text>
</view>
</block>
<view class="_mo_one_con_li_it_w_c_total">
<text class="_mo_one_con_li_it_w_c_tot_text">共 {{item.count}} 集</text>
</view>
</view>
<view class="_mo_one_con_li_it_wa_title">
<text class="_mo_one_con_li_it_wa_ti_text">{{item.name}}</text>

View File

@ -206,6 +206,26 @@ page {
color: #fff;
}
._mo_one_con_li_it_w_c_total {
position: absolute;
bottom: 0;
left: 0;
display: flex;
justify-content: flex-end;
align-items: center;
width: 100%;
height: 48rpx;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
border-radius: 0rpx 0rpx 16rpx 16rpx;
padding-right: 20rpx;
}
._mo_one_con_li_it_w_c_tot_text {
line-height: 1;
font-size: 20rpx;
color: #fff;
}
._mo_one_con_li_it_w_c_ta {
position: absolute;
right: -4rpx;

View File

@ -39,19 +39,15 @@ Page({
toOptions: options,
sid: options?.sid || ''
})
const params = {
...options
}
this.initFn();
this.initFn(params);
this.adInit()
},
onShow() { },
async initFn() {
const sid = this.data.sid;
const options = this.data.toOptions;
const params = {
...options,
sid: sid
}
async initFn(params: any) {
const videoreadRes: any = await httpRequest('/videoread', 'POST', params);
let videoInfo: any = {}
@ -487,17 +483,27 @@ Page({
},
toPathVideoitself(ev: any) {
const sid = ev.currentTarget.dataset.sid;
const params = {
sid
}
this.setData({
sid: sid,
options: {
sid
}
})
this.initFn();
this.initFn(params);
},
async handelReplace() {
const sid = this.data.sid;
const options = this.data.toOptions;
const params = {
...options,
sid: sid
}
let nextbatchList = [];
const nextbatchRes: any = await httpRequest('/nextbatch', 'POST');
const nextbatchRes: any = await httpRequest('/nextbatch', 'POST', params);
if (nextbatchRes.status == 1 && Array.isArray(nextbatchRes.data)) {
nextbatchList = nextbatchRes.data;
}