feat:分析值保留两位有效数字计算

This commit is contained in:
houjunxiang
2026-02-05 11:10:44 +08:00
parent e10c70e819
commit da01e1efcd
8 changed files with 123 additions and 80 deletions

View File

@@ -7,7 +7,7 @@
<span>{{ title }}</span>
</view>
<view class="x-c">
<u-icon size="150" color="#0055A2" name="scan"></u-icon>
<u-icon size="150" color="#0055A2" name="scan" @click="handleScan"></u-icon>
</view>
<!-- #ifdef H5 -->
<up-search
@@ -47,6 +47,14 @@ function iconMap(key) {
return customIconsMap.get(key)
}
function handleScan() {
uni.scanCode({
onlyFromCamera: true,
success: function (res) {
emits('scanResult', res.result)
}
})
}
function handleInputSearch(e) {
emits('deviceId', e)
}