体征检测优化

This commit is contained in:
2024-02-22 10:16:38 +08:00
parent 4edee0728c
commit 21fa5e5d92
3 changed files with 51 additions and 51 deletions

View File

@ -19,9 +19,9 @@
</view>
</view>
</view>
<view class="submit" @tap="submit">
<!-- <view class="submit" @tap="submit">
保存
</view>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
@ -49,21 +49,21 @@
};
},
onLoad(options) {
// this.info();
bound(uni.getStorageSync('userinfo').cardNo).then(res => {
if (res.code == 200) {
res.data.forEach(e => {
if (Number(e.deviceType) == 1) {
if (uni.getStorageSync('region') == 1) {
this.SOCKETURL = dzsocketurl + `${e.sn}`
} else if (uni.getStorageSync('region') == 2) {
this.SOCKETURL = dysocketurl + `${e.sn}`
}
this.scoket();
}
})
}
})
this.info();
// bound(uni.getStorageSync('userinfo').cardNo).then(res => {
// if (res.code == 200) {
// res.data.forEach(e => {
// if (Number(e.deviceType) == 1) {
// if (uni.getStorageSync('region') == 1) {
// this.SOCKETURL = dzsocketurl + `${e.sn}`
// } else if (uni.getStorageSync('region') == 2) {
// this.SOCKETURL = dysocketurl + `${e.sn}`
// }
// this.scoket();
// }
// })
// }
// })
},
methods: {
info() {

View File

@ -37,9 +37,9 @@
</view>
</view>
</view>
<view class="submit" @tap="submit">
<!-- <view class="submit" @tap="submit">
保存
</view>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
@ -69,21 +69,21 @@
};
},
onLoad(options) {
// this.info();
bound(uni.getStorageSync('userinfo').cardNo).then(res => {
if (res.code == 200) {
res.data.forEach(e => {
if (Number(e.deviceType) == 1) {
if (uni.getStorageSync('region') == 1) {
this.SOCKETURL = dzsocketurl + `${e.sn}`
} else if (uni.getStorageSync('region') == 2) {
this.SOCKETURL = dysocketurl + `${e.sn}`
}
this.scoket();
}
})
}
})
this.info();
// bound(uni.getStorageSync('userinfo').cardNo).then(res => {
// if (res.code == 200) {
// res.data.forEach(e => {
// if (Number(e.deviceType) == 1) {
// if (uni.getStorageSync('region') == 1) {
// this.SOCKETURL = dzsocketurl + `${e.sn}`
// } else if (uni.getStorageSync('region') == 2) {
// this.SOCKETURL = dysocketurl + `${e.sn}`
// }
// this.scoket();
// }
// })
// }
// })
},
methods: {
info() {

View File

@ -32,11 +32,11 @@
<view @tap='bucketchoice=8' :class="bucketchoice==8?'choice':'choice2'">睡前2小时</view>
</view>
</view>
<view class="btn">
<!-- <view class="btn">
<view class="submit" @tap="submit">
添加
</view>
</view>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
@ -65,21 +65,21 @@
};
},
onLoad(options) {
// this.info();
bound(uni.getStorageSync('userinfo').cardNo).then(res => {
if (res.code == 200) {
res.data.forEach(e => {
if (Number(e.deviceType) == 2) {
if (uni.getStorageSync('region') == 1) {
this.SOCKETURL = dzsocketurl + `${e.sn}`
} else if (uni.getStorageSync('region') == 2) {
this.SOCKETURL = dysocketurl + `${e.sn}`
}
this.scoket();
}
})
}
})
this.info();
// bound(uni.getStorageSync('userinfo').cardNo).then(res => {
// if (res.code == 200) {
// res.data.forEach(e => {
// if (Number(e.deviceType) == 2) {
// if (uni.getStorageSync('region') == 1) {
// this.SOCKETURL = dzsocketurl + `${e.sn}`
// } else if (uni.getStorageSync('region') == 2) {
// this.SOCKETURL = dysocketurl + `${e.sn}`
// }
// this.scoket();
// }
// })
// }
// })
},
methods: {
info() {