优化页面

This commit is contained in:
pengxiaolong
2025-06-11 22:16:44 +08:00
parent 3c2d7e5959
commit 931d867c09
806 changed files with 87462 additions and 331 deletions

View File

@@ -0,0 +1,95 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
require("../../../adapter-vue.js");
const TUIKit_utils_typeCheck = require("../../../utils/type-check.js");
const common_assets = require("../../../../common/assets.js");
const TUIKit_components_TUIChat_offlinePushInfoManager_index = require("../../../components/TUIChat/offlinePushInfoManager/index.js");
const TUIKit_components_TUIChat_offlinePushInfoManager_const = require("../../../components/TUIChat/offlinePushInfoManager/const.js");
if (!Math) {
Icon();
}
const Icon = () => "../../../components/common/Icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-call-c2c",
props: {
message: {
type: Object,
default: () => ({})
},
signalingInfo: {
type: Object,
default: () => ({})
},
customContent: {
type: Object,
default: () => ({})
}
},
setup(__props) {
const props = __props;
const TYPES = common_vendor.ref(common_vendor.qt.TYPES);
const isCallMessage = common_vendor.computed(() => props.signalingInfo != null);
const callInfo = common_vendor.computed(() => {
var _a, _b;
const callType = (_b = TUIKit_utils_typeCheck.JSONToObject((_a = props.signalingInfo) == null ? void 0 : _a.data)) == null ? void 0 : _b.call_type;
switch (callType) {
case 1:
return {
type: 1,
icon: common_assets.callVoiceSVG
};
case 2:
return {
type: 2,
icon: common_assets.callVideoSVG
};
}
return {
type: 0,
icon: ""
};
});
const conversationType = common_vendor.computed(() => {
var _a;
return (_a = props.message) == null ? void 0 : _a.conversationType;
});
const custom = common_vendor.computed(() => {
var _a;
return (_a = props.customContent) == null ? void 0 : _a.custom;
});
const callAgain = () => {
var _a, _b, _c, _d;
if (conversationType.value === common_vendor.qt.TYPES.CONV_C2C) {
const userID = ((_a = props.message) == null ? void 0 : _a.flow) === "out" ? (_b = props.message) == null ? void 0 : _b.to : (_c = props.message) == null ? void 0 : _c.from;
common_vendor.R.callService({
serviceName: common_vendor.E.TUICalling.SERVICE.NAME,
method: common_vendor.E.TUICalling.SERVICE.METHOD.START_CALL,
params: {
userIDList: [userID],
type: (_d = callInfo == null ? void 0 : callInfo.value) == null ? void 0 : _d.type,
callParams: {
offlinePushInfo: TUIKit_components_TUIChat_offlinePushInfoManager_index.OfflinePushInfoManager.getOfflinePushInfo(TUIKit_components_TUIChat_offlinePushInfoManager_const.PUSH_SCENE.CALL)
}
}
});
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(isCallMessage) && common_vendor.unref(conversationType) === common_vendor.unref(TYPES).CONV_C2C
}, common_vendor.unref(isCallMessage) && common_vendor.unref(conversationType) === common_vendor.unref(TYPES).CONV_C2C ? {
b: common_vendor.p({
file: common_vendor.unref(callInfo).icon
}),
c: common_vendor.n(__props.message.flow === "out" && common_vendor.unref(callInfo).type === 2 && "icon-reverse"),
d: common_vendor.t(common_vendor.unref(custom)),
e: common_vendor.n("call-" + common_vendor.unref(conversationType)),
f: common_vendor.n(__props.message.flow === "out" && "call-reverse"),
g: common_vendor.o$1(callAgain)
} : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6d96978f"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/plugins/plugin-components/message-call/message-call-c2c.js.map

View File

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

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['call', 'data-v-6d96978f', e, f]}}" bindtap="{{g}}"><view class="{{['data-v-6d96978f', 'icon', c]}}"><icon wx:if="{{b}}" class="data-v-6d96978f" u-i="6d96978f-0" bind:__l="__l" u-p="{{b}}"/></view><label class="call-content data-v-6d96978f">{{d}}</label></view>

View File

@@ -0,0 +1,53 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.call.data-v-6d96978f {
display: flex;
flex-direction: row;
align-items: center;
}
.call-C2C.data-v-6d96978f {
cursor: pointer;
}
.call-GROUP.data-v-6d96978f {
cursor: default;
}
.call-content.data-v-6d96978f {
padding-left: 5px;
}
.call .icon.data-v-6d96978f {
width: 20px;
height: 20px;
}
.call-reverse.data-v-6d96978f {
flex-direction: row-reverse;
}
.call-reverse .icon-reverse.data-v-6d96978f {
transform: rotate(180deg);
}
.call-reverse .call-content.data-v-6d96978f {
padding-right: 5px;
padding-left: 0;
}

View File

@@ -0,0 +1,43 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
require("../../../adapter-vue.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "message-call-group",
props: {
message: { default: () => ({}) },
signalingInfo: { default: () => ({}) },
customContent: { default: () => ({}) },
blinkMessageIDList: { default: () => [] }
},
setup(__props) {
const props = __props;
const TYPES = common_vendor.qt.TYPES;
const isCallMessage = common_vendor.computed(() => !!props.signalingInfo);
const conversationType = common_vendor.computed(() => {
var _a;
return (_a = props.message) == null ? void 0 : _a.conversationType;
});
const custom = common_vendor.computed(() => {
var _a;
return (_a = props.customContent) == null ? void 0 : _a.custom;
});
const isBlink = common_vendor.computed(() => {
var _a, _b;
if ((_a = props.message) == null ? void 0 : _a.ID) {
return (_b = props.blinkMessageIDList) == null ? void 0 : _b.includes(props.message.ID);
}
return false;
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(isCallMessage) && common_vendor.unref(conversationType) === common_vendor.unref(TYPES).CONV_GROUP
}, common_vendor.unref(isCallMessage) && common_vendor.unref(conversationType) === common_vendor.unref(TYPES).CONV_GROUP ? {
b: common_vendor.t(common_vendor.unref(custom)),
c: common_vendor.unref(isBlink) ? 1 : ""
} : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-80245e9e"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/plugins/plugin-components/message-call/message-call-group.js.map

View File

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

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['data-v-80245e9e', c && 'blink-text']}}">{{b}}</view>

View File

@@ -0,0 +1,33 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
@keyframes blink-text-80245e9e {
50% {
color: #ff9c19;
}
}
.blink-text.data-v-80245e9e {
animation: blinkText 1s linear 3;
}