Parcourir la source

企微聊天文本消息发送、基础表情处理

Long il y a 2 semaines
Parent
commit
1d038fa6be

+ 1 - 2
src/components/LemonUI/components/editor.vue

@@ -473,8 +473,7 @@ gap = 10px;
     p,div
       margin 0
     img
-      height 20px
-      padding 0 2px
+      height 18px
       pointer-events none
       position relative
       top -1px

+ 4 - 4
src/components/LemonUI/components/index.vue

@@ -448,7 +448,7 @@ export default {
           useScopedSlot(this.$scopedSlots["sidebar-contact-top"], null, this),
           this.contacts.map(contact => {
             if (!contact.index) return;
-            contact.index = contact.index.replace(/\[[0-9]*\]/, "");
+            contact.index = contact.index.replace(/\[[0-9]*]/, "");
             const node = [
               contact.index !== prevIndex && (
                 <p class="lemon-sidebar__label">{contact.index}</p>
@@ -654,15 +654,15 @@ export default {
      * @return {String} 替换后的字符串
      */
     emojiNameToImage(str) {
-      return str.replace(/\[!(\w+)\]/gi, (str, match) => {
+      return str.replace(/\[([^\]]+)]/gi, (str, match) => {
         const file = match;
         return emojiMap[file]
           ? `<img emoji-name="${match}" src="${emojiMap[file]}" />`
-          : `[!${match}]`;
+          : `[${match}]`;
       });
     },
     emojiImageToName(str) {
-      return str.replace(/<img emoji-name=\"([^\"]*?)\" [^>]*>/gi, "[!$1]");
+      return str.replace(/<img emoji-name="([^"]*?)" [^>]*>/gi, "[$1]");
     },
     updateCurrentMessages() {
       if (!allMessages[this.currentContactId]){

+ 1 - 2
src/components/LemonUI/components/message/text.vue

@@ -8,7 +8,7 @@ export default {
       <lemon-message-basic
         class="lemon-message-text"
         props={{ ...this.$attrs }}
-        scopedSlots={{ 
+        scopedSlots={{
           content: props => {
             const content = this.IMUI.emojiNameToImage(props.content);
             return <span domProps={{ innerHTML: content }} />;
@@ -31,6 +31,5 @@ export default {
         background transparent
         position relative
         top -1px
-        padding 0 2px
         vertical-align middle
 </style>

+ 483 - 168
src/components/LemonUI/database/emoji.js

@@ -3,274 +3,549 @@ export default [
     label: "表情",
     children: [
       {
-        name: "1f600",
+        name: "微笑",
         title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f600.png",
+        src: "https://www.emojiall.com/images/60/wechat/1f642.png",
       },
       {
-        name: "1f62c",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f62c.png",
+        name: "撇嘴",
+        title: "撇嘴",
+        src: "https://www.emojiall.com/images/60/wechat/1f61f.png",
       },
       {
-        name: "1f601",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f601.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f60d.png",
       },
       {
-        name: "1f602",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f602.png",
+        name: "发呆",
+        title: "发呆",
+        src: "https://www.emojiall.com/images/60/wechat/1f626.png",
       },
       {
-        name: "1f923",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f923.png",
+        name: "得意",
+        title: "得意",
+        src: "https://www.emojiall.com/images/60/wechat/1f60e.png",
       },
       {
-        name: "1f973",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f973.png",
+        name: "流泪",
+        title: "流泪",
+        src: "https://www.emojiall.com/images/60/wechat/1f62d.png",
       },
       {
-        name: "1f603",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f603.png",
+        name: "害羞",
+        title: "害羞",
+        src: "https://www.emojiall.com/images/60/wechat/1f60a.png",
       },
       {
-        name: "1f604",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f604.png",
+        name: "闭嘴",
+        title: "闭嘴",
+        src: "https://www.emojiall.com/images/60/wechat/1f910.png",
       },
       {
-        name: "1f605",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f605.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f62a.png",
       },
       {
-        name: "1f606",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f606.png",
+        name: "大哭",
+        title: "大哭",
+        src: "https://www.emojiall.com/images/60/wechat/1f622.png",
       },
       {
-        name: "1f607",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f607.png",
+        name: "尴尬",
+        title: "尴尬",
+        src: "https://www.emojiall.com/images/60/wechat/wx046.png",
       },
       {
-        name: "1f609",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f609.png",
+        name: "发怒",
+        title: "发怒",
+        src: "https://www.emojiall.com/images/60/wechat/1f621.png",
       },
       {
-        name: "1f60a",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60a.png",
+        name: "调皮",
+        title: "调皮",
+        src: "https://www.emojiall.com/images/60/wechat/1f61b.png",
       },
       {
-        name: "1f642",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f642.png",
+        name: "呲牙",
+        title: "呲牙",
+        src: "https://www.emojiall.com/images/60/wechat/1f601.png",
       },
       {
-        name: "1f643",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f643.png",
+        name: "惊讶",
+        title: "惊讶",
+        src: "https://www.emojiall.com/images/60/wechat/1f632.png",
       },
       {
-        name: "1263a",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/263a.png",
+        name: "难过",
+        title: "难过",
+        src: "https://www.emojiall.com/images/60/wechat/1f641.png",
       },
       {
-        name: "1f60b",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60b.png",
+        name: "冷汗",
+        title: "冷汗",
+        src: "https://www.emojiall.com/images/60/wechat/1f630.png",
       },
       {
-        name: "1f60c",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60c.png",
+        name: "抓狂",
+        title: "抓狂",
+        src: "https://www.emojiall.com/images/60/wechat/1f62b.png",
       },
       {
-        name: "1f60d",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60d.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f92e.png",
       },
       {
-        name: "1f970",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f970.png",
+        name: "偷笑",
+        title: "笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f92d.png",
       },
       {
-        name: "1f618",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f618.png",
+        name: "愉快",
+        title: "愉快",
+        src: "https://www.emojiall.com/images/60/wechat/1f60a-new.png",
       },
       {
-        name: "1f617",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f617.png",
+        name: "白眼",
+        title: "白眼",
+        src: "https://www.emojiall.com/images/60/wechat/1f644-new.png",
       },
       {
-        name: "1f619",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f619.png",
+        name: "傲慢",
+        title: "傲慢",
+        src: "https://www.emojiall.com/images/60/wechat/1f615.png",
       },
       {
-        name: "1f61a",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61a.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f62a-new.png",
       },
       {
-        name: "1f61c",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61c.png",
+        name: "惊恐",
+        title: "惊恐",
+        src: "https://www.emojiall.com/images/60/wechat/1f628.png",
       },
       {
-        name: "1f92a",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f92a.png",
+        name: "憨笑",
+        title: "笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f600.png",
       },
       {
-        name: "1f928",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f928.png",
+        name: "悠闲",
+        title: "悠闲",
+        src: "https://www.emojiall.com/images/60/wechat/1f6ac.png",
       },
       {
-        name: "1f9d0",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f9d0.png",
+        name: "咒骂",
+        title: "咒骂",
+        src: "https://www.emojiall.com/images/60/wechat/1f92c.png",
       },
       {
-        name: "1f61d",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61d.png",
+        name: "疑问",
+        title: "疑问",
+        src: "https://www.emojiall.com/images/60/wechat/wx068.png",
       },
       {
-        name: "1f61b",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61b.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f92b.png",
       },
       {
-        name: "1f911",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f911.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f635.png",
       },
       {
-        name: "1f913",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f913.png",
+        name: "",
+        title: "",
+        src: "https://www.emojiall.com/images/60/wechat/1f622-new.png",
       },
       {
-        name: "1f60e",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60e.png",
+        name: "骷髅",
+        title: "骷髅",
+        src: "https://www.emojiall.com/images/60/wechat/1f480.png",
       },
       {
-        name: "1f929",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f929.png",
+        name: "敲打",
+        title: "敲打",
+        src: "https://www.emojiall.com/images/60/wechat/1f915.png",
       },
       {
-        name: "1f921",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f921.png",
+        name: "再见",
+        title: "再见",
+        src: "https://www.emojiall.com/images/60/wechat/1f44b.png",
       },
       {
-        name: "1f920",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f920.png",
+        name: "擦汗",
+        title: "擦汗",
+        src: "https://www.emojiall.com/images/60/wechat/wx076.png",
       },
       {
-        name: "1f917",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f917.png",
+        name: "抠鼻",
+        title: "抠鼻",
+        src: "https://www.emojiall.com/images/60/wechat/wx077.png",
       },
       {
-        name: "1f60f",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f60f.png",
+        name: "鼓掌",
+        title: "鼓掌",
+        src: "https://www.emojiall.com/images/60/wechat/1f44f.png",
       },
       {
-        name: "1f636",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f636.png",
+        name: "坏笑",
+        title: "笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f62c.png",
       },
       {
-        name: "1f610",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f610.png",
+        name: "右哼哼",
+        title: "右哼哼",
+        src: "https://www.emojiall.com/images/60/wechat/1f624-new.png",
       },
       {
-        name: "1f611",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f611.png",
+        name: "鄙视",
+        title: "鄙视",
+        src: "https://www.emojiall.com/images/60/wechat/wx084.png",
       },
       {
-        name: "1f612",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f612.png",
+        name: "委屈",
+        title: "委屈",
+        src: "https://www.emojiall.com/images/60/wechat/1f641-new.png",
       },
       {
-        name: "1f644",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f644.png",
+        name: "快哭了",
+        title: "快哭了",
+        src: "https://www.emojiall.com/images/60/wechat/1f625.png",
       },
       {
-        name: "1f914",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f914.png",
+        name: "阴险",
+        title: "阴险",
+        src: "https://www.emojiall.com/images/60/wechat/1f60f.png",
       },
       {
-        name: "1f925",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f925.png",
+        name: "亲亲",
+        title: "亲亲",
+        src: "https://www.emojiall.com/images/60/wechat/1f61a.png",
       },
       {
-        name: "1f92d",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f92d.png",
+        name: "可怜",
+        title: "可怜",
+        src: "https://www.emojiall.com/images/60/wechat/1f97a.png",
       },
       {
-        name: "1f92b",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f92b.png",
+        name: "笑脸",
+        title: "笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f604.png",
       },
       {
-        name: "1f92c",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f92c.png",
+        name: "生病",
+        title: "生病",
+        src: "https://www.emojiall.com/images/60/wechat/1f637.png",
       },
       {
-        name: "1f92f",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f92f.png",
+        name: "脸红",
+        title: "脸红",
+        src: "https://www.emojiall.com/images/60/wechat/1f633.png",
       },
       {
-        name: "1f633",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f633.png",
+        name: "破涕为笑",
+        title: "破涕为笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f602.png",
       },
       {
-        name: "1f61e",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61e.png",
+        name: "恐惧",
+        title: "恐惧",
+        src: "https://www.emojiall.com/images/60/wechat/1f631-new.png",
       },
       {
-        name: "1f61f",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f61f.png",
+        name: "失望",
+        title: "失望",
+        src: "https://www.emojiall.com/images/60/wechat/1f614.png",
       },
       {
-        name: "1f620",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f620.png",
+        name: "无语",
+        title: "无语",
+        src: "https://www.emojiall.com/images/60/wechat/1f612.png",
       },
       {
-        name: "1f621",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f621.png",
+        name: "嘿哈",
+        title: "嘿哈",
+        src: "https://www.emojiall.com/images/60/wechat/wx004.png",
+      },
+      {
+        name: "捂脸",
+        title: "捂脸",
+        src: "https://www.emojiall.com/images/60/wechat/wx005.png",
+      },
+      {
+        name: "奸笑",
+        title: "奸笑",
+        src: "https://www.emojiall.com/images/60/wechat/wx003.png",
+      },
+      {
+        name: "机智",
+        title: "机智",
+        src: "https://www.emojiall.com/images/60/wechat/wx006.png",
+      },
+      {
+        name: "皱眉",
+        title: "皱眉",
+        src: "https://www.emojiall.com/images/60/wechat/1f97a-new.png",
+      },
+      {
+        name: "耶",
+        title: "耶",
+        src: "https://www.emojiall.com/images/60/wechat/270c-new.png",
+      },
+      {
+        name: "吃瓜",
+        title: "吃瓜",
+        src: "https://www.emojiall.com/images/60/wechat/wx033.png",
+      },
+      {
+        name: "加油",
+        title: "加油",
+        src: "https://www.emojiall.com/images/60/wechat/wx011.png",
+      },
+      {
+        name: "汗",
+        title: "汗",
+        src: "https://www.emojiall.com/images/60/wechat/1f613-new.png",
+      },
+      {
+        name: "天啊",
+        title: "天啊",
+        src: "https://www.emojiall.com/images/60/wechat/1f632-new.png",
+      },
+      {
+        name: "Emm",
+        title: "Emm",
+        src: "https://www.emojiall.com/images/60/wechat/1f611-new.png",
+      },
+      {
+        name: "社会社会",
+        title: "社会社会",
+        src: "https://www.emojiall.com/images/60/wechat/wx018.png",
+      },
+      {
+        name: "旺柴",
+        title: "旺柴",
+        src: "https://www.emojiall.com/images/60/wechat/1f436.png",
+      },
+      {
+        name: "好的",
+        title: "好的",
+        src: "https://www.emojiall.com/images/60/wechat/1f44c-new.png",
+      },
+      {
+        name: "打脸",
+        title: "打脸",
+        src: "https://www.emojiall.com/images/60/wechat/1f915-new.png",
+      },
+      {
+        name: "哇",
+        title: "哇",
+        src: "https://www.emojiall.com/images/60/wechat/1f929.png",
+      },
+      {
+        name: "翻白眼",
+        title: "翻白眼",
+        src: "https://www.emojiall.com/images/60/wechat/1f644.png",
+      },
+      {
+        name: "666",
+        title: "666",
+        src: "https://www.emojiall.com/images/60/wechat/wx145.png",
+      },
+      {
+        name: "让我看看",
+        title: "让我看看",
+        src: "https://www.emojiall.com/images/60/wechat/wx144.png",
+      },
+      {
+        name: "叹气",
+        title: "叹气",
+        src: "https://www.emojiall.com/images/60/wechat/wx143.png",
+      },
+      {
+        name: "苦涩",
+        title: "苦涩",
+        src: "https://www.emojiall.com/images/60/wechat/wx142.png",
+      },
+      {
+        name: "裂开",
+        title: "裂开",
+        src: "https://www.emojiall.com/images/60/wechat/wx141.png",
+      },
+      {
+        name: "嘴唇",
+        title: "嘴唇",
+        src: "https://www.emojiall.com/images/60/wechat/1f444.png",
+      },
+      {
+        name: "爱心",
+        title: "爱心",
+        src: "https://www.emojiall.com/images/60/wechat/2764.png",
+      },
+      {
+        name: "心碎",
+        title: "心碎",
+        src: "https://www.emojiall.com/images/60/wechat/1f494.png",
+      },
+      {
+        name: "拥抱",
+        title: "拥抱",
+        src: "https://www.emojiall.com/images/60/wechat/1f917.png",
+      },
+      {
+        name: "强",
+        title: "强",
+        src: "https://www.emojiall.com/images/60/wechat/1f44d.png",
+      },
+      {
+        name: "弱",
+        title: "弱",
+        src: "https://www.emojiall.com/images/60/wechat/1f44e.png",
+      },
+      {
+        name: "握手",
+        title: "握手",
+        src: "https://www.emojiall.com/images/60/wechat/1f91d.png",
+      },
+      {
+        name: "胜利",
+        title: "胜利",
+        src: "https://www.emojiall.com/images/60/wechat/270c.png",
+      },
+      {
+        name: "抱拳",
+        title: "抱拳",
+        src: "https://www.emojiall.com/images/60/wechat/1f64f.png",
+      },
+      {
+        name: "勾引",
+        title: "勾引",
+        src: "https://www.emojiall.com/images/60/wechat/wx120.png",
+      },
+      {
+        name: "拳头",
+        title: "拳头",
+        src: "https://www.emojiall.com/images/60/wechat/270a.png",
+      },
+      {
+        name: "OK",
+        title: "OK",
+        src: "https://www.emojiall.com/images/60/wechat/1f44c.png",
+      },
+      {
+        name: "合十",
+        title: "合十",
+        src: "https://www.emojiall.com/images/60/wechat/1f64f-new.png",
+      },
+      {
+        name: "啤酒",
+        title: "啤酒",
+        src: "https://www.emojiall.com/images/60/wechat/1f37a.png",
+      },
+      {
+        name: "咖啡",
+        title: "咖啡",
+        src: "https://www.emojiall.com/images/60/wechat/2615.png",
+      },
+      {
+        name: "蛋糕",
+        title: "蛋糕",
+        src: "https://www.emojiall.com/images/60/wechat/1f381.png",
+      },
+      {
+        name: "玫瑰",
+        title: "玫瑰",
+        src: "https://www.emojiall.com/images/60/wechat/1f339.png",
+      },
+      {
+        name: "凋谢",
+        title: "凋谢",
+        src: "https://www.emojiall.com/images/60/wechat/1f940.png",
+      },
+      {
+        name: "菜刀",
+        title: "菜刀",
+        src: "https://www.emojiall.com/images/60/wechat/1f52a.png",
+      },
+      {
+        name: "炸弹",
+        title: "炸弹",
+        src: "https://www.emojiall.com/images/60/wechat/1f4a3.png",
+      },
+      {
+        name: "便便",
+        title: "便便",
+        src: "https://www.emojiall.com/images/60/wechat/1f4a9.png",
+      },
+      {
+        name: "月亮",
+        title: "月亮",
+        src: "https://www.emojiall.com/images/60/wechat/1f319.png",
+      },
+      {
+        name: "太阳",
+        title: "太阳",
+        src: "https://www.emojiall.com/images/60/wechat/1f31e.png",
+      },
+      {
+        name: "庆祝",
+        title: "庆祝",
+        src: "https://www.emojiall.com/images/60/wechat/1f389.png",
+      },
+      {
+        name: "礼物",
+        title: "礼物",
+        src: "https://www.emojiall.com/images/60/wechat/1f381-new.png",
+      },
+      {
+        name: "红包",
+        title: "红包",
+        src: "https://www.emojiall.com/images/60/wechat/1f9e7.png",
+      },
+      {
+        name: "發",
+        title: "發",
+        src: "https://www.emojiall.com/images/60/wechat/1f005.png",
+      },
+      {
+        name: "福",
+        title: "福",
+        src: "https://www.emojiall.com/images/60/wechat/wx001.png",
+      },
+      {
+        name: "烟花",
+        title: "烟花",
+        src: "https://www.emojipic.cn/Pics/72/apple/fireworks_1f386.png",
+      },
+      {
+        name: "爆竹",
+        title: "爆竹",
+        src: "https://www.emojipic.cn/Pics/72/apple/firecracker_1f9e8.png",
+      },
+      {
+        name: "猪头",
+        title: "猪头",
+        src: "https://www.emojiall.com/images/60/wechat/1f437.png",
+      },
+      {
+        name: "跳跳",
+        title: "跳跳",
+        src: "https://www.emojiall.com/images/60/wechat/wx128.png",
+      },
+      {
+        name: "发抖",
+        title: "发抖",
+        src: "https://www.emojiall.com/images/60/wechat/1f976.png",
+      },
+      {
+        name: "转圈",
+        title: "转圈",
+        src: "https://www.emojiall.com/images/60/wechat/wx131.png",
       },
     ],
   },
@@ -278,15 +553,55 @@ export default [
     label: "收藏",
     children: [
       {
-        name: "1f62c",
-        title: "笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f62c.png",
+        name: "破涕为笑",
+        title: "破涕为笑",
+        src: "https://www.emojiall.com/images/60/wechat/1f602.png",
       },
       {
-        name: "1f621",
-        title: "微笑",
-        src: "https://cdn.jsdelivr.net/gh/twitter/twemoji@v14.0.2/assets/72x72/1f621.png",
+        name: "恐惧",
+        title: "恐惧",
+        src: "https://www.emojiall.com/images/60/wechat/1f631-new.png",
+      },
+      {
+        name: "失望",
+        title: "失望",
+        src: "https://www.emojiall.com/images/60/wechat/1f614.png",
+      },
+      {
+        name: "无语",
+        title: "无语",
+        src: "https://www.emojiall.com/images/60/wechat/1f612.png",
+      },
+      {
+        name: "嘿哈",
+        title: "嘿哈",
+        src: "https://www.emojiall.com/images/60/wechat/wx004.png",
+      },
+      {
+        name: "捂脸",
+        title: "捂脸",
+        src: "https://www.emojiall.com/images/60/wechat/wx005.png",
+      },
+      {
+        name: "奸笑",
+        title: "奸笑",
+        src: "https://www.emojiall.com/images/60/wechat/wx003.png",
+      },
+      {
+        name: "机智",
+        title: "机智",
+        src: "https://www.emojiall.com/images/60/wechat/wx006.png",
+      },
+      {
+        name: "皱眉",
+        title: "皱眉",
+        src: "https://www.emojiall.com/images/60/wechat/1f97a-new.png",
+      },
+      {
+        name: "耶",
+        title: "耶",
+        src: "https://www.emojiall.com/images/60/wechat/270c-new.png",
       },
     ],
   },
-];
+];

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
src/components/LemonUI/index.css


+ 9 - 10
src/views/qw/qwChat/qq.vue

@@ -204,7 +204,6 @@ export default {
       }
     ]);
     IMUI.initEmoji(EmojiData);
-    IMUI.initEditorTools([])
 
     this.startMessagePolling(); // 启动定时轮询
   },
@@ -337,17 +336,17 @@ export default {
     },
     //发送消息
     handleSend(message, next, file) {
-      this.$message.info("暂不支持")
-      return
       const IMUI = this.$refs.IMUI;
-      var params={};
-      if(message.type=="text"){  //text   image   voice   video
-        params={"sessionId":message.toContactId,"appKey":this.qwUser.appKey,"content":message.content};
+      let params = {};
+      if(message.type === "text"){  //text   image   voice   video
+        params = {"sessionId":message.toContactId,"appKey":this.qwUser.appKey,"content":message.content};
         sendMsg(params).then(response => {
-          if(response.code==200){
-            var conversation=IMUI.findConversation(message.toContactId);
-            conversation.lastSendTime=message.sendTime;
-            conversation.lastContent=message.content;
+          const {code, data} = response
+          if(code === 200){
+            this.appendRemoteMessage(data)
+            let conversation = IMUI.findConversation(message.toContactId);
+            conversation.lastSendTime = message.sendTime;
+            conversation.lastContent = message.content;
             IMUI.topPopConversations(conversation);
             next();
           }

+ 1 - 1
src/views/qw/qwChat/userDetail/userStorerDetails.vue

@@ -5,7 +5,7 @@
       <el-tab-pane label="全部订单" name="10"></el-tab-pane>
       <el-tab-pane v-for="(item,index) in orderOptions" :label="item.dictLabel" :name="item.dictValue"></el-tab-pane>
     </el-tabs>
-    <el-table v-loading="loading" :data="orderList" >
+    <el-table v-loading="loading" :data="orderList" border>
       <el-table-column label="订单号" align="center" prop="orderCode" width="180px"/>
       <el-table-column label="所属店铺" align="center" prop="storeName" width="180px"/>
       <el-table-column label="用户昵称" align="center" prop="nickName" show-overflow-tooltip width="100px"/>

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff