diff --git a/im/chat/chat.vue b/im/chat/chat.vue index 66a9a3f..b309de8 100644 --- a/im/chat/chat.vue +++ b/im/chat/chat.vue @@ -51,12 +51,10 @@ - + > -
+ +
+
{ - // console.log("item: " + item); + console.log("匹配到的表情符号:", item); for (let i = 0; i < this.emojiList.length; i++) { let row = this.emojiList[i]; for (let j = 0; j < row.length; j++) { let EM = row[j]; if (EM.alt == item) { - //在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径 - //比如你上传服务器后,你的100.gif路径为https://www.xxx.com/emoji/100.gif 则替换onlinePath填写为https://www.xxx.com/emoji/ - // let onlinePath = 'https://s2.ax1x.com/2019/04/12/' - // let imgstr = ''; - + // 在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径 let onlinePath = this.emojiPath; - let imgstr = - ''; - // console.log("imgstr: " + imgstr); + let imgstr = ``; return imgstr; } } } + return item; }); return replacedStr; }, @@ -1523,7 +1514,10 @@ export default { console.info(content.text); console.info(type); console.info(needload); - + if (type === "text" && content.text) { + // 用
包裹文字,确保 rich-text 能识别 + content.text = `
${content.text}
`; + } let message_id = 1001; var mine = { username: this.userInfo.user_nickname, @@ -1660,6 +1654,7 @@ export default { addTextMsg(msg) { console.info("addTextMsg"); console.info(msg); + msg.msg.content.text = this.replaceEmoji(msg.msg.content.text); this.msgList.push(msg); }, // 添加语音消息到列表 @@ -1991,4 +1986,27 @@ export default { height: 90%; } } - \ No newline at end of file +// 针对文字消息的气泡样式,强制文字可见 +.bubble { + padding: 12rpx 16rpx !important; + background-color: #ffffff !important; + + .white { + color: #333333 !important; + opacity: 1 !important; + visibility: visible !important; + font-size: 32rpx !important; + line-height: 1.5 !important; + + word-wrap: break-word !important; + white-space: normal !important; + } +} + + +rich-text { + display: inline-block !important; + min-width: 20rpx !important; + vertical-align: middle !important; +} + diff --git a/manifest.json b/manifest.json index 9ff08b2..b5dfdd9 100644 --- a/manifest.json +++ b/manifest.json @@ -87,7 +87,8 @@ "NSMicrophoneUsageDescription" : "此APP会在使用声音识别服务中使用您的麦克风权限", "NSLocationAlwaysUsageDescription" : "此App会在使用导航服务中使用您的定位权限", "NSLocationWhenInUseUsageDescription" : "此App会在使用导航服务中使用您的定位权限" - } + }, + "dSYMs" : false }, /* ios打包配置 */ "sdkConfigs" : { @@ -138,7 +139,7 @@ }, "icons" : { "ios" : { - "appstore" : "unpackage/icon.png", + "appstore" : "unpackage/res/icons/1024x1024.png", "ipad" : { "app" : "unpackage/res/icons/76x76.png", "app@2x" : "unpackage/res/icons/152x152.png", diff --git a/pages/index/member.vue b/pages/index/member.vue index 9c44696..6d48f7d 100644 --- a/pages/index/member.vue +++ b/pages/index/member.vue @@ -468,12 +468,6 @@ url="/member/order/list?type=2060&sl=4" class="m-cell m-cell-access" > -