临时保存,控制设备启动需要英文名

master
blak-kong 2 years ago
parent 372579d234
commit 3350094fd6

@ -629,6 +629,11 @@ class Index extends Component<any, any> {
// return; // return;
} }
async goIot() {
go("/pages/iotCarePlan/iotCarePlan"); // 画页面直接跳转
// return;
}
//连接完成时数据的回调 //连接完成时数据的回调
offlineChange = async (e) => { offlineChange = async (e) => {
console.log("offlineChange", e); console.log("offlineChange", e);
@ -918,6 +923,7 @@ class Index extends Component<any, any> {
<View className="txt"></View> <View className="txt"></View>
</View> </View>
</View> </View>
<View style="overflow-x: auto;"> <View style="overflow-x: auto;">
<View className="device_list flex"> <View className="device_list flex">
{instrumentList.map((item, index) => { {instrumentList.map((item, index) => {
@ -967,6 +973,10 @@ class Index extends Component<any, any> {
)} )}
</View> </View>
<View style="margin: 20px">
<View onClick={this.goIot}></View>
</View>
<View className="infobox3"> <View className="infobox3">
<Swiper <Swiper
autoplay={true} autoplay={true}

@ -8,9 +8,16 @@ interface Props {
ModeList: any; ModeList: any;
ModeType: string; // all visor cabin yimeish ModeType: string; // all visor cabin yimeish
ActiveModeItem: any; ActiveModeItem: any;
isShowNurse: boolean; // 是否已进入护理详情页
onEmit: Function; // 每次点击item回调事件和数据给父组件 onEmit: Function; // 每次点击item回调事件和数据给父组件
} }
function Index({ ModeList, ModeType, ActiveModeItem, onEmit }: Props) { function Index({
ModeList,
ModeType,
isShowNurse,
ActiveModeItem,
onEmit,
}: Props) {
let VisorList = ModeList.filter((item) => item.modeClass === 1); // 面罩模式 let VisorList = ModeList.filter((item) => item.modeClass === 1); // 面罩模式
let CabinList = ModeList.filter((item) => item.modeClass === 2); // 舱体模式 let CabinList = ModeList.filter((item) => item.modeClass === 2); // 舱体模式
let YimeishList = ModeList.filter((item) => item.modeClass === 3); // 医美术后 let YimeishList = ModeList.filter((item) => item.modeClass === 3); // 医美术后
@ -41,7 +48,7 @@ function Index({ ModeList, ModeType, ActiveModeItem, onEmit }: Props) {
return ( return (
<Block> <Block>
<View className="mode-list-main"> <View className="mode-list-main">
{ModeList.length > 0 && ModeType !== "all" && ( {ModeList.length > 0 && isShowNurse && (
<View className="change-all-mode-btn"> <View className="change-all-mode-btn">
<View className="title"></View> <View className="title"></View>
<Image <Image

@ -49,6 +49,33 @@
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
} }
} }
.msg-tips {
position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
display: flex;
align-items: center;
max-width: 635rpx;
margin: auto;
padding: 15rpx 34rpx;
background-color: rgba(0, 0, 0, 0.5);
box-sizing: border-box;
border-radius: 30rpx;
.msg-tips-img {
width: 30rpx;
height: 30rpx;
margin-right: 17rpx;
}
.msg-tips-content {
flex: 1;
max-width: 530rpx;
font-size: 28rpx;
color: #fff;
word-break: break-word;
}
}
} }
.mode-box { .mode-box {
// background-color: #fff; // background-color: #fff;

File diff suppressed because it is too large Load Diff

@ -69,10 +69,10 @@ export const Ajax = (params) => {
} }
if (res.data.code === 500) { if (res.data.code === 500) {
let msg = let msg = "系统异常,请联系管理人员";
typeof res.data.msg == "string" // typeof res.data.msg == "string"
? res.data.msg // ? res.data.msg
: "系统异常,请联系管理人员"; // : "系统异常,请联系管理人员";
if (msg == "请不要操作太快哦") { if (msg == "请不要操作太快哦") {
reject(res); reject(res);
return false; return false;

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save