|
|
|
|
@ -164,11 +164,11 @@ class Index extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
componentDidMount() {}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
// 页面卸载监听
|
|
|
|
|
Taro.offAppHide((res) => { });
|
|
|
|
|
Taro.offAppHide((res) => {});
|
|
|
|
|
this.$instance = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -261,7 +261,7 @@ class Index extends Component<any, any> {
|
|
|
|
|
this.isSancQrcodeEnter();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail: () => { },
|
|
|
|
|
fail: () => {},
|
|
|
|
|
complete: () => {
|
|
|
|
|
// 授权完成运行页面初始化
|
|
|
|
|
},
|
|
|
|
|
@ -420,7 +420,7 @@ class Index extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
GetSiteAddTag = async (id) => {
|
|
|
|
|
go("/pages/moisture_test_report/moisture_test_report")
|
|
|
|
|
go("/pages/moisture_test_report/moisture_test_report");
|
|
|
|
|
let res = await GetSiteAddTag(id);
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
console.log("点击自动上报,不需要逻辑处理");
|
|
|
|
|
@ -520,7 +520,7 @@ class Index extends Component<any, any> {
|
|
|
|
|
this.setState({ isShowSiteSwiper: false });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
bannerSwiperchange() { }
|
|
|
|
|
bannerSwiperchange() {}
|
|
|
|
|
|
|
|
|
|
gobanner(item) {
|
|
|
|
|
// 跳转类型:0无跳转、1跳转内部链接、3跳转外部链接、4跳转小程序、5导向视频号、6导向视频号直播间',
|
|
|
|
|
@ -839,9 +839,9 @@ class Index extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 跳转仪器介绍页
|
|
|
|
|
goNursing = (item) => {
|
|
|
|
|
console.log(item,'查看item');
|
|
|
|
|
|
|
|
|
|
goNursing = (item) => {
|
|
|
|
|
console.log(item, "查看item");
|
|
|
|
|
|
|
|
|
|
// 仅开发者工具调试使用
|
|
|
|
|
const platform = Taro.getSystemInfoSync().platform;
|
|
|
|
|
if (platform === "devtools") {
|
|
|
|
|
@ -1109,7 +1109,7 @@ class Index extends Component<any, any> {
|
|
|
|
|
<View catchMove>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isCommonError}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
{commonErrorText.map((item) => {
|
|
|
|
|
@ -1117,60 +1117,60 @@ class Index extends Component<any, any> {
|
|
|
|
|
})}
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onCommonErrorFun}
|
|
|
|
|
confirm={this.onCommonErrorFun}
|
|
|
|
|
/>
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
isShow={isShowReConnectDeviceRecordWL200}
|
|
|
|
|
isClose
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName='level-up'
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>检测到您上一次护理的记录未生成,</View>
|
|
|
|
|
<View>是否重新读取</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
cancelButtonText='取消'
|
|
|
|
|
confirmButtonText='连接设备'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="连接设备"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeReConnectDeviceRecordWL200}
|
|
|
|
|
confirm={this.confirmReConnectDeviceRecordWL200}
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingError}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>序列号信息仍在更新,请联系微信小助理</View>
|
|
|
|
|
<View>协助您绑定仪器</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindErrorClose}
|
|
|
|
|
confirm={this.onBindErrorConfirm}
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isNotRegister}
|
|
|
|
|
isClose
|
|
|
|
|
title='提示'
|
|
|
|
|
content='暂未授权注册,请点击注册'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
type='1'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="暂未授权注册,请点击注册"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
type="1"
|
|
|
|
|
close={this.closeAlert}
|
|
|
|
|
confirm={this.closeAlert}
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isDev}
|
|
|
|
|
title='提示'
|
|
|
|
|
content='页面正在开发中'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="页面正在开发中"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeDev}
|
|
|
|
|
confirm={this.closeDev}
|
|
|
|
|
/>
|
|
|
|
|
@ -1189,54 +1189,54 @@ class Index extends Component<any, any> {
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingError}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>序列号信息仍在更新,请联系微信小助理</View>
|
|
|
|
|
<View>协助您绑定仪器</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindErrorClose}
|
|
|
|
|
confirm={this.onBindErrorConfirm}
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBeforeBindingError}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
BeforeBindingErrorText || "您选择的仪器有误,请重新确认选择"
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBeforeBindClose}
|
|
|
|
|
confirm={this.onBeforeBindConfirm}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingError203}
|
|
|
|
|
title='提示'
|
|
|
|
|
content='序列码已被别人绑定,请联系微信助手'
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="序列码已被别人绑定,请联系微信助手"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindErrorClose203}
|
|
|
|
|
confirm={this.onBindErrorConfirm203}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={showEquipment}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='mb10'>
|
|
|
|
|
<View className="mb10">
|
|
|
|
|
仪器:{instrumentInfo.instrumentName}
|
|
|
|
|
</View>
|
|
|
|
|
<View className='mb10'>序列号:{instrumentInfo.serial}</View>
|
|
|
|
|
<View className='mb10'>您需要完成注册登录才能进行一起绑定</View>
|
|
|
|
|
<View className="mb10">序列号:{instrumentInfo.serial}</View>
|
|
|
|
|
<View className="mb10">您需要完成注册登录才能进行一起绑定</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onUnloginClose.bind(this)}
|
|
|
|
|
confirm={this.onUnloginConfirm.bind(this)}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
@ -1244,9 +1244,9 @@ class Index extends Component<any, any> {
|
|
|
|
|
<PopupSiteSwiper
|
|
|
|
|
isShow={isShowSiteSwiper}
|
|
|
|
|
siteData={sitePopupList}
|
|
|
|
|
size='middle'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
size="middle"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeSiteSwiper}
|
|
|
|
|
confirm={this.closeSiteSwiper}
|
|
|
|
|
/>
|
|
|
|
|
@ -1266,15 +1266,15 @@ class Index extends Component<any, any> {
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isShowUpdateVersionTip}
|
|
|
|
|
title='提示'
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>检测到设备有升级请求</View>
|
|
|
|
|
<View>是否进行升级?</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
close={this.cancelUpdateVersionTip}
|
|
|
|
|
confirm={this.confirmUpdateVersionTip}
|
|
|
|
|
/>
|
|
|
|
|
@ -1287,16 +1287,16 @@ class Index extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isShowVersionUpgradFinish}
|
|
|
|
|
title='升级内容公告'
|
|
|
|
|
title="升级内容公告"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='nodes'>
|
|
|
|
|
<View className="nodes">
|
|
|
|
|
<RichText nodes={versionUpgradFinishNodes} />
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='left'
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="left"
|
|
|
|
|
isClose
|
|
|
|
|
close={this.onVersionUpgradFinish}
|
|
|
|
|
confirm={this.onVersionUpgradFinish}
|
|
|
|
|
@ -1308,29 +1308,29 @@ class Index extends Component<any, any> {
|
|
|
|
|
leftSlot={
|
|
|
|
|
<Block>
|
|
|
|
|
<View
|
|
|
|
|
className='message'
|
|
|
|
|
className="message"
|
|
|
|
|
onClick={this.gourl}
|
|
|
|
|
data-url='/pages/message/message'
|
|
|
|
|
data-url="/pages/message/message"
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
className='message-img'
|
|
|
|
|
className="message-img"
|
|
|
|
|
src={require("../../img/index/message.png")}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
/>
|
|
|
|
|
{messagecount ? <View className='tip' /> : ""}
|
|
|
|
|
{messagecount ? <View className="tip" /> : ""}
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<View className='index'>
|
|
|
|
|
<View className='date-title' onClick={this.toNursingRecords}>
|
|
|
|
|
<Text className='text'>护理记录</Text>
|
|
|
|
|
<View className="index">
|
|
|
|
|
<View className="date-title" onClick={this.toNursingRecords}>
|
|
|
|
|
<Text className="text">护理记录</Text>
|
|
|
|
|
<Image
|
|
|
|
|
src={require("../../img/index/right.png")}
|
|
|
|
|
style='width: 20rpx;height: 20rpx;'
|
|
|
|
|
style="width: 20rpx;height: 20rpx;"
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='bg-while'>
|
|
|
|
|
<View className="bg-while">
|
|
|
|
|
<AtCalendar
|
|
|
|
|
hideArrow
|
|
|
|
|
isSwiper={false}
|
|
|
|
|
@ -1342,40 +1342,40 @@ class Index extends Component<any, any> {
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='infobox5'>
|
|
|
|
|
<View className="index-infobox5">
|
|
|
|
|
{instrumentList.length > 0 && (
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='nurse_plan_box flex aitems sb'>
|
|
|
|
|
<View className='title'>前往护理</View>
|
|
|
|
|
<View className="nurse_plan_box flex aitems sb">
|
|
|
|
|
<View className="title">前往护理</View>
|
|
|
|
|
<View
|
|
|
|
|
className='txt_box flex jcenter aitems'
|
|
|
|
|
data-url='/pages/instrument/instrument'
|
|
|
|
|
className="txt_box flex jcenter aitems"
|
|
|
|
|
data-url="/pages/instrument/instrument"
|
|
|
|
|
onClick={this.gourl}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
className='right_icon'
|
|
|
|
|
className="right_icon"
|
|
|
|
|
src={require("../../img/black-add.png")}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
/>
|
|
|
|
|
<View className='txt'>添加新设备</View>
|
|
|
|
|
<View className="txt">添加新设备</View>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View style='overflow-x: auto;'>
|
|
|
|
|
<View className='device_list flex'>
|
|
|
|
|
<View style="overflow-x: auto;">
|
|
|
|
|
<View className="device_list flex">
|
|
|
|
|
{instrumentList.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<View
|
|
|
|
|
key={"instrumentList" + index}
|
|
|
|
|
className='device_item'
|
|
|
|
|
className="device_item"
|
|
|
|
|
onClick={this.goNursing.bind(this, item)}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
className='banner_img'
|
|
|
|
|
className="banner_img"
|
|
|
|
|
src={item.banner}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
/>
|
|
|
|
|
<View className='device_name ellipsis1'>
|
|
|
|
|
<View className="device_name ellipsis1">
|
|
|
|
|
{item.name}
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
@ -1387,28 +1387,28 @@ class Index extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
{instrumentList.length === 0 && (
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='nurse_plan_box flex aitems sb'>
|
|
|
|
|
<View className='title'>前往护理</View>
|
|
|
|
|
<View className="nurse_plan_box flex aitems sb">
|
|
|
|
|
<View className="title">前往护理</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='add_device flex jcenter aitems bg-while'>
|
|
|
|
|
<View className='add_device_btn'>
|
|
|
|
|
<View className='txt_box flex jcenter aitems'>
|
|
|
|
|
<View className="add_device flex jcenter aitems bg-while">
|
|
|
|
|
<View className="add_device_btn">
|
|
|
|
|
<View className="txt_box flex jcenter aitems">
|
|
|
|
|
<View
|
|
|
|
|
className='at-icon at-icon-add'
|
|
|
|
|
style='color: #fff;font-size: 30rpx;'
|
|
|
|
|
className="at-icon at-icon-add"
|
|
|
|
|
style="color: #fff;font-size: 30rpx;"
|
|
|
|
|
></View>
|
|
|
|
|
<View className='txt' onClick={this.addNewDevice}>
|
|
|
|
|
<View className="txt" onClick={this.addNewDevice}>
|
|
|
|
|
添加新设备
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='tips'>您暂时还没有绑定任何设备</View>
|
|
|
|
|
<View className="tips">您暂时还没有绑定任何设备</View>
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className='infobox3'>
|
|
|
|
|
<View className="infobox3">
|
|
|
|
|
<Swiper
|
|
|
|
|
autoplay
|
|
|
|
|
onAnimationFinish={this.bannerSwiperchange.bind(this)}
|
|
|
|
|
@ -1420,15 +1420,15 @@ class Index extends Component<any, any> {
|
|
|
|
|
key={"banner_" + index}
|
|
|
|
|
onClick={this.gobanner.bind(this, item)}
|
|
|
|
|
>
|
|
|
|
|
<Image style='width:100%;height:100%' src={item.fileUrl} />
|
|
|
|
|
<Image style="width:100%;height:100%" src={item.fileUrl} />
|
|
|
|
|
</SwiperItem>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</Swiper>
|
|
|
|
|
</View>
|
|
|
|
|
<View style='height:200rpx'></View>
|
|
|
|
|
<Popup show={show} className='custom-popup' overlay={false}>
|
|
|
|
|
<View className='popBox'>你已绑定所有设备</View>
|
|
|
|
|
<View style="height:200rpx"></View>
|
|
|
|
|
<Popup show={show} className="custom-popup" overlay={false}>
|
|
|
|
|
<View className="popBox">你已绑定所有设备</View>
|
|
|
|
|
</Popup>
|
|
|
|
|
</Block>
|
|
|
|
|
);
|
|
|
|
|
|