This commit is contained in:
pengxiaolong
2025-05-13 19:39:53 +08:00
parent 37da6765b8
commit c006a8e63d
1232 changed files with 96963 additions and 883 deletions

View File

@@ -0,0 +1,168 @@
"use strict";
const common_vendor = require("../../../../../common/vendor.js");
require("../../../../adapter-vue.js");
const TUIKit_components_TUISearch_utils = require("../../utils.js");
const TUIKit_components_TUISearch_type = require("../../type.js");
const TUIKit_utils_env = require("../../../../utils/env.js");
if (!Math) {
(MessageAbstractText + MessageAbstractFile + MessageAbstractCustom + MessageAbstractImage + MessageAbstractVideo)();
}
const MessageAbstractText = () => "./message-abstract/message-abstract-text.js";
const MessageAbstractFile = () => "./message-abstract/message-abstract-file.js";
const MessageAbstractCustom = () => "./message-abstract/message-abstract-custom.js";
const MessageAbstractImage = () => "./message-abstract/message-abstract-image.js";
const MessageAbstractVideo = () => "./message-abstract/message-abstract-video.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
listItem: { default: () => ({}) },
listItemContent: { default: () => ({}) },
type: { default: "allMessage" },
displayType: { default: "info" },
keywordList: { default: () => [] }
},
emits: ["showResultDetail", "navigateToChatPosition"],
setup(__props, { emit: __emit }) {
const props = __props;
const emits = __emit;
const TYPES = common_vendor.ref(common_vendor.qt.TYPES);
const avatarForShow = common_vendor.ref("");
const nameForShow = common_vendor.ref("");
const contentForShow = common_vendor.ref([]);
const timeForShow = common_vendor.ref("");
const isHovering = common_vendor.ref(false);
common_vendor.watchEffect(() => {
var _a, _b;
avatarForShow.value = TUIKit_components_TUISearch_utils.generateSearchResultAvatar(props.listItem);
nameForShow.value = TUIKit_components_TUISearch_utils.generateSearchResultShowName(props.listItem, props == null ? void 0 : props.listItemContent);
contentForShow.value = TUIKit_components_TUISearch_utils.generateSearchResultShowContent(
props.listItem,
props.type,
props.keywordList,
(props == null ? void 0 : props.displayType) === "info"
);
timeForShow.value = ((_a = props.listItem) == null ? void 0 : _a.time) ? TUIKit_components_TUISearch_utils.generateSearchResultTime(((_b = props.listItem) == null ? void 0 : _b.time) * 1e3) : "";
});
const onResultItemClicked = () => {
var _a;
if (props.type === "contact" || props.type === "group") {
TUIKit_components_TUISearch_utils.enterConversation(props.listItem);
} else {
if (props.displayType === "info" && !((_a = props.listItem) == null ? void 0 : _a.ID)) {
emits("showResultDetail", true, props.type, props.listItem);
} else {
navigateToChatPosition();
}
}
};
const setHoverStatus = (status) => {
isHovering.value = status;
};
const navigateToChatPosition = () => {
emits("navigateToChatPosition", props.listItem);
};
const getMessageAbstractType = (message) => {
return (message == null ? void 0 : message.type) ? common_vendor.Wt.t(`TUISearch.${TUIKit_components_TUISearch_type.messageTypeAbstractMap[message.type]}`) : common_vendor.Wt.t(`TUISearch.[合并消息]`);
};
return (_ctx, _cache) => {
return common_vendor.e({
a: _ctx.displayType === "info" || _ctx.displayType === "bubble"
}, _ctx.displayType === "info" || _ctx.displayType === "bubble" ? common_vendor.e({
b: common_vendor.n(_ctx.displayType + "-left-avatar"),
c: common_vendor.unref(avatarForShow) || "",
d: common_vendor.n(_ctx.displayType + "-left"),
e: common_vendor.t(common_vendor.unref(nameForShow)),
f: common_vendor.n(_ctx.displayType + "-main-name"),
g: _ctx.displayType === "info" || _ctx.listItem.type === common_vendor.unref(TYPES).MSG_TEXT
}, _ctx.displayType === "info" || _ctx.listItem.type === common_vendor.unref(TYPES).MSG_TEXT ? {
h: common_vendor.p({
content: common_vendor.unref(contentForShow),
highlightType: _ctx.displayType === "info" ? "font" : "background",
displayType: _ctx.displayType
})
} : _ctx.listItem.type === common_vendor.unref(TYPES).MSG_FILE ? {
j: common_vendor.p({
contentText: common_vendor.unref(contentForShow),
messageContent: _ctx.listItemContent,
displayType: _ctx.displayType
})
} : _ctx.listItem.type === common_vendor.unref(TYPES).MSG_IMAGE ? {} : _ctx.listItem.type === common_vendor.unref(TYPES).MSG_VIDEO ? {} : _ctx.listItem.type === common_vendor.unref(TYPES).MSG_CUSTOM ? {
n: common_vendor.p({
contentText: common_vendor.unref(contentForShow),
message: _ctx.listItem,
messageContent: _ctx.listItemContent
})
} : {
o: common_vendor.t(getMessageAbstractType(_ctx.listItem))
}, {
i: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_FILE,
k: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_IMAGE,
l: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_VIDEO,
m: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_CUSTOM,
p: common_vendor.n(_ctx.displayType + "-main-content"),
q: common_vendor.n(_ctx.displayType + "-main"),
r: common_vendor.t(common_vendor.unref(timeForShow)),
s: common_vendor.n(_ctx.displayType + "-right-time"),
t: _ctx.displayType === "bubble" && common_vendor.unref(isHovering)
}, _ctx.displayType === "bubble" && common_vendor.unref(isHovering) ? {
v: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("TUISearch.定位到聊天位置")),
w: common_vendor.n(_ctx.displayType + "-right-to"),
x: common_vendor.o$1(navigateToChatPosition)
} : {}, {
y: common_vendor.n(_ctx.displayType + "-right"),
z: common_vendor.n(_ctx.displayType)
}) : _ctx.displayType === "file" ? common_vendor.e({
B: common_vendor.n(_ctx.displayType + "-header-avatar"),
C: common_vendor.unref(avatarForShow),
D: common_vendor.t(common_vendor.unref(nameForShow)),
E: common_vendor.n(_ctx.displayType + "-header-name"),
F: common_vendor.unref(isHovering)
}, common_vendor.unref(isHovering) ? {
G: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("TUISearch.定位到聊天位置")),
H: common_vendor.n(_ctx.displayType + "-header-to"),
I: common_vendor.o$1(navigateToChatPosition)
} : {}, {
J: common_vendor.t(common_vendor.unref(timeForShow)),
K: common_vendor.n(_ctx.displayType + "-header-time"),
L: common_vendor.n(_ctx.displayType + "-header"),
M: common_vendor.p({
contentText: common_vendor.unref(contentForShow),
messageContent: _ctx.listItemContent,
displayType: "bubble"
}),
N: common_vendor.n(_ctx.displayType + "-main-content"),
O: common_vendor.n(_ctx.displayType)
}) : _ctx.displayType === "image" ? common_vendor.e({
Q: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_IMAGE
}, _ctx.listItem.type === common_vendor.unref(TYPES).MSG_IMAGE ? {
R: common_vendor.p({
messageContent: _ctx.listItemContent
})
} : _ctx.listItem.type === common_vendor.unref(TYPES).MSG_VIDEO ? {
T: common_vendor.p({
messageContent: _ctx.listItemContent
})
} : {}, {
S: _ctx.listItem.type === common_vendor.unref(TYPES).MSG_VIDEO,
U: common_vendor.unref(isHovering)
}, common_vendor.unref(isHovering) ? {
V: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("TUISearch.定位到聊天位置"))
} : {}, {
W: common_vendor.o$1(navigateToChatPosition),
X: common_vendor.n(_ctx.displayType)
}) : {}, {
A: _ctx.displayType === "file",
P: _ctx.displayType === "image",
Y: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "search-result-list-item-h5"),
Z: common_vendor.n("search-result-list-item-" + _ctx.displayType),
aa: common_vendor.n(common_vendor.unref(isHovering) && "hover-" + _ctx.displayType),
ab: common_vendor.o$1(onResultItemClicked),
ac: common_vendor.o$1(($event) => setHoverStatus(true)),
ad: common_vendor.o$1(($event) => setHoverStatus(false))
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-64f261e1"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/index.js.map

View File

@@ -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"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-64f261e1', 'search-result-list-item', Y, Z, aa]}}" bindtap="{{ab}}" bindmouseenter="{{ac}}" bindmouseleave="{{ad}}"><view wx:if="{{a}}" class="{{['data-v-64f261e1', z]}}"><view class="{{['data-v-64f261e1', d]}}"><image class="{{['data-v-64f261e1', 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-64f261e1', q]}}"><view class="{{['data-v-64f261e1', f]}}">{{e}}</view><view class="{{['data-v-64f261e1', p]}}"><message-abstract-text wx:if="{{g}}" class="data-v-64f261e1" u-i="64f261e1-0" bind:__l="__l" u-p="{{h}}"/><message-abstract-file wx:elif="{{i}}" class="data-v-64f261e1" u-i="64f261e1-1" bind:__l="__l" u-p="{{j}}"/><view wx:elif="{{k}}" class="data-v-64f261e1"/><view wx:elif="{{l}}" class="data-v-64f261e1"/><message-abstract-custom wx:elif="{{m}}" class="data-v-64f261e1" u-i="64f261e1-2" bind:__l="__l" u-p="{{n}}"/><view wx:else class="data-v-64f261e1">{{o}}</view></view></view><view class="{{['data-v-64f261e1', y]}}"><view class="{{['data-v-64f261e1', s]}}">{{r}}</view><view wx:if="{{t}}" class="{{['data-v-64f261e1', w]}}" catchtap="{{x}}">{{v}}</view></view></view><view wx:elif="{{A}}" class="{{['data-v-64f261e1', O]}}"><view class="{{['data-v-64f261e1', L]}}"><image class="{{['data-v-64f261e1', 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-64f261e1', E]}}">{{D}}</view><view wx:if="{{F}}" class="{{['data-v-64f261e1', H]}}" catchtap="{{I}}">{{G}}</view><view class="{{['data-v-64f261e1', K]}}">{{J}}</view></view><view class="{{['data-v-64f261e1', N]}}"><message-abstract-file wx:if="{{M}}" class="data-v-64f261e1" u-i="64f261e1-3" bind:__l="__l" u-p="{{M}}"/></view></view><view wx:elif="{{P}}" class="{{['data-v-64f261e1', X]}}"><view class="image-container data-v-64f261e1" catchtap="{{W}}"><message-abstract-image wx:if="{{Q}}" class="data-v-64f261e1" u-i="64f261e1-4" bind:__l="__l" u-p="{{R}}"/><message-abstract-video wx:elif="{{S}}" class="data-v-64f261e1" u-i="64f261e1-5" bind:__l="__l" u-p="{{T}}"/><view wx:if="{{U}}" class="image-container-hover data-v-64f261e1"><view class="image-container-hover-text data-v-64f261e1">{{V}}</view></view></view></view></view>

View File

@@ -0,0 +1,315 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-64f261e1, div.data-v-64f261e1, ul.data-v-64f261e1, ol.data-v-64f261e1, dt.data-v-64f261e1, dd.data-v-64f261e1, li.data-v-64f261e1, dl.data-v-64f261e1, h1.data-v-64f261e1, h2.data-v-64f261e1, h3.data-v-64f261e1, h4.data-v-64f261e1, p.data-v-64f261e1 {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-64f261e1, ul.data-v-64f261e1, li.data-v-64f261e1 {
list-style: none;
}
img.data-v-64f261e1 {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-64f261e1 {
color: #000;
background: #FFF;
}
.clear.data-v-64f261e1 {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-64f261e1 {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-64f261e1:hover {
text-decoration: none;
}
input.data-v-64f261e1, textarea.data-v-64f261e1 {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-64f261e1:focus, input.data-v-64f261e1:active, textarea.data-v-64f261e1:focus, textarea.data-v-64f261e1:active {
outline: none;
}
.chat-aside.data-v-64f261e1 {
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);
}
.search-result-list-item.data-v-64f261e1 {
padding: 8px 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.search-result-list-item-image.data-v-64f261e1 {
display: inline-block;
width: 100px;
height: 100px;
max-width: 100px;
max-height: 100px;
overflow: hidden;
box-sizing: content-box;
border: 1px solid #f1f1f1;
padding: 0;
margin: 5px;
}
.search-result-list-item-file.data-v-64f261e1 {
border: none;
}
.search-result-list-item .info.data-v-64f261e1 {
display: flex;
flex-direction: row;
justify-content: center;
}
.search-result-list-item .info-left-avatar.data-v-64f261e1 {
width: 36px;
height: 36px;
border-radius: 5px;
}
.search-result-list-item .info-main.data-v-64f261e1 {
flex: 1;
padding: 0 10px;
overflow: hidden;
}
.search-result-list-item .info-main-name.data-v-64f261e1, .search-result-list-item .info-main-content.data-v-64f261e1 {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-result-list-item .info-main-name.data-v-64f261e1 {
color: #333;
font-size: 14px;
height: 20px;
}
.search-result-list-item .info-main-content.data-v-64f261e1 {
color: #999;
font-size: 12px;
}
.search-result-list-item .info-main-content .highlight.data-v-64f261e1 {
color: #007aff;
}
.search-result-list-item .info-main-content .normal.data-v-64f261e1 {
color: #999;
}
.search-result-list-item .info-right.data-v-64f261e1 {
width: -webkit-fit-content;
width: fit-content;
}
.search-result-list-item .info-right-time.data-v-64f261e1 {
font-weight: 400;
font-size: 12px;
color: #999;
letter-spacing: 0;
white-space: nowrap;
}
.search-result-list-item .bubble.data-v-64f261e1 {
display: flex;
flex-direction: row;
justify-content: center;
}
.search-result-list-item .bubble-left-avatar.data-v-64f261e1 {
width: 36px;
height: 36px;
border-radius: 5px;
}
.search-result-list-item .bubble-main.data-v-64f261e1 {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
padding: 0 8px;
}
.search-result-list-item .bubble-main-name.data-v-64f261e1 {
max-width: 100%;
width: -webkit-fit-content;
width: fit-content;
padding-bottom: 4px;
font-weight: 400;
font-size: 12px;
color: #999;
letter-spacing: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-result-list-item .bubble-main-content.data-v-64f261e1 {
max-width: 100%;
width: -webkit-fit-content;
width: fit-content;
box-sizing: border-box;
padding: 12px;
font-weight: 400;
font-size: 14px;
color: #000;
letter-spacing: 0;
word-wrap: break-word;
word-break: break-all;
overflow: hidden;
background: #eff0f1;
border-radius: 0 10px 10px;
}
.search-result-list-item .bubble-main-content .highlight.data-v-64f261e1 {
background-color: #007aff33;
}
.search-result-list-item .bubble-main-content .normal.data-v-64f261e1 {
color: #1f2329;
}
.search-result-list-item .bubble-right.data-v-64f261e1 {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.search-result-list-item .bubble-right-time.data-v-64f261e1 {
font-weight: 400;
font-size: 12px;
color: #999;
letter-spacing: 0;
white-space: nowrap;
}
.search-result-list-item .bubble-right-to.data-v-64f261e1 {
cursor: pointer;
font-weight: 400;
font-size: 12px;
color: #007aff;
letter-spacing: 0;
white-space: nowrap;
}
.search-result-list-item .file.data-v-64f261e1 {
display: flex;
flex-direction: column;
justify-content: center;
}
.search-result-list-item .file-header.data-v-64f261e1 {
flex: 1;
padding: 10px 0;
overflow: hidden;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.search-result-list-item .file-header-avatar.data-v-64f261e1 {
width: 24px;
height: 24px;
border-radius: 4px;
margin-right: 3px;
}
.search-result-list-item .file-header-name.data-v-64f261e1 {
flex: 1;
}
.search-result-list-item .file-header-name.data-v-64f261e1, .search-result-list-item .file-header-time.data-v-64f261e1, .search-result-list-item .file-header-to.data-v-64f261e1 {
color: #666;
font-size: 14px;
height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-result-list-item .file-header-to.data-v-64f261e1 {
cursor: pointer;
font-weight: 400;
color: #007aff;
letter-spacing: 0;
white-space: nowrap;
padding-right: 3px;
}
.search-result-list-item .file-main-content.data-v-64f261e1 {
padding: 10px;
background-color: #f1f1f1;
}
.search-result-list-item .image.data-v-64f261e1 {
width: 100px;
height: 100px;
max-width: 100px;
max-height: 100px;
overflow: hidden;
box-sizing: content-box;
}
.search-result-list-item .image .image-container.data-v-64f261e1 {
width: 100px;
height: 100px;
max-width: 100px;
max-height: 100px;
overflow: hidden;
position: relative;
}
.search-result-list-item .image .image-container .image-container-hover.data-v-64f261e1 {
position: absolute;
bottom: 0;
width: 100%;
height: 40%;
background-color: rgba(0, 0, 0, 0.3);
}
.search-result-list-item .image .image-container .image-container-hover .image-container-hover-text.data-v-64f261e1 {
width: 100%;
height: 100%;
font-size: 12px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
}
.hover-info.data-v-64f261e1 {
border-radius: 5px;
background-color: #f5f5f5;
}
.hover-bubble.data-v-64f261e1 {
background-color: #f5f5f5;
}
.search-result-list-item-h5.data-v-64f261e1 {
padding: 10px 0;
border-radius: 0;
}
.search-result-list-item-h5 .bubble .bubble-left .bubble-left-avatar.data-v-64f261e1 {
width: 48px;
height: 48px;
}
.search-result-list-item-h5 .bubble .bubble-left .bubble-main .bubble-main-name.data-v-64f261e1 {
color: #333;
font-family: "PingFang SC", sans-serif;
font-size: 14px;
font-weight: 400;
letter-spacing: 0;
text-align: left;
}

View File

@@ -0,0 +1,116 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const TUIKit_constant = require("../../../../../constant.js");
const TUIKit_utils_typeCheck = require("../../../../../utils/type-check.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Math) {
Icon();
}
const Icon = () => "../../../../common/Icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-abstract-custom",
props: {
contentText: { default: () => [] },
message: { default: () => ({}) },
messageContent: { default: () => ({}) }
},
setup(__props) {
var _a, _b;
const props = __props;
const custom = common_vendor.ref(
(_a = props == null ? void 0 : props.message) == null ? void 0 : _a.payload
);
const extensionJSON = common_vendor.computed(() => {
var _a2, _b2;
return ((_a2 = custom == null ? void 0 : custom.value) == null ? void 0 : _a2.data) ? TUIKit_utils_typeCheck.JSONToObject(custom.value.data) : (_b2 = custom == null ? void 0 : custom.value) == null ? void 0 : _b2.data;
});
const businessID = common_vendor.computed(() => {
var _a2;
return (_a2 = extensionJSON == null ? void 0 : extensionJSON.value) == null ? void 0 : _a2.businessID;
});
const descriptionForShow = common_vendor.ref(props == null ? void 0 : props.contentText);
const defaultMessageContent = common_vendor.ref(((_b = props == null ? void 0 : props.messageContent) == null ? void 0 : _b.custom) || "[自定义消息]");
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).SERVICE
}, common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).SERVICE ? common_vendor.e({
b: common_vendor.t(common_vendor.unref(extensionJSON).title),
c: common_vendor.unref(extensionJSON).hyperlinks_text
}, common_vendor.unref(extensionJSON).hyperlinks_text ? {
d: common_vendor.t(common_vendor.unref(extensionJSON).hyperlinks_text.key),
e: common_vendor.unref(extensionJSON).hyperlinks_text.value
} : {}, {
f: common_vendor.unref(extensionJSON).item && common_vendor.unref(extensionJSON).item.length > 0
}, common_vendor.unref(extensionJSON).item && common_vendor.unref(extensionJSON).item.length > 0 ? {
g: common_vendor.f(common_vendor.unref(extensionJSON).item, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.unref(TUIKit_utils_typeCheck.isUrl)(item.value)
}, common_vendor.unref(TUIKit_utils_typeCheck.isUrl)(item.value) ? {
b: common_vendor.t(item.key),
c: item.value
} : {
d: common_vendor.t(item.key)
}, {
e: index
});
})
} : {}, {
h: common_vendor.f(common_vendor.unref(descriptionForShow), (contentItem, index, i0) => {
return {
a: common_vendor.t(contentItem.text),
b: index,
c: common_vendor.n(contentItem && contentItem.isHighlight ? "highlight" : "normal")
};
})
}) : common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).EVALUATE ? common_vendor.e({
j: common_vendor.f(common_vendor.unref(descriptionForShow), (contentItem, index, i0) => {
return {
a: common_vendor.t(contentItem.text),
b: index,
c: common_vendor.n(contentItem && contentItem.isHighlight ? "highlight" : "normal")
};
}),
k: common_vendor.unref(extensionJSON).score
}, common_vendor.unref(extensionJSON).score ? {
l: common_vendor.f(Math.max(common_vendor.unref(extensionJSON).score, 0), (item, index, i0) => {
return {
a: "88d2ba7b-0-" + i0,
b: index
};
}),
m: common_vendor.p({
file: common_vendor.unref(common_assets.star)
})
} : {}, {
n: common_vendor.t(common_vendor.unref(extensionJSON).comment)
}) : common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).ORDER ? {
p: common_vendor.unref(extensionJSON).imageUrl,
q: common_vendor.t(common_vendor.unref(extensionJSON).title),
r: common_vendor.f(common_vendor.unref(descriptionForShow), (contentItem, index, i0) => {
return {
a: common_vendor.t(contentItem.text),
b: index,
c: common_vendor.n(contentItem && contentItem.isHighlight ? "highlight" : "normal")
};
}),
s: common_vendor.t(common_vendor.unref(extensionJSON).price)
} : common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).LINK ? {
v: common_vendor.t(common_vendor.unref(extensionJSON).text),
w: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("message.custom.查看详情>>")),
x: common_vendor.unref(extensionJSON).link
} : {
y: common_vendor.t(common_vendor.unref(defaultMessageContent))
}, {
i: common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).EVALUATE,
o: common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).ORDER,
t: common_vendor.unref(businessID) === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).LINK,
z: common_vendor.o$1(() => {
})
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-88d2ba7b"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/message-abstract/message-abstract-custom.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"icon": "../../../../common/Icon"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-88d2ba7b', 'message-abstract-custom']}}" capture-catch:tap="{{z}}"><block wx:if="{{a}}"><view class="{{['data-v-88d2ba7b', 'service']}}"><view class="{{['data-v-88d2ba7b', 'service-header']}}"><label class="{{['data-v-88d2ba7b', 'service-header-title']}}">{{b}}</label><navigator wx:if="{{c}}" class="{{['data-v-88d2ba7b', 'service-header-link', 'link']}}" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="{{['data-v-88d2ba7b', 'service-list']}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="{{['data-v-88d2ba7b', 'service-list-item']}}"><navigator wx:if="{{item.a}}" class="{{['data-v-88d2ba7b', 'service-list-item-link', 'link']}}" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="{{['data-v-88d2ba7b', 'service-list-item-key']}}">{{item.d}}</view></view></view><view class="{{['data-v-88d2ba7b', 'service-description', 'description']}}"><label wx:for="{{h}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-88d2ba7b', contentItem.c]}}">{{contentItem.a}}</label></view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-88d2ba7b"><view class="{{['data-v-88d2ba7b', 'evaluate-description', 'description']}}"><label wx:for="{{j}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-88d2ba7b', contentItem.c]}}">{{contentItem.a}}</label></view><view wx:if="{{k}}" class="evaluate-list data-v-88d2ba7b"><view wx:for="{{l}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-88d2ba7b"><icon wx:if="{{m}}" class="file-icon data-v-88d2ba7b" u-i="{{item.a}}" bind:__l="__l" u-p="{{m}}"/></view></view><view class="data-v-88d2ba7b">{{n}}</view></view></block><block wx:elif="{{o}}"><view class="order data-v-88d2ba7b"><image class="order-image data-v-88d2ba7b" src="{{p}}" alt=""></image><view class="order-main data-v-88d2ba7b"><view class="order-main-title data-v-88d2ba7b">{{q}}</view><view class="{{['data-v-88d2ba7b', 'order-main-description', 'description']}}"><label wx:for="{{r}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-88d2ba7b', contentItem.c]}}">{{contentItem.a}}</label></view><label class="order-main-price data-v-88d2ba7b">{{s}}</label></view></view></block><block wx:elif="{{t}}"><view class="text-link data-v-88d2ba7b"><view class="{{['data-v-88d2ba7b', 'text-link-description', 'description']}}"><view class="data-v-88d2ba7b">{{v}}</view></view><navigator class="{{['data-v-88d2ba7b', 'link']}}" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:else><label class="data-v-88d2ba7b">{{y}}</label></block></view>

View File

@@ -0,0 +1,134 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-88d2ba7b, div.data-v-88d2ba7b, ul.data-v-88d2ba7b, ol.data-v-88d2ba7b, dt.data-v-88d2ba7b, dd.data-v-88d2ba7b, li.data-v-88d2ba7b, dl.data-v-88d2ba7b, h1.data-v-88d2ba7b, h2.data-v-88d2ba7b, h3.data-v-88d2ba7b, h4.data-v-88d2ba7b, p.data-v-88d2ba7b {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-88d2ba7b, ul.data-v-88d2ba7b, li.data-v-88d2ba7b {
list-style: none;
}
img.data-v-88d2ba7b {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-88d2ba7b {
color: #000;
background: #FFF;
}
.clear.data-v-88d2ba7b {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-88d2ba7b {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-88d2ba7b:hover {
text-decoration: none;
}
input.data-v-88d2ba7b, textarea.data-v-88d2ba7b {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-88d2ba7b:focus, input.data-v-88d2ba7b:active, textarea.data-v-88d2ba7b:focus, textarea.data-v-88d2ba7b:active {
outline: none;
}
.chat-aside.data-v-88d2ba7b {
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-88d2ba7b {
font-size: 14px;
color: #000;
}
.message-abstract-custom .service .service-list .service-list-item.data-v-88d2ba7b {
font-size: 14px;
}
.message-abstract-custom .evaluate .evaluate-list.data-v-88d2ba7b {
padding: 5px 0;
display: flex;
flex-direction: row;
}
.message-abstract-custom .evaluate .evaluate-list .evaluate-item.data-v-88d2ba7b {
padding: 0 2px;
}
.message-abstract-custom .order.data-v-88d2ba7b {
display: flex;
}
.message-abstract-custom .order .order-main.data-v-88d2ba7b {
padding-left: 5px;
}
.message-abstract-custom .order .order-main .order-main-title.data-v-88d2ba7b {
font-size: 14px;
color: #000;
}
.message-abstract-custom .order .order-main .order-main-description.data-v-88d2ba7b {
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-88d2ba7b {
font-family: PingFangSC-Regular, sans-serif;
line-height: 25px;
color: #ff7201;
}
.message-abstract-custom .order .order-img.data-v-88d2ba7b {
width: 67px;
height: 67px;
}
.message-abstract-custom .link.data-v-88d2ba7b {
font-size: 14px;
color: #679ce1;
}
.message-abstract-custom .description.data-v-88d2ba7b {
font-size: 14px;
color: #000;
}
.message-abstract-custom .description .highlight.data-v-88d2ba7b {
background-color: #007aff33;
}
.message-abstract-custom .description .normal.data-v-88d2ba7b {
font-size: 14px;
color: #000;
}

View File

@@ -0,0 +1,70 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-abstract-file",
props: {
contentText: { default: () => [] },
messageContent: { default: () => ({}) },
displayType: { default: "bubble" }
},
setup(__props) {
const props = __props;
const contentText = common_vendor.ref(props.contentText);
const typeIcon = common_vendor.computed(() => {
var _a;
const fileUrl = (_a = props == null ? void 0 : props.messageContent) == null ? void 0 : _a.url;
const index = fileUrl == null ? void 0 : fileUrl.lastIndexOf(".");
const type = fileUrl == null ? void 0 : fileUrl.substring(index + 1);
return handleFileIconForShow(type);
});
const fileSize = common_vendor.computed(() => {
var _a;
return (_a = props == null ? void 0 : props.messageContent) == null ? void 0 : _a.size;
});
const handleFileIconForShow = (type) => {
const urlBase = "https://web.sdk.qcloud.com/component/TUIKit/assets/file-";
const fileTypes = [
"image",
"pdf",
"text",
"ppt",
"presentation",
"sheet",
"zip",
"word",
"video",
"unknown"
];
let url = "";
let iconType = "";
fileTypes == null ? void 0 : fileTypes.forEach((typeName) => {
if (type == null ? void 0 : type.includes(typeName)) {
url = urlBase + typeName + ".svg";
iconType = typeName;
}
});
return {
iconSrc: url ? url : urlBase + "unknown.svg",
iconType: iconType ? iconType : "unknown"
};
};
return (_ctx, _cache) => {
return {
a: common_vendor.unref(typeIcon).iconSrc,
b: common_vendor.f(common_vendor.unref(contentText), (contentItem, index, i0) => {
return {
a: common_vendor.t(contentItem.text),
b: index,
c: common_vendor.n(contentItem && contentItem.isHighlight ? "highlight" : "normal")
};
}),
c: common_vendor.t(common_vendor.unref(fileSize)),
d: common_vendor.n(`message-abstract-file-${_ctx.displayType}`)
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e3774db0"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/message-abstract/message-abstract-file.js.map

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-e3774db0', 'message-abstract-file', d]}}"><view class="{{['data-v-e3774db0', 'message-abstract-file-left']}}"><image class="{{['data-v-e3774db0', 'message-abstract-file-left-icon']}}" src="{{a}}"></image></view><view class="{{['data-v-e3774db0', 'message-abstract-file-main']}}"><view class="{{['data-v-e3774db0', 'message-abstract-file-main-name']}}"><label wx:for="{{b}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-e3774db0', contentItem.c]}}">{{contentItem.a}}</label></view><view class="{{['data-v-e3774db0', 'message-abstract-file-main-size']}}">{{c}}</view></view></view>

View File

@@ -0,0 +1,134 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-e3774db0, div.data-v-e3774db0, ul.data-v-e3774db0, ol.data-v-e3774db0, dt.data-v-e3774db0, dd.data-v-e3774db0, li.data-v-e3774db0, dl.data-v-e3774db0, h1.data-v-e3774db0, h2.data-v-e3774db0, h3.data-v-e3774db0, h4.data-v-e3774db0, p.data-v-e3774db0 {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-e3774db0, ul.data-v-e3774db0, li.data-v-e3774db0 {
list-style: none;
}
img.data-v-e3774db0 {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-e3774db0 {
color: #000;
background: #FFF;
}
.clear.data-v-e3774db0 {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-e3774db0 {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-e3774db0:hover {
text-decoration: none;
}
input.data-v-e3774db0, textarea.data-v-e3774db0 {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-e3774db0:focus, input.data-v-e3774db0:active, textarea.data-v-e3774db0:focus, textarea.data-v-e3774db0:active {
outline: none;
}
.chat-aside.data-v-e3774db0 {
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-e3774db0 {
display: flex;
flex: 1;
overflow: hidden;
flex-direction: row;
justify-content: center;
align-items: center;
}
.message-abstract-file-left.data-v-e3774db0 {
width: 42px;
height: 32px;
}
.message-abstract-file-left-icon.data-v-e3774db0 {
width: 32px;
height: 32px;
margin-right: 10px;
border-radius: 5px;
}
.message-abstract-file-main.data-v-e3774db0 {
flex: 1;
overflow: hidden;
}
.message-abstract-file-main-name.data-v-e3774db0 {
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-e3774db0 {
background-color: #007aff33;
}
.message-abstract-file-main-name .normal.data-v-e3774db0 {
color: #000;
}
.message-abstract-file-main-size.data-v-e3774db0 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #888;
font-size: 12px;
}
.message-abstract-file-bubble.data-v-e3774db0 {
background-color: #f1f1f1;
}
.message-abstract-file-bubble .message-abstract-file-main .message-abstract-file-main-name.data-v-e3774db0 {
color: #1f2329;
}
.message-abstract-file-bubble .message-abstract-file-main .message-abstract-file-main-name .normal.data-v-e3774db0 {
color: #1f2329;
}
.message-abstract-file-file.data-v-e3774db0 {
margin: 8px 10px 5px;
padding: 10px;
background-color: #f1f1f1;
height: 51px;
}

View File

@@ -0,0 +1,21 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-abstract-image",
props: {
messageContent: { default: () => ({}) }
},
setup(__props) {
const props = __props;
const imageUrl = common_vendor.computed(() => props.messageContent.url || "");
return (_ctx, _cache) => {
return {
a: common_vendor.unref(imageUrl)
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9a7df6f1"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/message-abstract/message-abstract-image.js.map

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-9a7df6f1', 'message-abstract-image-container']}}"><image class="{{['data-v-9a7df6f1', 'message-abstract-image']}}" src="{{a}}"></image></view>

View File

@@ -0,0 +1,90 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-9a7df6f1, div.data-v-9a7df6f1, ul.data-v-9a7df6f1, ol.data-v-9a7df6f1, dt.data-v-9a7df6f1, dd.data-v-9a7df6f1, li.data-v-9a7df6f1, dl.data-v-9a7df6f1, h1.data-v-9a7df6f1, h2.data-v-9a7df6f1, h3.data-v-9a7df6f1, h4.data-v-9a7df6f1, p.data-v-9a7df6f1 {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-9a7df6f1, ul.data-v-9a7df6f1, li.data-v-9a7df6f1 {
list-style: none;
}
img.data-v-9a7df6f1 {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-9a7df6f1 {
color: #000;
background: #FFF;
}
.clear.data-v-9a7df6f1 {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-9a7df6f1 {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-9a7df6f1:hover {
text-decoration: none;
}
input.data-v-9a7df6f1, textarea.data-v-9a7df6f1 {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-9a7df6f1:focus, input.data-v-9a7df6f1:active, textarea.data-v-9a7df6f1:focus, textarea.data-v-9a7df6f1:active {
outline: none;
}
.chat-aside.data-v-9a7df6f1 {
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-9a7df6f1 {
max-width: 100px;
max-height: 100px;
width: 100px;
height: 100px;
overflow: hidden;
background-color: #fff;
}
.message-abstract-image-container .message-abstract-image.data-v-9a7df6f1 {
max-width: 100px;
max-height: 100px;
width: 100px;
height: 100px;
object-fit: contain;
}

View File

@@ -0,0 +1,32 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const TUIKit_components_TUIChat_emojiConfig_index = require("../../../../TUIChat/emoji-config/index.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-abstract-text",
props: {
content: { default: () => [] },
highlightType: { default: "font" },
displayType: { default: "info" }
},
setup(__props) {
const props = __props;
const contentText = common_vendor.ref(props.content);
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(contentText), (contentItem, index, i0) => {
return {
a: common_vendor.t(common_vendor.unref(TUIKit_components_TUIChat_emojiConfig_index.transformTextWithKeysToEmojiNames)(contentItem.text)),
b: index,
c: common_vendor.n(contentItem && contentItem.isHighlight ? "highlight" : "normal")
};
}),
b: common_vendor.n(`message-abstract-text-${_ctx.highlightType}`),
c: common_vendor.n(`message-abstract-text-${_ctx.displayType}`)
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-94825845"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/message-abstract/message-abstract-text.js.map

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-94825845', 'message-abstract-text', b, c]}}"><label wx:for="{{a}}" wx:for-item="contentItem" wx:key="b" class="{{['data-v-94825845', contentItem.c]}}">{{contentItem.a}}</label></view>

View File

@@ -0,0 +1,117 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-94825845, div.data-v-94825845, ul.data-v-94825845, ol.data-v-94825845, dt.data-v-94825845, dd.data-v-94825845, li.data-v-94825845, dl.data-v-94825845, h1.data-v-94825845, h2.data-v-94825845, h3.data-v-94825845, h4.data-v-94825845, p.data-v-94825845 {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-94825845, ul.data-v-94825845, li.data-v-94825845 {
list-style: none;
}
img.data-v-94825845 {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-94825845 {
color: #000;
background: #FFF;
}
.clear.data-v-94825845 {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-94825845 {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-94825845:hover {
text-decoration: none;
}
input.data-v-94825845, textarea.data-v-94825845 {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-94825845:focus, input.data-v-94825845:active, textarea.data-v-94825845:focus, textarea.data-v-94825845:active {
outline: none;
}
.chat-aside.data-v-94825845 {
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-94825845 {
justify-content: flex-start;
}
.message-abstract-text-font.data-v-94825845 {
color: #999;
}
.message-abstract-text-font .highlight.data-v-94825845 {
color: #007aff;
}
.message-abstract-text-font .normal.data-v-94825845 {
color: #999;
}
.message-abstract-text-background.data-v-94825845 {
color: #1f2329;
}
.message-abstract-text-background .highlight.data-v-94825845 {
background-color: #007aff33;
}
.message-abstract-text-background .normal.data-v-94825845 {
font-size: 14px;
}
.message-abstract-text-info.data-v-94825845 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
}
.message-abstract-text-info .highlight.data-v-94825845 {
font-size: 12px;
}
.message-abstract-text-info .normal.data-v-94825845 {
font-size: 12px;
}
.message-abstract-text-bubble.data-v-94825845 {
font-size: 14px;
}
.message-abstract-text-bubble .highlight.data-v-94825845 {
font-size: 14px;
}
.message-abstract-text-bubble .normal.data-v-94825845 {
font-size: 14px;
}

View File

@@ -0,0 +1,31 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Math) {
Icon();
}
const Icon = () => "../../../../common/Icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-abstract-video",
props: {
messageContent: { default: () => ({}) }
},
setup(__props) {
const props = __props;
const videoUrl = common_vendor.computed(() => {
return props.messageContent.snapshotUrl || props.messageContent.url;
});
return (_ctx, _cache) => {
return {
a: common_vendor.unref(videoUrl),
b: common_vendor.p({
file: common_vendor.unref(common_assets.playIcon)
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-15182b71"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-result/search-result-item/message-abstract/message-abstract-video.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"icon": "../../../../common/Icon"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['data-v-15182b71', 'message-abstract-video']}}"><view class="message-abstract-video-box data-v-15182b71"><image src="{{a}}" class="{{['data-v-15182b71', 'video-snapshot']}}"></image><icon wx:if="{{b}}" class="video-play data-v-15182b71" u-i="15182b71-0" bind:__l="__l" u-p="{{b}}"/></view></view>

View File

@@ -0,0 +1,110 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-15182b71, div.data-v-15182b71, ul.data-v-15182b71, ol.data-v-15182b71, dt.data-v-15182b71, dd.data-v-15182b71, li.data-v-15182b71, dl.data-v-15182b71, h1.data-v-15182b71, h2.data-v-15182b71, h3.data-v-15182b71, h4.data-v-15182b71, p.data-v-15182b71 {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-15182b71, ul.data-v-15182b71, li.data-v-15182b71 {
list-style: none;
}
img.data-v-15182b71 {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-15182b71 {
color: #000;
background: #FFF;
}
.clear.data-v-15182b71 {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-15182b71 {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-15182b71:hover {
text-decoration: none;
}
input.data-v-15182b71, textarea.data-v-15182b71 {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-15182b71:focus, input.data-v-15182b71:active, textarea.data-v-15182b71:focus, textarea.data-v-15182b71:active {
outline: none;
}
.chat-aside.data-v-15182b71 {
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-15182b71 {
max-width: 100px;
max-height: 100px;
width: 100px;
height: 100px;
overflow: hidden;
background-color: #fff;
}
.message-abstract-video-box.data-v-15182b71 {
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-15182b71 {
max-width: 100px;
max-height: 100px;
width: 100px;
height: 100px;
object-fit: contain;
}
.message-abstract-video-box .video-play.data-v-15182b71 {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 3;
width: 35px;
height: 35px;
margin: auto;
}