|
|
|
|
@ -1887,13 +1887,20 @@ class IotCarePlan extends Component<any, any> {
|
|
|
|
|
let res = await InstrumentInfo.firstNurseInfo({
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
});
|
|
|
|
|
console.log(res,'接口');
|
|
|
|
|
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
let isFirstTipShow = getStorageSync(
|
|
|
|
|
"first_instrument_" + currentDevice.id
|
|
|
|
|
);
|
|
|
|
|
console.log(isFirstTipShow,'查看返回值');
|
|
|
|
|
|
|
|
|
|
if (!isFirstTipShow) {
|
|
|
|
|
// 首次进入页面:自动打开打卡介绍弹窗
|
|
|
|
|
this.setState({ nurseInfo: res.data.data, isFirstTipShow: true });
|
|
|
|
|
if(res.data.length !== 0){
|
|
|
|
|
// 首次进入页面:自动打开打卡介绍弹窗
|
|
|
|
|
this.setState({ nurseInfo: res.data.data, isFirstTipShow: true });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setStorageSync("first_instrument_" + currentDevice.id, true);
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({ nurseInfo: res.data.data });
|
|
|
|
|
|