初次护理弹窗配置视频时无法播放,且若没有配置视频时,应该不显示弹窗才对

master
qsj 2 years ago
parent 737904ce25
commit 4a60d24263

@ -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 });

Loading…
Cancel
Save