From 536a5f9a4c2b9ae1e51289f38c182c141ccaab23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 7 Nov 2023 11:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Industrialbutler/Industrialbutler.vue | 37 ++++++++++----------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/pages/Industrialbutler/Industrialbutler.vue b/pages/Industrialbutler/Industrialbutler.vue index 9dffec1..e501cd1 100644 --- a/pages/Industrialbutler/Industrialbutler.vue +++ b/pages/Industrialbutler/Industrialbutler.vue @@ -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') + }) }) }, },