区分F01PRO

This commit is contained in:
qiaocl 2022-11-24 15:24:48 +08:00
parent 0464e36310
commit 1703ff1a7c
9 changed files with 493 additions and 494 deletions

View File

@ -4,7 +4,7 @@
"pages/PCD01PRO/index", "pages/PCD01PRO/index",
"pages/H01PRO/index", "pages/H01PRO/index",
"pages/PCH0809/index", "pages/PCH0809/index",
"pages/PCF01B/index", "pages/PCF01pro/index",
"pages/PCF01proFRK/index", "pages/PCF01proFRK/index",
"pages/PCF08/index", "pages/PCF08/index",
"pages/L08/index", "pages/L08/index",

View File

@ -234,12 +234,11 @@ Page({
}) })
wx.onBLECharacteristicValueChange((res) => { wx.onBLECharacteristicValueChange((res) => {
let value = ab2hex(res.value, ""); let value = ab2hex(res.value, "");
console.log("16进制转化:", value);
let num = value.substring(18, 19) let num = value.substring(18, 19)
let dw = value.substring(19, 20) let dw = value.substring(19, 20)
let type = value.substring(8, 10) let type = value.substring(8, 10)
let typeInfo = value.substring(10, 12) let typeInfo = value.substring(10, 12)
console.log("16进制转化:", value); console.log("16进制转化:", value, type);
if (type == '10') { if (type == '10') {
let data = parseInt(value.substring(13, 18), 16) let data = parseInt(value.substring(13, 18), 16)
let dw1 = "kg" let dw1 = "kg"

View File

@ -38,12 +38,12 @@ Page({
}) })
return return
} }
// if (type == 'PCF01B') { if (type == 'PCF01pro') {
// wx.navigateTo({ wx.navigateTo({
// url: `/pages/PCF01B/index` url: `/pages/PCF01pro/index`
// }) })
// return return
// } }
if (type == 'PCF01proFRK') { if (type == 'PCF01proFRK') {
wx.navigateTo({ wx.navigateTo({
url: `/pages/PCF01proFRK/index` url: `/pages/PCF01proFRK/index`

View File

@ -19,8 +19,8 @@
<view class="item" bindtap="editclick" data-name="FB03">B03/B02/B07</view> <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="PCL10">PCL10/PCL11</view>
<view class="item" bindtap="editclick" data-name="PCF01proFRK">PCF01pro(旧)</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="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="PCL11">PCL11</view> -->
<!-- <view class="item" bindtap="editclick" data-name="h018">h018</view> --> <!-- <view class="item" bindtap="editclick" data-name="h018">h018</view> -->
<!-- <view class="item" bindtap="editclick" data-name="PCF01B">PCF01B</view> --> <!-- <view class="item" bindtap="editclick" data-name="PCF01B">PCF01B</view> -->

View File

@ -23,15 +23,15 @@
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"lazyloadPlaceholderEnable": false, "lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": false, "useMultiFrameRuntime": true,
"useApiHook": false, "useApiHook": true,
"useApiHostProcess": false, "useApiHostProcess": true,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"useIsolateContext": false, "useIsolateContext": true,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],