|
|
|
|
@ -839,6 +839,16 @@ class Index extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 跳转仪器介绍页
|
|
|
|
|
goNursing = (item) => {
|
|
|
|
|
// 仅开发者工具调试使用
|
|
|
|
|
const platform = Taro.getSystemInfoSync().platform;
|
|
|
|
|
if (platform === "devtools") {
|
|
|
|
|
setStorageSync("instrument_detail", item);
|
|
|
|
|
this.setState({ connectInstrument: item });
|
|
|
|
|
setTimeout(() => this.goIot());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 移动端真正逻辑
|
|
|
|
|
if (item.status === 0) {
|
|
|
|
|
setStorageSync("instrument_detail", item);
|
|
|
|
|
this.setState({ connectInstrument: item });
|
|
|
|
|
@ -897,13 +907,22 @@ class Index extends Component<any, any> {
|
|
|
|
|
*/
|
|
|
|
|
pairingChange = (e) => {
|
|
|
|
|
console.log("===epairingChange===》", e);
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
|
|
|
|
|
|
|
|
|
|
if (this.state.connectInstrument.model === "FR200") {
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/FR200"); // 画页面直接跳转
|
|
|
|
|
} else {
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.connectionClose();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
async goIot() {
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
|
|
|
|
|
if (this.state.connectInstrument.model === "FR200") {
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/FR200"); // 画页面直接跳转
|
|
|
|
|
} else {
|
|
|
|
|
go("/moduleIOT/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
|
|
|
|
|
}
|
|
|
|
|
// return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|