diff --git a/BLEPages/child/B68T.vue b/BLEPages/child/B68T.vue new file mode 100644 index 0000000..d6fdaa8 --- /dev/null +++ b/BLEPages/child/B68T.vue @@ -0,0 +1,638 @@ + + + + + \ No newline at end of file diff --git a/BLEPages/child/PCL11.vue b/BLEPages/child/PCL11.vue index 92f471b..913e5d6 100644 --- a/BLEPages/child/PCL11.vue +++ b/BLEPages/child/PCL11.vue @@ -198,6 +198,9 @@ let num = msg.substring(3, 5) //小数点 let unit = msg.substring(1, 3) //单位 let dw1 = "kg" + if(unit == '01') { + dw1 = 'jin' + } if (unit == "10") { dw1 = "lb" } @@ -213,7 +216,7 @@ } } console.log("weight", type, weight, num, unit, dw1) - that.text = "您的体重是:" + weight + dw1 + that.text = "您的体重是:" + weight if (type == '1') { that.macAddr = device.macAddr that.deviceId = device.deviceId; diff --git a/BLEPages/child/SG616BT.vue b/BLEPages/child/SG616BT.vue new file mode 100644 index 0000000..004af9c --- /dev/null +++ b/BLEPages/child/SG616BT.vue @@ -0,0 +1,469 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 4c1a498..9abd5e2 100644 --- a/pages.json +++ b/pages.json @@ -323,6 +323,21 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#F9FAFC" } + }, + { + "path": "child/SG616BT", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#F9FAFC" + } + }, + { + "path" : "child/B68T", + "style" : + { + "navigationBarTitleText" : "" + } } ] }],