Browse Source

添加修改常亮

yangg 2 months ago
parent
commit
91f050d891

+ 11 - 7
pages/identity-verify/identity-verify.vue

@@ -101,7 +101,8 @@
     <!-- 添加录制指示器 -->
     <div class="recording-indicator" v-if="isRecording">
       <div class="recording-dot"></div>
-      <span class="recording-text">正在录制...</span>
+		<span class="recording-text">正在录制...</span>
+	    <span class="timer-text">{{ recordingTimeDisplay || '00:00 / 05:00' }}</span>
     </div>
 
     <!-- 添加开始回答按钮 -->
@@ -124,20 +125,20 @@
     </div> -->
 
     <!-- 添加上传状态指示器 -->
-    <div class="upload-status-indicator" v-if="showUploadStatus && uploadStatusText">
+   <!-- <div class="upload-status-indicator" v-if="showUploadStatus && uploadStatusText">
       <div class="upload-status-content">
         <div class="upload-status-icon" :class="{'uploading': isUploading}"></div>
         <span class="upload-status-text">{{ uploadStatusText }}</span>
       </div>
-    </div>
+    </div> -->
 
     <!-- 修改录制时长显示 -->
-    <div class="recording-timer" v-if="isRecording">
+    <!-- <div class="recording-timer" v-if="isRecording">
       <span class="timer-text">{{ recordingTimeDisplay || '00:00 / 05:00' }}</span>
-      <!-- <span class="remaining-time" :class="{'warning': remainingTime <= 10}">
+      <span class="remaining-time" :class="{'warning': remainingTime <= 10}">
         剩余: {{ formatTime(remainingTime) }}
-      </span> -->
-    </div>
+      </span>
+    </div> -->
   </div>
 </template>
 
@@ -265,6 +266,9 @@ export default {
         this.testAudioInput();
       }
     }, 3000);
+	uni.setKeepScreenOn({
+	    keepScreenOn: true
+	});
   },
   beforeDestroy() {
     // 组件销毁前停止摄像头

+ 10 - 14
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.js

@@ -145,6 +145,9 @@ const _sfc_main = {
         this.testAudioInput();
       }
     }, 3e3);
+    common_vendor.index.setKeepScreenOn({
+      keepScreenOn: true
+    });
   },
   beforeDestroy() {
     this.stopUserCamera();
@@ -1797,23 +1800,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
     s: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
   } : {}, {
     t: $data.isRecording
-  }, $data.isRecording ? {} : {}, {
-    v: $data.showStartRecordingButton
+  }, $data.isRecording ? {
+    v: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
+  } : {}, {
+    w: $data.showStartRecordingButton
   }, $data.showStartRecordingButton ? {
-    w: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
+    x: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
   } : {}, {
-    x: $data.showRetryButton
+    y: $data.showRetryButton
   }, $data.showRetryButton ? {
-    y: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
-  } : {}, {
-    z: $data.showUploadStatus && $data.uploadStatusText
-  }, $data.showUploadStatus && $data.uploadStatusText ? {
-    A: $data.isUploading ? 1 : "",
-    B: common_vendor.t($data.uploadStatusText)
-  } : {}, {
-    C: $data.isRecording
-  }, $data.isRecording ? {
-    D: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
+    z: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
   } : {});
 }
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.wxml


+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -8,7 +8,7 @@
     "urlCheck": false,
     "es6": true,
     "postcss": false,
-    "minified": false,
+    "minified": true,
     "newFeature": true,
     "bigPackageSizeSupport": true,
     "babelSetting": {

Some files were not shown because too many files changed in this diff