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