This commit is contained in:
小小 2025-04-15 10:56:47 +08:00
commit dcdec62ec1
7 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,12 @@
<template>
<camera mode="scanCode" device-position="back" style="width: 100%; height: 100vh;" @scancode="scanCode" :flash="flash" :initdone="(isInitDone = true)">
<view class="cameraUI" v-if="isInitDone">
<image class="scanBox" :src=" isOnlyBarCode === true ? '../../static/scan/BarCodeScan.png' : '../../static/scan/scan.png'" mode="widthFix">
<image class="scanEffect" src="../../static/scan/scan-effect.png" mode="aspectFill"></image>
<image class="scanBox" :src="isOnlyBarCode === true ? imgPath + 'static/scan/BarCodeScan.png' : imgPath + 'static/scan/scan.png'" mode="widthFix">
<image class="scanEffect" :src='imgPath+"static/scan/scan-effect.png"' mode="aspectFill"></image>
</image>
<view class="control">
<view :class="['flashLight', { flashOpen: flash === 'on' }]" @tap="swithFlash" hover-class="flashClick">
<image :src="flash === 'off' ? '../../static/scan/flash_close.png' : '../../static/scan/flash_open.png'"></image>
<image :src="flash === 'off' ? imgPath + 'static/scan/flash_close.png' : imgPath + 'static/scan/flash_open.png'"></image>
</view>
</view>
</view>
@ -19,6 +19,8 @@
import {
useScanCodeStore
} from '@/stores/scancode.js';
import config from '@/utils/config';
const imgPath = config.imgPath;
const { isOnlyBarCode } = defineProps({
isOnlyBarCode: {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB