This commit is contained in:
2023-11-07 11:15:42 +08:00
parent 3c2871988d
commit 536a5f9a4c

View File

@ -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')
})
})
},
},