From ed94a3250217d81cafed2c0120541d867e3cbdf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 20 Feb 2024 17:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=94=BE=E5=BE=AE=E4=BF=A1=E8=BF=90?= =?UTF-8?q?=E5=8A=A8+=E5=88=A0=E9=99=A4=E4=BD=93=E5=BE=81=E6=A3=80?= =?UTF-8?q?=E6=B5=8Bsocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/homepage/homepage.vue | 2 +- pagesB/Behaviorpoints/Behaviorpoints.vue | 6 ++--- pagesC/addHeartRate/addHeartRate.vue | 32 ++++++++++++------------ pagesC/addPressure/addPressure.vue | 32 ++++++++++++------------ pagesC/addsugar/addsugar.vue | 32 ++++++++++++------------ 5 files changed, 52 insertions(+), 52 deletions(-) diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 743002c..a05db55 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -122,7 +122,7 @@ this.checkSignApplyinfo(); } if (uni.getStorageSync('userinfo')) { - // this.wxSportDecryptinfo(); + this.wxSportDecryptinfo(); } }, methods: { diff --git a/pagesB/Behaviorpoints/Behaviorpoints.vue b/pagesB/Behaviorpoints/Behaviorpoints.vue index 6f7129c..dd356cd 100644 --- a/pagesB/Behaviorpoints/Behaviorpoints.vue +++ b/pagesB/Behaviorpoints/Behaviorpoints.vue @@ -94,9 +94,9 @@ }) }, gowxSport() { - // uni.navigateTo({ - // url: "/pagesC/wxSport/wxSport" - // }) + uni.navigateTo({ + url: "/pagesC/wxSport/wxSport" + }) }, goexchange() { uni.navigateTo({ diff --git a/pagesC/addHeartRate/addHeartRate.vue b/pagesC/addHeartRate/addHeartRate.vue index fa40d2b..671f201 100644 --- a/pagesC/addHeartRate/addHeartRate.vue +++ b/pagesC/addHeartRate/addHeartRate.vue @@ -19,9 +19,9 @@ - + @@ -50,20 +50,20 @@ }; }, onLoad(options) { - bound(uni.getStorageSync('userinfo').cardNo).then(res => { - if (res.code == 200) { - res.data.forEach(e => { - if (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(); - } - }) - } - }) + // bound(uni.getStorageSync('userinfo').cardNo).then(res => { + // if (res.code == 200) { + // res.data.forEach(e => { + // if (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: { formatDate(timestamp) { diff --git a/pagesC/addPressure/addPressure.vue b/pagesC/addPressure/addPressure.vue index 18d1516..3e13f5e 100644 --- a/pagesC/addPressure/addPressure.vue +++ b/pagesC/addPressure/addPressure.vue @@ -37,9 +37,9 @@ - + @@ -70,20 +70,20 @@ }; }, onLoad(options) { - bound(uni.getStorageSync('userinfo').cardNo).then(res => { - if (res.code == 200) { - res.data.forEach(e => { - if (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(); - } - }) - } - }) + // bound(uni.getStorageSync('userinfo').cardNo).then(res => { + // if (res.code == 200) { + // res.data.forEach(e => { + // if (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: { formatDate(timestamp) { diff --git a/pagesC/addsugar/addsugar.vue b/pagesC/addsugar/addsugar.vue index e2d5a19..d6cc9b0 100644 --- a/pagesC/addsugar/addsugar.vue +++ b/pagesC/addsugar/addsugar.vue @@ -32,11 +32,11 @@ 睡前2小时 - + @@ -66,20 +66,20 @@ }; }, onLoad(options) { - bound(uni.getStorageSync('userinfo').cardNo).then(res => { - if (res.code == 200) { - res.data.forEach(e => { - if (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(); - } - }) - } - }) + // bound(uni.getStorageSync('userinfo').cardNo).then(res => { + // if (res.code == 200) { + // res.data.forEach(e => { + // if (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: { timeconfirm(time) {