chenxiong 3 жил өмнө
parent
commit
4f4e4cd843

+ 6 - 0
pages3/polyv/detail.vue

@@ -1440,6 +1440,9 @@ export default {
 			this.enableAutoRotation = false;
 			this.photoPopup = true;
 			this.isTaking = true;
+			uni.setKeepScreenOn({
+			    keepScreenOn: true
+			});
 			uni.authorize({
 			     scope: 'scope.camera',
 			     success() {
@@ -1458,6 +1461,9 @@ export default {
 				this.postStudyRecord(); //提交记录
 				//恢复播放
 				
+				uni.setKeepScreenOn({
+				    keepScreenOn: false
+				});
 				this.photoPopup = false;
 				this.uploadLock = false;
 				this.enableAutoRotation = true;