From 36028936c7464e7469dd411ee7ad729399acafe1 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 13 Jan 2025 10:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=88=97=E8=A1=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/my-video-list/list-item.vue | 20 +++++-- components/my-video-list/my-video-list.vue | 61 +++++++++++----------- 2 files changed, 47 insertions(+), 34 deletions(-) diff --git a/components/my-video-list/list-item.vue b/components/my-video-list/list-item.vue index c5c557d..3878bab 100644 --- a/components/my-video-list/list-item.vue +++ b/components/my-video-list/list-item.vue @@ -4,12 +4,13 @@ - + @@ -150,8 +151,11 @@ function waiting() { } - + + + let isPlying=false function videoPlay() { + isPlying=true // #ifdef H5 emits('controlstoggles', { detail:{show:true} @@ -161,6 +165,7 @@ } function onpause(){ + isPlying=false // #ifdef H5 emits('controlstoggles', { detail:{show:false} @@ -187,7 +192,16 @@ function popupShow(key) { emits('popupShow', key) } - + function videoClick(){ + if(video){ + if(isPlying){ + video.pause() + }else{ + video.play() + } + } + } + let first = true function appear() { diff --git a/components/my-video-list/my-video-list.vue b/components/my-video-list/my-video-list.vue index f3bb27b..cbfba9e 100644 --- a/components/my-video-list/my-video-list.vue +++ b/components/my-video-list/my-video-list.vue @@ -10,7 +10,7 @@ :showControls="control.showControls" :current="current" :isCollect="isCollect" @toDetail="toDetail(item,index)" @controlstoggles="controlstoggles" :playSpeeds="playSpeeds" :index="index" :nowIndex="nowIndex" @dianzanClick="dianzanClick(item,index)" @share="share(item)" - @zhuijuClick="zhuijuClick(item)" @popupShow="popupShow"> + @zhuijuClick="zhuijuClick(item)" @popupShow="popupShow($event,item,index)"> @@ -27,7 +27,7 @@ @itemMounted="itemMounted" @controlstoggles="controlstoggles" :index="index" :instance="instance" :nowIndex="nowIndex" @appear="appear($event,item,index)" :playSpeeds="playSpeeds" @disappear="disappear(item,index)" @dianzanClick="dianzanClick(item,index)" @share="share(item)" - @zhuijuClick="zhuijuClick(item)" @popupShow="popupShow"> + @zhuijuClick="zhuijuClick(item)" @popupShow="popupShow($event,item,index)"> @@ -80,15 +80,19 @@ 每日前10次付款均可获取抽奖机会,抽奖保底抽中付款金额等额红包,红包可直接提现。当前为第1次付款 - + {{info.price}}元解锁全剧 - + + + {{info.price}}元解锁全剧 + + {{nowDanjiPrice*jinbiBili}}金币解锁单集视频 - + {{nowDanjiPrice}}元解锁单集视频 @@ -121,7 +125,7 @@ - + 我已经阅读并同意 @@ -129,7 +133,7 @@ - + 确认支付 @@ -287,7 +291,9 @@ show: false, pay: false, payTips: false, - speed: false + speed: false, + data:null, + payType:null }) @@ -321,12 +327,22 @@ //确认支付 function payConfirm() { + console.log(isAgree.value); if (!isAgree.value) { return infoBox.showToast('请阅读并同意 《付费须知说明》') } + let data = { + courseId: this.courseId + } + if(popup.payType=='all'){ + + } + + } - function payBtnClick() { + function payBtnClick(type,num) { + popup.payType=`${type}-${num}` popupClose() popupShow('payTips') } @@ -384,8 +400,11 @@ } } - function popupShow(key = 'show') { + function popupShow(key = 'show',item,index) { + console.log(item); popup[key] = true + popup['data'] = item + popup['index'] = index } @@ -419,22 +438,6 @@ } - const posterData = reactive({ - show: false, - // 用户姓名 - name: '小明', - // 用户头像 - logo: '/static/images/share.png', - // 商品名称 - title: '精美时尚苹果手机一部', - // 商品价格 - money: '5200.90', - // 商品图片(小程序需要换成自己服务器白名单设置的地址) - img: '', - // 商品链接 - url: 'https://www.apple.com.cn/iphone/' - - }) let nowIndex = ref(0) let current = ref(0) let videoList = ref([]) @@ -537,10 +540,6 @@ } - function posterHide() { - posterData.show = false - } - const insertHistory = debounce(() => { @@ -603,7 +602,7 @@ } console.log(videoList.value); if (!item.videoUrl) { - popupShow('pay') + popupShow('pay',item,index) } }