From 24b1e33bbbeb7f22c02263729ded7347d68c5cac Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Mon, 29 Sep 2025 19:25:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=A4=84=E7=90=86=E8=81=8A=E5=A4=A9i?= =?UTF-8?q?m=E5=9B=BE=E7=89=87=E9=80=82=E9=85=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/u-parse/components/wxParseImg.vue | 4 ++-- helpers/apiconfig.js | 2 +- im/chat/chat.vue | 6 +++--- im/chat/chat_nn.vue | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/u-parse/components/wxParseImg.vue b/components/u-parse/components/wxParseImg.vue index 730852f..13ba9c5 100644 --- a/components/u-parse/components/wxParseImg.vue +++ b/components/u-parse/components/wxParseImg.vue @@ -53,11 +53,11 @@ export default { if ('chatimg' == this.node.attr.class) { - this.newStyleStr = `${styleStr}; width: 100%; padding: 0 ${+padding}px;`; + this.newStyleStr = `${styleStr}; max-width: 100%; padding: 0 ${+padding}px;`; } else { - this.newStyleStr = `${styleStr}; ${imageHeightStyle}; width: ${imageWidth}px; padding: 0 ${+padding}px;`; + this.newStyleStr = `${styleStr}; ${imageHeightStyle}; max-width: ${imageWidth}px; padding: 0 ${+padding}px;`; } }, // 计算视觉优先的图片宽高 diff --git a/helpers/apiconfig.js b/helpers/apiconfig.js index 4f20aa5..593df76 100644 --- a/helpers/apiconfig.js +++ b/helpers/apiconfig.js @@ -324,7 +324,7 @@ class apiconfig { .replace(/img\[([^\s]+?)\]/g, function(img){ //转义图片 //return ''; - return '
 
'; + return '
 
'; }) .replace(/file\([\s\S]+?\)\[[\s\S]*?\]/g, function(str){ //转义文件 var href = (str.match(/file\(([\s\S]+?)\)\[/)||[])[1]; diff --git a/im/chat/chat.vue b/im/chat/chat.vue index b309de8..2a4deec 100644 --- a/im/chat/chat.vue +++ b/im/chat/chat.vue @@ -855,7 +855,7 @@ export default { data.item_row.item_id; let imgstr = - ''; let content = @@ -886,7 +886,7 @@ export default { //读取订单信息,直接发送出去 if (options.text) { let msg = { - text: options.text, + text: options.text+'aaa1', }; that.sendMsg(msg, "text"); } @@ -1226,7 +1226,7 @@ export default { } console.info(data); - console.info("msgList", this.msgList); + console.info("msgList1111", this.msgList); if (callback) { callback(); diff --git a/im/chat/chat_nn.vue b/im/chat/chat_nn.vue index ea27426..aef33c8 100644 --- a/im/chat/chat_nn.vue +++ b/im/chat/chat_nn.vue @@ -851,7 +851,7 @@ export default { data.item_row.item_id */ let imgstr = - ''; let content =