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 userSig: '', //userSig
roomId: '', //roomId roomId: '', //roomId
userId: '', userId: '',
userName:'',//Name userName: '', //Name
}; };
}, },
onLoad(options) { onLoad(options) {
@ -34,10 +34,10 @@
this.userName = res.data.personName this.userName = res.data.personName
this.getUserSig() this.getUserSig()
}) })
}, },
onShow() { onShow() {
}, },
methods: { methods: {
getUserSig() { getUserSig() {
@ -45,22 +45,21 @@
getUserSig(this.userId).then(res => { getUserSig(this.userId).then(res => {
this.userSig = res.data this.userSig = res.data
// roomId // roomId
consultation(this.datalist.goodsOrderId).then(resp => { consultation(this.datalist.goodsOrderId).then(resp => {
if(resp.code==200){ if (resp.code == 200) {
this.roomId = resp.msg this.roomId = resp.msg
this.src = this.src =
`https://msg.xinyilu.cn?userId=5&userName=王晓燕&userSig=eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwqZQweKU7MSCgswUJStDMwMgMLM0MYHIpFYUZBalAsVNTU2NgDIQ0ZLMXJCYmaWlsZGRoYUh1JTMdKCZFgGhHiGlhkWBZR6mKanpAVW*bpVuMfpGeY5epUZVad6G5qZBjgGZzk6GvqG2SrUAMZovIA__&roomId=456789` `https://msg.xinyilu.cn?userId=${this.userId}&userName=${this.userName}&userSig=${this.userSig}&roomId=${this.roomId}`
console.log(this.src) } else if (resp.code == 500) {
}else if(resp.code==500){ this.$refs.uToast.show({
this.$refs.uToast.show({ title: resp.msg,
title: resp.msg, type: 'error',
type: 'error', duration: '1500'
duration: '1500' })
})
}
} console.log(this.src, '99')
console.log(this.src, '99') })
})
}) })
}, },
}, },