he2802 преди 3 години
родител
ревизия
d7e2795c3c
променени са 2 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 1 1
      components/course/courseSection.vue
  2. 9 3
      pages2/class/detail.vue

+ 1 - 1
components/course/courseSection.vue

@@ -102,7 +102,7 @@ export default {
 				//切换为同一节
 				return
 			}
-			if(this.playSectionId){
+			if(this.playSectionId>0){
 				//切换视频
 				let oldSectionId = this.playSectionId
 				uni.$emit('changeSection', oldSectionId)

+ 9 - 3
pages2/class/detail.vue

@@ -129,9 +129,15 @@
 			</view>
 		</view>
 		<!-- 播放前拍照end -->
-		<u-popup v-model="showSet" :mask-close-able="false" mode="center">
-			<view style="height: 250rpx;display: flex;align-items:center;padding: 0 30rpx;">
-				<button open-type="openSetting" @bindopensetting="openSetting" class="btnSet">相机授权</button>
+		<u-popup v-model="showSet" :mask-close-able="false" mode="center" border-radius="24">
+			<view style="align-items:center;padding: 0 40rpx;display: flex;flex-direction: column;justify-content:center;">
+				<view style="font-weight: bold;color: #333333;font-size: 30rpx;margin-top: 30rpx;">温馨提示</view>
+				<view style="width: 457rpx;color: #666666;font-size: 30rpx;margin-top: 30rpx;">学习过程中需要拍照验证学员身份,
+拍照功能需要使用您的相机。
+是否授权使用?</view>
+				<view style="margin: 30rpx 0;">
+					<button open-type="openSetting" @bindopensetting="openSetting" class="btnSet">去授权</button>
+				</view>
 			</view>
 		</u-popup>