更新视频

This commit is contained in:
duan
2025-01-09 15:13:23 +08:00
parent 61b4172487
commit cb88b8bf54

View File

@@ -12,8 +12,8 @@
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId" :enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
:id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :autoplay="item.autoPlay" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :autoplay="item.autoPlay"
class="swipersastqw"></video> class="swipersastqw"></video>
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg" class="swipers-items-imgsbgwq" <image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg"
mode="aspectFill"> class="swipers-items-imgsbgwq" mode="aspectFill">
</image> </image>
<!-- 返回图标 --> <!-- 返回图标 -->
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()" <image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
@@ -154,7 +154,8 @@
{{countPrice*scale}}金币解锁整部视频 {{countPrice*scale}}金币解锁整部视频
</text> </text>
</view> </view>
<view v-if="danbu === '是' &&isWxIosPay&&isShowMoneyPay" class="pay-content-itemczg" @click="payVideo(2)"> <view v-if="danbu === '是' &&isWxIosPay&&isShowMoneyPay" class="pay-content-itemczg"
@click="payVideo(2)">
<text class="pay-content-items"> <text class="pay-content-items">
{{countPrice}}元解锁单集视频 {{countPrice}}元解锁单集视频
</text> </text>
@@ -296,8 +297,8 @@
</view> </view>
</uni-popup> </uni-popup>
<uni-popup ref="alertDialog" type="dialog"> <uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="info" cancelText="看免费视频" confirmText="去登录" title=" " content="使用金币解锁此视频" @confirm="dialogConfirm" <uni-popup-dialog type="info" cancelText="看免费视频" confirmText="去登录" title=" " content="使用金币解锁此视频"
@close="dialogClose"></uni-popup-dialog> @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
@@ -539,6 +540,14 @@
} }
}, },
methods: { methods: {
dialogClose(){
this.$router.go(0)
},
dialogConfirm (){
uni.navigateTo({
url:'/pages/login/login'
})
},
/** /**
* 获取金币比例 * 获取金币比例
*/ */
@@ -1305,7 +1314,11 @@
}) })
} else { //没有视频链接则表示没有权限,需要购买 弹出购买弹窗 } else { //没有视频链接则表示没有权限,需要购买 弹出购买弹窗
if (uni.getStorageSync('token')) {
this.openPay() this.openPay()
} else {
this.$refs.alertDialog.open()
}
} }
this.$forceUpdate(); this.$forceUpdate();
}, },