From f4bf4dc0600002381824133acfcfea24487160ef Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Wed, 28 Dec 2022 18:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/GoodsDetail.vue | 9 ++++----- im/src/components/chat/panel/TalkPanel.vue | 3 +-- im/src/components/chat/panel/template/footPrint.vue | 13 +++++++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index cc4cf373..14fdb13c 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -95,11 +95,10 @@ export default { }, // 获取im信息 async getIMDetailMethods () { - // let res = await getIMDetail(); - // if (res.success) { - // this.IMLink = res.result; - // } - this.IMLink = 'http://192.168.0.139:8000' + let res = await getIMDetail(); + if (res.success) { + this.IMLink = res.result; + } }, // 点击规格 targetClickSku (val) { diff --git a/im/src/components/chat/panel/TalkPanel.vue b/im/src/components/chat/panel/TalkPanel.vue index a6fce70a..dbd4eacf 100644 --- a/im/src/components/chat/panel/TalkPanel.vue +++ b/im/src/components/chat/panel/TalkPanel.vue @@ -484,9 +484,8 @@ export default { records.length ? (this.loadRecord.status = 1) : (this.loadRecord.status = 2); - this.$nextTick(() => { - if (data.record_id == 0) { + if (data.record_id == 0 || !data.record_id) { el.scrollTop = el.scrollHeight } else { el.scrollTop = el.scrollHeight - scrollHeight diff --git a/im/src/components/chat/panel/template/footPrint.vue b/im/src/components/chat/panel/template/footPrint.vue index 800b48d1..2755018e 100644 --- a/im/src/components/chat/panel/template/footPrint.vue +++ b/im/src/components/chat/panel/template/footPrint.vue @@ -12,9 +12,9 @@
- {{ item.goodsName }} -
- ¥{{ item.price }} + {{ item.goodsName }} +
+ ¥{{ item.price }}
@@ -108,9 +108,13 @@ export default { text-overflow: ellipsis; margin-top: 8px; white-space: nowrap; - margin-top: 4px; } + .price { + color: red; + margin-top: 15px; + } + .image { height: 100px; margin-top: 3px; @@ -122,4 +126,5 @@ export default { .separate { margin-top: 8px; } + \ No newline at end of file