diff --git a/src/app.tsx b/src/app.tsx index 0e4335e..3302307 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -37,6 +37,11 @@ class App extends Component { onError(error) { console.log("error 错误捕获", error); } + onUnload() { + console.log("App onUnload"); + Taro.removeStorageSync("isScan"); // 扫码弹窗显示完后,不需要再判断是否扫码 + Taro.removeStorageSync("serial"); // 扫码弹窗显示完后,删除缓存的扫码序列号 + } // 对应 onShow componentDidShow() {} diff --git a/src/components/bluetoot/connection/fr200.js b/src/components/bluetoot/connection/fr200.js index 52fa2a5..981801f 100644 --- a/src/components/bluetoot/connection/fr200.js +++ b/src/components/bluetoot/connection/fr200.js @@ -59,8 +59,10 @@ export const fr200DeviceControlCommand = { /** * '进入水分测试模式' = 'switchTestMode', * '启动水分测试模式' = 'startTestMode', + * * face: "01", 面部 - * eyes: "02", 脸部 + * eyes: "02", 眼部 + * * nasolabialFold: "03", 法令纹 * mandibularLine: "04", 下颌线 * led: "05", led @@ -68,6 +70,7 @@ export const fr200DeviceControlCommand = { * maskPenetration: "07",面膜促渗 * essence: "08", 精华模式 * headLiftingPro: "09", 抬头纹Pro + * * neck: "0A", 颈纹 * partition: "11", 分区模式 废弃VM1001 * ignore: "255", 不改变/无模式 diff --git a/src/components/bluetoot/device-connection-popup/device-connection-popup.tsx b/src/components/bluetoot/device-connection-popup/device-connection-popup.tsx index 2eab03c..76be28a 100644 --- a/src/components/bluetoot/device-connection-popup/device-connection-popup.tsx +++ b/src/components/bluetoot/device-connection-popup/device-connection-popup.tsx @@ -86,6 +86,7 @@ export default class DeviceConnectPopup extends Component { error, isDisconnect, } = this.props; + console.log("data connection", data, data.bluetoothConnecting); return ( @@ -113,7 +114,16 @@ export default class DeviceConnectPopup extends Component { {!this.isImage(data.bluetoothConnecting) ? ( - {!this.isImage(data.bluetoothClosed) ? ( - {!this.isImage(data.bluetoothConnectFail) ? ( -