修改
This commit is contained in:
parent
c786728a7b
commit
02f675c30c
@ -114,7 +114,9 @@
|
||||
uni.onSocketMessage(res => {
|
||||
console.log("webScoket监听收到的信息", res);
|
||||
this.uploadType = 2
|
||||
this.hr = JSON.parse(res.data).pulse
|
||||
let resdata = JSON.parse(res.data)
|
||||
let message = JSON.parse(resdata.message)
|
||||
this.hr = message.pulse
|
||||
this.$forceUpdate()
|
||||
})
|
||||
} catch (e) {
|
||||
@ -303,4 +305,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -77,10 +77,13 @@
|
||||
if (e.deviceType == 1) {
|
||||
this.SOCKETURL = `ws://112.6.122.71:8009/fd/webSocket/${e.sn}`
|
||||
this.scoket();
|
||||
// 德州的用:ws://112.6.122.71:8009/fd/webSocket/{sn}
|
||||
// 东营的用:ws://218.58.213.15:8009/fd/webSocket/{sn}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
methods: {
|
||||
formatDate(timestamp) {
|
||||
@ -135,11 +138,13 @@
|
||||
}
|
||||
})
|
||||
uni.onSocketMessage(res => {
|
||||
console.log("webScoket监听收到的信息", res);
|
||||
let resdata = JSON.parse(res.data)
|
||||
let message = JSON.parse(resdata.message)
|
||||
console.log("webScoket监听收到的信息", resdata, message);
|
||||
this.uploadType = 2
|
||||
this.dbp = JSON.parse(res.data).dbp
|
||||
this.sbp = JSON.parse(res.data).sbp
|
||||
this.hr = JSON.parse(res.data).pulse
|
||||
this.dbp = message.dbp
|
||||
this.sbp = message.sbp
|
||||
this.hr = message.pulse
|
||||
this.$forceUpdate()
|
||||
})
|
||||
} catch (e) {
|
||||
@ -325,4 +330,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -162,7 +162,10 @@
|
||||
})
|
||||
uni.onSocketMessage(res => {
|
||||
this.uploadType = 2
|
||||
this.number = JSON.parse(res.data).fbg
|
||||
let resdata = JSON.parse(res.data)
|
||||
let message = JSON.parse(resdata.message)
|
||||
console.log("webScoket监听收到的信息", resdata, message);
|
||||
this.number = message.fbg
|
||||
this.$forceUpdate()
|
||||
})
|
||||
} catch (e) {
|
||||
@ -319,4 +322,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user