修改
This commit is contained in:
parent
3c2871988d
commit
536a5f9a4c
@ -24,7 +24,7 @@
|
||||
userSig: '', //获取userSig
|
||||
roomId: '', //获取roomId
|
||||
userId: '',
|
||||
userName:'',//医生Name
|
||||
userName: '', //医生Name
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -34,10 +34,10 @@
|
||||
this.userName = res.data.personName
|
||||
this.getUserSig()
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
getUserSig() {
|
||||
@ -45,22 +45,21 @@
|
||||
getUserSig(this.userId).then(res => {
|
||||
this.userSig = res.data
|
||||
// 获取roomId
|
||||
consultation(this.datalist.goodsOrderId).then(resp => {
|
||||
if(resp.code==200){
|
||||
this.roomId = resp.msg
|
||||
this.src =
|
||||
`https://msg.xinyilu.cn?userId=5&userName=王晓燕&userSig=eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwqZQweKU7MSCgswUJStDMwMgMLM0MYHIpFYUZBalAsVNTU2NgDIQ0ZLMXJCYmaWlsZGRoYUh1JTMdKCZFgGhHiGlhkWBZR6mKanpAVW*bpVuMfpGeY5epUZVad6G5qZBjgGZzk6GvqG2SrUAMZovIA__&roomId=456789`
|
||||
console.log(this.src)
|
||||
}else if(resp.code==500){
|
||||
this.$refs.uToast.show({
|
||||
title: resp.msg,
|
||||
type: 'error',
|
||||
duration: '1500'
|
||||
})
|
||||
|
||||
}
|
||||
console.log(this.src, '99')
|
||||
})
|
||||
consultation(this.datalist.goodsOrderId).then(resp => {
|
||||
if (resp.code == 200) {
|
||||
this.roomId = resp.msg
|
||||
this.src =
|
||||
`https://msg.xinyilu.cn?userId=${this.userId}&userName=${this.userName}&userSig=${this.userSig}&roomId=${this.roomId}`
|
||||
} else if (resp.code == 500) {
|
||||
this.$refs.uToast.show({
|
||||
title: resp.msg,
|
||||
type: 'error',
|
||||
duration: '1500'
|
||||
})
|
||||
|
||||
}
|
||||
console.log(this.src, '99')
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user