修改批量扫码的图片引用
This commit is contained in:
parent
977e01fa07
commit
010aa5617b
@ -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 |
Loading…
x
Reference in New Issue
Block a user