From 50ad3701f9e2a2e1190eb5891c7cfeebeb8995fa Mon Sep 17 00:00:00 2001 From: linju Date: Thu, 14 Sep 2023 17:14:39 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=A1=A5=E7=BC=BA=E5=B0=91=E7=9A=84?= =?UTF-8?q?=20this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/drop-card/card/card.uvue | 4 ++-- .../swiper-vertical-video/swiper-vertical-video.uvue | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/template/drop-card/card/card.uvue b/pages/template/drop-card/card/card.uvue index 6eda7ee0..371b8a6b 100644 --- a/pages/template/drop-card/card/card.uvue +++ b/pages/template/drop-card/card/card.uvue @@ -189,8 +189,8 @@ 'transform', `translate(${this.x}px,${this.y}px) rotate(${this.x/-30}deg) scale(1)` ) - this.setINodeStyle("state-icon-like",'opacity', this.x < 0 ? 0 : movePercent * 10) - this.setINodeStyle("state-icon-dislike",'opacity', this.x > 0 ? 0 : movePercent * 10) + this.setINodeStyle("state-icon-like",'opacity', this.x < 0 ? 0 : this.movePercent * 10) + this.setINodeStyle("state-icon-dislike",'opacity', this.x > 0 ? 0 : this.movePercent * 10) } } } diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue index d515af48..63270640 100644 --- a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue +++ b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue @@ -71,9 +71,8 @@ let visibleList = this.list.slice(3 * page, 3 * page + 3) // 换数据 this.visibleList = visibleList - } - }, - current(current) { + } + this.state.forEach((val : string, index : number) => { if (index === current) { this.doPlay(current) @@ -105,7 +104,7 @@ if (this.state[index] === 'play') { this.doPause(index) } else { - this.doPlay(current) + this.doPlay(this.current) } }, onLoadstart(index : number) { -- GitLab