CRM_26-08-05#story#9126,车辆管理、服务商管理系统需求
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@
|
||||
</script>
|
||||
<script>
|
||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||
// let vConsole = new window.VConsole();
|
||||
let vConsole = new window.VConsole();
|
||||
(function (doc, win) {
|
||||
// console.log("==window.location.pathname===",window.location.pathname)
|
||||
let docEl = doc.documentElement
|
||||
|
||||
@@ -984,10 +984,23 @@ export default {
|
||||
onCameraCancel() { // 返回放弃
|
||||
this.cameraGuideVisible = false
|
||||
},
|
||||
onCameraFallback() { // 权限拒绝/相机不可用:降级为系统选择器
|
||||
onCameraFallback() { // 权限拒绝/相机不可用:弹框询问,重试或降级系统选择器
|
||||
this.cameraGuideVisible = false
|
||||
this.$toast('请允许使用相机权限')
|
||||
this.triggerNativeUpload(this.cameraGuideType)
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: '相机权限未开启,无法使用拍摄引导。是否重新尝试开启相机?',
|
||||
confirmButtonText: '重新尝试',
|
||||
cancelButtonText: '从相册选择',
|
||||
confirmButtonColor: '#354D93',
|
||||
}).then(() => {
|
||||
// 重新打开拍摄引导(等弹层关闭状态先刷新,确保 visible 变化被组件感知)
|
||||
this.$nextTick(() => {
|
||||
this.cameraGuideVisible = true
|
||||
})
|
||||
}).catch(() => {
|
||||
// 降级为系统选择器
|
||||
this.triggerNativeUpload(this.cameraGuideType)
|
||||
})
|
||||
},
|
||||
async vehicleLicenseFrontHandler(file) { // 上传 行驶证首页
|
||||
console.log('file',file)
|
||||
|
||||
Reference in New Issue
Block a user