开放微信运动+删除体征检测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(); this.checkSignApplyinfo();
} }
if (uni.getStorageSync('userinfo')) { if (uni.getStorageSync('userinfo')) {
// this.wxSportDecryptinfo(); this.wxSportDecryptinfo();
} }
}, },
methods: { methods: {

View File

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

View File

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

View File

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

View File

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