feat:分析值保留两位有效数字计算
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user