开放微信运动+删除体征检测socket

This commit is contained in:
2024-02-20 17:32:36 +08:00
parent 5741bfc3d0
commit ed94a32502
5 changed files with 52 additions and 52 deletions

View File

@ -122,7 +122,7 @@
this.checkSignApplyinfo();
}
if (uni.getStorageSync('userinfo')) {
// this.wxSportDecryptinfo();
this.wxSportDecryptinfo();
}
},
methods: {

View File

@ -94,9 +94,9 @@
})
},
gowxSport() {
// uni.navigateTo({
// url: "/pagesC/wxSport/wxSport"
// })
uni.navigateTo({
url: "/pagesC/wxSport/wxSport"
})
},
goexchange() {
uni.navigateTo({

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>
@ -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) {

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>
@ -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) {

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>
@ -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) {