区分F01PRO
This commit is contained in:
parent
0464e36310
commit
1703ff1a7c
2
app.json
2
app.json
|
|
@ -4,7 +4,7 @@
|
|||
"pages/PCD01PRO/index",
|
||||
"pages/H01PRO/index",
|
||||
"pages/PCH0809/index",
|
||||
"pages/PCF01B/index",
|
||||
"pages/PCF01pro/index",
|
||||
"pages/PCF01proFRK/index",
|
||||
"pages/PCF08/index",
|
||||
"pages/L08/index",
|
||||
|
|
|
|||
|
|
@ -234,12 +234,11 @@ Page({
|
|||
})
|
||||
wx.onBLECharacteristicValueChange((res) => {
|
||||
let value = ab2hex(res.value, "");
|
||||
console.log("16进制转化:", value);
|
||||
let num = value.substring(18, 19)
|
||||
let dw = value.substring(19, 20)
|
||||
let type = value.substring(8, 10)
|
||||
let typeInfo = value.substring(10, 12)
|
||||
console.log("16进制转化:", value);
|
||||
console.log("16进制转化:", value, type);
|
||||
if (type == '10') {
|
||||
let data = parseInt(value.substring(13, 18), 16)
|
||||
let dw1 = "kg"
|
||||
|
|
|
|||
|
|
@ -38,12 +38,12 @@ Page({
|
|||
})
|
||||
return
|
||||
}
|
||||
// if (type == 'PCF01B') {
|
||||
// wx.navigateTo({
|
||||
// url: `/pages/PCF01B/index`
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if (type == 'PCF01pro') {
|
||||
wx.navigateTo({
|
||||
url: `/pages/PCF01pro/index`
|
||||
})
|
||||
return
|
||||
}
|
||||
if (type == 'PCF01proFRK') {
|
||||
wx.navigateTo({
|
||||
url: `/pages/PCF01proFRK/index`
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
<view class="item" bindtap="editclick" data-name="FB03">B03/B02/B07</view>
|
||||
<view class="item" bindtap="editclick" data-name="PCL10">PCL10/PCL11</view>
|
||||
<view class="item" bindtap="editclick" data-name="PCF01proFRK">PCF01pro(旧)</view>
|
||||
<view class="item" bindtap="editclick" data-name="PCF01B">PCF01pro(新)</view>
|
||||
<view class="item" bindtap="editclick" data-name="G01">G01</view>
|
||||
<!-- <view class="item" bindtap="editclick" data-name="PCF01pro">PCF01pro(新)</view>-->
|
||||
<!-- <view class="item" bindtap="editclick" data-name="PCL11">PCL11</view> -->
|
||||
<!-- <view class="item" bindtap="editclick" data-name="h018">h018</view> -->
|
||||
<!-- <view class="item" bindtap="editclick" data-name="PCF01B">PCF01B</view> -->
|
||||
|
|
|
|||
|
|
@ -23,15 +23,15 @@
|
|||
"uploadWithSourceMap": true,
|
||||
"compileHotReLoad": false,
|
||||
"lazyloadPlaceholderEnable": false,
|
||||
"useMultiFrameRuntime": false,
|
||||
"useApiHook": false,
|
||||
"useApiHostProcess": false,
|
||||
"useMultiFrameRuntime": true,
|
||||
"useApiHook": true,
|
||||
"useApiHostProcess": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
},
|
||||
"useIsolateContext": false,
|
||||
"useIsolateContext": true,
|
||||
"userConfirmedBundleSwitch": false,
|
||||
"packNpmManually": false,
|
||||
"packNpmRelationList": [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue