From b5b6bdd678cd4cadeca00a331e6ad4973adec6d0 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Tue, 11 Nov 2025 15:22:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A4505=20=E3=80=90=E6=97=85=E5=B1=85?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E6=97=85?= =?UTF-8?q?=E5=B1=85=E4=B8=BB=E9=A1=B5=E8=A7=86=E9=A2=91=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E6=9C=AA=E5=9B=BA=E5=AE=9A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=9C=A8=E7=AC=AC=E4=B8=80=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/sojoumStore.vue | 49 ++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/pkg_product/views/sojoumStore.vue b/pkg_product/views/sojoumStore.vue index 997e8d6..d47c44a 100644 --- a/pkg_product/views/sojoumStore.vue +++ b/pkg_product/views/sojoumStore.vue @@ -11,14 +11,28 @@ /> - + @change="swiperChange" + > + + + + + {{ store.name }} @@ -347,6 +361,7 @@ export default { }, data() { return { + swiperAutoplay: true, webUrl: this.$VUE_APP_RESOURCES_URL, videoStyle: { width: '750rpx', @@ -398,6 +413,21 @@ export default { } }, methods: { + swiperChange(e) { + const current = e.detail.current; + const currentItem = this.store.banner[current]; + // if (currentItem.includes('.mp4')) { + // this.swiperAutoplay = false; + // } else { + // this.swiperAutoplay = true; + // } + }, + videoPlay() { + this.swiperAutoplay = false; + }, + videoEnd() { + this.swiperAutoplay = true; + }, // 跳转管家详情 goHousekeeperDetail(item) { uni.navigateTo({ @@ -649,10 +679,7 @@ export default { getJiaLouDetail(this.id).then(res => { this.store = res.data || {} if(res.data.video) { - this.store.banner = [ - res.data.video, - ...this.store.banner - ] + this.store.banner.unshift(res.data.video) } this.getNews() this.getJiaLouProductList()