提交弹窗

This commit is contained in:
duan
2025-01-09 16:58:14 +08:00
parent 126a5f6590
commit 8a31aa557b

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?upPop():''" :src="item.titleImg" <image v-else @click="!item.videoUrl?upPop():''" :src="item.titleImg" class="swipers-items-imgsbgwq"
class="swipers-items-imgsbgwq" mode="aspectFill"> 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()"
@@ -247,24 +247,23 @@
</view> </view>
</uni-popup> </uni-popup>
<uni-popup ref="alertDialog" type="dialog"> <uni-popup ref="alertDialog" type="center" borderRadius="80rpx 80rpx 80rpx 80rpx" background-color="#fff">
<!-- <view class="list-title"> <view style="padding: 30rpx;width: 500rpx;height: 280rpx;position: relative;">
<view class=""> <view style="display: flex;align-items: center; justify-content: space-between;">
<view class=""></view>
</view> <view class=""></view>
<view class="list-title-l"> <image style="width: 20rpx;height: 20rpx;" src="../../static/images/me/closeIconss.png" mode="">
<text class="list-title-lss"> </image>
当前视频 没有播放权限 </view>
</text> <view style="margin-top: 40rpx;text-align: center;">
</view> 使用金币解锁此视频
<view class="list-title-r" @click="closePay()"> </view>
<image class="list-title-rsczg" src="../../static/images/me/closeIconss.png" mode=""></image> <view style="position: absolute;bottom: 0;left: 0;display: flex;align-items: center;justify-content: space-between;width: 100%;border-top: 1rpx solid #333333;">
</view> <view style="width: 50%;text-align: center;line-height: 80rpx;border-right: 1px solid #333333;" @tap="dialogConfirm">看免费视频</view>
</view> --> <view style="width: 50%;text-align: center;line-height: 80rpx;" @tap="dialogClose">去登录</view>
</view>
<uni-popup-dialog type="dialog" cancelText="看免费视频" confirmText="去登录" content="使用金币解锁此视频" </view>
@confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog> </uni-popup>
</uni-popup>
</view> </view>
</template> </template>
@@ -505,14 +504,14 @@
} }
}, },
methods: { methods: {
dialogClose(){ dialogClose() {
uni.navigateTo({ uni.navigateTo({
url:'/pages/video/video' url: '/pages/video/video'
}) })
}, },
dialogConfirm (){ dialogConfirm() {
uni.navigateTo({ uni.navigateTo({
url:'/pages/login/login' url: '/pages/login/login'
}) })
}, },
/** /**
@@ -1012,7 +1011,7 @@
}); });
}, },
// 弹出弹出层 // 弹出弹出层
upPop(){ upPop() {
this.$refs.alertDialog.open() this.$refs.alertDialog.open()
}, },
//打开购买弹窗 //打开购买弹窗
@@ -1164,7 +1163,7 @@
this.current = current; this.current = current;
//插入历史记录 //插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId); this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId);
}, },
//控制播放 //控制播放
startPlay(current) { startPlay(current) {
if (this.videoContext) { //判断之前是否有视频的上下文 if (this.videoContext) { //判断之前是否有视频的上下文