WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
2025-03-25 3b03f87a02458f719e2eb4bf112a13441b427d14
forms/input/CInputExpressCode.vue
@@ -19,7 +19,10 @@
                class="c-input-express-btn"
                @tap="evt => handleScan()"
            ></view>
            <view class="c-input-express-scan">
            <view
                class="c-input-express-scan"
                v-if="scanable"
            >
                <view
                    v-show="!scaning"
                    class="gg-scan"
@@ -53,6 +56,8 @@
    },
    data() {
        return {
            // 小程序中才开启扫描功能
            scanable: process.env.TARO_ENV === 'weapp',
            scaning: false,
        };
    },
@@ -60,7 +65,7 @@
        handleScan() {
            this.scaning = true;
            Taro.scanCode({
                onlyFromCamera: true,
                onlyFromCamera: false,
                scanType: 'barCode',
                success: res => {
                    this.scaning = false;