CRM_26-08-05#story#9126,车辆管理、服务商管理系统需求

This commit is contained in:
zlf
2026-08-04 17:11:00 +08:00
parent f5fab0dd16
commit c404da3520
2 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
</script> </script>
<script> <script>
// VConsole 默认会挂载到 `window.VConsole` 上 // VConsole 默认会挂载到 `window.VConsole` 上
// let vConsole = new window.VConsole(); let vConsole = new window.VConsole();
(function (doc, win) { (function (doc, win) {
// console.log("==window.location.pathname===",window.location.pathname) // console.log("==window.location.pathname===",window.location.pathname)
let docEl = doc.documentElement let docEl = doc.documentElement
+16 -3
View File
@@ -984,10 +984,23 @@ export default {
onCameraCancel() { // 返回放弃 onCameraCancel() { // 返回放弃
this.cameraGuideVisible = false this.cameraGuideVisible = false
}, },
onCameraFallback() { // 权限拒绝/相机不可用:降级系统选择器 onCameraFallback() { // 权限拒绝/相机不可用:弹框询问,重试或降级系统选择器
this.cameraGuideVisible = false this.cameraGuideVisible = false
this.$toast('请允许使用相机权限') Dialog.confirm({
this.triggerNativeUpload(this.cameraGuideType) title: '提示',
message: '相机权限未开启,无法使用拍摄引导。是否重新尝试开启相机?',
confirmButtonText: '重新尝试',
cancelButtonText: '从相册选择',
confirmButtonColor: '#354D93',
}).then(() => {
// 重新打开拍摄引导(等弹层关闭状态先刷新,确保 visible 变化被组件感知)
this.$nextTick(() => {
this.cameraGuideVisible = true
})
}).catch(() => {
// 降级为系统选择器
this.triggerNativeUpload(this.cameraGuideType)
})
}, },
async vehicleLicenseFrontHandler(file) { // 上传 行驶证首页 async vehicleLicenseFrontHandler(file) { // 上传 行驶证首页
console.log('file',file) console.log('file',file)