浏览代码

修复bug

chenxiong 3 年之前
父节点
当前提交
4f4e4cd843
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      pages3/polyv/detail.vue

+ 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;