From 3d73fb33c46aada16a6060adcd4ea14bb33b6b2a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 09 四月 2024 10:39:11 +0800 Subject: [PATCH] 详情页tabs样式优化,答题添加页面退出拦截,合并代码 --- packageDomain/pages/resourceDetails/myVideo/index.wxml | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.wxml b/packageDomain/pages/resourceDetails/myVideo/index.wxml index 3d2e9b9..619fc9d 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.wxml +++ b/packageDomain/pages/resourceDetails/myVideo/index.wxml @@ -6,9 +6,16 @@ <view class="navbar-title">璧勬簮璇︽儏-瑙嗛</view> </view> <!-- 瑙嗛 --> -<view class="videoBox"> +<view class="videoBox" wx:if="{{videoChange}}"> <!-- autoplay='false' 鏄惁鑷姩鎾斁 --> - <video src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> + <video binderror="videoErrorCallback" src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> + +</view> + +<view wx:if="{{!videoChange}}" class="videoSubsidiaryBox"> + + <view class="videoNoData">鏆傛棤鏁版嵁</view> + </view> <!-- 鏍囬 --> -- Gitblit v1.9.1