优化
This commit is contained in:
2
unpackage/dist/build/mp-weixin/NewAddedPk.js
vendored
2
unpackage/dist/build/mp-weixin/NewAddedPk.js
vendored
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";let e;require("../common/vendor.js"),e=3,console.warn("[adapter-vue]: vue version is 3");
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=e.defineComponent({__name:"index",props:["isGroup"],emits:["openGroupManagement"],setup(t,{emit:n}){const o=e.ref(),a=e.ref(!1),u=e.ref("Global");function r(){e.index.navigateBack({delta:1})}const i=e=>{u.value=e||"Global"};function l(e){var t;o.value=e,a.value||i(null==(t=null==o?void 0:o.value)?void 0:t.getShowName())}function v(t){var n;a.value=t,a.value?i(e.Wt.t("TUIChat.对方正在输入...")):i(null==(n=o.value)?void 0:n.getShowName())}return e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:l}),e.Jt.watch(e.o.CHAT,{typingStatus:v})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:l}),e.Jt.unwatch(e.o.CHAT,{typingStatus:v})})),e.onLoad((()=>{var e;i(null==(e=o.value)?void 0:e.getShowName())})),(t,n)=>({a:e.o$1(r),b:e.t(e.unref(u))})}});wx.createComponent(t);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="Navigation"><view class="Navigationcontent"><image bindtap="{{a}}" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" class="Navigation-return"/><view class="Navigation-name">{{b}}</view><view></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.Navigation-name{font-size:36rpx;color:#000;font-weight:700}.Navigation{position:fixed;top:0;left:0;z-index:999;width:100%;height:240rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png);background-position:100% 100%;background-repeat:no-repeat}.Navigationcontent{width:80%;height:100%;display:flex;justify-content:space-between;align-items:center;padding:60rpx}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";class e{constructor(){this.chatType="",this.features={DownloadFile:!0,CopyMessage:!0,DeleteMessage:!0,RevokeMessage:!0,QuoteMessage:!0,ForwardMessage:!0,TranslateMessage:!0,VoiceToText:!0,MultiSelection:!0,EmojiReaction:!0,InputEmoji:!0,InputStickers:!0,InputImage:!0,InputVoice:!0,InputVideo:!0,InputFile:!0,InputEvaluation:!0,InputQuickReplies:!0,InputCustomMessage:!0,InputMention:!0,MessageSearch:!0,ReadStatus:!0},this.theme="light"}static getInstance(){return e.instance||(e.instance=new e),e.instance}setChatType(e){this.chatType=e}getChatType(){return this.chatType}hideTUIChatFeatures(e){e&&e.forEach((e=>{this.features[e]&&(this.features[e]=!1)}))}getFeatureConfig(e){return e?this.features[e]:this.features}setTheme(e){this.theme=e}getTheme(){return this.theme}}const t=e.getInstance();t.hideTUIChatFeatures.bind(t),exports.ChatConfig=t;
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";exports.CUSTOM_BIG_EMOJI_URL="";
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";var e,r;const _=require("./locales/zh_cn.js"),s=require("./locales/en.js"),t={...Object.fromEntries(null==(e=Object.entries(_.Emoji))?void 0:e.map((([e,r])=>[r,e]))),...Object.fromEntries(null==(r=Object.entries(s.Emoji))?void 0:r.map((([e,r])=>[r,e])))};exports.BASIC_EMOJI_NAME_TO_KEY_MAPPING=t,exports.DEFAULT_BASIC_EMOJI_URL="",exports.DEFAULT_BASIC_EMOJI_URL_MAPPING={},exports.DEFAULT_BIG_EMOJI_URL="";
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),t=require("./default-emoji.js"),r=require("./locales/zh_cn.js"),s=require("../../../utils/env.js"),n=t.DEFAULT_BASIC_EMOJI_URL,o=t.DEFAULT_BASIC_EMOJI_URL_MAPPING;exports.parseTextToRenderArray=e=>{const t=/\[([^\]]+)\]/g,r=[];let s,i=0;for(;null!==(s=t.exec(e));){const u=s.index,c=t.lastIndex,a=s[0];u>i&&r.push({type:"text",content:e.substring(i,u)});const l=n+o[a];l?r.push({type:"image",content:l,emojiKey:a}):r.push({type:"text",content:a}),i=c,t.lastIndex=i}return i<e.length&&r.push({type:"text",content:e.substring(i)}),r},exports.transformTextWithEmojiNamesToKeys=e=>{if(!e)return"";const r=/(\[.+?\])/g;let s=e;return r.test(e)&&(s=e.replace(r,(e=>t.BASIC_EMOJI_NAME_TO_KEY_MAPPING[e]||e))),s},exports.transformTextWithKeysToEmojiNames=t=>{if(!t)return"";const n=/(\[.+?\])/g;let i=t;return n.test(t)&&(i=t.replace(n,(t=>{return o[t]?(n=t,s.isWeChat?r.Emoji[n]:e.Wt.t(`Emoji.${n}`)):t;var n}))),i};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";exports.Emoji={"[TUIEmoji_Smile]":"[Smile]","[TUIEmoji_Expect]":"[Expect]","[TUIEmoji_Blink]":"[Blink]","[TUIEmoji_Guffaw]":"[Guffaw]","[TUIEmoji_KindSmile]":"[KindSmile]","[TUIEmoji_Haha]":"[Haha]","[TUIEmoji_Cheerful]":"[Cheerful]","[TUIEmoji_Speechless]":"[Speechless]","[TUIEmoji_Amazed]":"[Amazed]","[TUIEmoji_Sorrow]":"[Sorrow]","[TUIEmoji_Complacent]":"[Complacent]","[TUIEmoji_Silly]":"[Silly]","[TUIEmoji_Lustful]":"[Lustful]","[TUIEmoji_Giggle]":"[Giggle]","[TUIEmoji_Kiss]":"[Kiss]","[TUIEmoji_Wail]":"[Wail]","[TUIEmoji_TearsLaugh]":"[TearsLaugh]","[TUIEmoji_Trapped]":"[Trapped]","[TUIEmoji_Mask]":"[Mask]","[TUIEmoji_Fear]":"[Fear]","[TUIEmoji_BareTeeth]":"[BareTeeth]","[TUIEmoji_FlareUp]":"[FlareUp]","[TUIEmoji_Yawn]":"[Yawn]","[TUIEmoji_Tact]":"[Tact]","[TUIEmoji_Stareyes]":"[StarEyes]","[TUIEmoji_ShutUp]":"[ShutUp]","[TUIEmoji_Sigh]":"[Sigh]","[TUIEmoji_Hehe]":"[Hehe]","[TUIEmoji_Silent]":"[Silent]","[TUIEmoji_Surprised]":"[Surprised]","[TUIEmoji_Askance]":"[Askance]]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[Shit]","[TUIEmoji_Monster]":"[Monster]","[TUIEmoji_Daemon]":"[Daemon]","[TUIEmoji_Rage]":"[Rage]","[TUIEmoji_Fool]":"[Fool]","[TUIEmoji_Pig]":"[Pig]","[TUIEmoji_Cow]":"[Cow]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[Skull]","[TUIEmoji_Bombs]":"[Bombs]","[TUIEmoji_Coffee]":"[Coffee]","[TUIEmoji_Cake]":"[Cake]","[TUIEmoji_Beer]":"[Beer]","[TUIEmoji_Flower]":"[Flower]","[TUIEmoji_Watermelon]":"[Watermelon]","[TUIEmoji_Rich]":"[Rich]","[TUIEmoji_Heart]":"[Heart]","[TUIEmoji_Moon]":"[Moon]","[TUIEmoji_Sun]":"[Sun]","[TUIEmoji_Star]":"[Star]","[TUIEmoji_RedPacket]":"[RedPacket]","[TUIEmoji_Celebrate]":"[Celebrate]","[TUIEmoji_Bless]":"[Bless]","[TUIEmoji_Fortune]":"[Fortune]","[TUIEmoji_Convinced]":"[Convinced]","[TUIEmoji_Prohibit]":"[Prohibit]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[Knife]","[TUIEmoji_Like]":"[Like]"};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";exports.Emoji={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[眨眼]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[姨母笑]","[TUIEmoji_Haha]":"[哈哈哈]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[无语]","[TUIEmoji_Amazed]":"[惊讶]","[TUIEmoji_Sorrow]":"[悲伤]","[TUIEmoji_Complacent]":"[得意]","[TUIEmoji_Silly]":"[傻了]","[TUIEmoji_Lustful]":"[色]","[TUIEmoji_Giggle]":"[憨笑]","[TUIEmoji_Kiss]":"[亲亲]","[TUIEmoji_Wail]":"[大哭]","[TUIEmoji_TearsLaugh]":"[哭笑]","[TUIEmoji_Trapped]":"[困]","[TUIEmoji_Mask]":"[口罩]","[TUIEmoji_Fear]":"[恐惧]","[TUIEmoji_BareTeeth]":"[龇牙]","[TUIEmoji_FlareUp]":"[发怒]","[TUIEmoji_Yawn]":"[打哈欠]","[TUIEmoji_Tact]":"[机智]","[TUIEmoji_Stareyes]":"[星星眼]","[TUIEmoji_ShutUp]":"[闭嘴]","[TUIEmoji_Sigh]":"[叹气]","[TUIEmoji_Hehe]":"[呵呵]","[TUIEmoji_Silent]":"[收声]","[TUIEmoji_Surprised]":"[惊喜]","[TUIEmoji_Askance]":"[白眼]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[怪兽]","[TUIEmoji_Daemon]":"[恶魔]","[TUIEmoji_Rage]":"[恶魔怒]","[TUIEmoji_Fool]":"[衰]","[TUIEmoji_Pig]":"[猪]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骷髅]","[TUIEmoji_Bombs]":"[炸弹]","[TUIEmoji_Coffee]":"[咖啡]","[TUIEmoji_Cake]":"[蛋糕]","[TUIEmoji_Beer]":"[啤酒]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[瓜]","[TUIEmoji_Rich]":"[壕]","[TUIEmoji_Heart]":"[爱心]","[TUIEmoji_Moon]":"[月亮]","[TUIEmoji_Sun]":"[太阳]","[TUIEmoji_Star]":"[星星]","[TUIEmoji_RedPacket]":"[红包]","[TUIEmoji_Celebrate]":"[庆祝]","[TUIEmoji_Bless]":"[福]","[TUIEmoji_Fortune]":"[发]","[TUIEmoji_Convinced]":"[服]","[TUIEmoji_Prohibit]":"[禁]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[刀]","[TUIEmoji_Like]":"[赞]"};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const t=require("../../../common/vendor.js"),o=require("../../index.js");exports.initChat=i=>{o.TUIChatKit.init();const{chat:s}=t.A.getContext();if(i&&i.conversationID&&(null==s?void 0:s.isReady())){const{conversationID:o}=i;if(!o.startsWith("C2C")&&!o.startsWith("GROUP"))return void console.warn("conversationID from options is invalid.");t.Xt.switchConversation(o)}},exports.logout=o=>o?t.A.logout():Promise.resolve();
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../common/Toast/index.js"),s=require("../../../utils/env.js"),n=require("../utils/utils.js"),o=require("../offlinePushInfoManager/index.js"),a=require("../../common/Toast/type.js");Math||(i+r)();const r=()=>"../../common/Overlay/index.js",i=()=>"../../common/Transfer/index.js",u=e.defineComponent({__name:"index",emits:["toggleMultipleSelectMode"],setup(r,{emit:i}){const u=i;let l=[],c=!1;const d=e.ref(!1),m=e.ref();function g(e){void 0!==e&&(c=!1,l=[e],T())}function f(s){if(!s)return;c=!1;const{isMergeForward:n,messageIDList:o}=s||{};(null==o?void 0:o.length)>0?(c=n,l=o,T()):t.Toast({message:e.Wt.t("TUIChat.未选择消息"),type:a.TOAST_TYPE.ERROR})}function M(){e.Jt.update(e.o.CUSTOM,"singleForwardMessageID",void 0),e.Jt.update(e.o.CUSTOM,"multipleForwardMessageID",void 0)}function p(){M(),d.value=!1}function T(){!function(){const t=e.Jt.getData(e.o.CONV,"conversationList");m.value=t.map((e=>({userID:e.conversationID,nick:e.getShowName(),avatar:e.getAvatar()})))}(),d.value=!0}function v(s){if(0===(null==s?void 0:s.length))return;const r=s.map((t=>e.Jt.getConversationModel(t.userID))),i=l.map((t=>e.Jt.getMessageModel(t))).sort(((e,t)=>e.time-t.time)),d=r.map((t=>{const s={conversation:t,messageType:e.qt.TYPES.MSG_MERGER};return e.Qt.sendForwardMessage([t],i,{needMerge:c,offlinePushInfo:o.OfflinePushInfoManager.create(s),params:{needReadReceipt:n.isEnabledMessageReadReceiptGlobal()}})}));Promise.allSettled(d).then((s=>{for(const n of s){const{status:s}=n;if("rejected"===s){const s=80001===n.reason.code?e.Wt.t("TUIChat.内容包含敏感词汇"):n.reason.message;t.Toast({message:s,type:a.TOAST_TYPE.ERROR});break}}})),p(),u("toggleMultipleSelectMode",!1)}return e.onMounted((()=>{e.Jt.watch(e.o.CUSTOM,{singleForwardMessageID:g,multipleForwardMessageID:f})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CUSTOM,{singleForwardMessageID:g,multipleForwardMessageID:f}),M()})),(t,n)=>({a:e.o$1(p),b:e.o$1(v),c:e.p({title:e.unref(e.Wt).t("TUIChat.转发"),isSearch:!1,isCustomItem:!1,list:e.unref(m),isHiddenBackIcon:e.unref(s.isUniFrameWork)}),d:e.p({visible:e.unref(d),useMask:!1})})}});wx.createComponent(u);
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"overlay": "../../common/Overlay/index",
|
||||
"transfer": "../../common/Transfer/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<overlay wx:if="{{d}}" u-s="{{['d']}}" u-i="3f0343b7-0" bind:__l="__l" u-p="{{d}}"><transfer wx:if="{{c}}" bindcancel="{{a}}" bindsubmit="{{b}}" u-i="3f0343b7-1,3f0343b7-0" bind:__l="__l" u-p="{{c}}"/></overlay>
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../index.js");wx.createPage(e.MiniProgramPage$1);
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "聊天",
|
||||
"usingComponents": {
|
||||
"chat-header": "./chat-header/index",
|
||||
"message-list": "./message-list/index",
|
||||
"message-input": "./message-input/index",
|
||||
"multiple-select-panel": "./mulitple-select-panel/index",
|
||||
"forward": "./forward/index",
|
||||
"message-input-toolbar": "./message-input-toolbar/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<chat-header class="ChatHeadercss data-v-69ae3511" u-i="69ae3511-0" bind:__l="__l"/><view class="dingweizhibox data-v-69ae3511"></view><view class="chat data-v-69ae3511"><view class="{{['data-v-69ae3511', 'tui-chat', J]}}"><view wx:if="{{a}}" class="{{['data-v-69ae3511', 'tui-chat-default', b]}}"><slot/></view><view wx:if="{{c}}" class="{{['data-v-69ae3511', 'tui-chat', F]}}"><forward class="data-v-69ae3511" bindtoggleMultipleSelectMode="{{d}}" u-i="69ae3511-1" bind:__l="__l"/><message-list wx:if="{{j}}" u-r="messageListRef" class="{{['r', 'data-v-69ae3511', 'tui-chat-message-list', f]}}" bindhandleEditor="{{g}}" bindcloseInputToolBar="{{h}}" bindtoggleMultipleSelectMode="{{i}}" u-i="69ae3511-2" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="{{['data-v-69ae3511', 'tui-chat-leave-group', m && 'tui-chat-leave-group-mobile']}}">{{l}}</view><multiple-select-panel wx:elif="{{n}}" class="data-v-69ae3511" bindoneByOneForwardMessage="{{o}}" bindmergeForwardMessage="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="69ae3511-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{r}}" class="{{['data-v-69ae3511', 'tui-chat-message-input-toolbar', s, t]}}" bindinsertEmoji="{{v}}" bindchangeToolbarDisplayType="{{w}}" bindscrollToLatestMessage="{{x}}" u-i="69ae3511-4" bind:__l="__l" u-p="{{y}}"/><message-input wx:if="{{E}}" u-r="messageInputRef" class="{{['r', 'data-v-69ae3511', 'tui-chat-message-input', A, B, C]}}" bindchangeToolbarDisplayType="{{D}}" u-i="69ae3511-5" bind:__l="__l" u-p="{{E}}"/></block></view><view wx:if="{{G}}" class="group-profile data-v-69ae3511" bindtap="{{I}}">{{H}}</view></view></view>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "../../../../../uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
.popup.data-v-d99a1025{height:750rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.container.data-v-d99a1025{height:650rpx;display:flex;flex-direction:column;align-items:center}.titlecss.data-v-d99a1025{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:50rpx}.title.data-v-d99a1025{font-size:40rpx;color:#313131;text-align:center;font-weight:700}.close.data-v-d99a1025{margin-right:40rpx;margin-top:-30rpx}.yourChoose.data-v-d99a1025,.myChoose.data-v-d99a1025{width:80%;height:150rpx;margin-top:40rpx;display:flex;align-items:center;border-radius:10rpx;background-color:#fff}.yourChoose-item.data-v-d99a1025{width:100%;height:100%;text-align:center;line-height:150rpx;font-size:30rpx;color:#313131;font-weight:700}.Echo.data-v-d99a1025{display:flex;align-items:center}.EchoIcon.data-v-d99a1025{width:100rpx;height:100rpx;border-radius:50%;margin-left:20rpx}.EchoNameandTime.data-v-d99a1025{display:flex;flex-direction:column}.EchoName.data-v-d99a1025{font-size:30rpx;color:#313131;margin-left:20rpx;font-weight:700}.EchoTimeandGold.data-v-d99a1025{display:flex;align-items:center;margin-left:20rpx;margin-top:20rpx}.vstext.data-v-d99a1025{display:flex;justify-content:center;align-items:center;width:90%;margin-top:40rpx}.Vtext.data-v-d99a1025{font-size:45.8rpx;color:#f0836c;font-weight:700;font-style:italic}.Stext.data-v-d99a1025{font-size:45.8rpx;color:#58d8db;font-weight:700;font-style:italic}.send-btn.data-v-d99a1025{width:80%;margin-bottom:70rpx;border-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde);color:#fff;font-size:30rpx;font-weight:700}.popup-content.data-v-d99a1025{width:600rpx;height:700rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-title.data-v-d99a1025{font-size:30rpx;margin-top:50rpx;text-align:center}.Avatarimg.data-v-d99a1025{width:90rpx;height:90rpx;border-radius:50%;background-color:#ddd;margin-right:20rpx;margin-left:20rpx}.avatar.data-v-d99a1025{width:100%;height:100%;border-radius:50%}.NameMoney.data-v-d99a1025{display:flex;flex-direction:column}.TimeMoney.data-v-d99a1025{width:300rpx;display:flex;font-weight:700;font-size:27rpx;color:#161616}.NameMoney_Name.data-v-d99a1025{width:400rpx;text-align:left;font-weight:700;font-size:27rpx;color:#161616;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.TimeMoney_Time.data-v-d99a1025{display:flex;align-items:center;margin-top:10rpx}.pkTimeimg.data-v-d99a1025{width:31.49rpx;height:31.49rpx;margin-right:10rpx}.goldimg.data-v-d99a1025{width:31.49rpx;height:35rpx;margin-left:40rpx}.goldnb.data-v-d99a1025{display:flex;margin-left:5rpx}.noData.data-v-d99a1025{width:500rpx;height:400rpx;border-radius:10px;font-size:30rpx;color:#999}.scroll.data-v-d99a1025{width:500rpx;height:400rpx;border-radius:10px}.popup-text.data-v-d99a1025{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.card-content.data-v-d99a1025{width:100%;height:100rpx;background-color:#fff;border-radius:10rpx;display:flex;align-items:center;font-size:28rpx;color:#7f7f7f;margin-top:20rpx}.createModule.data-v-d99a1025{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.popup-btn.data-v-d99a1025{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-d99a1025{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.cancel.data-v-d99a1025{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;margin-left:30rpx;color:#03aba8;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;border:1rpx solid #03aba8}.popup-Hintcontent.data-v-d99a1025{width:600rpx;height:500rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-texts.data-v-d99a1025{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const i=require("../../../../utils/env.js"),n=require("../../../../../common/assets.js"),o=require("../../utils/utils.js"),a=require("../../offlinePushInfoManager/index.js"),r=require("../../config.js");Math||u();const u=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{imageSourceType:{type:String,default:"album"}},setup(u){const l=u,t=e.ref(),s=e.ref(),c={web_album:{icon:"dark"===r.ChatConfig.getTheme()?n.imageIconDark:n.imageIconLight,title:"图片"},uni_album:{icon:n.imageUniIcon,title:"图片"},uni_camera:{icon:n.cameraUniIcon,title:"拍照"}};e.Jt.watch(e.o.CONV,{currentConversation:e=>{s.value=e}});const d=e.computed((()=>i.isUniFrameWork?"camera"===l.imageSourceType?c.uni_camera:c.uni_album:c.web_album)),m=()=>{var n,o,a,r;i.isUniFrameWork?i.isWeChat&&(null==(n=e.i)?void 0:n.chooseMedia)?null==(o=e.i)||o.chooseMedia({count:1,mediaType:["image"],sizeType:["original","compressed"],sourceType:[l.imageSourceType],success:function(e){v(e)}}):null==(a=e.i)||a.chooseImage({count:1,sourceType:[l.imageSourceType],success:function(e){v(e)}}):(null==(r=t.value)?void 0:r.click)&&t.value.click()},p=e=>{var i,n;(null==(n=null==(i=null==e?void 0:e.target)?void 0:i.files)?void 0:n.length)<=0||(v(null==e?void 0:e.target),e.target.value="")},v=i=>{var n,r,u,l,t;if(!i)return;const c={to:(null==(r=null==(n=null==s?void 0:s.value)?void 0:n.groupProfile)?void 0:r.groupID)||(null==(l=null==(u=null==s?void 0:s.value)?void 0:u.userProfile)?void 0:l.userID),conversationType:null==(t=null==s?void 0:s.value)?void 0:t.type,payload:{file:i},needReadReceipt:o.isEnabledMessageReadReceiptGlobal()},d={conversation:s.value,payload:c.payload,messageType:e.qt.TYPES.MSG_IMAGE},m={offlinePushInfo:a.OfflinePushInfoManager.create(d)};e.Qt.sendImageMessage(c,m)};return(n,o)=>e.e({a:!e.unref(i.isUniFrameWork)},e.unref(i.isUniFrameWork)?{}:{b:e.o$1(p),c:e.n(!e.unref(i.isPC)&&"image-upload-h5")},{d:e.o$1(m),e:e.p({iconFile:e.unref(d).icon,title:e.unref(d).title,iconWidth:e.unref(i.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"25px":"18px",needDialog:!1})})}}),t=e._export_sfc(l,[["__scopeId","data-v-85be0b12"]]);wx.createComponent(t);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<toolbar-item-container wx:if="{{e}}" class="data-v-85be0b12" u-s="{{['d']}}" bindonIconClick="{{d}}" u-i="85be0b12-0" bind:__l="__l" u-p="{{e}}"><view wx:if="{{a}}" class="{{['data-v-85be0b12', 'image-upload', c]}}"><input class="data-v-85be0b12" ref="inputRef" title="图片" type="file" data-type="image" accept="image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp" bindchange="{{b}}"></input></view></toolbar-item-container>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-85be0b12,div.data-v-85be0b12,ul.data-v-85be0b12,ol.data-v-85be0b12,dt.data-v-85be0b12,dd.data-v-85be0b12,li.data-v-85be0b12,dl.data-v-85be0b12,h1.data-v-85be0b12,h2.data-v-85be0b12,h3.data-v-85be0b12,h4.data-v-85be0b12,p.data-v-85be0b12{margin:0;padding:0;font-style:normal}ol.data-v-85be0b12,ul.data-v-85be0b12,li.data-v-85be0b12{list-style:none}img.data-v-85be0b12{border:0;vertical-align:middle;pointer-events:none}body.data-v-85be0b12{color:#000;background:#fff}.clear.data-v-85be0b12{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-85be0b12{color:#000;text-decoration:none;cursor:pointer}a.data-v-85be0b12:hover{text-decoration:none}input.data-v-85be0b12,textarea.data-v-85be0b12{-webkit-user-select:auto;user-select:auto}input.data-v-85be0b12:focus,input.data-v-85be0b12:active,textarea.data-v-85be0b12:focus,textarea.data-v-85be0b12:active{outline:none}.chat-aside.data-v-85be0b12{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../config.js"),u=require("../../../utils/enableSampleTaskStatus.js"),a=require("../offlinePushInfoManager/index.js"),t=require("../offlinePushInfoManager/const.js");Math||(o+r+l+s+i)();const o=()=>"./image-upload/index.js",r=()=>"./video-upload/index.js",l=()=>"./words/index.js",i=()=>"./user-selector/index.js",s=()=>"./evaluate/CustomMessage.js",p=e.defineComponent({__name:"index",props:{displayType:{}},setup(o){const r=o,l=e.ref(),i=e.ref(!1),s=e.ref(""),p=e.ref(),f=e.ref(),v=e.ref([]),c=e.ref(!1),d=n.ChatConfig.getFeatureConfig(),I=e.ref(8),m=e.ref(0);e.ref(null);e.onMounted((()=>{e.Jt.watch(e.o.CUSTOM,{activeConversation:C})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CUSTOM,{activeConversation:C})}));const C=n=>{var u;n&&n!==(null==(u=l.value)?void 0:u.conversationID)&&(g(),d.InputImage&&d.InputVideo?I.value-=4:(d.InputImage||d.InputVideo)&&(I.value-=2),m.value=I.value,I.value-=v.value.length,1===I.value?c.value=d.InputEvaluation&&d.InputQuickReplies:I.value<1&&(c.value=d.InputEvaluation||d.InputQuickReplies),l.value=e.Jt.getData(e.o.CONV,"currentConversation"),i.value=n.startsWith(e.qt.TYPES.CONV_GROUP))},g=()=>{const a=n.ChatConfig.getChatType(),t={chatType:a};a===e.E.TUIChat.TYPE.CUSTOMER_SERVICE&&(t.filterVoice=!0,t.filterVideo=!0,u.enableSampleTaskStatus("customerService")),v.value=[...e.R.getExtensionList(e.E.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,t)].filter((e=>{var n;return"search"!==(null==(n=null==e?void 0:e.data)?void 0:n.name)||d.MessageSearch})),v.value.forEach((n=>{var u;const a=null==(u=null==n?void 0:n.data)?void 0:u.name;"voiceCall"===a?e.ss.reportFeature(203,"voice-call"):"videoCall"===a?e.ss.reportFeature(203,"video-call"):"quickRoom"===a&&e.ss.reportFeature(204)}))};const T=e=>{var n,u,o;null==(o=null==(u=null==(n=f.value)?void 0:n.listener)?void 0:u.onClicked)||o.call(u,{...e,callParams:{offlinePushInfo:a.OfflinePushInfoManager.getOfflinePushInfo(t.PUSH_SCENE.CALL)}}),f.value=null},h=()=>{f.value=null},S=e=>{c.value=I.value<=1&&!e};return(n,u)=>e.e({a:"emojiPicker"===r.displayType},"emojiPicker"===r.displayType?{}:e.e({b:e.unref(d).InputImage},e.unref(d).InputImage?{c:e.p({imageSourceType:"camera"})}:{},{d:e.unref(d).InputImage},e.unref(d).InputImage?{e:e.p({imageSourceType:"album"})}:{},{f:e.unref(d).InputVideo},e.unref(d).InputVideo?{g:e.p({videoSourceType:"album"})}:{},{h:e.unref(d).InputVideo},e.unref(d).InputVideo?{i:e.p({videoSourceType:"camera"})}:{},{j:e.unref(d).InputQuickReplies},e.unref(d).InputQuickReplies?{k:e.o$1(S)}:{},{l:e.unref(d).InputCustomMessage},e.unref(d).InputCustomMessage?{m:e.o$1(S)}:{}),{n:e.sr(p,"76f68da4-6",{k:"userSelectorRef"}),o:e.o$1(T),p:e.o$1(h),q:e.p({type:e.unref(s),currentConversation:e.unref(l),isGroup:e.unref(i)})})}});wx.createComponent(p);
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"image-upload": "./image-upload/index",
|
||||
"video-upload": "./video-upload/index",
|
||||
"words": "./words/index",
|
||||
"user-selector": "./user-selector/index",
|
||||
"custom-message": "./evaluate/CustomMessage"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['message-input-toolbar', 'message-input-toolbar-h5', 'message-input-toolbar-uni']}}"><view wx:if="{{a}}"></view><view wx:else class="barTool"><view class="barToolItem"><image-upload wx:if="{{b}}" u-i="76f68da4-0" bind:__l="__l" u-p="{{c}}"/></view><view class="barToolItem"><image-upload wx:if="{{d}}" u-i="76f68da4-1" bind:__l="__l" u-p="{{e}}"/></view><view class="barToolItem"><video-upload wx:if="{{f}}" u-i="76f68da4-2" bind:__l="__l" u-p="{{g}}"/></view><view class="barToolItem"><video-upload wx:if="{{h}}" u-i="76f68da4-3" bind:__l="__l" u-p="{{i}}"/></view><view class="barToolItem"><words wx:if="{{j}}" bindonDialogPopupShowOrHide="{{k}}" u-i="76f68da4-4" bind:__l="__l"/></view><view class="barToolItem"><custom-message wx:if="{{l}}" bindonDialogPopupShowOrHide="{{m}}" u-i="76f68da4-5" bind:__l="__l"/></view></view><user-selector wx:if="{{q}}" class="r" u-r="userSelectorRef" bindsubmit="{{o}}" bindcancel="{{p}}" u-i="76f68da4-6" bind:__l="__l" u-p="{{q}}"/></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),n=require("../../config.js");Math||(i+t)();const i=()=>"../../../common/Icon.js",t=()=>"../../../common/BottomPopup/index.js",r=e.defineComponent({__name:"index",props:{iconFile:{type:String,required:!0},title:{type:String,default:""},needDialog:{type:Boolean,default:!0},iconWidth:{type:String,default:"20px"},iconHeight:{type:String,default:"20px"},needBottomPopup:{type:Boolean,default:!1}},emits:["onIconClick","onDialogClose","onDialogShow"],setup(i,{expose:t,emit:r}){const a=i,l=r,u=e.ref("dark"===n.ChatConfig.getTheme()),s=e.ref(!1),c=e.ref(),d=e.ref(),f=()=>{l("onIconClick",d),o.isPC&&e.O.listen({domRefs:c.value,handler:m}),a.needDialog&&p(!s.value)},m=()=>{s.value=!1,l("onDialogClose",d)},p=e=>{if(s.value!==e)switch(s.value=e,e){case!0:l("onDialogShow",d);break;case!1:l("onDialogClose",d)}},g=()=>{s.value=!1};return t({toggleDialogDisplay:p}),(n,i)=>e.e({a:e.p({file:a.iconFile,width:a.iconWidth,height:a.iconHeight}),b:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-icon"),c:e.o$1(f),d:e.unref(o.isUniFrameWork)},e.unref(o.isUniFrameWork)?{e:e.t(a.title)}:{},{f:a.needBottomPopup&&!e.unref(o.isPC)},a.needBottomPopup&&!e.unref(o.isPC)?{g:e.o$1((()=>{})),h:e.o$1(g),i:e.p({show:e.unref(s)})}:{},{j:e.unref(s),k:e.n(e.unref(u)&&"toolbar-item-container-dialog-dark"),l:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5-dialog"),m:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-dialog"),n:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5"),o:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni")})}}),a=e._export_sfc(r,[["__scopeId","data-v-5e68d98a"]]);wx.createComponent(a);
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon",
|
||||
"bottom-popup": "../../../common/BottomPopup/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view ref="toolbarItemRef" class="{{['data-v-5e68d98a', 'toolbar-item-container', n, o]}}"><view class="{{['data-v-5e68d98a', 'toolbar-item-container-icon', b]}}" bindtap="{{c}}"><icon wx:if="{{a}}" class="icon data-v-5e68d98a" u-i="5e68d98a-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{d}}" class="{{['data-v-5e68d98a', 'toolbar-item-container-uni-title']}}">{{e}}</view><view hidden="{{!j}}" ref="dialogRef" class="{{['data-v-5e68d98a', 'toolbar-item-container-dialog', k, l, m]}}"><bottom-popup wx:if="{{f}}" u-s="{{['d']}}" class="toolbar-bottom-popup data-v-5e68d98a" catchtouchmove="{{g}}" bindonClose="{{h}}" u-i="5e68d98a-1" bind:__l="__l" u-p="{{i}}"><slot/></bottom-popup><slot wx:else/></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-5e68d98a,div.data-v-5e68d98a,ul.data-v-5e68d98a,ol.data-v-5e68d98a,dt.data-v-5e68d98a,dd.data-v-5e68d98a,li.data-v-5e68d98a,dl.data-v-5e68d98a,h1.data-v-5e68d98a,h2.data-v-5e68d98a,h3.data-v-5e68d98a,h4.data-v-5e68d98a,p.data-v-5e68d98a{margin:0;padding:0;font-style:normal}ol.data-v-5e68d98a,ul.data-v-5e68d98a,li.data-v-5e68d98a{list-style:none}img.data-v-5e68d98a{border:0;vertical-align:middle;pointer-events:none}body.data-v-5e68d98a{color:#000;background:#fff}.clear.data-v-5e68d98a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-5e68d98a{color:#000;text-decoration:none;cursor:pointer}a.data-v-5e68d98a:hover{text-decoration:none}input.data-v-5e68d98a,textarea.data-v-5e68d98a{-webkit-user-select:auto;user-select:auto}input.data-v-5e68d98a:focus,input.data-v-5e68d98a:active,textarea.data-v-5e68d98a:focus,textarea.data-v-5e68d98a:active{outline:none}.chat-aside.data-v-5e68d98a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.toolbar-item-container-dialog.data-v-5e68d98a{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1)}.toolbar-item-container.data-v-5e68d98a{position:relative}.toolbar-item-container-icon.data-v-5e68d98a{padding:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.toolbar-item-container-dialog.data-v-5e68d98a{z-index:5;position:absolute;background:#fff;box-shadow:0 2px 4px -3px rgba(32,77,141,.03),0 6px 10px 1px rgba(32,77,141,.06),0 3px 14px 2px rgba(32,77,141,.05);width:-webkit-fit-content;width:fit-content;height:-webkit-fit-content;height:fit-content;bottom:35px}.toolbar-item-container-dialog-dark.data-v-5e68d98a{background:#22262e;box-shadow:0 8px 40px rgba(23,25,31,.6),0 4px 12px rgba(23,25,31,.8)}.toolbar-item-container-h5-dialog.data-v-5e68d98a{position:static!important;width:100%;box-shadow:none}.toolbar-item-container-uni.data-v-5e68d98a{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:static}.toolbar-item-container-uni-icon.data-v-5e68d98a{background:#fff;border-radius:15px;width:60px;height:60px;padding:0;display:flex;justify-content:center;align-items:center}.toolbar-item-container-uni-title.data-v-5e68d98a{font-size:14px;color:#8f959d}.toolbar-item-container-uni-dialog.data-v-5e68d98a{position:absolute!important;background:transparent;left:-10px;bottom:-5px}.toolbar-item-container-uni-dialog .toolbar-bottom-popup.data-v-5e68d98a{position:-webkit-sticky;position:sticky}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const u=require("../../../../utils/env.js");Math||(o+l)();const l=()=>"../../../common/Dialog/index.js",o=()=>"../../../common/Transfer/index.js",r=e.defineComponent({__name:"index",props:{type:{type:String,default:""},currentConversation:{type:Object,default:()=>({})},isGroup:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(l,{expose:o,emit:r}){const t=l,a=r,n=e.ref(!1),i=e.ref(""),s=e.ref([]),v=e.ref([]),d=e.ref(""),c={voiceCall:"发起群语音",videoCall:"发起群视频"},p=e.computed((()=>c[t.type]?c[t.type]:""));e.Zt.getUserProfile().then((e=>{var u;(null==(u=null==e?void 0:e.data)?void 0:u.userID)&&(d.value=e.data.userID)})),e.watch((()=>{var e;return[null==(e=null==t?void 0:t.currentConversation)?void 0:e.conversationID,n.value]}),((u,l)=>{u&&u!==l&&(t.isGroup&&n.value?(i.value=t.currentConversation.groupProfile.groupID,e.es.getGroupMemberList({groupID:i.value}).then((e=>{var u,l;s.value=null==(l=null==(u=null==e?void 0:e.data)?void 0:u.memberList)?void 0:l.filter((e=>(null==e?void 0:e.userID)!==d.value)),v.value=s.value}))):(i.value="",s.value=[],v.value=s.value))}),{immediate:!0});const f=e=>{var u;const l=null==(u=s.value)?void 0:u.filter((u=>(null==u?void 0:u.userID)===e));v.value=(null==l?void 0:l.length)?l:s.value},m=e=>{const u=[];null==e||e.forEach((e=>{(null==e?void 0:e.userID)&&u.push(e.userID)})),"voiceCall"===t.type?a("submit",{userIDList:u,groupID:i.value,type:1}):"videoCall"===t.type&&a("submit",{userIDList:u,groupID:i.value,type:2}),v.value=s.value,g(!1)},D=()=>{v.value=s.value,a("cancel"),g(!1)},g=e=>{n.value=e};return o({toggleShow:g}),(l,o)=>({a:e.o$1(f),b:e.o$1(m),c:e.o$1(D),d:e.p({isSearch:!0,title:e.unref(p),list:e.unref(v),isH5:!e.unref(u.isPC),isRadio:!1}),e:e.o$1(g),f:e.p({show:e.unref(n),isH5:!e.unref(u.isPC),isHeaderShow:!1,isFooterShow:!1,background:!1})})}});wx.createComponent(r);
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"dialog": "../../../common/Dialog/index",
|
||||
"transfer": "../../../common/Transfer/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<dialog wx:if="{{f}}" u-s="{{['d']}}" bindupdateShow="{{e}}" u-i="e0d32194-0" bind:__l="__l" u-p="{{f}}"><transfer wx:if="{{d}}" bindsearch="{{a}}" bindsubmit="{{b}}" bindcancel="{{c}}" u-i="e0d32194-1,e0d32194-0" bind:__l="__l" u-p="{{d}}"/></dialog>
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),i=require("../../../../../common/assets.js"),n=require("../../utils/utils.js"),r=require("../../offlinePushInfoManager/index.js"),a=require("../../config.js");Math||u();const u=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{videoSourceType:{type:String,default:"album"}},setup(u){const l=u,s=e.ref(),t=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{t.value=e}});const c=()=>{if(!o.isUniFrameWork){return"dark"===a.ChatConfig.getTheme()?i.videoIconDark:i.videoIconLight}switch(l.videoSourceType){case"album":default:return i.videoUniIcon;case"camera":return i.cameraUniIcon}},d=()=>{var i,n,r,a,u;o.isUniFrameWork?o.isWeChat&&(null==(i=e.i)?void 0:i.chooseMedia)?null==(n=e.i)||n.chooseMedia({mediaType:["video"],count:1,sourceType:[l.videoSourceType],maxDuration:60,success:function(e){p(e)}}):null==(r=e.i)||r.chooseVideo({count:1,sourceType:[l.videoSourceType],compressed:!1,success:function(e){p(e)}}):(null==(a=null==s?void 0:s.value)?void 0:a.click)&&(null==(u=null==s?void 0:s.value)||u.click())},v=e=>{var o,i;(null==(i=null==(o=null==e?void 0:e.target)?void 0:o.files)?void 0:i.length)<=0||(p(null==e?void 0:e.target),e.target.value="")},p=o=>{var i,a,u,l,s;if(!o)return;const c={to:(null==(a=null==(i=null==t?void 0:t.value)?void 0:i.groupProfile)?void 0:a.groupID)||(null==(l=null==(u=null==t?void 0:t.value)?void 0:u.userProfile)?void 0:l.userID),conversationType:null==(s=null==t?void 0:t.value)?void 0:s.type,payload:{file:o},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()},d={conversation:t.value,payload:c.payload,messageType:e.qt.TYPES.MSG_VIDEO},v={offlinePushInfo:r.OfflinePushInfoManager.create(d)};e.Qt.sendVideoMessage(c,v)};return(i,n)=>({a:e.o$1(v),b:e.n(!e.unref(o.isPC)&&"video-upload-h5"),c:e.o$1(d),d:e.p({iconFile:c(),title:o.isUniFrameWork&&"camera"===l.videoSourceType?"录制":"视频",needDialog:!1,iconWidth:e.unref(o.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(o.isUniFrameWork)?"album"===l.videoSourceType?"20px":"25px":"18px"})})}}),s=e._export_sfc(l,[["__scopeId","data-v-d124a627"]]);wx.createComponent(s);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<toolbar-item-container wx:if="{{d}}" class="data-v-d124a627" u-s="{{['d']}}" bindonIconClick="{{c}}" u-i="d124a627-0" bind:__l="__l" u-p="{{d}}"><view class="{{['data-v-d124a627', 'video-upload', b]}}"><input class="data-v-d124a627" ref="inputRef" title="视频" type="file" data-type="video" accept="video/*" bindchange="{{a}}"></input></view></toolbar-item-container>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-d124a627,div.data-v-d124a627,ul.data-v-d124a627,ol.data-v-d124a627,dt.data-v-d124a627,dd.data-v-d124a627,li.data-v-d124a627,dl.data-v-d124a627,h1.data-v-d124a627,h2.data-v-d124a627,h3.data-v-d124a627,h4.data-v-d124a627,p.data-v-d124a627{margin:0;padding:0;font-style:normal}ol.data-v-d124a627,ul.data-v-d124a627,li.data-v-d124a627{list-style:none}img.data-v-d124a627{border:0;vertical-align:middle;pointer-events:none}body.data-v-d124a627{color:#000;background:#fff}.clear.data-v-d124a627{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-d124a627{color:#000;text-decoration:none;cursor:pointer}a.data-v-d124a627:hover{text-decoration:none}input.data-v-d124a627,textarea.data-v-d124a627{-webkit-user-select:auto;user-select:auto}input.data-v-d124a627:focus,input.data-v-d124a627:active,textarea.data-v-d124a627:focus,textarea.data-v-d124a627:active{outline:none}.chat-aside.data-v-d124a627{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../../common/assets.js"),r=require("../../utils/wordsList.js"),n=require("../../utils/utils.js"),i=require("../../../../utils/env.js"),s=require("../../config.js");Math||t();const t=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:l}){const u="dark"===s.ChatConfig.getTheme()?o.wordsIconDark:o.wordsIconLight,a=l,d=e.ref(),c=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{d.value=e}});const p=()=>{var e;null==(e=null==c?void 0:c.value)||e.toggleDialogDisplay(!1)},f=()=>{a("onDialogPopupShowOrHide",!0)},v=()=>{a("onDialogPopupShowOrHide",!1)};return(o,s)=>e.e({a:e.t(e.unref(e.Wt).t("Words.常用语-快捷回复工具")),b:e.n(!e.unref(i.isPC)&&"words-h5-header-title"),c:!e.unref(i.isPC)},e.unref(i.isPC)?{}:{d:e.n(!e.unref(i.isPC)&&"words-h5-header-close"),e:e.o$1(p)},{f:e.n(!e.unref(i.isPC)&&"words-h5-header"),g:e.f(e.unref(r.wordsList),((o,r,i)=>({a:e.t(e.unref(e.Wt).t(`Words.${o.value}`)),b:r,c:e.o$1((r=>(o=>{var r,i,s,t,l,u;const a={to:(null==(i=null==(r=null==d?void 0:d.value)?void 0:r.groupProfile)?void 0:i.groupID)||(null==(t=null==(s=null==d?void 0:d.value)?void 0:s.userProfile)?void 0:t.userID),conversationType:null==(l=null==d?void 0:d.value)?void 0:l.type,payload:{text:e.Wt.t(`Words.${o.value}`)},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()};e.Qt.sendTextMessage(a),null==(u=null==c?void 0:c.value)||u.toggleDialogDisplay(!1)})(o)),r)}))),h:e.n(!e.unref(i.isPC)&&"words-h5-list-item"),i:e.n(!e.unref(i.isPC)&&"words-h5-list"),j:e.n(!e.unref(i.isPC)&&"words-h5"),k:e.sr(c,"1cf1abee-0",{k:"container"}),l:e.o$1(f),m:e.o$1(v),n:e.p({iconFile:e.unref(u),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(i.isUniFrameWork)?"26px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"26px":"20px"})})}}),u=e._export_sfc(l,[["__scopeId","data-v-1cf1abee"]]);wx.createComponent(u);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<toolbar-item-container wx:if="{{n}}" class="r data-v-1cf1abee" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{l}}" bindonDialogClose="{{m}}" u-i="1cf1abee-0" bind:__l="__l" u-p="{{n}}"><view class="{{['data-v-1cf1abee', 'words', j]}}"><view class="{{['data-v-1cf1abee', 'words-header', f]}}"><label class="{{['data-v-1cf1abee', 'words-header-title', b]}}">{{a}}</label><label wx:if="{{c}}" class="{{['data-v-1cf1abee', 'words-header-close', d]}}" bindtap="{{e}}"> 关闭 </label></view><view class="{{['data-v-1cf1abee', 'words-list', i]}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="b" class="{{['data-v-1cf1abee', 'words-list-item', h]}}" bindtap="{{item.c}}">{{item.a}}</view></view></view></toolbar-item-container>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-1cf1abee,div.data-v-1cf1abee,ul.data-v-1cf1abee,ol.data-v-1cf1abee,dt.data-v-1cf1abee,dd.data-v-1cf1abee,li.data-v-1cf1abee,dl.data-v-1cf1abee,h1.data-v-1cf1abee,h2.data-v-1cf1abee,h3.data-v-1cf1abee,h4.data-v-1cf1abee,p.data-v-1cf1abee{margin:0;padding:0;font-style:normal}ol.data-v-1cf1abee,ul.data-v-1cf1abee,li.data-v-1cf1abee{list-style:none}img.data-v-1cf1abee{border:0;vertical-align:middle;pointer-events:none}body.data-v-1cf1abee{color:#000;background:#fff}.clear.data-v-1cf1abee{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-1cf1abee{color:#000;text-decoration:none;cursor:pointer}a.data-v-1cf1abee:hover{text-decoration:none}input.data-v-1cf1abee,textarea.data-v-1cf1abee{-webkit-user-select:auto;user-select:auto}input.data-v-1cf1abee:focus,input.data-v-1cf1abee:active,textarea.data-v-1cf1abee:focus,textarea.data-v-1cf1abee:active{outline:none}.chat-aside.data-v-1cf1abee{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.words.data-v-1cf1abee{background-color:#fff}.words-header-close.data-v-1cf1abee{color:#3370ff}.words.data-v-1cf1abee{z-index:5;width:315px;padding:12px;display:flex;flex-direction:column;width:19.13rem;height:12.44rem;overflow-y:auto}.words-header.data-v-1cf1abee{display:flex;justify-content:space-between;font-size:14px;font-weight:500}.words-list.data-v-1cf1abee{flex:1;display:flex;flex-direction:column;cursor:pointer}.words-list-item.data-v-1cf1abee{cursor:pointer;padding:4px 0;font-size:14px;color:#50545c;line-height:18px}.words-list-item.data-v-1cf1abee:hover{color:#006eff}.words-h5.data-v-1cf1abee{width:100%;box-sizing:border-box;max-height:80vh;height:-webkit-fit-content;height:fit-content;overflow:hidden;display:flex;flex-direction:column}.words-h5-header-title.data-v-1cf1abee{font-size:18px;line-height:40px}.words-h5-list.data-v-1cf1abee{flex:1;overflow-y:scroll}.words-h5-list-item.data-v-1cf1abee{cursor:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;padding:12px 0;font-size:16px;color:#50545c;line-height:18px;border-bottom:1px solid #eeeeee}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),t=require("../../../utils/env.js"),o=require("../utils/sendMessage.js"),u=require("../config.js");Math||(i+l+a+s+r)();const l=()=>"./message-input-editor.js",a=()=>"./message-input-at/index.js",i=()=>"./message-input-audio.js",r=()=>"./message-input-quote/index.js",s=()=>"../../common/Icon.js",p=e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(l,{expose:a,emit:i}){const r=i,s=l,p=e.ref(),d=e.ref(),f=e.ref(),c=e.ref(!1),v=e.ref("editor"),m=u.ChatConfig.getFeatureConfig(),g=e.ref(m.InputVoice);e.ref(m.InputEmoji||m.InputStickers);const y=e.ref(m.InputImage||m.InputVideo||m.InputEvaluation||m.InputQuickReplies);function T(e){v.value=e,"audio"===e&&r("changeToolbarDisplayType","none")}e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:I}),e.Jt.watch(e.o.CHAT,{quoteMessage:q})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:I}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:q})})),e.watch((()=>s.inputToolbarDisplayType),(e=>{"none"!==e&&T("editor")}));const b=(e,n)=>{o.sendTyping(e,n)},h=e=>{var n;null==(n=null==d?void 0:d.value)||n.toggleAtList(e)},j=()=>{t.isH5&&r("changeToolbarDisplayType","none")},C=e=>{var n,t;(null==(n=null==p?void 0:p.value)?void 0:n.insertAt)&&(null==(t=null==p?void 0:p.value)||t.insertAt(e))},A=()=>{var e,n;(null==(e=null==p?void 0:p.value)?void 0:e.blur)&&(null==(n=null==p?void 0:p.value)||n.blur())};function I(n){var t;f.value=n,c.value=(null==(t=f.value)?void 0:t.type)===e.qt.TYPES.CONV_GROUP}function q(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&T("editor")}return a({insertEmoji:e=>{var n,t;(null==(n=null==p?void 0:p.value)?void 0:n.addEmoji)&&(null==(t=null==p?void 0:p.value)||t.addEmoji(e))},reEdit:e=>{var n,t;null==(n=null==p?void 0:p.value)||n.resetEditor(),null==(t=null==p?void 0:p.value)||t.setEditorContent(e)}}),(o,u)=>e.e({a:(e.unref(t.isWeChat)||e.unref(t.isApp))&&e.unref(g)},(e.unref(t.isWeChat)||e.unref(t.isApp))&&e.unref(g)?{b:"audio"===e.unref(v)?1:"",c:e.o$1(T),d:e.p({isEnableAudio:"audio"===e.unref(v)})}:{},{e:e.sr(p,"c73567e1-1",{k:"editor"}),f:"editor"===e.unref(v),g:e.o$1(b),h:e.o$1(h),i:e.o$1(j),j:e.p({placeholder:s.placeholder,isMuted:s.isMuted,muteText:s.muteText,enableInput:s.enableInput,enableAt:s.enableAt,enableTyping:s.enableTyping,isGroup:e.unref(c)}),k:s.enableAt},s.enableAt?{l:e.sr(d,"c73567e1-2",{k:"messageInputAtRef"}),m:e.o$1(C),n:e.o$1(A)}:{},{o:e.unref(y)},e.unref(y)?{p:e.o$1((e=>{r("changeToolbarDisplayType","tools")})),q:e.p({file:e.unref(n.moreIcon),size:"23px",hotAreaSize:"3px"})}:{},{r:e.p({displayType:e.unref(v)}),s:e.n(!e.unref(t.isPC)&&"message-input-h5")})}}),d=e._export_sfc(p,[["__scopeId","data-v-c73567e1"]]);wx.createComponent(d);
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"message-input-editor": "./message-input-editor",
|
||||
"message-input-at": "./message-input-at/index",
|
||||
"message-input-audio": "./message-input-audio",
|
||||
"message-quote": "./message-input-quote/index",
|
||||
"icon": "../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-c73567e1', 'message-input', s]}}"><view class="audio-main-content-line data-v-c73567e1"><message-input-audio wx:if="{{a}}" class="{{['data-v-c73567e1', b && 'message-input-wx-audio-open']}}" bindchangeDisplayType="{{c}}" u-i="c73567e1-0" bind:__l="__l" u-p="{{d}}"/><message-input-editor wx:if="{{j}}" data-c-h="{{!f}}" u-r="editor" class="message-input-editor r data-v-c73567e1" bindonTyping="{{g}}" bindonAt="{{h}}" bindonFocus="{{i}}" u-i="c73567e1-1" bind:__l="__l" u-p="{{j}}"/><message-input-at wx:if="{{k}}" class="r data-v-c73567e1" u-r="messageInputAtRef" bindinsertAt="{{m}}" bindonAtListOpen="{{n}}" u-i="c73567e1-2" bind:__l="__l"/><icon wx:if="{{o}}" class="icon icon-more data-v-c73567e1" bindonClick="{{p}}" u-i="c73567e1-3" bind:__l="__l" u-p="{{q}}"/></view><view class="data-v-c73567e1"><message-quote wx:if="{{r}}" class="data-v-c73567e1" style="{{'min-width:' + 0}}" u-i="c73567e1-4" bind:__l="__l" u-p="{{r}}"/></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-c73567e1,div.data-v-c73567e1,ul.data-v-c73567e1,ol.data-v-c73567e1,dt.data-v-c73567e1,dd.data-v-c73567e1,li.data-v-c73567e1,dl.data-v-c73567e1,h1.data-v-c73567e1,h2.data-v-c73567e1,h3.data-v-c73567e1,h4.data-v-c73567e1,p.data-v-c73567e1{margin:0;padding:0;font-style:normal}ol.data-v-c73567e1,ul.data-v-c73567e1,li.data-v-c73567e1{list-style:none}img.data-v-c73567e1{border:0;vertical-align:middle;pointer-events:none}body.data-v-c73567e1{color:#000;background:#fff}.clear.data-v-c73567e1{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-c73567e1{color:#000;text-decoration:none;cursor:pointer}a.data-v-c73567e1:hover{text-decoration:none}input.data-v-c73567e1,textarea.data-v-c73567e1{-webkit-user-select:auto;user-select:auto}input.data-v-c73567e1:focus,input.data-v-c73567e1:active,textarea.data-v-c73567e1:focus,textarea.data-v-c73567e1:active{outline:none}.chat-aside.data-v-c73567e1{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.data-v-c73567e1:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.message-input.data-v-c73567e1{position:relative;display:flex;flex-direction:column;border:none;overflow:hidden;background:#ebf0f6}.message-input-h5.data-v-c73567e1{padding:10px 10px 15px}.message-input-editor.data-v-c73567e1{flex:1;display:flex}.message-input .icon.data-v-c73567e1{margin-left:3px}.message-input-wx-audio-open.data-v-c73567e1{flex:1}.audio-main-content-line.data-v-c73567e1{display:flex;flex-direction:row;align-items:center}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../utils/env.js");Math||l();const l=()=>"../../../common/BottomPopup/index.js",u=e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(l,{expose:u,emit:a}){const s=a,n=e.ref(),i=e.ref(),o=e.ref(!1),v=e.ref(),r=e.ref(),d=e.ref(),c=e.ref(!1),f=e.ref({left:0,top:0}),p=e.ref(0),m=e.ref(""),h={userID:e.qt.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};e.Jt.watch(e.o.CONV,{currentConversationID:t=>{var l,u;if(t!==m.value)if(m.value=t,v.value=[],r.value=[],d.value=[],c.value=!1,e.Jt.update(e.o.CUSTOM,"memberList",v.value),null==(l=null==m?void 0:m.value)?void 0:l.startsWith("GROUP")){c.value=!0;const t=null==(u=null==m?void 0:m.value)?void 0:u.substring(5);e.es.switchGroup(t)}else e.es.switchGroup("")}}),e.Jt.watch(e.o.GRP,{currentGroupMemberList:t=>{v.value=t,r.value=[h,...v.value],d.value=r.value,e.Jt.update(e.o.CUSTOM,"memberList",v.value)}});const g=e=>{c.value&&(o.value=e,o.value&&s("onAtListOpen"))};e.i.toggleAtList=g,e.i.handleAtListPosition=e=>{f.value=e},e.i.setCurrentSelectIndex=e=>{var t,l;p.value=e,null==(l=null==(t=i.value)?void 0:t[p.value])||l.scrollIntoView(!1)},e.i.setShowMemberList=e=>{d.value=e},u({toggleAtList:g}),e.watch((()=>[f.value,null==n?void 0:n.value]),(()=>{var e;!t.isH5&&(null==n?void 0:n.value)&&(null==(e=null==n?void 0:n.value)?void 0:e.style)&&(n.value.style.left=f.value.left+"px",n.value.style.top=f.value.top-n.value.clientHeight+"px")}));const C=()=>{o.value=!1,d.value=r.value,f.value={left:0,top:0}},I=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(l,u)=>e.e({a:!e.unref(t.isPC)},e.unref(t.isPC)?{}:{b:e.t(e.unref(e.Wt).t("TUIChat.选择提醒的人"))},{c:e.f(e.unref(d),((l,u,a)=>({a:I(l),b:e.t(b(l)),c:u,d:e.n(u===e.unref(p)&&"selected"),e:e.o$1((l=>(l=>{var u;if(t.isPC&&e.i.selectItem)e.i.selectItem(l);else if(null==(u=null==d?void 0:d.value)?void 0:u.length){const e=null==d?void 0:d.value[l];s("insertAt",{id:null==e?void 0:e.userID,label:(null==e?void 0:e.nick)||(null==e?void 0:e.userID)})}C()})(u)),u)}))),d:e.n(e.unref(t.isPC)?"message-input-at":"message-input-at-h5"),e:e.o$1(C),f:e.p({show:e.unref(o)})})}}),a=e._export_sfc(u,[["__scopeId","data-v-08dbad30"]]);wx.createComponent(a);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"bottom-popup": "../../../common/BottomPopup/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<bottom-popup wx:if="{{f}}" class="data-v-08dbad30" u-s="{{['d']}}" bindonClose="{{e}}" u-i="08dbad30-0" bind:__l="__l" u-p="{{f}}"><view ref="MessageInputAt" class="{{['data-v-08dbad30', d]}}"><view ref="dialog" class="member-list data-v-08dbad30"><view wx:if="{{a}}" class="member-list-title data-v-08dbad30"><label class="title data-v-08dbad30">{{b}}</label></view><view class="member-list-box data-v-08dbad30"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" ref="memberListItems" class="{{['member-list-box-body', 'data-v-08dbad30', item.d]}}" bindtap="{{item.e}}"><image class="member-list-box-body-avatar data-v-08dbad30" src="{{item.a}}"></image><label class="member-list-box-body-name data-v-08dbad30">{{item.b}}</label></view></view></view></view></bottom-popup>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-08dbad30,div.data-v-08dbad30,ul.data-v-08dbad30,ol.data-v-08dbad30,dt.data-v-08dbad30,dd.data-v-08dbad30,li.data-v-08dbad30,dl.data-v-08dbad30,h1.data-v-08dbad30,h2.data-v-08dbad30,h3.data-v-08dbad30,h4.data-v-08dbad30,p.data-v-08dbad30{margin:0;padding:0;font-style:normal}ol.data-v-08dbad30,ul.data-v-08dbad30,li.data-v-08dbad30{list-style:none}img.data-v-08dbad30{border:0;vertical-align:middle;pointer-events:none}body.data-v-08dbad30{color:#000;background:#fff}.clear.data-v-08dbad30{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-08dbad30{color:#000;text-decoration:none;cursor:pointer}a.data-v-08dbad30:hover{text-decoration:none}input.data-v-08dbad30,textarea.data-v-08dbad30{-webkit-user-select:auto;user-select:auto}input.data-v-08dbad30:focus,input.data-v-08dbad30:active,textarea.data-v-08dbad30:focus,textarea.data-v-08dbad30:active{outline:none}.chat-aside.data-v-08dbad30{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-at.data-v-08dbad30{position:fixed;max-width:15rem;max-height:10rem;overflow:hidden auto;background:#fff;box-shadow:0 .06rem .63rem rgba(2,16,43,.15);border-radius:.13rem}.member-list-box-header.data-v-08dbad30{height:2.5rem;padding-top:5px;cursor:pointer}.member-list-box-header.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box span.data-v-08dbad30{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#000;letter-spacing:0;padding:5px}.member-list-box-body.data-v-08dbad30{height:30px;cursor:pointer;display:flex;align-items:center}.member-list-box-body .selected.data-v-08dbad30,.member-list-box-body.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box-body-name.data-v-08dbad30{overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis}.member-list-box-body-avatar.data-v-08dbad30{width:20px;height:20px;padding-left:10px}.member-list-box .selected.data-v-08dbad30{background:rgba(0,110,255,.1)}.message-input-at-h5 .member-list.data-v-08dbad30{height:auto;max-height:500px;width:100%;max-width:100%;background:#fff;border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden}.message-input-at-h5 .member-list-title.data-v-08dbad30{height:-webkit-fit-content;height:fit-content;width:calc(100% - 30px);text-align:center;vertical-align:middle;padding:15px}.message-input-at-h5 .member-list-title .title.data-v-08dbad30{vertical-align:middle;display:inline-block;font-size:16px}.message-input-at-h5 .member-list-title .close.data-v-08dbad30{vertical-align:middle;position:absolute;right:10px;display:inline-block}.message-input-at-h5 .member-list-box.data-v-08dbad30{flex:1;overflow-y:scroll}.message-input-at-h5 .member-list-box-body.data-v-08dbad30{padding:10px}.message-input-at-h5 .member-list-box-body img.data-v-08dbad30{width:26px;height:26px}.message-input-at-h5 .member-list-box-body span.data-v-08dbad30{font-size:14px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../common/Toast/index.js"),t=require("../../../utils/lodash.js"),u=require("../utils/utils.js"),i=require("../../common/Toast/type.js");Math||a();const a=()=>"../../common/Icon.js",r=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(a,{emit:r}){var l;const s=r,c=a;let d,f=0,v=!1,p=-1,m=!1,h=!1;const g=null==(l=e.i)?void 0:l.getRecorderManager(),T=e.ref(!1),y=e.ref("按住说话"),I=e.ref("正在录音"),j=e.ref(!1),C=e.ref(),E={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function b(){s("changeDisplayType",c.isEnableAudio?"editor":"audio")}function A(e){C.value=e}function R(){q(),$()}function $(){T.value=!1,y.value="按住说话",I.value="正在录音"}function q(e){clearInterval(d),d=void 0,f=0,p=-1,v=!1,(null==e?void 0:e.hasError)||g.stop()}function S(){m&&(h=!0)}function _(){m=!0,g.start(E)}e.onMounted((()=>{g.onStart(z),g.onStop(O),g.onError(P),e.Jt.watch(e.o.CONV,{currentConversation:A})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:A})}));const M=t.throttle((function(e){if(T.value){const n=e.changedTouches[e.changedTouches.length-1].pageY;p<0&&(p=n);const o=p-n;o>150?(y.value="抬起取消",I.value="松开手指 取消发送",v=!0):o>50?(y.value="抬起发送",I.value="继续上滑可取消",v=!1):(y.value="抬起发送",I.value="正在录音",v=!1)}}),100);function x(){m=!1,g.stop()}function z(){if(!m)return h=!0,void g.stop();d=setInterval((()=>{f+=1}),1e3),y.value="抬起发送",T.value=!0}function O(n){var t,a,r,l,s,c;if(h)return h=!1,void R();if(v||!T.value)return void R();clearInterval(d);const p=n.tempFilePath,m=n.duration?n.duration:1e3*f,g=n.fileSize?n.fileSize:48*f/8*1024;if(m<1e3)o.Toast({message:"录音时间太短",type:i.TOAST_TYPE.NORMAL,duration:1500});else{const n={to:(null==(a=null==(t=null==C?void 0:C.value)?void 0:t.groupProfile)?void 0:a.groupID)||(null==(l=null==(r=null==C?void 0:C.value)?void 0:r.userProfile)?void 0:l.userID),conversationType:null==(s=null==C?void 0:C.value)?void 0:s.type,payload:{file:{duration:m,tempFilePath:p,fileSize:g}},needReadReceipt:u.isEnabledMessageReadReceiptGlobal()};null==(c=e.Qt)||c.sendAudioMessage(n)}R()}function P(){q({hasError:!0}),$()}return(o,t)=>e.e({a:e.o$1(b),b:e.p({file:e.unref(n.audioIcon$1),size:"23px",hotAreaSize:"3px"}),c:c.isEnableAudio},c.isEnableAudio?e.e({d:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(y)}`)),e:e.unref(T)},e.unref(T)?{f:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(I)}`))}:{},{g:e.o$1(S),h:e.o$1(_),i:e.o$1(((...n)=>e.unref(M)&&e.unref(M)(...n))),j:e.o$1(x)}):{},{k:e.unref(j)?1:""})}}),l=e._export_sfc(r,[["__scopeId","data-v-32f4d289"]]);wx.createComponent(l);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-32f4d289', 'message-input-audio', k && 'message-input-audio-open']}}"><icon wx:if="{{b}}" class="audio-message-icon data-v-32f4d289" bindonClick="{{a}}" u-i="32f4d289-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="audio-input-touch-bar data-v-32f4d289" bindtouchstart="{{g}}" bindlongpress="{{h}}" bindtouchmove="{{i}}" bindtouchend="{{j}}"><label class="data-v-32f4d289">{{d}}</label><view wx:if="{{e}}" class="record-modal data-v-32f4d289"><view class="red-mask data-v-32f4d289"/><view class="float-element moving-slider data-v-32f4d289"/><view class="float-element modal-title data-v-32f4d289">{{f}}</view></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-32f4d289,div.data-v-32f4d289,ul.data-v-32f4d289,ol.data-v-32f4d289,dt.data-v-32f4d289,dd.data-v-32f4d289,li.data-v-32f4d289,dl.data-v-32f4d289,h1.data-v-32f4d289,h2.data-v-32f4d289,h3.data-v-32f4d289,h4.data-v-32f4d289,p.data-v-32f4d289{margin:0;padding:0;font-style:normal}ol.data-v-32f4d289,ul.data-v-32f4d289,li.data-v-32f4d289{list-style:none}img.data-v-32f4d289{border:0;vertical-align:middle;pointer-events:none}body.data-v-32f4d289{color:#000;background:#fff}.clear.data-v-32f4d289{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-32f4d289{color:#000;text-decoration:none;cursor:pointer}a.data-v-32f4d289:hover{text-decoration:none}input.data-v-32f4d289,textarea.data-v-32f4d289{-webkit-user-select:auto;user-select:auto}input.data-v-32f4d289:focus,input.data-v-32f4d289:active,textarea.data-v-32f4d289:focus,textarea.data-v-32f4d289:active{outline:none}.chat-aside.data-v-32f4d289{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-audio.data-v-32f4d289{display:flex;flex-direction:row;align-items:center}.message-input-audio .audio-message-icon.data-v-32f4d289{margin-right:3px}.message-input-audio .audio-input-touch-bar.data-v-32f4d289{height:39px;flex:1;border-radius:10px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.message-input-audio .audio-input-touch-bar .record-modal.data-v-32f4d289{height:300rpx;width:60vw;background-color:rgba(0,0,0,.8);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;border-radius:24rpx;display:flex;flex-direction:column;overflow:hidden}.message-input-audio .audio-input-touch-bar .record-modal .red-mask.data-v-32f4d289{position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,62,72,.5);opacity:0;transition:opacity 10ms linear;z-index:1}.message-input-audio .audio-input-touch-bar .record-modal .moving-slider.data-v-32f4d289{margin:10vw;width:40rpx;height:16rpx;border-radius:4rpx;background-color:#006fff;animation:loading-32f4d289 1s ease-in-out infinite alternate;z-index:2}.message-input-audio .audio-input-touch-bar .record-modal .float-element.data-v-32f4d289{position:relative;z-index:2}@keyframes loading-32f4d289{0%{transform:translate(0)}to{transform:translate(30vw);background-color:#f5634a;width:40px}}.message-input-audio .audio-input-touch-bar .modal-title.data-v-32f4d289{text-align:center;color:#fff}.message-input-audio-open.data-v-32f4d289{flex:1}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../utils/conversationDraft.js"),l=require("../emoji-config/index.js"),n=require("../../../utils/env.js"),a=require("../utils/sendMessage.js"),o=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(o,{expose:u,emit:i}){const r=o,s=i,d=e.ref("");e.ref();const v=e.ref(!0),c=e.ref(!0),f=new Map,p=e.ref(),m=e.ref(""),g=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:T}),e.Jt.watch(e.o.CHAT,{quoteMessage:b}),e.index.$on("insert-emoji",(e=>{var t;d.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),e.index.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&t.DraftManager.setStore(m.value,d.value,d.value,g.value),e.index.$off("insertEmoji"),e.index.$off("send-message-in-emoji-picker"),e.Jt.unwatch(e.o.CONV,{currentConversation:T}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:b}),v.value=!0,p.value=null,m.value="",g.value=null,j()}));const h=()=>{const e=y();j(),a.sendMessages(e,p.value)},y=()=>{let e=d.value;e=l.transformTextWithEmojiNamesToKeys(e);const t=[];null==f||f.forEach(((l,n)=>{(null==e?void 0:e.includes("@"+l))&&t.push(n)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},j=()=>{d.value="",c.value=!0,null==f||f.clear()},x=e=>{d.value=e},M=()=>{v.value=!0},C=e=>{var t;v.value=!1,s("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},q=t=>{var l,n;const a=null==(l=null==t?void 0:t.detail)?void 0:l.value;(()=>{var e;c.value=!(null==(e=null==d?void 0:d.value)?void 0:e.length)})(),r.isGroup&&(a.endsWith("@")||a.endsWith("@\n"))&&(null==(n=e.i)||n.hideKeyboard(),s("onAt",!0))};function T(e){const l=m.value;p.value=e,m.value=null==e?void 0:e.conversationID,l!==m.value&&(l&&t.DraftManager.setStore(l,d.value,d.value,g.value),j(),m.value&&t.DraftManager.getStore(m.value,x))}function b(e){g.value=e}return e.watch((()=>[c.value,v.value]),((e,t)=>{e!==t&&s("onTyping",c.value,v.value)}),{immediate:!0,deep:!0}),u({insertAt:e=>{(null==f?void 0:f.has(null==e?void 0:e.id))||null==f||f.set(null==e?void 0:e.id,null==e?void 0:e.label),d.value+=null==e?void 0:e.label},resetEditor:j,setEditorContent:x,getEditorContent:y}),(t,l)=>e.e({a:r.isMuted},r.isMuted?{b:e.t(r.muteText)}:{},{c:r.placeholder,d:e.o$1(h),e:e.o$1([t=>e.isRef(d)?d.value=t.detail.value:null,q]),f:e.o$1(M),g:e.o$1(C),h:e.unref(d),i:e.unref(n.isPC)?"":1})}}),u=e._export_sfc(o,[["__scopeId","data-v-4a88add0"]]);wx.createComponent(u);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-4a88add0', 'message-input-container', i && 'message-input-container-h5']}}"><view wx:if="{{a}}" class="message-input-mute data-v-4a88add0">{{b}}</view><input id="editor" ref="inputRef" adjust-position="{{true}}" cursor-spacing="20" confirm-type="send" confirm-hold="{{true}}" maxlength="140" type="text" placeholder-class="input-placeholder" class="message-input-area data-v-4a88add0" placeholder="{{c}}" auto-blur bindconfirm="{{d}}" bindinput="{{e}}" bindblur="{{f}}" bindfocus="{{g}}" value="{{h}}"></input></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-4a88add0,div.data-v-4a88add0,ul.data-v-4a88add0,ol.data-v-4a88add0,dt.data-v-4a88add0,dd.data-v-4a88add0,li.data-v-4a88add0,dl.data-v-4a88add0,h1.data-v-4a88add0,h2.data-v-4a88add0,h3.data-v-4a88add0,h4.data-v-4a88add0,p.data-v-4a88add0{margin:0;padding:0;font-style:normal}ol.data-v-4a88add0,ul.data-v-4a88add0,li.data-v-4a88add0{list-style:none}img.data-v-4a88add0{border:0;vertical-align:middle;pointer-events:none}body.data-v-4a88add0{color:#000;background:#fff}.clear.data-v-4a88add0{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-4a88add0{color:#000;text-decoration:none;cursor:pointer}a.data-v-4a88add0:hover{text-decoration:none}input.data-v-4a88add0,textarea.data-v-4a88add0{-webkit-user-select:auto;user-select:auto}input.data-v-4a88add0:focus,input.data-v-4a88add0:active,textarea.data-v-4a88add0:focus,textarea.data-v-4a88add0:active{outline:none}.chat-aside.data-v-4a88add0{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-container.data-v-4a88add0{display:flex;flex-direction:column;flex:1;padding:3px 10px 10px;overflow:hidden}.message-input-container-h5.data-v-4a88add0{flex:1;height:auto;background:#fff;border-radius:10px;padding:7px 0 7px 10px;font-size:16px!important;max-height:86px}.message-input-container .message-input-mute.data-v-4a88add0{flex:1;display:flex;color:#999;font-size:14px;justify-content:center;align-items:center}.message-input-container .message-input-area.data-v-4a88add0{flex:1;overflow-y:scroll;min-height:25px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-5f71863a"]]);wx.createComponent(r);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-5f71863a', 'input-quote-container', f && 'input-quote-container-uni', g && 'input-quote-container-h5']}}"><view class="input-quote-content data-v-5f71863a"><view class="max-one-line data-v-5f71863a">{{b}}: {{c}}</view><icon wx:if="{{e}}" class="input-quote-close-icon data-v-5f71863a" bindonClick="{{d}}" u-i="5f71863a-0" bind:__l="__l" u-p="{{e}}"/></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.input-quote-container-h5.data-v-5f71863a,.input-quote-container-uni.data-v-5f71863a,.input-quote-container.data-v-5f71863a{margin:5px 100px 5px 8px;display:flex;flex:0 1 auto}.input-quote-container-h5 .input-quote-content.data-v-5f71863a,.input-quote-container-uni .input-quote-content.data-v-5f71863a,.input-quote-container .input-quote-content.data-v-5f71863a{display:flex;flex:0 1 auto;background-color:#fafafa;border-radius:8px;padding:12px;font-size:12px;align-items:center;line-height:16px;max-width:100%;box-sizing:border-box;min-width:0}.input-quote-container-h5 .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container-uni .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container .input-quote-content .max-one-line.data-v-5f71863a{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-quote-container-h5 .input-quote-close-icon.data-v-5f71863a,.input-quote-container-uni .input-quote-close-icon.data-v-5f71863a,.input-quote-container .input-quote-close-icon.data-v-5f71863a{margin-left:5px;padding:5px}.input-quote-container-uni.data-v-5f71863a{margin:5px 60px 0 30px}.input-quote-container-h5.data-v-5f71863a{margin:5px 0 0}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"simple-message-list": "./message-elements/simple-message-list/index",
|
||||
"message-group-application": "./message-group-application/index",
|
||||
"message-text": "./message-elements/message-text",
|
||||
"message-image": "./message-elements/message-image",
|
||||
"message-audio": "./message-elements/message-audio",
|
||||
"message-record": "./message-elements/message-record/index",
|
||||
"message-file": "./message-elements/message-file",
|
||||
"message-face": "./message-elements/message-face",
|
||||
"message-custom": "./message-elements/message-custom",
|
||||
"message-tip": "./message-elements/message-tip",
|
||||
"message-bubble": "./message-elements/message-bubble",
|
||||
"message-location": "./message-elements/message-location",
|
||||
"message-timestamp": "./message-elements/message-timestamp",
|
||||
"message-video": "./message-elements/message-video",
|
||||
"message-tool": "./message-tool/index",
|
||||
"message-revoked": "./message-tool/message-revoked",
|
||||
"message-plugin": "../../../plugins/plugin-components/message-plugin",
|
||||
"read-receipt-panel": "./read-receipt-panel/index",
|
||||
"scroll-button": "./scroll-button/index",
|
||||
"dialog": "../../common/Dialog/index",
|
||||
"drawer": "../../common/Drawer/index",
|
||||
"progress-message": "../../common/ProgressMessage/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-6e9cef1b', 'tui-chat', C && 'tui-chat-h5']}}" bindtap="{{D}}"><view class="tui-chat-main data-v-6e9cef1b"><view wx:if="{{a}}" class="tui-chat-safe-tips data-v-6e9cef1b"><label class="data-v-6e9cef1b">{{b}}</label><navigator class="data-v-6e9cef1b" bindtap="{{d}}">{{c}}</navigator></view><message-group-application wx:if="{{e}}" class="data-v-6e9cef1b" key="{{f}}" u-i="6e9cef1b-0" bind:__l="__l" u-p="{{g}}"/><scroll-view id="messageScrollList" class="tui-message-list data-v-6e9cef1b" scroll-y="true" scroll-top="{{l}}" scroll-into-view="{{m}}" bindscroll="{{n}}"><view wx:if="{{h}}" class="message-more data-v-6e9cef1b" bindtap="{{j}}">{{i}}</view><view wx:for="{{k}}" wx:for-item="item" wx:key="at" id="{{item.as}}" class="{{['data-v-6e9cef1b', item.av]}}"><message-timestamp wx:if="{{item.b}}" class="data-v-6e9cef1b" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><view class="message-item data-v-6e9cef1b" bindtap="{{item.ar}}"><message-tip wx:if="{{item.c}}" class="data-v-6e9cef1b" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"/><view wx:elif="{{item.f}}" id="{{item.X}}" class="message-bubble-container data-v-6e9cef1b" bindlongpress="{{item.Y}}" bindtouchstart="{{item.Z}}" bindtouchend="{{item.aa}}" bindmouseover="{{item.ab}}"><message-bubble wx:if="{{item.W}}" class="data-v-6e9cef1b" u-s="{{['d']}}" bindresendMessage="{{item.Q}}" bindblinkMessage="{{item.R}}" bindscrollTo="{{item.S}}" bindchangeSelectMessageIDList="{{item.T}}" bindsetReadReceiptPanelVisible="{{item.U}}" u-i="{{item.V}}" bind:__l="__l" u-p="{{item.W}}"><message-text wx:if="{{item.g}}" class="data-v-6e9cef1b" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"/><progress-message wx:elif="{{item.j}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="{{item.n}}" bind:__l="__l" u-p="{{item.o}}"><message-image wx:if="{{item.m}}" class="data-v-6e9cef1b" bindpreviewImage="{{item.k}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{item.m}}"/></progress-message><progress-message wx:elif="{{item.p}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="{{item.s}}" bind:__l="__l" u-p="{{item.t}}"><message-video wx:if="{{item.r}}" class="data-v-6e9cef1b" u-i="{{item.q}}" bind:__l="__l" u-p="{{item.r}}"/></progress-message><message-audio wx:elif="{{item.v}}" class="data-v-6e9cef1b" bindsetAudioPlayed="{{item.w}}" bindgetGlobalAudioContext="{{item.x}}" u-i="{{item.y}}" bind:__l="__l" u-p="{{item.z}}"/><message-record wx:elif="{{item.A}}" class="data-v-6e9cef1b" bindassignMessageIDInUniapp="{{item.B}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{item.D}}"/><message-file wx:elif="{{item.E}}" class="data-v-6e9cef1b" u-i="{{item.F}}" bind:__l="__l" u-p="{{item.G}}"/><message-face wx:elif="{{item.H}}" class="data-v-6e9cef1b" u-i="{{item.I}}" bind:__l="__l" u-p="{{item.J}}"/><message-location wx:elif="{{item.K}}" class="data-v-6e9cef1b" u-i="{{item.L}}" bind:__l="__l" u-p="{{item.M}}"/><message-custom wx:elif="{{item.N}}" class="data-v-6e9cef1b" u-i="{{item.O}}" bind:__l="__l" u-p="{{item.P}}"/></message-bubble></view><message-plugin wx:elif="{{item.ac}}" class="data-v-6e9cef1b" bindresendMessage="{{item.ad}}" bindhandleToggleMessageItem="{{item.ae}}" bindhandleH5LongPress="{{item.af}}" u-i="{{item.ag}}" bind:__l="__l" u-p="{{item.ah}}"/><message-revoked wx:else class="data-v-6e9cef1b" bindmessageEdit="{{item.ai}}" u-i="{{item.aj}}" bind:__l="__l" u-p="{{item.ak||''}}"/><message-tool wx:if="{{item.al}}" class="{{['data-v-6e9cef1b', 'message-tool', item.am && 'message-tool-out', item.an && 'message-tool-in']}}" bindtoggleMultipleSelectMode="{{item.ao}}" u-i="{{item.ap}}" bind:__l="__l" u-p="{{item.aq}}"/></view></view></scroll-view><scroll-button class="r data-v-6e9cef1b" u-r="scrollButtonInstanceRef" bindscrollToLatestMessage="{{p}}" u-i="6e9cef1b-18" bind:__l="__l"/><dialog wx:if="{{q}}" class="data-v-6e9cef1b" u-s="{{['d']}}" bindsubmit="{{s}}" bindupdateShow="{{t}}" u-i="6e9cef1b-19" bind:__l="__l" u-p="{{v}}"><view class="delDialog-title data-v-6e9cef1b">{{r}}</view></dialog><read-receipt-panel wx:if="{{w}}" class="data-v-6e9cef1b" bindsetReadReceiptPanelVisible="{{x}}" u-i="6e9cef1b-20" bind:__l="__l" u-p="{{y}}"/><drawer wx:if="{{B}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="6e9cef1b-21" bind:__l="__l" u-p="{{B}}"><simple-message-list wx:if="{{A}}" class="data-v-6e9cef1b" style="{{'height:' + '100%'}}" bindcloseOverlay="{{z}}" u-i="6e9cef1b-22,6e9cef1b-21" bind:__l="__l" u-p="{{A}}"/></drawer></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-6e9cef1b,div.data-v-6e9cef1b,ul.data-v-6e9cef1b,ol.data-v-6e9cef1b,dt.data-v-6e9cef1b,dd.data-v-6e9cef1b,li.data-v-6e9cef1b,dl.data-v-6e9cef1b,h1.data-v-6e9cef1b,h2.data-v-6e9cef1b,h3.data-v-6e9cef1b,h4.data-v-6e9cef1b,p.data-v-6e9cef1b{margin:0;padding:0;font-style:normal}ol.data-v-6e9cef1b,ul.data-v-6e9cef1b,li.data-v-6e9cef1b{list-style:none}img.data-v-6e9cef1b{border:0;vertical-align:middle;pointer-events:none}body.data-v-6e9cef1b{color:#000;background:#fff}.clear.data-v-6e9cef1b{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-6e9cef1b{color:#000;text-decoration:none;cursor:pointer}a.data-v-6e9cef1b:hover{text-decoration:none}input.data-v-6e9cef1b,textarea.data-v-6e9cef1b{-webkit-user-select:auto;user-select:auto}input.data-v-6e9cef1b:focus,input.data-v-6e9cef1b:active,textarea.data-v-6e9cef1b:focus,textarea.data-v-6e9cef1b:active{outline:none}.chat-aside.data-v-6e9cef1b{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.tui-chat .tui-message-list .message-more.data-v-6e9cef1b{color:#999;cursor:pointer}.tui-chat .image-dialog.data-v-6e9cef1b{background:rgba(0,0,0,.6)}.tui-chat .image-dialog header.data-v-6e9cef1b{background:rgba(0,0,0,.49)}.tui-chat-h5 .tui-chat-header.data-v-6e9cef1b,.tui-chat-h5 .tui-chat-footer.data-v-6e9cef1b{background:#fff}.tui-chat-h5 .tui-chat-footer .input input.data-v-6e9cef1b{background:#f4f5f9}.tui-chat.data-v-6e9cef1b{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.tui-chat-main.data-v-6e9cef1b{min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column;position:relative}.tui-chat-main .tui-chat-safe-tips.data-v-6e9cef1b{padding:12px 20px;background-color:rgba(255,149,0,.1);color:#ff8c39;line-height:18px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;text-align:justify;font-size:12px}.tui-chat-main .tui-chat-safe-tips a.data-v-6e9cef1b{color:#006eff;float:right}.tui-chat-main .tui-chat-application-tips.data-v-6e9cef1b{text-align:center;width:100%;background:#fce4d3;padding:2px;font-size:12px}.tui-chat-main .application-tips-btn.data-v-6e9cef1b{color:#006eff;padding-left:10px}.tui-chat-main .tui-message-list.data-v-6e9cef1b{flex:1;height:100%;overflow:hidden auto}.tui-chat-main .tui-message-list .message-more.data-v-6e9cef1b{font-size:14px;padding:5px;text-align:center}.tui-chat-main .tui-message-list .to-bottom-tip.data-v-6e9cef1b{position:-webkit-sticky;position:sticky;bottom:10px;left:100%;margin-right:15px;width:92px;height:28px;padding:0 5px;background:#fff;border:1px solid #e0e0e0;box-shadow:0 4px 12px rgba(0,0,0,.06);display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:3px;cursor:pointer}.tui-chat-main .tui-message-list .to-bottom-tip-text.data-v-6e9cef1b{font-family:PingFangSC-Regular;font-weight:400;font-size:10px;color:#147aff;letter-spacing:0;text-align:center;padding-left:3px}.tui-chat-main .tui-message-list .message-li.data-v-6e9cef1b{display:flex;flex-direction:column}.tui-chat-main .tui-message-list .message-li.data-v-6e9cef1b:first-child{margin-top:5px}.tui-chat-main .tui-message-list .message-li .message-item.data-v-6e9cef1b{display:flex;position:relative;flex-direction:column}.tui-chat-main .tui-message-list .message-li .message-item .message-tool.data-v-6e9cef1b{z-index:5;position:absolute;cursor:pointer;transform:translateY(-100%)}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-out.data-v-6e9cef1b{right:30px;left:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-in.data-v-6e9cef1b{left:30px;right:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-bottom.data-v-6e9cef1b{z-index:5;bottom:0;transform:translateY(100%)}.tui-chat-main .tui-message-list .message-li .message-label.data-v-6e9cef1b{max-width:50px}.tui-chat-main .tui-message-list .right.data-v-6e9cef1b{flex-direction:row-reverse;justify-content:flex-start}.tui-chat .disabled.data-v-6e9cef1b{position:relative}.tui-chat .disabled.data-v-6e9cef1b:before{content:"";position:absolute;width:100%;height:100%}.image-dialog.data-v-6e9cef1b{position:fixed;z-index:5;width:100vw;height:calc(100vh - 63px);top:63px;left:0}.image-dialog header.data-v-6e9cef1b{display:flex;justify-content:flex-end;width:100%;box-sizing:border-box;padding:10px}.data-v-6e9cef1b::-webkit-scrollbar{width:6px;height:140px;background-color:transparent}.data-v-6e9cef1b::-webkit-scrollbar-track{border-radius:10px}.data-v-6e9cef1b::-webkit-scrollbar-thumb{border-radius:10px;background-color:#9a999c}.tui-chat-h5.data-v-6e9cef1b{flex:1;position:static}.tui-chat-h5 .tui-chat-main .tui-message-list.data-v-6e9cef1b{height:100%}.tui-chat-h5 .tui-chat-main .message-more.data-v-6e9cef1b{color:#999;cursor:pointer;font-size:14px}.data-v-6e9cef1b:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";exports.Link={product:{label:"产品文档",url:"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},customMessage:{label:"自定义消息",url:"https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#createCustomMessage"},complaint:{label:"点此投诉",url:"https://cloud.tencent.com/apply/p/xc3oaubi98g"},implement:{label:"集成TUICallKit",url:"https://cloud.tencent.com/document/product/269/79861"},purchase:{label:"开通腾讯实时音视频服务",url:"https://cloud.tencent.com/document/product/1640/79968"}};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../common/Toast/index.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",u=e.defineComponent({__name:"message-audio",props:{broadcastNewAudioSrc:{},messageItem:{default:()=>({})},content:{default:()=>({})}},emits:["getGlobalAudioContext","setAudioPlayed"],setup(n,{emit:u}){const a=u,s=n,c=new Map,r=e.ref(!1);function i(){if(a("getGlobalAudioContext",c,{newAudioSrc:s.content.url}),s.messageItem.hasRiskContent||!s.content.url)return void o.Toast({message:"暂不支持播放"});v()||(c.set("audio",e.index.createInnerAudioContext()),e.index.setInnerAudioOption({obeyMuteSwitch:!1}),function(){const e=v();if(!e)return;e.src=s.content.url,r.value=!1,e.onPlay(l),e.onStop(m),e.onEnded(f),e.onError(p)}()),r.value?d():function(){const e=v();e&&(e.play(),"in"===s.messageItem.flow&&a("setAudioPlayed",s.messageItem.ID))}()}function d(){const e=v();if(e)try{e.stop()}catch{}}function l(){r.value=!0}function m(){r.value=!1}function f(){r.value=!1}function p(){console.warn("audio played error")}function v(){return c.get("audio")}return e.onUnmounted((()=>{var e;const o=v();r.value&&d(),null==(e=null==o?void 0:o.destroy)||e.call(o),c.delete("audio")})),e.watch((()=>s.broadcastNewAudioSrc),(e=>{e!==s.content.url&&r.value&&(d(),r.value=!1)})),(o,n)=>({a:e.unref(r)?1:"",b:e.p({width:"15px",height:"20px",file:e.unref(t.audioIcon)}),c:e.t(s.content.second||1),d:5*s.content.second+"px",e:"out"===s.messageItem.flow?1:"",f:e.o$1(i)})}}),a=e._export_sfc(u,[["__scopeId","data-v-2cea66cb"]]);wx.createComponent(a);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-2cea66cb', 'message-audio', e && 'reserve']}}" bindtap="{{f}}"><view class="audio-icon-container data-v-2cea66cb"><view class="{{['data-v-2cea66cb', 'mask', a && 'play']}}"/><icon wx:if="{{b}}" class="icon data-v-2cea66cb" u-i="2cea66cb-0" bind:__l="__l" u-p="{{b}}"/></view><view class="time data-v-2cea66cb" style="{{'width:' + d}}">{{c}} " </view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.data-v-2cea66cb:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}.message-audio.data-v-2cea66cb{flex-direction:row;flex:0 0 auto;cursor:pointer;-webkit-tap-highlight-color:transparent;overflow:hidden}.message-audio .audio-icon-container.data-v-2cea66cb{width:16px;height:20px;position:relative;flex:0 0 auto;flex-direction:row;justify-content:flex-end;margin:0 7px 0 0;overflow:hidden}.message-audio .audio-icon-container .mask.data-v-2cea66cb{position:absolute;z-index:1;width:105%;height:105%;left:0;top:0;transform-origin:right;transform:scaleX(0);background-color:#fbfbfb}.message-audio .audio-icon-container .mask.play.data-v-2cea66cb{animation:audio-play-2cea66cb 2s steps(1,end) infinite}@keyframes audio-play-2cea66cb{0%{transform:scaleX(.7056)}50%{transform:scaleX(.3953)}75%{transform:scaleX(0);visibility:hidden}to{transform:scaleX(0);visibility:hidden}}.message-audio .time.data-v-2cea66cb{max-width:165px;min-width:20px;text-align:start;white-space:nowrap}.message-audio.reserve.data-v-2cea66cb{flex-direction:row-reverse}.message-audio.reserve .time.data-v-2cea66cb{text-align:end}.message-audio.reserve .audio-icon-container.data-v-2cea66cb{margin:0 0 0 7px}.message-audio.reserve .audio-icon-container .mask.data-v-2cea66cb{transform-origin:left;background-color:#dceafd}.message-audio.reserve .icon.data-v-2cea66cb{transform:rotate(180deg)}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../../common/assets.js"),s=require("../../utils/utils.js"),t=require("../../../../utils/env.js");Math||(f+l+u+o+r+i+a)();const u=()=>"../../../common/Icon.js",o=()=>"./read-status/index.js",a=()=>"./message-quote/index.js",l=()=>"../../../common/Avatar/index.js",r=()=>"./message-translate/index.js",i=()=>"./message-convert/index.js",f=()=>"../../../common/RadioSelect/index.js",c=e.defineComponent({__name:"message-bubble",props:{messageItem:{default:()=>({})},content:{default:()=>({})},classNameList:{default:()=>[]},blinkMessageIDList:{default:()=>[]},isMultipleSelectMode:{type:Boolean,default:!1},isAudioPlayed:{type:Boolean,default:!1},multipleSelectedMessageIDList:{default:()=>[]}},emits:["resendMessage","blinkMessage","setReadReceiptPanelVisible","changeSelectMessageIDList","scrollTo"],setup(u,{emit:o}){const a=o,l=u,r=e.qt.TYPES,i=[r.MSG_LOCATION,r.MSG_TEXT,r.MSG_CUSTOM,r.MSG_MERGER,r.MSG_FACE],{blinkMessageIDList:f,messageItem:c}=e.toRefs(l),d=e.computed((()=>l.multipleSelectedMessageIDList.includes(c.value.ID))),p=e.computed((()=>"in"===c.value.flow&&"success"===c.value.status&&c.value.type===r.MSG_AUDIO&&!l.isAudioPlayed)),m=e.computed((()=>["message-bubble",d.value?"multiple-selected":"",...l.classNameList])),M=e.computed((()=>[r.MSG_IMAGE,r.MSG_VIDEO,r.MSG_MERGER].includes(c.value.type))),v=e.computed((()=>{let n=e.Wt.t("TUIChat.涉及敏感内容")+", ";return"out"===c.value.flow?n+=e.Wt.t("TUIChat.发送失败"):n+=e.Wt.t(c.value.type===r.MSG_AUDIO?"TUIChat.无法收听":"TUIChat.无法查看"),n})),g=e.computed((()=>{var e,n;return!!(null==(e=c.value)?void 0:e.ID)&&(null==(n=null==f?void 0:f.value)?void 0:n.includes(c.value.ID))}));function I(e){a("changeSelectMessageIDList",{type:e?"add":"remove",messageID:c.value.ID})}function S(e){a("blinkMessage",e)}function h(e){a("scrollTo",e)}function G(){a("setReadReceiptPanelVisible",!0,c.value)}return(u,o)=>e.e({a:l.isMultipleSelectMode},l.isMultipleSelectMode?{b:e.o$1(I),c:e.p({isSelected:e.unref(d)})}:{},{d:e.p({useSkeletonAnimation:!0,url:e.unref(c).avatar||""}),e:"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType},"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType?{f:e.t(l.content.showName)}:{},{g:(e.unref(c).type===e.unref(r).MSG_IMAGE||e.unref(c).type===e.unref(r).MSG_VIDEO)&&e.unref(c).hasRiskContent},e.unref(c).type!==e.unref(r).MSG_IMAGE&&e.unref(c).type!==e.unref(r).MSG_VIDEO||!e.unref(c).hasRiskContent?{}:{h:e.n(!e.unref(t.isPC)&&"message-risk-replace-h5"),i:"https://web.sdk.qcloud.com/component/TUIKit/assets/has_risk_default.png"},{j:e.unref(c).hasRiskContent},e.unref(c).hasRiskContent?{k:e.t(e.unref(v))}:{},{l:e.n("out"===e.unref(c).flow?"content-out":"content-in"),m:e.n(e.unref(c).hasRiskContent&&"content-has-risk"),n:e.n(e.unref(M)?"content-no-padding":""),o:e.n(e.unref(M)&&e.unref(g)?"blink-shadow":""),p:e.n(!e.unref(M)&&e.unref(g)?"blink-content":""),q:e.unref(p)},(e.unref(p),{}),{r:"fail"===e.unref(c).status||e.unref(c).hasRiskContent},"fail"===e.unref(c).status||e.unref(c).hasRiskContent?{s:e.o$1((e=>{var n;(null==(n=c.value)?void 0:n.hasRiskContent)||a("resendMessage")}))}:{},{t:"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)},"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)?{v:e.p({file:e.unref(n.loadingIcon),width:"15px",height:"15px"})}:{},{w:e.o$1(G),x:e.p({message:e.unref(s.shallowCopyMessage)(e.unref(c))}),y:e.n("out"===e.unref(c).flow&&"message-body-main-reverse"),z:e.o$1((()=>{})),A:e.n("in"===e.unref(c).flow?"":"reverse"),B:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),C:e.p({message:e.unref(c)}),D:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),E:e.p({message:e.unref(c)}),F:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),G:e.o$1(S),H:e.o$1(h),I:e.p({message:e.unref(c)}),J:"out"===e.unref(c).flow?1:"",K:e.n(e.unref(m))})}}),d=e._export_sfc(c,[["__scopeId","data-v-0db740be"]]);wx.createComponent(d);
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon",
|
||||
"read-status": "./read-status/index",
|
||||
"message-quote": "./message-quote/index",
|
||||
"avatar": "../../../common/Avatar/index",
|
||||
"message-translate": "./message-translate/index",
|
||||
"message-convert": "./message-convert/index",
|
||||
"radio-select": "../../../common/RadioSelect/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="{{['data-v-0db740be', K]}}"><radio-select wx:if="{{a}}" class="multiple-select-radio data-v-0db740be" bindonChange="{{b}}" u-i="0db740be-0" bind:__l="__l" u-p="{{c}}"/><view class="{{['data-v-0db740be', J && 'control-reverse']}}"><view class="message-bubble-content data-v-0db740be"><view class="{{['message-bubble-main-content', 'data-v-0db740be', A]}}"><avatar wx:if="{{d}}" class="data-v-0db740be" style="{{'flex:' + '0 0 auto'}}" u-i="0db740be-1" bind:__l="__l" u-p="{{d}}"/><view class="message-body data-v-0db740be" catchtap="{{z}}"><view wx:if="{{e}}" class="message-body-nick-name data-v-0db740be">{{f}}</view><view class="{{['data-v-0db740be', 'message-body-main', y]}}"><view class="{{['data-v-0db740be', 'blink', 'message-body-content', l, m, n, o, p]}}"><view class="content-main data-v-0db740be"><image wx:if="{{g}}" class="{{['data-v-0db740be', 'message-risk-replace', h]}}" src="{{i}}"></image><block wx:else><slot/></block></view><view wx:if="{{j}}" class="content-has-risk-tips data-v-0db740be">{{k}}</view></view><view wx:if="{{q}}" class="audio-unplay-mark data-v-0db740be"/><view wx:if="{{r}}" class="message-label fail data-v-0db740be" bindtap="{{s}}"> ! </view><icon wx:if="{{t}}" class="message-label loading-circle data-v-0db740be" u-i="0db740be-2" bind:__l="__l" u-p="{{v}}"/><read-status wx:if="{{x}}" class="message-label align-self-bottom data-v-0db740be" bindopenReadUserPanel="{{w}}" u-i="0db740be-3" bind:__l="__l" u-p="{{x}}"/></view></view></view><view class="message-bubble-extra-content data-v-0db740be"><message-translate wx:if="{{C}}" class="{{['data-v-0db740be', B]}}" u-i="0db740be-4" bind:__l="__l" u-p="{{C}}"/><message-convert wx:if="{{E}}" class="{{['data-v-0db740be', D]}}" u-i="0db740be-5" bind:__l="__l" u-p="{{E}}"/><message-quote wx:if="{{I}}" class="{{['data-v-0db740be', F]}}" bindblinkMessage="{{G}}" bindscrollTo="{{H}}" u-i="0db740be-6" bind:__l="__l" u-p="{{I}}"/></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/convertVoiceToText.js"),r=e.defineComponent({__name:"convert-content",props:{message:{default:()=>({})},contentVisible:{type:Boolean}},emits:["toggleErrorStatus"],setup(r,{emit:n}){const o=n,a=r,s=e.ref(!1),u=e.ref("");return e.watch((()=>a.contentVisible),(e=>{e&&t.convertor.get(a.message).then((e=>{s.value=!0,u.value=e})).catch((e=>{s.value=!0,o("toggleErrorStatus",!0),u.value=e.message}))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.t(e.unref(u))}:{},{c:e.t(e.unref(e.Wt).t("TUIChat.转换中")),d:e.unref(s)?1:""})}}),n=e._export_sfc(r,[["__scopeId","data-v-baaba9e9"]]);wx.createComponent(n);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="message-convert-container data-v-baaba9e9"><view wx:if="{{a}}" class="{{['data-v-baaba9e9', 'convert-content', 'occur']}}">{{b}}</view><view class="{{['data-v-baaba9e9', 'loading', d && 'loading-end']}}">{{c}}... </view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.message-convert-container.data-v-baaba9e9{min-height:20px;min-width:80px;position:relative;transition:width .15s ease-out,height .15s ease-out;font-size:14px}.message-convert-container .loading.data-v-baaba9e9{position:absolute;top:0;left:0;opacity:1;transition:opacity .3s ease-out}.message-convert-container .loading.loading-end.data-v-baaba9e9,.message-convert-container .convert-content.data-v-baaba9e9{opacity:0}.message-convert-container .convert-content.occur.data-v-baaba9e9{animation:occur-baaba9e9 .3s ease-out .45s forwards}@keyframes occur-baaba9e9{to{opacity:1}}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js"),Math||n();const n=()=>"./convert-content.js",o=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(n){const o=n,t=e.ref(!1),s=e.ref(!1),r=e.ref();let a=!0;function u(e){s.value=e}function c(e){if(void 0===e)return;a=!1;const n=e.get(o.message.conversationID)||[];for(let r=0;r<n.length;++r){const{messageID:e,visible:u}=n[r];if(e===o.message.ID&&void 0!==u){1===n.length&&u&&(a=!0),s.value=!1,t.value=u;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{voiceToTextInfo:c})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{voiceToTextInfo:c})})),(n,c)=>e.e({a:e.unref(t)},e.unref(t)?{b:e.o$1(u),c:e.p({message:o.message,contentVisible:e.unref(t),isSingleConvert:e.unref(a),convertWrapperRef:e.unref(r)}),d:"out"===o.message.flow?1:"",e:e.unref(s)?1:""}:{})}}),t=e._export_sfc(o,[["__scopeId","data-v-873d2b86"]]);wx.createComponent(t);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"convert-content": "./convert-content"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view wx:if="{{a}}" ref="convertWrapperRef" class="{{['data-v-873d2b86', 'message-convert', d && 'reverse', e && 'error']}}"><convert-content wx:if="{{c}}" class="data-v-873d2b86" bindtoggleErrorStatus="{{b}}" u-i="873d2b86-0" bind:__l="__l" u-p="{{c}}"/></view>
|
||||
@@ -1 +0,0 @@
|
||||
.message-convert.data-v-873d2b86{margin-top:4px;margin-left:44px;padding:10px;background-color:#f2f7ff;border-radius:10px;display:flex;flex-direction:column!important;transition:background-color .15s ease-out}.message-convert.error.data-v-873d2b86{background-color:#ffdfdf}.message-convert.reverse.data-v-873d2b86{margin-right:44px;margin-left:auto}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../utils/type-check.js"),s=require("../../../../constant.js"),t=require("../../../../../common/assets.js"),r=require("../../../../../stores/counter.js");Math||u();const u=()=>"../../../common/Icon.js",f=e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(u){r.useCounterStore();const f=u,a=e.ref(),i=e.ref(),o=e.ref(),c=e.ref({businessID:""});e.watchEffect((()=>{a.value=f.content,i.value=f.messageItem;const{payload:e}=f.messageItem;c.value=e.data||"",c.value=n.JSONToObject(e.data),e.data===s.CHAT_MSG_CUSTOM_TYPE.SERVICE&&(o.value=n.JSONToObject(e.extension))}));return(r,u)=>e.e({a:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(o).title),c:e.unref(o).hyperlinks_text},e.unref(o).hyperlinks_text?{d:e.t(e.unref(o).hyperlinks_text.key),e:e.unref(o).hyperlinks_text.value}:{},{f:e.unref(o).item&&e.unref(o).item.length>0},e.unref(o).item&&e.unref(o).item.length>0?{g:e.f(e.unref(o).item,((s,t,r)=>e.e({a:e.unref(n.isUrl)(s.value)},e.unref(n.isUrl)(s.value)?{b:e.t(s.key),c:s.value}:{d:e.t(s.key)},{e:t})))}:{},{h:e.t(e.unref(o).description)}):e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE?{j:e.t(e.unref(e.Wt).t("message.custom.对本次服务评价")),k:e.f(Math.max(e.unref(c).score,0),((e,n,s)=>({a:"1c4aa8ca-0-"+s,b:n}))),l:e.p({file:e.unref(t.star)}),m:e.t(e.unref(c).comment)}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER?{o:e.unref(c).imageUrl,p:e.t(e.unref(c).title),q:e.t(e.unref(c).description),r:e.t(e.unref(c).price),s:e.o$1((n=>{return s=e.unref(c).link,void window.open(s);var s}))}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(c).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(c).link}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK?{z:e.unref(c).link,A:e.o$1((n=>function(n){const s=JSON.stringify(n);e.index.navigateTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${s}`})}(e.unref(c))))}:{B:r.content.custom},{i:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE,n:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK,y:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK})}}),a=e._export_sfc(f,[["__scopeId","data-v-1c4aa8ca"]]);wx.createComponent(a);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="custom data-v-1c4aa8ca"><block wx:if="{{a}}"><view class="data-v-1c4aa8ca"><view class="data-v-1c4aa8ca"><label class="data-v-1c4aa8ca">{{b}}</label><navigator wx:if="{{c}}" class="data-v-1c4aa8ca" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-1c4aa8ca"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-1c4aa8ca"><navigator wx:if="{{item.a}}" class="data-v-1c4aa8ca" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-1c4aa8ca">{{item.d}}</view></view></view><view class="data-v-1c4aa8ca">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-1c4aa8ca"><view class="data-v-1c4aa8ca">{{j}}</view><view class="evaluate-list data-v-1c4aa8ca"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-1c4aa8ca"><icon wx:if="{{l}}" class="file-icon data-v-1c4aa8ca" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-1c4aa8ca">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-1c4aa8ca" bindtap="{{s}}"><image class="data-v-1c4aa8ca" src="{{o}}"/><view class="data-v-1c4aa8ca"><view class="data-v-1c4aa8ca">{{p}}</view><view class="data-v-1c4aa8ca">{{q}}</view><label class="data-v-1c4aa8ca">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-1c4aa8ca"><view class="data-v-1c4aa8ca">{{v}}</view><navigator class="data-v-1c4aa8ca" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-1c4aa8ca" bindtap="{{A}}"><image class="Custommessageimage data-v-1c4aa8ca" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-1c4aa8ca"><rich-text class="data-v-1c4aa8ca" nodes="{{B}}"/></label></block></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-1c4aa8ca,div.data-v-1c4aa8ca,ul.data-v-1c4aa8ca,ol.data-v-1c4aa8ca,dt.data-v-1c4aa8ca,dd.data-v-1c4aa8ca,li.data-v-1c4aa8ca,dl.data-v-1c4aa8ca,h1.data-v-1c4aa8ca,h2.data-v-1c4aa8ca,h3.data-v-1c4aa8ca,h4.data-v-1c4aa8ca,p.data-v-1c4aa8ca{margin:0;padding:0;font-style:normal}ol.data-v-1c4aa8ca,ul.data-v-1c4aa8ca,li.data-v-1c4aa8ca{list-style:none}img.data-v-1c4aa8ca{border:0;vertical-align:middle;pointer-events:none}body.data-v-1c4aa8ca{color:#000;background:#fff}.clear.data-v-1c4aa8ca{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-1c4aa8ca{color:#000;text-decoration:none;cursor:pointer}a.data-v-1c4aa8ca:hover{text-decoration:none}input.data-v-1c4aa8ca,textarea.data-v-1c4aa8ca{-webkit-user-select:auto;user-select:auto}input.data-v-1c4aa8ca:focus,input.data-v-1c4aa8ca:active,textarea.data-v-1c4aa8ca:focus,textarea.data-v-1c4aa8ca:active{outline:none}.chat-aside.data-v-1c4aa8ca{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}a.data-v-1c4aa8ca{color:#679ce1}.custom.data-v-1c4aa8ca{font-size:18px}.custom h1.data-v-1c4aa8ca{font-size:14px;color:#000}.custom h1.data-v-1c4aa8ca,.custom a.data-v-1c4aa8ca,.custom p.data-v-1c4aa8ca{font-size:14px}.custom .evaluate ul.data-v-1c4aa8ca{display:flex;padding:10px 0}.custom .evaluate-list.data-v-1c4aa8ca{display:flex;flex-direction:row}.custom .evaluate-list-item.data-v-1c4aa8ca{padding:0 2px}.custom .order.data-v-1c4aa8ca{display:flex}.custom .order main.data-v-1c4aa8ca{padding-left:5px}.custom .order main p.data-v-1c4aa8ca{font-family:PingFangSC-Regular;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.custom .order main span.data-v-1c4aa8ca{font-family:PingFangSC-Regular;line-height:25px;color:#ff7201}.custom .order img.data-v-1c4aa8ca{width:67px;height:67px}.custom .pk.data-v-1c4aa8ca{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;background-color:#fff;border-radius:10px;padding:20px;box-sizing:border-box}.custom .pk h1.data-v-1c4aa8ca{font-size:18px;color:#333;margin-bottom:10px}.custom .pk .button-group.data-v-1c4aa8ca{display:flex;justify-content:center}.custom .pk .button-group .buttonAccept.data-v-1c4aa8ca{width:40%;height:60rpx;background-color:rgba(132,255,0,.333);border-radius:10px;border:2px solid #26ff00;color:#fff;font-size:16px;text-align:center;line-height:60rpx;margin-bottom:10px;border:none;cursor:pointer}.custom .pk .button-group .buttonRefuse.data-v-1c4aa8ca{width:40%;height:60rpx;background-color:rgba(255,0,0,.47);border:2px solid #ff0000;border-radius:10px;color:#fff;font-size:16px;line-height:60rpx;text-align:center;margin-bottom:10px;border:none;cursor:pointer}.Custommessageimage.data-v-1c4aa8ca{width:385rpx;height:195rpx}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js"),require("../../emoji-config/default-emoji.js"),require("../../../../utils/env.js");const o=e.defineComponent({__name:"message-face",props:{content:{type:Object,default:()=>({})}},setup(o){const t=o,n=e.ref(t.content.url);return e.onMounted((()=>{"custom"===t.content.type&&console.warn("CUSTOM_BIG_EMOJI_URL is required for custom emoji, please check your CUSTOM_BIG_EMOJI_URL.")})),(o,t)=>({a:e.unref(n)})}}),t=e._export_sfc(o,[["__scopeId","data-v-a83600e4"]]);wx.createComponent(t);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="message-image data-v-a83600e4"><image mode="aspectFit" class="message-image data-v-a83600e4" src="{{a}}"></image></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-a83600e4,div.data-v-a83600e4,ul.data-v-a83600e4,ol.data-v-a83600e4,dt.data-v-a83600e4,dd.data-v-a83600e4,li.data-v-a83600e4,dl.data-v-a83600e4,h1.data-v-a83600e4,h2.data-v-a83600e4,h3.data-v-a83600e4,h4.data-v-a83600e4,p.data-v-a83600e4{margin:0;padding:0;font-style:normal}ol.data-v-a83600e4,ul.data-v-a83600e4,li.data-v-a83600e4{list-style:none}img.data-v-a83600e4{border:0;vertical-align:middle;pointer-events:none}body.data-v-a83600e4{color:#000;background:#fff}.clear.data-v-a83600e4{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-a83600e4{color:#000;text-decoration:none;cursor:pointer}a.data-v-a83600e4:hover{text-decoration:none}input.data-v-a83600e4,textarea.data-v-a83600e4{-webkit-user-select:auto;user-select:auto}input.data-v-a83600e4:focus,input.data-v-a83600e4:active,textarea.data-v-a83600e4:focus,textarea.data-v-a83600e4:active{outline:none}.chat-aside.data-v-a83600e4{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-image.data-v-a83600e4{width:80px;height:80px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"message-file",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(n){const o=n,c=()=>{if(o.messageItem.hasRiskContent)return;const e={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(null==window?void 0:window.fetch)fetch(o.content.url,e).then((e=>e.blob())).then((e=>{const t=document.createElement("a"),n=window.URL.createObjectURL(e);t.href=n,t.download=o.content.name,t.click()}));else{const e=document.createElement("a");e.href=o.content.url,e.target="_blank",e.download=o.content.name,e.click()}};return(n,s)=>({a:e.p({file:e.unref(t.files)}),b:e.t(o.content.name),c:e.t(o.content.size),d:e.unref(e.Wt).t("TUIChat.单击下载"),e:e.o$1(c)})}}),c=e._export_sfc(o,[["__scopeId","data-v-e7e6191d"]]);wx.createComponent(c);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="file-message-montainer data-v-e7e6191d" title="{{d}}" bindtap="{{e}}"><icon wx:if="{{a}}" class="file-icon data-v-e7e6191d" u-i="e7e6191d-0" bind:__l="__l" u-p="{{a}}"/><view class="data-v-e7e6191d"><view class="data-v-e7e6191d">{{b}}</view><view class="data-v-e7e6191d">{{c}}</view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
body.data-v-e7e6191d,div.data-v-e7e6191d,ul.data-v-e7e6191d,ol.data-v-e7e6191d,dt.data-v-e7e6191d,dd.data-v-e7e6191d,li.data-v-e7e6191d,dl.data-v-e7e6191d,h1.data-v-e7e6191d,h2.data-v-e7e6191d,h3.data-v-e7e6191d,h4.data-v-e7e6191d,p.data-v-e7e6191d{margin:0;padding:0;font-style:normal}ol.data-v-e7e6191d,ul.data-v-e7e6191d,li.data-v-e7e6191d{list-style:none}img.data-v-e7e6191d{border:0;vertical-align:middle;pointer-events:none}body.data-v-e7e6191d{color:#000;background:#fff}.clear.data-v-e7e6191d{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-e7e6191d{color:#000;text-decoration:none;cursor:pointer}a.data-v-e7e6191d:hover{text-decoration:none}input.data-v-e7e6191d,textarea.data-v-e7e6191d{-webkit-user-select:auto;user-select:auto}input.data-v-e7e6191d:focus,input.data-v-e7e6191d:active,textarea.data-v-e7e6191d:focus,textarea.data-v-e7e6191d:active{outline:none}.chat-aside.data-v-e7e6191d{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.file-message-montainer.data-v-e7e6191d{display:flex;flex-direction:row;cursor:pointer}.file-message-montainer .file-icon.data-v-e7e6191d{margin:auto 8px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=155,s=e.defineComponent({__name:"message-image",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},emits:["previewImage"],setup(s,{emit:a}){const n=a,o=s,r=e.ref({width:"auto",height:"auto"}),i=e=>{const{width:s,height:a}=e;if(0===s||0===a)return;let n=0,o=0;s>=a?(n=t,o=t*a/s):(n=t*s/a,o=t),r.value.width=n+"px",r.value.height=o+"px"};e.watchEffect((()=>{i(o.content)}));const u=e=>{i(e.detail)},c=()=>{var e;"success"!==(null==(e=o.messageItem)?void 0:e.status)&&1!==o.messageItem.progress||n("previewImage")};return(t,s)=>({a:o.content.url,b:e.unref(r).width,c:e.unref(r).height,d:e.o$1(u),e:e.o$1(c)})}}),a=e._export_sfc(s,[["__scopeId","data-v-b011a1d6"]]);wx.createComponent(a);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="image-container data-v-b011a1d6" bindtap="{{e}}"><image class="message-image data-v-b011a1d6" mode="aspectFit" src="{{a}}" style="{{'width:' + b + ';' + ('height:' + c)}}" bindload="{{d}}"/></view>
|
||||
@@ -1 +0,0 @@
|
||||
.image-container.data-v-b011a1d6{position:relative;background-color:#f4f4f4;font-size:0}.image-container .message-image.data-v-b011a1d6{max-width:150px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-location",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,r=e.ref();return e.watchEffect((()=>{r.value=n.content})),(t,n)=>({a:e.t(e.unref(r).description),b:e.unref(r).url,c:e.unref(r).href})}}),n=e._export_sfc(t,[["__scopeId","data-v-394dfab9"]]);wx.createComponent(n);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user