优化页面
This commit is contained in:
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../index.js");wx.createPage(e.MiniProgramPage$4);
|
||||
9
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "聊天记录",
|
||||
"usingComponents": {
|
||||
"search-input": "./search-input/index",
|
||||
"search-container": "./search-container/index",
|
||||
"search-result": "./search-result/index",
|
||||
"search-more": "./search-more/index"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-b3f0be00', 'tui-search', q, r, s]}}"><view wx:if="{{b}}" ref="globalSearchRef" class="{{['data-v-b3f0be00', 'tui-search-global', j]}}"><view class="{{['data-v-b3f0be00', 'tui-search-global-header', f]}}"><search-input wx:if="{{c}}" class="search-input data-v-b3f0be00" u-i="b3f0be00-0" bind:__l="__l" u-p="{{c}}"/><search-more wx:if="{{d}}" class="search-more data-v-b3f0be00" u-i="b3f0be00-1" bind:__l="__l" u-p="{{e}}"/></view><search-container wx:if="{{g}}" u-s="{{['result']}}" class="search-container data-v-b3f0be00" u-i="b3f0be00-2" bind:__l="__l" u-p="{{i}}"><search-result class="search-result data-v-b3f0be00" u-i="b3f0be00-3,b3f0be00-2" bind:__l="__l" u-p="{{h}}" slot="result"/></search-container></view><view wx:elif="{{k}}" class="{{['data-v-b3f0be00', 'tui-search-conversation', p]}}"><search-container wx:if="{{o}}" u-s="{{['input','result']}}" class="search-container data-v-b3f0be00" bindcloseInConversationSearch="{{n}}" u-i="b3f0be00-4" bind:__l="__l" u-p="{{o}}"><search-input class="data-v-b3f0be00" u-i="b3f0be00-5,b3f0be00-4" bind:__l="__l" u-p="{{l}}" slot="input"/><search-result class="search-result data-v-b3f0be00" u-i="b3f0be00-6,b3f0be00-4" bind:__l="__l" u-p="{{m}}" slot="result"/></search-container></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
body.data-v-b3f0be00,div.data-v-b3f0be00,ul.data-v-b3f0be00,ol.data-v-b3f0be00,dt.data-v-b3f0be00,dd.data-v-b3f0be00,li.data-v-b3f0be00,dl.data-v-b3f0be00,h1.data-v-b3f0be00,h2.data-v-b3f0be00,h3.data-v-b3f0be00,h4.data-v-b3f0be00,p.data-v-b3f0be00{margin:0;padding:0;font-style:normal}ol.data-v-b3f0be00,ul.data-v-b3f0be00,li.data-v-b3f0be00{list-style:none}img.data-v-b3f0be00{border:0;vertical-align:middle;pointer-events:none}body.data-v-b3f0be00{color:#000;background:#fff}.clear.data-v-b3f0be00{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-b3f0be00{color:#000;text-decoration:none;cursor:pointer}a.data-v-b3f0be00:hover{text-decoration:none}input.data-v-b3f0be00,textarea.data-v-b3f0be00{-webkit-user-select:auto;user-select:auto}input.data-v-b3f0be00:focus,input.data-v-b3f0be00:active,textarea.data-v-b3f0be00:focus,textarea.data-v-b3f0be00:active{outline:none}.chat-aside.data-v-b3f0be00{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-search-main-global.data-v-b3f0be00{width:100%;height:-webkit-fit-content;height:fit-content}.tui-search-main-conversation.data-v-b3f0be00{width:100%;height:100%;background:#fff;box-shadow:0 1px 10px rgba(2,16,43,.15)}.tui-search .tui-search-global-header.data-v-b3f0be00{display:flex;flex-direction:row;justify-content:center;align-items:center}.tui-search .tui-search-conversation.data-v-b3f0be00{width:100%;height:100%;overflow:hidden}.tui-search-h5-full-screen.data-v-b3f0be00{position:absolute;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;z-index:1000;background:#fff}.tui-search-h5-global.data-v-b3f0be00,.tui-search-h5-conversation.data-v-b3f0be00{width:100%;height:100%;display:flex;flex:1;flex-direction:column}.tui-search-h5-conversation.data-v-b3f0be00{overflow:hidden}.tui-search-h5.tui-search-main-conversation.data-v-b3f0be00{box-shadow:none}.tui-search-h5 .search-input.data-v-b3f0be00,.tui-search-h5 .search-container.data-v-b3f0be00,.tui-search-h5 .search-result.data-v-b3f0be00{min-width:0;box-sizing:border-box;display:flex;flex:1;overflow:hidden}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index2.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/index2.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../index.js");wx.createPage(e.MiniProgramPage$4);
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const a=require("../search-type-list.js"),r=require("../search-time-list.js"),n=require("../../../../common/assets.js"),t=require("../../../utils/env.js");Math||(s+o)();const s=()=>"../../common/Icon.js",o=()=>"../../common/DatePicker/index.js",u=e.defineComponent({__name:"index",props:{popupPosition:{type:String,default:"bottom"},searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},emits:["searchConfigChange","closeInConversationSearch"],setup(s,{emit:o}){const u=s,i=o,c=e.computed((()=>"conversation"===(null==u?void 0:u.searchType)?a.conversationSearchTypeList:a.globalSearchTypeList)),l=e.ref(a.searchMessageTypeDefault[null==u?void 0:u.searchType]),h=e.ref(r.searchMessageTimeDefault),p=e.computed((()=>"contact"!==l.value.key&&"group"!==l.value.key)),v=e.computed((()=>t.isPC&&"global"===u.searchType&&!t.isUniFrameWork?"two":"one")),d=e.ref(!1);function f(e){(null==e?void 0:e.searchType)===(null==u?void 0:u.searchType)&&(l.value=(null==e?void 0:e.value)||a.searchMessageTypeDefault[null==u?void 0:u.searchType])}function T(e){(null==e?void 0:e.searchType)===(null==u?void 0:u.searchType)&&(h.value=(null==e?void 0:e.value)||r.searchMessageTimeDefault)}e.onMounted((()=>{e.Jt.watch(e.o.SEARCH,{currentSearchMessageType:f,currentSearchMessageTime:T})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.SEARCH,{currentSearchMessageType:f,currentSearchMessageTime:T})}));const y=()=>{var a;"all"!==(null==(a=h.value)?void 0:a.key)?e.Jt.update(e.o.SEARCH,"currentSearchMessageTime",{value:r.searchMessageTimeDefault,searchType:u.searchType}):d.value=!0},m=a=>{var r,n,t;if("all"===(null==(r=h.value)?void 0:r.key)){const{startDate:r,endDate:s}=a,o=Number(((null==(n=null==s?void 0:s.toDate())?void 0:n.getTime())/1e3).toFixed(0)),i=o-Number(((null==(t=null==r?void 0:r.toDate())?void 0:t.getTime())/1e3).toFixed(0)),c={key:h.value.key,label:h.value.label,value:{timePosition:o,timePeriod:i}};e.Jt.update(e.o.SEARCH,"currentSearchMessageTime",{value:c,searchType:u.searchType})}},g=()=>{var a;d.value=!1,"all"===(null==(a=h.value)?void 0:a.key)&&e.Jt.update(e.o.SEARCH,"currentSearchMessageTime",{value:r.searchMessageTimeDefault,searchType:u.searchType})},S=()=>{i("closeInConversationSearch")};return(a,s)=>e.e({a:"conversation"===u.searchType&&!e.unref(t.isUniFrameWork)},"conversation"!==u.searchType||e.unref(t.isUniFrameWork)?{}:{b:e.t(e.unref(e.Wt).t("TUISearch.搜索会话内容")),c:e.p({file:e.unref(n.closeIcon$1),width:"14px",height:"14px"}),d:e.o$1(S)},{e:e.f(e.unref(c),((a,r,n)=>({a:e.t(e.unref(e.Wt).t(`TUISearch.${a.label}`)),b:r,c:e.n(e.unref(l).key===a.key&&"tui-search-tabs-item-selected"),d:e.o$1((r=>{return n=a,void e.Jt.update(e.o.SEARCH,"currentSearchMessageType",{value:n,searchType:u.searchType});var n}),r)}))),f:e.unref(p)},e.unref(p)?{g:e.f(e.unref(r.searchMessageTimeList),((a,r,t)=>e.e({a:"all"===a.key},"all"===a.key?e.e({b:!e.unref(d)},e.unref(d)?{}:{c:e.t(e.unref(e.Wt).t("TUISearch.选择时间")+": "+e.unref(e.Wt).t("TUISearch.全部")),d:"760d5fb5-1-"+t,e:e.p({file:e.unref(n.downSVG),width:"14px",height:"14px"}),f:e.o$1(y,r)},{g:e.unref(d)},e.unref(d)?{h:e.o$1(m,r),i:"760d5fb5-2-"+t,j:e.p({type:"range",rangeTableType:e.unref(v)})}:{},{k:e.o$1((()=>{}),r),l:e.unref(d)},e.unref(d)?{m:"760d5fb5-3-"+t,n:e.p({file:e.unref(n.closeIcon),width:"14px",height:"14px"}),o:e.o$1(g,r)}:{}):{p:e.t(e.unref(e.Wt).t(`TUISearch.${a.label}`))},{q:r,r:e.n(e.unref(h).key===a.key&&"tui-search-time-item-selected"),s:e.o$1((r=>{return n=a,void(d.value&&"all"===n.key?d.value=!1:(d.value=!1,e.Jt.update(e.o.SEARCH,"currentSearchMessageTime",{value:n,searchType:u.searchType})));var n}),r)})))}:{},{h:e.n(e.unref(t.isPC)&&`tui-search-container-${u.popupPosition}`),i:e.n(!e.unref(t.isPC)&&"tui-search-container-h5-main"),j:e.n(!e.unref(t.isPC)&&"tui-search-container-h5"),k:e.n(e.unref(t.isPC)&&`container-${u.popupPosition}`),l:e.n(`container-${u.searchType}`)})}}),i=e._export_sfc(u,[["__scopeId","data-v-760d5fb5"]]);wx.createComponent(i);
|
||||
7
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../common/Icon",
|
||||
"date-picker": "../../common/DatePicker/index"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-760d5fb5', 'tui-search-container', j, k, l]}}"><view class="{{['data-v-760d5fb5', h, i]}}"><view wx:if="{{a}}" class="tui-search-header data-v-760d5fb5"><view class="tui-search-header-title data-v-760d5fb5">{{b}}</view><view class="tui-search-header-close data-v-760d5fb5" bindtap="{{d}}"><icon wx:if="{{c}}" class="data-v-760d5fb5" u-i="760d5fb5-0" bind:__l="__l" u-p="{{c}}"/></view></view><view class="tui-search-tabs data-v-760d5fb5"><view wx:for="{{e}}" wx:for-item="tabItem" wx:key="b" class="{{['data-v-760d5fb5', 'tui-search-tabs-item', tabItem.c]}}" bindtap="{{tabItem.d}}">{{tabItem.a}}</view></view><slot name="input"/><view wx:if="{{f}}" class="tui-search-time data-v-760d5fb5"><view wx:for="{{g}}" wx:for-item="tabItem" wx:key="q" class="{{['data-v-760d5fb5', 'tui-search-time-item', tabItem.r]}}" bindtap="{{tabItem.s}}"><view wx:if="{{tabItem.a}}" class="tui-search-time-item-picker data-v-760d5fb5"><view wx:if="{{tabItem.b}}" class="tui-search-time-item-all data-v-760d5fb5" catchtap="{{tabItem.f}}">{{tabItem.c}} <icon wx:if="{{tabItem.e}}" class="data-v-760d5fb5" u-i="{{tabItem.d}}" bind:__l="__l" u-p="{{tabItem.e}}"/></view><view class="data-v-760d5fb5" catchtap="{{tabItem.k}}"><date-picker wx:if="{{tabItem.g}}" class="data-v-760d5fb5" bindpick="{{tabItem.h}}" u-i="{{tabItem.i}}" bind:__l="__l" u-p="{{tabItem.j}}"/></view><view wx:if="{{tabItem.l}}" class="tui-search-time-item-close data-v-760d5fb5" bindtap="{{tabItem.o}}"><icon wx:if="{{tabItem.n}}" class="icon data-v-760d5fb5" u-i="{{tabItem.m}}" bind:__l="__l" u-p="{{tabItem.n}}"/></view></view><view wx:else class="data-v-760d5fb5">{{tabItem.p}}</view></view></view><slot name="result"/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-container/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
body.data-v-760d5fb5,div.data-v-760d5fb5,ul.data-v-760d5fb5,ol.data-v-760d5fb5,dt.data-v-760d5fb5,dd.data-v-760d5fb5,li.data-v-760d5fb5,dl.data-v-760d5fb5,h1.data-v-760d5fb5,h2.data-v-760d5fb5,h3.data-v-760d5fb5,h4.data-v-760d5fb5,p.data-v-760d5fb5{margin:0;padding:0;font-style:normal}ol.data-v-760d5fb5,ul.data-v-760d5fb5,li.data-v-760d5fb5{list-style:none}img.data-v-760d5fb5{border:0;vertical-align:middle;pointer-events:none}body.data-v-760d5fb5{color:#000;background:#fff}.clear.data-v-760d5fb5{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-760d5fb5{color:#000;text-decoration:none;cursor:pointer}a.data-v-760d5fb5:hover{text-decoration:none}input.data-v-760d5fb5,textarea.data-v-760d5fb5{-webkit-user-select:auto;user-select:auto}input.data-v-760d5fb5:focus,input.data-v-760d5fb5:active,textarea.data-v-760d5fb5:focus,textarea.data-v-760d5fb5:active{outline:none}.chat-aside.data-v-760d5fb5{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)}.container-bottom.data-v-760d5fb5{margin:0 10px;position:relative}.container-conversation.data-v-760d5fb5{width:100%;height:100%;overflow:hidden}.tui-search-container-bottom.data-v-760d5fb5{position:absolute;min-width:400px;width:-webkit-fit-content;width:fit-content;height:453px;border-radius:4px;background-color:#fff;z-index:1000;display:flex;flex-direction:column;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px;left:0;top:-5px}.tui-search-container-aside.data-v-760d5fb5{flex:1;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.tui-search-container .tui-search-header.data-v-760d5fb5{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 20px 10px}.tui-search-container .tui-search-header-title.data-v-760d5fb5{font-size:14px;font-weight:500;line-height:19.6px;font-family:PingFang SC,sans-serif}.tui-search-container .tui-search-header-close.data-v-760d5fb5{cursor:pointer}.tui-search-container .tui-search-tabs.data-v-760d5fb5{width:100%;display:flex;flex-direction:row;box-sizing:border-box;border-bottom:1px solid rgba(0,0,0,.1)}.tui-search-container .tui-search-tabs-item.data-v-760d5fb5{padding:10px 0;margin:0 10px;font-size:14px;color:#666;-webkit-user-select:none;user-select:none;cursor:pointer}.tui-search-container .tui-search-tabs-item-selected.data-v-760d5fb5{color:#007aff;border-bottom:2px solid #007aff}.tui-search-container .tui-search-time.data-v-760d5fb5{width:100%;height:43px;display:flex;flex-direction:row;box-sizing:border-box}.tui-search-container .tui-search-time-item.data-v-760d5fb5{height:calc(100% - 20px);padding:5px;margin:5px;border-radius:5px;font-size:12px;color:#666;-webkit-user-select:none;user-select:none;cursor:pointer;display:flex;justify-content:center;align-items:center}.tui-search-container .tui-search-time-item-picker.data-v-760d5fb5{display:flex}.tui-search-container .tui-search-time-item-close.data-v-760d5fb5,.tui-search-container .tui-search-time-item-all.data-v-760d5fb5{display:flex;justify-content:center;align-items:center}.tui-search-container .tui-search-time-item-selected.data-v-760d5fb5{background-color:rgba(0,122,255,.2)}.tui-search-container-h5.data-v-760d5fb5{width:100%;height:100%;overflow:hidden;margin:0;padding:0;display:flex;flex-direction:column}.tui-search-container-h5 .tui-search-container-h5-main.data-v-760d5fb5{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}.tui-search-container-h5 .tui-search-container-h5-main .tui-search-tabs .tui-search-tabs-item.data-v-760d5fb5{cursor:none}.tui-search-container-h5 .tui-search-container-h5-main .tui-search-time.data-v-760d5fb5{background-color:#f4f4f4}.tui-search-container-h5 .tui-search-container-h5-main .tui-search-time .tui-search-time-item.data-v-760d5fb5{cursor:none;background-color:#fff}.tui-search-container-h5 .tui-search-container-h5-main .tui-search-time .tui-search-time-item-selected.data-v-760d5fb5{background-color:rgba(0,122,255,.2)}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),r=require("../../../utils/env.js");Math||a();const a=()=>"../../common/Icon.js",u=e.defineComponent({__name:"index",props:{placeholder:{type:String,default:()=>e.Wt.t("TUISearch.搜索")},searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(a){const u=a,t=e.ref(""),c=e.ref(""),o=e.ref(!1);function l(e){(null==e?void 0:e.searchType)===(null==u?void 0:u.searchType)&&(c.value=null==e?void 0:e.value,t.value=null==e?void 0:e.value)}function i(e){(null==e?void 0:e.searchType)===(null==u?void 0:u.searchType)&&(o.value=null==e?void 0:e.isSearching)}e.onMounted((()=>{e.Jt.watch(e.o.SEARCH,{currentSearchInputValue:l,currentSearchingStatus:i})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.SEARCH,{currentSearchInputValue:l,currentSearchingStatus:i})}));const s=()=>{t.value!==c.value&&e.Jt.update(e.o.SEARCH,"currentSearchInputValue",{value:t.value,searchType:u.searchType})},h=()=>{o.value=!1,e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:u.searchType}),e.Jt.update(e.o.SEARCH,"currentSearchInputValue",{value:"",searchType:u.searchType})},p=()=>{e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!0,searchType:u.searchType})},d=()=>{var n,r;null==(r=null==(n=e.i)?void 0:n.hideKeyboard)||r.call(n)};return(a,c)=>e.e({a:e.p({file:e.unref(n.searchIcon),width:"14px",height:"14px"}),b:u.placeholder,c:e.o$1(d),d:e.o$1(s),e:e.o$1(s),f:e.o$1(p),g:e.unref(t),h:e.o$1((n=>e.isRef(t)?t.value=n.detail.value:null)),i:e.unref(o)},e.unref(o)?{j:e.p({file:e.unref(n.closeIcon),width:"14px",height:"14px"}),k:e.o$1(h)}:{},{l:e.n(!e.unref(r.isPC)&&"tui-search-input-h5"),m:!e.unref(r.isPC)&&e.unref(o)&&"global"===u.searchType},!e.unref(r.isPC)&&e.unref(o)&&"global"===u.searchType?{n:e.t(e.unref(e.Wt).t("TUISearch.取消")),o:e.n(!e.unref(r.isPC)&&"tui-search-input-h5-cancel"),p:e.o$1(h)}:{},{q:e.n(!e.unref(r.isPC)&&"tui-search-input-container-h5"),r:e.n("global"===u.searchType?"tui-search-input-container-global":"tui-search-input-container-conversation")})}}),t=e._export_sfc(u,[["__scopeId","data-v-fd470d80"]]);wx.createComponent(t);
|
||||
6
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../common/Icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-fd470d80', 'tui-search-input-container', q, r]}}"><view class="{{['data-v-fd470d80', 'tui-search-input', l]}}"><view class="tui-search-input-left data-v-fd470d80"><icon wx:if="{{a}}" class="icon data-v-fd470d80" u-i="fd470d80-0" bind:__l="__l" u-p="{{a}}"/></view><input class="tui-search-input-main data-v-fd470d80" type="text" placeholder="{{b}}" focus="{{false}}" enterkeyhint="search" bindblur="{{c}}" bindkeyup="{{d}}" bindconfirm="{{e}}" catchtap="{{f}}" value="{{g}}" bindinput="{{h}}"></input><view wx:if="{{i}}" class="tui-search-input-right data-v-fd470d80" bindtap="{{k}}"><icon wx:if="{{j}}" class="icon data-v-fd470d80" u-i="fd470d80-1" bind:__l="__l" u-p="{{j}}"/></view></view><view wx:if="{{m}}" class="{{['data-v-fd470d80', 'tui-search-input-cancel', o]}}" bindtap="{{p}}">{{n}}</view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-input/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.tui-search-input-container.data-v-fd470d80{display:flex;flex-direction:row;box-sizing:border-box}.tui-search-input-container-global.data-v-fd470d80{flex:1}.tui-search-input-container .tui-search-input.data-v-fd470d80{flex:1;display:flex;flex-direction:row;width:calc(100% - 20px);margin:10px;background:#ededed;justify-content:center;align-items:center;height:28px;border-radius:4px}.tui-search-input-container .tui-search-input-main.data-v-fd470d80{flex:1;background:transparent;border:none;caret-color:#007aff;font-size:14px}.tui-search-input-container .tui-search-input-main.data-v-fd470d80:focus{border:none;outline:none}.tui-search-input-container .tui-search-input-main.data-v-fd470d80::-webkit-input-placeholder{color:#666;font-size:12px}.tui-search-input-container .tui-search-input-main.data-v-fd470d80::placeholder{color:#666;font-size:12px}.tui-search-input-container .tui-search-input-left.data-v-fd470d80,.tui-search-input-container .tui-search-input-right.data-v-fd470d80{display:flex;width:14px;height:14px;padding:0 7px}.tui-search-input-container-h5 .tui-search-input-h5.data-v-fd470d80{height:34px}.tui-search-input-container-h5 .tui-search-input-cancel.data-v-fd470d80{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#007aff;font-size:16px;padding:7px 10px 7px 3px;font-family:PingFang SC,sans-serif}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),r=require("../../../utils/env.js");Math||o();const o=()=>"../../common/Icon.js",a=e.defineComponent({__name:"index",props:{searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(o){const a=o,t=e.ref(),s=e.ref(!1),i=()=>{s.value=!s.value,!r.isUniFrameWork&&s.value&&e.O.listen({domRefs:t.value,handler:u})},c=e.ref([]),u=()=>{s.value=!1};return e.onMounted((()=>{c.value=[...e.R.getExtensionList(e.E.TUISearch.EXTENSION.SEARCH_MORE.EXT_ID)],e.R.callService({serviceName:e.E.TUIConversation.SERVICE.NAME,method:e.E.TUIConversation.SERVICE.METHOD.HIDE_CONVERSATION_HEADER,params:{}})})),e.watch((()=>s.value),(()=>{s.value&&e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:a.searchType})})),(o,a)=>e.e({a:e.p({file:e.unref(n.searchMoreSVG),width:e.unref(r.isPC)?"28px":"34px",height:e.unref(r.isPC)?"28px":"34px"}),b:e.o$1((e=>i())),c:e.unref(s)},e.unref(s)?{d:e.f(e.unref(c),((n,r,o)=>e.e({a:n.icon},n.icon?{b:"e08734bf-1-"+o,c:e.p({file:n.icon})}:{},{d:e.t(n.text),e:r,f:e.o$1((e=>(e=>{var n;const{listener:r={onClicked:()=>{}}}=e;null==(n=null==r?void 0:r.onClicked)||n.call(r,e),i()})(n)),r)})))}:{},{e:e.n(!e.unref(r.isPC)&&"tui-search-more-h5")})}}),t=e._export_sfc(a,[["__scopeId","data-v-e08734bf"]]);wx.createComponent(t);
|
||||
6
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../common/Icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view ref="searchMoreRef" class="{{['data-v-e08734bf', 'tui-search-more', e]}}"><view class="more data-v-e08734bf" bindtap="{{b}}"><icon wx:if="{{a}}" class="more-icon data-v-e08734bf" u-i="e08734bf-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{c}}" class="tui-search-more-list data-v-e08734bf"><view wx:for="{{d}}" wx:for-item="extension" wx:key="e" class="list-item data-v-e08734bf" bindtap="{{extension.f}}"><icon wx:if="{{extension.a}}" class="list-item-icon data-v-e08734bf" u-i="{{extension.b}}" bind:__l="__l" u-p="{{extension.c}}"/><view class="list-item-title data-v-e08734bf">{{extension.d}}</view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-more/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.tui-search-more.data-v-e08734bf{display:flex;flex-direction:column;position:relative}.tui-search-more .more.data-v-e08734bf{width:28px;height:28px;margin-right:6px}.tui-search-more-list.data-v-e08734bf{margin:10px 0;position:absolute;list-style:none;cursor:pointer;right:6px;top:20px;z-index:1000;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px}.tui-search-more-list .list-item.data-v-e08734bf{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:40px;padding:0 10px}.tui-search-more-list .list-item-icon.data-v-e08734bf{margin-right:2px}.tui-search-more-list .list-item-title.data-v-e08734bf{font-size:14px;text-wrap:nowrap;word-break:keep-all}.tui-search-more-h5 .more.data-v-e08734bf{width:34px;height:34px}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"search-result-item": "./search-result-item/index",
|
||||
"search-result-default": "./search-result-default/index",
|
||||
"search-result-loading": "./search-result-loading/index",
|
||||
"icon": "../../common/Icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<search-result-loading wx:if="{{a}}" class="{{['data-v-3d789a1a', 'search-result-loading', b]}}" u-i="3d789a1a-0" bind:__l="__l"/><search-result-default wx:elif="{{c}}" class="{{['data-v-3d789a1a', 'search-result-default', d]}}" u-i="3d789a1a-1" bind:__l="__l"/><view wx:else class="{{['data-v-3d789a1a', 'tui-search-result', E, F]}}"><view wx:if="{{e}}" class="tui-search-result-main data-v-3d789a1a"><view class="tui-search-result-list data-v-3d789a1a"><view wx:for="{{f}}" wx:for-item="result" wx:key="i" class="tui-search-result-list-item data-v-3d789a1a"><view wx:if="{{g}}" class="header data-v-3d789a1a">{{result.a}}</view><view class="list data-v-3d789a1a"><view wx:for="{{result.b}}" wx:for-item="item" wx:key="f" class="{{['data-v-3d789a1a', item.g]}}"><search-result-item wx:if="{{item.a}}" class="data-v-3d789a1a" bindshowResultDetail="{{item.b}}" bindnavigateToChatPosition="{{item.c}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"/></view></view><view wx:if="{{result.c}}" class="more data-v-3d789a1a" bindtap="{{result.h}}"><icon wx:if="{{result.e}}" class="more-icon data-v-3d789a1a" u-i="{{result.d}}" bind:__l="__l" u-p="{{result.e}}"/><view class="more-text data-v-3d789a1a"><label class="data-v-3d789a1a">{{result.f}}</label><label class="data-v-3d789a1a">{{result.g}}</label></view></view></view></view></view><view wx:if="{{h}}" class="{{['data-v-3d789a1a', 'tui-search-result-detail', D]}}"><search-result-loading wx:if="{{i}}" class="{{['data-v-3d789a1a', 'search-result-loading', j]}}" u-i="3d789a1a-4" bind:__l="__l"/><view wx:if="{{k}}" class="tui-search-message-header data-v-3d789a1a"><view class="header-content data-v-3d789a1a"><view class="header-content-count normal data-v-3d789a1a"><label class="data-v-3d789a1a">{{l}}</label><label class="data-v-3d789a1a">{{m}}</label></view><view class="header-content-keyword data-v-3d789a1a"><label wx:for="{{n}}" wx:for-item="keyword" wx:key="b" class="data-v-3d789a1a"><label class="normal data-v-3d789a1a">"</label><label class="highlight data-v-3d789a1a">{{keyword.a}}</label><label class="normal data-v-3d789a1a">"</label></label></view><view class="header-content-type normal data-v-3d789a1a"><label class="data-v-3d789a1a">{{o}}</label><label class="data-v-3d789a1a">{{p}}</label></view></view><view class="header-enter data-v-3d789a1a" bindtap="{{s}}"><label class="data-v-3d789a1a">{{q}}</label><icon wx:if="{{r}}" class="enter-icon data-v-3d789a1a" u-i="3d789a1a-5" bind:__l="__l" u-p="{{r}}"/></view></view><view wx:if="{{t}}" class="tui-search-message-list data-v-3d789a1a"><block wx:if="{{v}}"><view wx:for="{{w}}" wx:for-item="item" wx:key="e" class="{{['data-v-3d789a1a', 'list-item']}}"><search-result-item wx:if="{{item.d}}" class="data-v-3d789a1a" bindshowResultDetail="{{item.a}}" bindnavigateToChatPosition="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></view></block><block wx:else><view wx:for="{{x}}" wx:for-item="group" wx:key="c" class="{{['data-v-3d789a1a', 'list-group', y]}}"><view class="{{['data-v-3d789a1a', 'list-group-date']}}">{{group.a}}</view><view wx:for="{{group.b}}" wx:for-item="item" wx:key="e" class="{{['data-v-3d789a1a', 'list-group-item']}}"><search-result-item wx:if="{{item.d}}" class="data-v-3d789a1a" bindshowResultDetail="{{item.a}}" bindnavigateToChatPosition="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></view></view></block><view wx:if="{{z}}" class="more data-v-3d789a1a" bindtap="{{C}}"><icon wx:if="{{A}}" class="more-icon data-v-3d789a1a" u-i="3d789a1a-8" bind:__l="__l" u-p="{{A}}"/><view class="more-text data-v-3d789a1a">{{B}}</view></view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-result/index.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),t=require("../../../../utils/env.js"),n=require("../../../../../common/assets.js");Math||s();const s=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"index",setup:s=>(s,o)=>({a:e.p({file:e.unref(n.SearchDefaultIcon),width:"88px",height:"75px"}),b:e.t(e.unref(e.Wt).t("TUISearch.暂无搜索结果")),c:e.n(!e.unref(t.isPC)&&"search-result-default-h5")})}),r=e._export_sfc(o,[["__scopeId","data-v-f1387971"]]);wx.createComponent(r);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-f1387971', 'search-result-default', c]}}"><view class="search-result-default-main data-v-f1387971"><icon wx:if="{{a}}" class="data-v-f1387971" u-i="f1387971-0" bind:__l="__l" u-p="{{a}}"/><view class="default-text data-v-f1387971">{{b}}</view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.search-result-default.data-v-f1387971{width:100%;flex:1;display:flex;justify-content:center;align-items:center}.search-result-default-h5.data-v-f1387971{background-color:#f4f4f4}.search-result-default-main.data-v-f1387971{display:flex;flex-direction:column;text-align:center;justify-content:center;align-items:center}.search-result-default-main .default-text.data-v-f1387971{font-family:PingFang SC,sans-serif;font-size:14px;font-weight:400;line-height:20px;color:#666}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../utils.js"),s=require("../../type.js"),a=require("../../../../utils/env.js");Math||(n+i+l+p+r)();const n=()=>"./message-abstract/message-abstract-text.js",i=()=>"./message-abstract/message-abstract-file.js",l=()=>"./message-abstract/message-abstract-custom.js",p=()=>"./message-abstract/message-abstract-image.js",r=()=>"./message-abstract/message-abstract-video.js",y=e.defineComponent({__name:"index",props:{listItem:{default:()=>({})},listItemContent:{default:()=>({})},type:{default:"allMessage"},displayType:{default:"info"},keywordList:{default:()=>[]}},emits:["showResultDetail","navigateToChatPosition"],setup(n,{emit:i}){const l=n,p=i,r=e.ref(e.qt.TYPES),y=e.ref(""),u=e.ref(""),o=e.ref([]),m=e.ref(""),d=e.ref(!1);e.watchEffect((()=>{var e,s;y.value=t.generateSearchResultAvatar(l.listItem),u.value=t.generateSearchResultShowName(l.listItem,null==l?void 0:l.listItemContent),o.value=t.generateSearchResultShowContent(l.listItem,l.type,l.keywordList,"info"===(null==l?void 0:l.displayType)),m.value=(null==(e=l.listItem)?void 0:e.time)?t.generateSearchResultTime(1e3*(null==(s=l.listItem)?void 0:s.time)):""}));const f=()=>{var e;"contact"===l.type||"group"===l.type?t.enterConversation(l.listItem):"info"!==l.displayType||(null==(e=l.listItem)?void 0:e.ID)?I():p("showResultDetail",!0,l.type,l.listItem)},T=e=>{d.value=e},I=()=>{p("navigateToChatPosition",l.listItem)};return(t,n)=>{return e.e({a:"info"===t.displayType||"bubble"===t.displayType},"info"===t.displayType||"bubble"===t.displayType?e.e({b:e.n(t.displayType+"-left-avatar"),c:e.unref(y)||"",d:e.n(t.displayType+"-left"),e:e.t(e.unref(u)),f:e.n(t.displayType+"-main-name"),g:"info"===t.displayType||t.listItem.type===e.unref(r).MSG_TEXT},"info"===t.displayType||t.listItem.type===e.unref(r).MSG_TEXT?{h:e.p({content:e.unref(o),highlightType:"info"===t.displayType?"font":"background",displayType:t.displayType})}:t.listItem.type===e.unref(r).MSG_FILE?{j:e.p({contentText:e.unref(o),messageContent:t.listItemContent,displayType:t.displayType})}:t.listItem.type===e.unref(r).MSG_IMAGE||t.listItem.type===e.unref(r).MSG_VIDEO?{}:t.listItem.type===e.unref(r).MSG_CUSTOM?{n:e.p({contentText:e.unref(o),message:t.listItem,messageContent:t.listItemContent})}:{o:e.t((i=t.listItem,(null==i?void 0:i.type)?e.Wt.t(`TUISearch.${s.messageTypeAbstractMap[i.type]}`):e.Wt.t("TUISearch.[合并消息]")))},{i:t.listItem.type===e.unref(r).MSG_FILE,k:t.listItem.type===e.unref(r).MSG_IMAGE,l:t.listItem.type===e.unref(r).MSG_VIDEO,m:t.listItem.type===e.unref(r).MSG_CUSTOM,p:e.n(t.displayType+"-main-content"),q:e.n(t.displayType+"-main"),r:e.t(e.unref(m)),s:e.n(t.displayType+"-right-time"),t:"bubble"===t.displayType&&e.unref(d)},"bubble"===t.displayType&&e.unref(d)?{v:e.t(e.unref(e.Wt).t("TUISearch.定位到聊天位置")),w:e.n(t.displayType+"-right-to"),x:e.o$1(I)}:{},{y:e.n(t.displayType+"-right"),z:e.n(t.displayType)}):"file"===t.displayType?e.e({B:e.n(t.displayType+"-header-avatar"),C:e.unref(y),D:e.t(e.unref(u)),E:e.n(t.displayType+"-header-name"),F:e.unref(d)},e.unref(d)?{G:e.t(e.unref(e.Wt).t("TUISearch.定位到聊天位置")),H:e.n(t.displayType+"-header-to"),I:e.o$1(I)}:{},{J:e.t(e.unref(m)),K:e.n(t.displayType+"-header-time"),L:e.n(t.displayType+"-header"),M:e.p({contentText:e.unref(o),messageContent:t.listItemContent,displayType:"bubble"}),N:e.n(t.displayType+"-main-content"),O:e.n(t.displayType)}):"image"===t.displayType?e.e({Q:t.listItem.type===e.unref(r).MSG_IMAGE},t.listItem.type===e.unref(r).MSG_IMAGE?{R:e.p({messageContent:t.listItemContent})}:t.listItem.type===e.unref(r).MSG_VIDEO?{T:e.p({messageContent:t.listItemContent})}:{},{S:t.listItem.type===e.unref(r).MSG_VIDEO,U:e.unref(d)},e.unref(d)?{V:e.t(e.unref(e.Wt).t("TUISearch.定位到聊天位置"))}:{},{W:e.o$1(I),X:e.n(t.displayType)}):{},{A:"file"===t.displayType,P:"image"===t.displayType,Y:e.n(!e.unref(a.isPC)&&"search-result-list-item-h5"),Z:e.n("search-result-list-item-"+t.displayType),aa:e.n(e.unref(d)&&"hover-"+t.displayType),ab:e.o$1(f),ac:e.o$1((e=>T(!0))),ad:e.o$1((e=>T(!1)))});var i}}}),u=e._export_sfc(y,[["__scopeId","data-v-3472b08d"]]);wx.createComponent(u);
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"message-abstract-text": "./message-abstract/message-abstract-text",
|
||||
"message-abstract-file": "./message-abstract/message-abstract-file",
|
||||
"message-abstract-custom": "./message-abstract/message-abstract-custom",
|
||||
"message-abstract-image": "./message-abstract/message-abstract-image",
|
||||
"message-abstract-video": "./message-abstract/message-abstract-video"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-3472b08d', 'search-result-list-item', Y, Z, aa]}}" bindtap="{{ab}}" bindmouseenter="{{ac}}" bindmouseleave="{{ad}}"><view wx:if="{{a}}" class="{{['data-v-3472b08d', z]}}"><view class="{{['data-v-3472b08d', d]}}"><image class="{{['data-v-3472b08d', b]}}" src="{{c}}" onerror="this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"></image></view><view class="{{['data-v-3472b08d', q]}}"><view class="{{['data-v-3472b08d', f]}}">{{e}}</view><view class="{{['data-v-3472b08d', p]}}"><message-abstract-text wx:if="{{g}}" class="data-v-3472b08d" u-i="3472b08d-0" bind:__l="__l" u-p="{{h}}"/><message-abstract-file wx:elif="{{i}}" class="data-v-3472b08d" u-i="3472b08d-1" bind:__l="__l" u-p="{{j}}"/><view wx:elif="{{k}}" class="data-v-3472b08d"/><view wx:elif="{{l}}" class="data-v-3472b08d"/><message-abstract-custom wx:elif="{{m}}" class="data-v-3472b08d" u-i="3472b08d-2" bind:__l="__l" u-p="{{n}}"/><view wx:else class="data-v-3472b08d">{{o}}</view></view></view><view class="{{['data-v-3472b08d', y]}}"><view class="{{['data-v-3472b08d', s]}}">{{r}}</view><view wx:if="{{t}}" class="{{['data-v-3472b08d', w]}}" catchtap="{{x}}">{{v}}</view></view></view><view wx:elif="{{A}}" class="{{['data-v-3472b08d', O]}}"><view class="{{['data-v-3472b08d', L]}}"><image class="{{['data-v-3472b08d', B]}}" src="{{C}}" onerror="this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"></image><view class="{{['data-v-3472b08d', E]}}">{{D}}</view><view wx:if="{{F}}" class="{{['data-v-3472b08d', H]}}" catchtap="{{I}}">{{G}}</view><view class="{{['data-v-3472b08d', K]}}">{{J}}</view></view><view class="{{['data-v-3472b08d', N]}}"><message-abstract-file wx:if="{{M}}" class="data-v-3472b08d" u-i="3472b08d-3" bind:__l="__l" u-p="{{M}}"/></view></view><view wx:elif="{{P}}" class="{{['data-v-3472b08d', X]}}"><view class="image-container data-v-3472b08d" catchtap="{{W}}"><message-abstract-image wx:if="{{Q}}" class="data-v-3472b08d" u-i="3472b08d-4" bind:__l="__l" u-p="{{R}}"/><message-abstract-video wx:elif="{{S}}" class="data-v-3472b08d" u-i="3472b08d-5" bind:__l="__l" u-p="{{T}}"/><view wx:if="{{U}}" class="image-container-hover data-v-3472b08d"><view class="image-container-hover-text data-v-3472b08d">{{V}}</view></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=require("../../../../../constant.js"),t=require("../../../../../utils/type-check.js"),r=require("../../../../../../common/assets.js");Math||u();const u=()=>"../../../../common/Icon.js",f=e.defineComponent({__name:"message-abstract-custom",props:{contentText:{default:()=>[]},message:{default:()=>({})},messageContent:{default:()=>({})}},setup(u){var f,l;const s=u,i=e.ref(null==(f=null==s?void 0:s.message)?void 0:f.payload),a=e.computed((()=>{var e,n;return(null==(e=null==i?void 0:i.value)?void 0:e.data)?t.JSONToObject(i.value.data):null==(n=null==i?void 0:i.value)?void 0:n.data})),o=e.computed((()=>{var e;return null==(e=null==a?void 0:a.value)?void 0:e.businessID})),c=e.ref(null==s?void 0:s.contentText),_=e.ref((null==(l=null==s?void 0:s.messageContent)?void 0:l.custom)||"[自定义消息]");return(u,f)=>e.e({a:e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(a).title),c:e.unref(a).hyperlinks_text},e.unref(a).hyperlinks_text?{d:e.t(e.unref(a).hyperlinks_text.key),e:e.unref(a).hyperlinks_text.value}:{},{f:e.unref(a).item&&e.unref(a).item.length>0},e.unref(a).item&&e.unref(a).item.length>0?{g:e.f(e.unref(a).item,((n,r,u)=>e.e({a:e.unref(t.isUrl)(n.value)},e.unref(t.isUrl)(n.value)?{b:e.t(n.key),c:n.value}:{d:e.t(n.key)},{e:r})))}:{},{h:e.f(e.unref(c),((n,t,r)=>({a:e.t(n.text),b:t,c:e.n(n&&n.isHighlight?"highlight":"normal")})))}):e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).EVALUATE?e.e({j:e.f(e.unref(c),((n,t,r)=>({a:e.t(n.text),b:t,c:e.n(n&&n.isHighlight?"highlight":"normal")}))),k:e.unref(a).score},e.unref(a).score?{l:e.f(Math.max(e.unref(a).score,0),((e,n,t)=>({a:"069306e2-0-"+t,b:n}))),m:e.p({file:e.unref(r.star)})}:{},{n:e.t(e.unref(a).comment)}):e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).ORDER?{p:e.unref(a).imageUrl,q:e.t(e.unref(a).title),r:e.f(e.unref(c),((n,t,r)=>({a:e.t(n.text),b:t,c:e.n(n&&n.isHighlight?"highlight":"normal")}))),s:e.t(e.unref(a).price)}:e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(a).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(a).link}:{y:e.t(e.unref(_))},{i:e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).EVALUATE,o:e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(o)===e.unref(n.CHAT_MSG_CUSTOM_TYPE).LINK,z:e.o$1((()=>{}))})}}),l=e._export_sfc(f,[["__scopeId","data-v-069306e2"]]);wx.createComponent(l);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-069306e2', 'message-abstract-custom']}}" capture-catch:tap="{{z}}"><block wx:if="{{a}}"><view class="{{['data-v-069306e2', 'service']}}"><view class="{{['data-v-069306e2', 'service-header']}}"><label class="{{['data-v-069306e2', 'service-header-title']}}">{{b}}</label><navigator wx:if="{{c}}" class="{{['data-v-069306e2', 'service-header-link', 'link']}}" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="{{['data-v-069306e2', 'service-list']}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="{{['data-v-069306e2', 'service-list-item']}}"><navigator wx:if="{{item.a}}" class="{{['data-v-069306e2', 'service-list-item-link', 'link']}}" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="{{['data-v-069306e2', 'service-list-item-key']}}">{{item.d}}</view></view></view><view class="{{['data-v-069306e2', 'service-description', 'description']}}"><label wx:for="{{h}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-069306e2', contentItem.c]}}">{{contentItem.a}}</label></view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-069306e2"><view class="{{['data-v-069306e2', 'evaluate-description', 'description']}}"><label wx:for="{{j}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-069306e2', contentItem.c]}}">{{contentItem.a}}</label></view><view wx:if="{{k}}" class="evaluate-list data-v-069306e2"><view wx:for="{{l}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-069306e2"><icon wx:if="{{m}}" class="file-icon data-v-069306e2" u-i="{{item.a}}" bind:__l="__l" u-p="{{m}}"/></view></view><view class="data-v-069306e2">{{n}}</view></view></block><block wx:elif="{{o}}"><view class="order data-v-069306e2"><image class="order-image data-v-069306e2" src="{{p}}" alt=""></image><view class="order-main data-v-069306e2"><view class="order-main-title data-v-069306e2">{{q}}</view><view class="{{['data-v-069306e2', 'order-main-description', 'description']}}"><label wx:for="{{r}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-069306e2', contentItem.c]}}">{{contentItem.a}}</label></view><label class="order-main-price data-v-069306e2">{{s}}</label></view></view></block><block wx:elif="{{t}}"><view class="text-link data-v-069306e2"><view class="{{['data-v-069306e2', 'text-link-description', 'description']}}"><view class="data-v-069306e2">{{v}}</view></view><navigator class="{{['data-v-069306e2', 'link']}}" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:else><label class="data-v-069306e2">{{y}}</label></block></view>
|
||||
@@ -0,0 +1 @@
|
||||
body.data-v-069306e2,div.data-v-069306e2,ul.data-v-069306e2,ol.data-v-069306e2,dt.data-v-069306e2,dd.data-v-069306e2,li.data-v-069306e2,dl.data-v-069306e2,h1.data-v-069306e2,h2.data-v-069306e2,h3.data-v-069306e2,h4.data-v-069306e2,p.data-v-069306e2{margin:0;padding:0;font-style:normal}ol.data-v-069306e2,ul.data-v-069306e2,li.data-v-069306e2{list-style:none}img.data-v-069306e2{border:0;vertical-align:middle;pointer-events:none}body.data-v-069306e2{color:#000;background:#fff}.clear.data-v-069306e2{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-069306e2{color:#000;text-decoration:none;cursor:pointer}a.data-v-069306e2:hover{text-decoration:none}input.data-v-069306e2,textarea.data-v-069306e2{-webkit-user-select:auto;user-select:auto}input.data-v-069306e2:focus,input.data-v-069306e2:active,textarea.data-v-069306e2:focus,textarea.data-v-069306e2:active{outline:none}.chat-aside.data-v-069306e2{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-abstract-custom .service .service-header.data-v-069306e2{font-size:14px;color:#000}.message-abstract-custom .service .service-list .service-list-item.data-v-069306e2{font-size:14px}.message-abstract-custom .evaluate .evaluate-list.data-v-069306e2{padding:5px 0;display:flex;flex-direction:row}.message-abstract-custom .evaluate .evaluate-list .evaluate-item.data-v-069306e2{padding:0 2px}.message-abstract-custom .order.data-v-069306e2{display:flex}.message-abstract-custom .order .order-main.data-v-069306e2{padding-left:5px}.message-abstract-custom .order .order-main .order-main-title.data-v-069306e2{font-size:14px;color:#000}.message-abstract-custom .order .order-main .order-main-description.data-v-069306e2{font-family:PingFangSC-Regular,sans-serif;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.message-abstract-custom .order .order-main .order-main-price.data-v-069306e2{font-family:PingFangSC-Regular,sans-serif;line-height:25px;color:#ff7201}.message-abstract-custom .order .order-img.data-v-069306e2{width:67px;height:67px}.message-abstract-custom .link.data-v-069306e2{font-size:14px;color:#679ce1}.message-abstract-custom .description.data-v-069306e2{font-size:14px;color:#000}.message-abstract-custom .description .highlight.data-v-069306e2{background-color:rgba(0,122,255,.2)}.message-abstract-custom .description .normal.data-v-069306e2{font-size:14px;color:#000}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=e.defineComponent({__name:"message-abstract-file",props:{contentText:{default:()=>[]},messageContent:{default:()=>({})},displayType:{default:"bubble"}},setup(n){const t=n,o=e.ref(t.contentText),s=e.computed((()=>{var e;const n=null==(e=null==t?void 0:t.messageContent)?void 0:e.url,o=null==n?void 0:n.lastIndexOf("."),s=null==n?void 0:n.substring(o+1);return l(s)})),r=e.computed((()=>{var e;return null==(e=null==t?void 0:t.messageContent)?void 0:e.size})),l=e=>{const n="https://web.sdk.qcloud.com/component/TUIKit/assets/file-",t=["image","pdf","text","ppt","presentation","sheet","zip","word","video","unknown"];let o="",s="";return null==t||t.forEach((t=>{(null==e?void 0:e.includes(t))&&(o=n+t+".svg",s=t)})),{iconSrc:o||n+"unknown.svg",iconType:s||"unknown"}};return(n,t)=>({a:e.unref(s).iconSrc,b:e.f(e.unref(o),((n,t,o)=>({a:e.t(n.text),b:t,c:e.n(n&&n.isHighlight?"highlight":"normal")}))),c:e.t(e.unref(r)),d:e.n(`message-abstract-file-${n.displayType}`)})}}),t=e._export_sfc(n,[["__scopeId","data-v-780949a7"]]);wx.createComponent(t);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-780949a7', 'message-abstract-file', d]}}"><view class="{{['data-v-780949a7', 'message-abstract-file-left']}}"><image class="{{['data-v-780949a7', 'message-abstract-file-left-icon']}}" src="{{a}}"></image></view><view class="{{['data-v-780949a7', 'message-abstract-file-main']}}"><view class="{{['data-v-780949a7', 'message-abstract-file-main-name']}}"><label wx:for="{{b}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-780949a7', contentItem.c]}}">{{contentItem.a}}</label></view><view class="{{['data-v-780949a7', 'message-abstract-file-main-size']}}">{{c}}</view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
body.data-v-780949a7,div.data-v-780949a7,ul.data-v-780949a7,ol.data-v-780949a7,dt.data-v-780949a7,dd.data-v-780949a7,li.data-v-780949a7,dl.data-v-780949a7,h1.data-v-780949a7,h2.data-v-780949a7,h3.data-v-780949a7,h4.data-v-780949a7,p.data-v-780949a7{margin:0;padding:0;font-style:normal}ol.data-v-780949a7,ul.data-v-780949a7,li.data-v-780949a7{list-style:none}img.data-v-780949a7{border:0;vertical-align:middle;pointer-events:none}body.data-v-780949a7{color:#000;background:#fff}.clear.data-v-780949a7{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-780949a7{color:#000;text-decoration:none;cursor:pointer}a.data-v-780949a7:hover{text-decoration:none}input.data-v-780949a7,textarea.data-v-780949a7{-webkit-user-select:auto;user-select:auto}input.data-v-780949a7:focus,input.data-v-780949a7:active,textarea.data-v-780949a7:focus,textarea.data-v-780949a7:active{outline:none}.chat-aside.data-v-780949a7{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-abstract-file.data-v-780949a7{display:flex;flex:1;overflow:hidden;flex-direction:row;justify-content:center;align-items:center}.message-abstract-file-left.data-v-780949a7{width:42px;height:32px}.message-abstract-file-left-icon.data-v-780949a7{width:32px;height:32px;margin-right:10px;border-radius:5px}.message-abstract-file-main.data-v-780949a7{flex:1;overflow:hidden}.message-abstract-file-main-name.data-v-780949a7{width:100%;color:#000;font-size:14px;height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-abstract-file-main-name .highlight.data-v-780949a7{background-color:rgba(0,122,255,.2)}.message-abstract-file-main-name .normal.data-v-780949a7{color:#000}.message-abstract-file-main-size.data-v-780949a7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#888;font-size:12px}.message-abstract-file-bubble.data-v-780949a7{background-color:#f1f1f1}.message-abstract-file-bubble .message-abstract-file-main .message-abstract-file-main-name.data-v-780949a7,.message-abstract-file-bubble .message-abstract-file-main .message-abstract-file-main-name .normal.data-v-780949a7{color:#1f2329}.message-abstract-file-file.data-v-780949a7{margin:8px 10px 5px;padding:10px;background-color:#f1f1f1;height:51px}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-abstract-image",props:{messageContent:{default:()=>({})}},setup(t){const s=t,n=e.computed((()=>s.messageContent.url||""));return(t,s)=>({a:e.unref(n)})}}),s=e._export_sfc(t,[["__scopeId","data-v-71b759bd"]]);wx.createComponent(s);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-71b759bd', 'message-abstract-image-container']}}"><image class="{{['data-v-71b759bd', 'message-abstract-image']}}" src="{{a}}"></image></view>
|
||||
@@ -0,0 +1 @@
|
||||
body.data-v-71b759bd,div.data-v-71b759bd,ul.data-v-71b759bd,ol.data-v-71b759bd,dt.data-v-71b759bd,dd.data-v-71b759bd,li.data-v-71b759bd,dl.data-v-71b759bd,h1.data-v-71b759bd,h2.data-v-71b759bd,h3.data-v-71b759bd,h4.data-v-71b759bd,p.data-v-71b759bd{margin:0;padding:0;font-style:normal}ol.data-v-71b759bd,ul.data-v-71b759bd,li.data-v-71b759bd{list-style:none}img.data-v-71b759bd{border:0;vertical-align:middle;pointer-events:none}body.data-v-71b759bd{color:#000;background:#fff}.clear.data-v-71b759bd{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-71b759bd{color:#000;text-decoration:none;cursor:pointer}a.data-v-71b759bd:hover{text-decoration:none}input.data-v-71b759bd,textarea.data-v-71b759bd{-webkit-user-select:auto;user-select:auto}input.data-v-71b759bd:focus,input.data-v-71b759bd:active,textarea.data-v-71b759bd:focus,textarea.data-v-71b759bd:active{outline:none}.chat-aside.data-v-71b759bd{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-abstract-image-container.data-v-71b759bd{max-width:100px;max-height:100px;width:100px;height:100px;overflow:hidden;background-color:#fff}.message-abstract-image-container .message-abstract-image.data-v-71b759bd{max-width:100px;max-height:100px;width:100px;height:100px;object-fit:contain}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../../TUIChat/emoji-config/index.js"),n=e.defineComponent({__name:"message-abstract-text",props:{content:{default:()=>[]},highlightType:{default:"font"},displayType:{default:"info"}},setup(n){const s=n,a=e.ref(s.content);return(n,s)=>({a:e.f(e.unref(a),((n,s,a)=>({a:e.t(e.unref(t.transformTextWithKeysToEmojiNames)(n.text)),b:s,c:e.n(n&&n.isHighlight?"highlight":"normal")}))),b:e.n(`message-abstract-text-${n.highlightType}`),c:e.n(`message-abstract-text-${n.displayType}`)})}}),s=e._export_sfc(n,[["__scopeId","data-v-77cc732e"]]);wx.createComponent(s);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-77cc732e', 'message-abstract-text', b, c]}}"><label wx:for="{{a}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-77cc732e', contentItem.c]}}">{{contentItem.a}}</label></view>
|
||||
@@ -0,0 +1 @@
|
||||
body.data-v-77cc732e,div.data-v-77cc732e,ul.data-v-77cc732e,ol.data-v-77cc732e,dt.data-v-77cc732e,dd.data-v-77cc732e,li.data-v-77cc732e,dl.data-v-77cc732e,h1.data-v-77cc732e,h2.data-v-77cc732e,h3.data-v-77cc732e,h4.data-v-77cc732e,p.data-v-77cc732e{margin:0;padding:0;font-style:normal}ol.data-v-77cc732e,ul.data-v-77cc732e,li.data-v-77cc732e{list-style:none}img.data-v-77cc732e{border:0;vertical-align:middle;pointer-events:none}body.data-v-77cc732e{color:#000;background:#fff}.clear.data-v-77cc732e{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-77cc732e{color:#000;text-decoration:none;cursor:pointer}a.data-v-77cc732e:hover{text-decoration:none}input.data-v-77cc732e,textarea.data-v-77cc732e{-webkit-user-select:auto;user-select:auto}input.data-v-77cc732e:focus,input.data-v-77cc732e:active,textarea.data-v-77cc732e:focus,textarea.data-v-77cc732e:active{outline:none}.chat-aside.data-v-77cc732e{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-abstract-text.data-v-77cc732e{justify-content:flex-start}.message-abstract-text-font.data-v-77cc732e{color:#999}.message-abstract-text-font .highlight.data-v-77cc732e{color:#007aff}.message-abstract-text-font .normal.data-v-77cc732e{color:#999}.message-abstract-text-background.data-v-77cc732e{color:#1f2329}.message-abstract-text-background .highlight.data-v-77cc732e{background-color:rgba(0,122,255,.2)}.message-abstract-text-background .normal.data-v-77cc732e{font-size:14px}.message-abstract-text-info.data-v-77cc732e{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.message-abstract-text-info .highlight.data-v-77cc732e,.message-abstract-text-info .normal.data-v-77cc732e{font-size:12px}.message-abstract-text-bubble.data-v-77cc732e,.message-abstract-text-bubble .highlight.data-v-77cc732e,.message-abstract-text-bubble .normal.data-v-77cc732e{font-size:14px}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const s=require("../../../../../../common/assets.js");Math||t();const t=()=>"../../../../common/Icon.js",n=e.defineComponent({__name:"message-abstract-video",props:{messageContent:{default:()=>({})}},setup(t){const n=t,o=e.computed((()=>n.messageContent.snapshotUrl||n.messageContent.url));return(t,n)=>({a:e.unref(o),b:e.p({file:e.unref(s.playIcon)})})}}),o=e._export_sfc(n,[["__scopeId","data-v-d91d0217"]]);wx.createComponent(o);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-d91d0217', 'message-abstract-video']}}"><view class="message-abstract-video-box data-v-d91d0217"><image src="{{a}}" class="{{['data-v-d91d0217', 'video-snapshot']}}"></image><icon wx:if="{{b}}" class="video-play data-v-d91d0217" u-i="d91d0217-0" bind:__l="__l" u-p="{{b}}"/></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
body.data-v-d91d0217,div.data-v-d91d0217,ul.data-v-d91d0217,ol.data-v-d91d0217,dt.data-v-d91d0217,dd.data-v-d91d0217,li.data-v-d91d0217,dl.data-v-d91d0217,h1.data-v-d91d0217,h2.data-v-d91d0217,h3.data-v-d91d0217,h4.data-v-d91d0217,p.data-v-d91d0217{margin:0;padding:0;font-style:normal}ol.data-v-d91d0217,ul.data-v-d91d0217,li.data-v-d91d0217{list-style:none}img.data-v-d91d0217{border:0;vertical-align:middle;pointer-events:none}body.data-v-d91d0217{color:#000;background:#fff}.clear.data-v-d91d0217{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-d91d0217{color:#000;text-decoration:none;cursor:pointer}a.data-v-d91d0217:hover{text-decoration:none}input.data-v-d91d0217,textarea.data-v-d91d0217{-webkit-user-select:auto;user-select:auto}input.data-v-d91d0217:focus,input.data-v-d91d0217:active,textarea.data-v-d91d0217:focus,textarea.data-v-d91d0217:active{outline:none}.chat-aside.data-v-d91d0217{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-abstract-video.data-v-d91d0217{max-width:100px;max-height:100px;width:100px;height:100px;overflow:hidden;background-color:#fff}.message-abstract-video-box.data-v-d91d0217{max-width:100px;max-height:100px;width:100px;height:100px;overflow:hidden;background-color:#fff;position:relative}.message-abstract-video-box .video-snapshot.data-v-d91d0217{max-width:100px;max-height:100px;width:100px;height:100px;object-fit:contain}.message-abstract-video-box .video-play.data-v-d91d0217{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;width:35px;height:35px;margin:auto}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),n=require("../../../../utils/env.js");Math||o();const o=()=>"../../../common/Loading/index.js",t=e.defineComponent({__name:"index",setup:o=>(o,t)=>({a:e.p({width:"40px",height:"40px"}),b:e.n(!e.unref(n.isPC)&&"search-result-loading-h5")})}),s=e._export_sfc(t,[["__scopeId","data-v-97e875b1"]]);wx.createComponent(s);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"loading": "../../../common/Loading/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-97e875b1', 'search-result-loading', b]}}"><loading wx:if="{{a}}" class="data-v-97e875b1" u-i="97e875b1-0" bind:__l="__l" u-p="{{a}}"/></view>
|
||||
@@ -0,0 +1 @@
|
||||
.search-result-loading.data-v-97e875b1{width:100%;flex:1;display:flex;justify-content:center;align-items:center}.search-result-loading-h5.data-v-97e875b1{background-color:#f4f4f4}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-time-list.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-time-list.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=86400,i={all:{key:"all",label:"全部",value:{timePosition:0,timePeriod:0}},oneDay:{key:"today",label:"今天",value:{timePosition:0,timePeriod:e}},threeDay:{key:"threeDays",label:"近三天",value:{timePosition:0,timePeriod:259200}},sevenDay:{key:"sevenDays",label:"近七天",value:{timePosition:0,timePeriod:604800}}},a=i.all;exports.searchMessageTimeDefault=a,exports.searchMessageTimeList=i;
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-type-list.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/search-type-list.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),s={allMessage:{key:"allMessage",label:"全部",value:[e.qt.TYPES.MSG_TEXT,e.qt.TYPES.MSG_FILE,e.qt.TYPES.MSG_IMAGE,e.qt.TYPES.MSG_VIDEO,e.qt.TYPES.MSG_AUDIO,e.qt.TYPES.MSG_LOCATION,e.qt.TYPES.MSG_CUSTOM,e.qt.TYPES.MSG_MERGER]},textMessage:{key:"textMessage",label:"文本",value:[e.qt.TYPES.MSG_TEXT]},fileMessage:{key:"fileMessage",label:"文件",value:[e.qt.TYPES.MSG_FILE]},imageMessage:{key:"imageMessage",label:"图片/视频",value:[e.qt.TYPES.MSG_IMAGE,e.qt.TYPES.MSG_VIDEO]},otherMessage:{key:"otherMessage",label:"其他",value:[e.qt.TYPES.MSG_AUDIO,e.qt.TYPES.MSG_LOCATION,e.qt.TYPES.MSG_CUSTOM,e.qt.TYPES.MSG_MERGER]}};Object.keys(s).filter((e=>"all"!==e));const t={global:s.allMessage,conversation:s.textMessage},a=["allMessage","textMessage","fileMessage","otherMessage"],M=Object.keys(s).filter((e=>null==a?void 0:a.includes(e))).reduce(((e,t)=>(e[t]=s[t],e)),{}),l=["textMessage","fileMessage","imageMessage","otherMessage"],S=Object.keys(s).filter((e=>null==l?void 0:l.includes(e))).reduce(((e,t)=>(e[t]=s[t],e)),{});exports.conversationSearchTypeList=S,exports.globalSearchTypeList=M,exports.searchMessageTypeDefault=t,exports.searchMessageTypeList=s;
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/server.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/server.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),r=require("../../utils/env.js");exports.TUISearchServer=class{constructor(){e.R.registerService(e.E.TUISearch.SERVICE.NAME,this),e.R.registerExtension(e.E.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,this)}onCall(r,s){switch(r){case e.E.TUISearch.SERVICE.METHOD.SEARCH_GROUP:return this.searchGroup(null==s?void 0:s.groupID);case e.E.TUISearch.SERVICE.METHOD.SEARCH_USER:return this.searchUser(null==s?void 0:s.userID);case e.E.TUISearch.SERVICE.METHOD.SEARCH_FRIEND:return this.searchFriend(null==s?void 0:s.userID);case e.E.TUISearch.SERVICE.METHOD.SEARCH_GROUP_MEMBER:return this.searchGroupMember(null==s?void 0:s.groupID,null==s?void 0:s.userID)}}onGetExtension(s){if(s===e.E.TUIChat.EXTENSION.INPUT_MORE.EXT_ID){const s=[],t={weight:3e3,text:"搜索",icon:"https://web.sdk.qcloud.com/component/TUIKit/assets/message-search.svg",data:{name:"search"},listener:{onClicked:()=>{var s;e.Jt.update(e.o.SEARCH,"isShowInConversationSearch",!0),r.isUniFrameWork&&(null==(s=e.i)||s.navigateTo({url:"/TUIKit/components/TUISearch/index"}))}}};return s.push(t),s}}async searchFriend(r){return e.ts.getFriendProfile({userIDList:[r]})}async searchUser(r){return e.Zt.getUserProfile({userIDList:[r]})}async searchGroup(r){return e.es.searchGroupByID(r)}async searchGroupMember(r,s){return e.es.getGroupMemberProfile({groupID:r,userIDList:[s]})}};
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/type.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/type.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const S=require("../../../common/vendor.js"),E={[S.qt.TYPES.MSG_TEXT]:"[文本]",[S.qt.TYPES.MSG_IMAGE]:"[图片]",[S.qt.TYPES.MSG_AUDIO]:"[语音]",[S.qt.TYPES.MSG_VIDEO]:"[视频]",[S.qt.TYPES.MSG_FILE]:"[文件]",[S.qt.TYPES.MSG_CUSTOM]:"[自定义消息]",[S.qt.TYPES.MSG_SYSTEM]:"[系统消息]",[S.qt.TYPES.MSG_MERGER]:"[合并消息]",[S.qt.TYPES.MSG_LOCATION]:"[位置消息]"};exports.messageTypeAbstractMap=E;
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/utils.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUISearch/utils.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),t=require("./search-type-list.js"),n=require("../common/Toast/index.js"),o=require("./type.js"),s=require("../../utils/env.js"),r=require("../common/Toast/type.js"),i=(e,t)=>{var n;if(!e||!t||!t.length)return[{text:e||"",isHighlight:!1}];const o=[];for(let a=0;a<t.length;a++){const s=null==(n=t[a])?void 0:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(s,"gi");let i;for(;null!==(i=r.exec(e));){const e=i.index,t=i.index+i[0].length-1;o.push([e,t])}}const s=[o[0]];if(o.length>1){o.sort(((e,t)=>e[0]-t[0]));for(let e=1;e<o.length;e++){const t=o[e],n=s[s.length-1];t[0]-1<=n[1]?n[1]=Math.max(n[1],t[1]):s.push(t)}}if(!s[0])return[{text:e,isHighlight:!1}];const r=[];let i=0;for(let a=0;a<s.length;a++){const t=e.substring(i,s[a][0]);t&&r.push({text:t,isHighlight:!1});const n=e.substring(s[a][0],s[a][1]+1);n&&r.push({text:n,isHighlight:!0}),i=s[a][1]+1}const l=e.substring(i);return l&&r.push({text:l,isHighlight:!1}),r};exports.debounce=(e,t)=>{let n=null;return(...o)=>{null!==n&&(clearTimeout(n),n=null),n=setTimeout((()=>e(...o)),t)}},exports.enterConversation=t=>{const o=(null==t?void 0:t.conversationID)||((null==t?void 0:t.groupID)?`GROUP${null==t?void 0:t.groupID}`:`C2C${null==t?void 0:t.userID}`);e.Xt.switchConversation(o).then((()=>{var t;e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:"global"}),e.Jt.update(e.o.SEARCH,"currentSearchInputValue",{value:"",searchType:"global"}),s.isUniFrameWork&&(null==(t=e.i)||t.navigateTo({url:"/TUIKit/components/TUIChat/index"}))})).catch((t=>{console.warn("switch conversation failed:",null==t?void 0:t.message),n.Toast({message:e.Wt.t("TUISearch.进入会话失败"),type:r.TOAST_TYPE.ERROR,duration:1e3})}))},exports.generateSearchResultAvatar=t=>{var n,o,s,r;return t?t.ID?t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png":t.groupID?t.avatar||`https://web.sdk.qcloud.com/im/assets/images/${null==t?void 0:t.type}.svg`:t.userID?t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png":(null==(n=null==t?void 0:t.conversation)?void 0:n.conversationID)?"function"==typeof t.conversation.getAvatar?null==(o=t.conversation)?void 0:o.getAvatar():null==(r=null==(s=e.Jt.getConversationModel(t.conversation.conversationID))?void 0:s.getAvatar)?void 0:r.call(s):"":""},exports.generateSearchResultShowContent=(n,s,r,l=!0)=>{var a,u,g,c;if(null==n?void 0:n.groupID)return[{text:"groupID: ",isHighlight:!1},{text:n.groupID,isHighlight:!0}];if(null==n?void 0:n.userID)return[{text:"userID: ",isHighlight:!1},{text:n.userID,isHighlight:!0}];if((null==n?void 0:n.conversation)||(null==n?void 0:n.flow)){if(1===(null==n?void 0:n.messageCount)||(null==n?void 0:n.flow)){const t=(null==n?void 0:n.flow)?n:null==n?void 0:n.messageList[0],s=(null==(a=null==t?void 0:t.payload)?void 0:a.text)||(null==(u=null==t?void 0:t.payload)?void 0:u.fileName)||(null==(g=null==t?void 0:t.payload)?void 0:g.description),c=[];return(null==t?void 0:t.type)&&l&&t.type!==e.qt.TYPES.MSG_TEXT&&c.push({text:e.Wt.t(`TUISearch.${o.messageTypeAbstractMap[t.type]}`),isHighlight:!1}),c.push(...i(s,r)),c}return[{text:`${null==n?void 0:n.messageCount}${e.Wt.t("TUISearch.条相关")}${e.Wt.t(`TUISearch.${"allMessage"===s?"结果":null==(c=t.searchMessageTypeList[s])?void 0:c.label}`)}`,isHighlight:!1}]}return[]},exports.generateSearchResultShowName=(t,n)=>{var o,s,r;return t?t.ID?null==n?void 0:n.showName:t.groupID?t.name||t.groupID:t.userID?t.remark||t.nick||t.userID||"":(null==(o=t.conversation)?void 0:o.conversationID)?"function"==typeof t.conversation.getShowName?t.conversation.getShowName():(null==(r=null==(s=e.Jt.getConversationModel(t.conversation.conversationID))?void 0:s.getShowName)?void 0:r.call(s))||t.conversation.conversationID:"":""},exports.generateSearchResultTime=t=>{const n=(new Date).setHours(0,0,0,0),o=new Date((new Date).getFullYear(),0,1,0,0,0,0).getTime(),s=new Date(t),r=864e5,i=n-s.getTime();function l(e){return e<10?"0"+e:e.toString()}if(i<=0)return`${l(s.getHours())}:${l(s.getMinutes())}`;if(i<=r)return`${e.Wt.t("time.昨天")} ${l(s.getHours())}:${l(s.getMinutes())}`;if(i<=5184e5){const t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][s.getDay()];return`${e.Wt.t("time."+t)} ${l(s.getHours())}:${l(s.getMinutes())}`}return s.getTime()>=o?`${s.getMonth()+1}/${s.getDate()} ${l(s.getHours())}:${l(s.getMinutes())}`:`${s.getFullYear()}/${s.getMonth()+1}/${s.getDate()} ${l(s.getHours())}:${l(s.getMinutes())}`},exports.generateSearchResultYMD=e=>{const t=new Date(1e3*e);return`${t.getFullYear()}-${("0"+(t.getMonth()+1)).slice(-2)}-${("0"+t.getDate()).slice(-2)}`},exports.searchCloudMessages=t=>e.Qt.searchCloudMessages(t).then((e=>e)).catch((t=>(n.Toast({message:e.Wt.t("TUISearch.消息云端搜索失败:")+(null==t?void 0:t.message),type:r.TOAST_TYPE.ERROR,duration:3e3}),null)));
|
||||
Reference in New Issue
Block a user