From aa3995cbad5b893b2744cce2c67c8889c5ba6af2 Mon Sep 17 00:00:00 2001 From: lipenggao Date: Tue, 22 Oct 2024 10:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/theater/theater.ttml | 7 +++++-- pages/theater/theater.ttss | 20 ++++++++++++++++++++ pages/videoDetail/videoDetail.ts | 28 +++++++++++++++++----------- 3 files changed, 42 insertions(+), 13 deletions(-) diff --git a/pages/theater/theater.ttml b/pages/theater/theater.ttml index 5477908..371531a 100644 --- a/pages/theater/theater.ttml +++ b/pages/theater/theater.ttml @@ -92,11 +92,14 @@ 新剧 --> - + - 火热 + {{item.fiery}} + + 共 {{item.count}} 集 + {{item.name}} diff --git a/pages/theater/theater.ttss b/pages/theater/theater.ttss index 994ad2b..569f66e 100644 --- a/pages/theater/theater.ttss +++ b/pages/theater/theater.ttss @@ -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; diff --git a/pages/videoDetail/videoDetail.ts b/pages/videoDetail/videoDetail.ts index 2ae992b..2724782 100644 --- a/pages/videoDetail/videoDetail.ts +++ b/pages/videoDetail/videoDetail.ts @@ -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; }