5-13 H09身高体重模式
This commit is contained in:
parent
c76d3ea1fa
commit
9911418cf9
|
|
@ -163,6 +163,7 @@ Page({
|
||||||
isType: false,
|
isType: false,
|
||||||
devices: [],
|
devices: [],
|
||||||
weight: "",
|
weight: "",
|
||||||
|
height: "",
|
||||||
text: "",
|
text: "",
|
||||||
imp: ""
|
imp: ""
|
||||||
})
|
})
|
||||||
|
|
@ -318,6 +319,14 @@ Page({
|
||||||
}))
|
}))
|
||||||
that.sendData(buf.buffer)
|
that.sendData(buf.buffer)
|
||||||
}
|
}
|
||||||
|
if (type == '2') {
|
||||||
|
let j = Number(26 + 3 + 6 + 2).toString(16)
|
||||||
|
let str = "A9002603060200" + j.substr(j.length - 2, 2) + "9A"
|
||||||
|
let buf = new Uint8Array(str.match(/[\da-f]{2}/gi).map(function(h) {
|
||||||
|
return parseInt(h, 16)
|
||||||
|
}))
|
||||||
|
that.sendData(buf.buffer)
|
||||||
|
}
|
||||||
if (type == '3') {
|
if (type == '3') {
|
||||||
that.setData({
|
that.setData({
|
||||||
pwdModal: true,
|
pwdModal: true,
|
||||||
|
|
@ -404,6 +413,7 @@ Page({
|
||||||
this.setData({
|
this.setData({
|
||||||
devices: [],
|
devices: [],
|
||||||
weight: "",
|
weight: "",
|
||||||
|
height: "",
|
||||||
text: "",
|
text: "",
|
||||||
imp: "",
|
imp: "",
|
||||||
isType: false
|
isType: false
|
||||||
|
|
@ -425,6 +435,7 @@ Page({
|
||||||
devices: [],
|
devices: [],
|
||||||
text: "",
|
text: "",
|
||||||
weight: "",
|
weight: "",
|
||||||
|
height: "",
|
||||||
imp: ""
|
imp: ""
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
<button bindtap="stopBluetoothDevicesDiscovery">停止扫描</button>
|
<button bindtap="stopBluetoothDevicesDiscovery">停止扫描</button>
|
||||||
<button bindtap="closeBluetoothAdapter">结束流程</button>
|
<button bindtap="closeBluetoothAdapter">结束流程</button>
|
||||||
<button bindtap="handleHeight" wx:if="{{isType}}" data-name="1">身高体脂模式(默认)</button>
|
<button bindtap="handleHeight" wx:if="{{isType}}" data-name="1">身高体脂模式(默认)</button>
|
||||||
|
<button bindtap="handleHeight" wx:if="{{isType}}" data-name="2">身高体重模式</button>
|
||||||
<button bindtap="handleHeight" wx:if="{{isType}}" data-name="3">标定模式</button>
|
<button bindtap="handleHeight" wx:if="{{isType}}" data-name="3">标定模式</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="weight">
|
<view class="weight">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue