|
|
|
|
@ -138,6 +138,8 @@ class Index extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async onLoad() {
|
|
|
|
|
console.log(1123131233);
|
|
|
|
|
|
|
|
|
|
// 仅非扫码进入页面时,校验跳转欢迎页
|
|
|
|
|
if (!this.$instance.router?.params?.q) {
|
|
|
|
|
const isFirst = Taro.getStorageSync("isWelcome");
|
|
|
|
|
@ -145,9 +147,15 @@ class Index extends Component<any, any> {
|
|
|
|
|
go("/pages/initiate/initiate");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (Taro.getStorageSync("skip")) {
|
|
|
|
|
this.setState({ showEquipment: true })
|
|
|
|
|
Taro.removeStorageSync('skip');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
|
|
|
|
|
@ -638,7 +646,12 @@ class Index extends Component<any, any> {
|
|
|
|
|
go("/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
|
|
|
|
|
// return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onUnloginConfirm() {
|
|
|
|
|
this.setState({ showEquipment: false })
|
|
|
|
|
}
|
|
|
|
|
onUnloginClose() {
|
|
|
|
|
this.setState({ showEquipment: false })
|
|
|
|
|
}
|
|
|
|
|
//连接完成时数据的回调
|
|
|
|
|
offlineChange = async (e) => {
|
|
|
|
|
console.log("offlineChange", e);
|
|
|
|
|
@ -854,16 +867,16 @@ class Index extends Component<any, any> {
|
|
|
|
|
title='提示'
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>仪器:小紫单美容仪</View>
|
|
|
|
|
<View>序列号:uniquie14231</View>
|
|
|
|
|
<View>您需要完成注册登录才能进行一起绑定</View>
|
|
|
|
|
<View className='mb10'>仪器:小紫单美容仪</View>
|
|
|
|
|
<View className='mb10'>序列号:uniquie14231</View>
|
|
|
|
|
<View className='mb10'>您需要完成注册登录才能进行一起绑定</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
isClose={false}
|
|
|
|
|
close={this.onBindErrorClose}
|
|
|
|
|
confirm={this.onBindErrorConfirm}
|
|
|
|
|
close={this.onUnloginClose.bind(this)}
|
|
|
|
|
confirm={this.onUnloginConfirm.bind(this)}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
|
|
|
|
|
{/* <PopupPrivacyTest
|
|
|
|
|
|