From 21fa5e5d9223378effbb122e2e78e4951563e0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 22 Feb 2024 10:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E5=BE=81=E6=A3=80=E6=B5=8B=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesC/addHeartRate/addHeartRate.vue | 34 ++++++++++++++-------------- pagesC/addPressure/addPressure.vue | 34 ++++++++++++++-------------- pagesC/addsugar/addsugar.vue | 34 ++++++++++++++-------------- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/pagesC/addHeartRate/addHeartRate.vue b/pagesC/addHeartRate/addHeartRate.vue index 6e54a25..207ff10 100644 --- a/pagesC/addHeartRate/addHeartRate.vue +++ b/pagesC/addHeartRate/addHeartRate.vue @@ -19,9 +19,9 @@ - + @@ -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() { diff --git a/pagesC/addPressure/addPressure.vue b/pagesC/addPressure/addPressure.vue index 5a0265c..fcc8780 100644 --- a/pagesC/addPressure/addPressure.vue +++ b/pagesC/addPressure/addPressure.vue @@ -37,9 +37,9 @@ - + @@ -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() { diff --git a/pagesC/addsugar/addsugar.vue b/pagesC/addsugar/addsugar.vue index 47f9704..27f1365 100644 --- a/pagesC/addsugar/addsugar.vue +++ b/pagesC/addsugar/addsugar.vue @@ -32,11 +32,11 @@ 睡前2小时 - + @@ -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() {