|
|
|
|
@ -242,7 +242,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
/** 基础版:脸部/眼部 */
|
|
|
|
|
BaseModeType: string[] = ["face", "eyes"];
|
|
|
|
|
|
|
|
|
|
async onLoad() {
|
|
|
|
|
async onLoad(option) {
|
|
|
|
|
// 保持屏幕常亮
|
|
|
|
|
Taro.setKeepScreenOn({
|
|
|
|
|
keepScreenOn: true,
|
|
|
|
|
@ -250,10 +250,13 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.initData();
|
|
|
|
|
this.getInstrumentClockSummary();
|
|
|
|
|
this.getInstrumentClockDetail();
|
|
|
|
|
if (option.modeId) {
|
|
|
|
|
this.setState({ activeModeID: option.modeId })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {}
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {}
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
|
|
|
|
|
componentDidShow() {
|
|
|
|
|
console.log("页面显示了");
|
|
|
|
|
@ -389,6 +392,16 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
ModeList: res.data.data,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (this.state.activeModeID != '') {
|
|
|
|
|
this.state.ModeList.map(item => {
|
|
|
|
|
if (item.id === this.state.activeModeID) {
|
|
|
|
|
this.setState({
|
|
|
|
|
ActiveModeItem: item
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res.data.data[0]);
|
|
|
|
|
}, 100);
|
|
|
|
|
@ -587,7 +600,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.onNursingTap();
|
|
|
|
|
// 倒计时弹窗: 倒计时完成后,自动开始,并判断弹窗
|
|
|
|
|
let downNum = CountDownTime[this.state.ActiveModeItem.modeType] || 3;
|
|
|
|
|
this.showCountdownFun(downNum, () => {});
|
|
|
|
|
this.showCountdownFun(downNum, () => { });
|
|
|
|
|
}, 500);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
@ -613,7 +626,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 绘制能量图
|
|
|
|
|
drawProwerPicture() {}
|
|
|
|
|
drawProwerPicture() { }
|
|
|
|
|
|
|
|
|
|
/** 切换光照 */
|
|
|
|
|
onSwitchChange = async () => {
|
|
|
|
|
@ -2083,9 +2096,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
deviceInfo={currentDevice}
|
|
|
|
|
close={this.connectionClose}
|
|
|
|
|
isDisconnect={!isConnectionBlutoot}
|
|
|
|
|
offlineChange={() => {}}
|
|
|
|
|
offlineChange={() => { }}
|
|
|
|
|
pairingChange={this.pairingChange}
|
|
|
|
|
upgradeFun={() => {}}
|
|
|
|
|
upgradeFun={() => { }}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|