自定义消息
This commit is contained in:
@@ -21,6 +21,7 @@ class TUIChatConfig {
|
||||
InputFile: true,
|
||||
InputEvaluation: true,
|
||||
InputQuickReplies: true,
|
||||
InputCustomMessage: true,
|
||||
InputMention: true,
|
||||
MessageSearch: true,
|
||||
ReadStatus: true
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Navigation-left{
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 998;
|
||||
}
|
||||
/* .Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const TUIKit_components_TUIChat_config = require("../../config.js");
|
||||
const common_assets = require("../../../../../common/assets.js");
|
||||
const TUIKit_components_TUIChat_utils_utils = require("../../utils/utils.js");
|
||||
const TUIKit_components_TUIChat_offlinePushInfoManager_index = require("../../offlinePushInfoManager/index.js");
|
||||
if (!Math) {
|
||||
ToolbarItemContainer();
|
||||
}
|
||||
const ToolbarItemContainer = () => "../toolbar-item-container/index.js";
|
||||
const _sfc_main = {
|
||||
__name: "CustomMessage",
|
||||
emits: ["onDialogPopupShowOrHide"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const evaluateIcon = TUIKit_components_TUIChat_config.ChatConfig.getTheme() === "dark" ? common_assets.InvitationDark : common_assets.InvitationLight;
|
||||
const emits = __emit;
|
||||
const onDialogShow = () => {
|
||||
emits("onDialogPopupShowOrHide", true);
|
||||
};
|
||||
const onDialogClose = () => {
|
||||
emits("onDialogPopupShowOrHide", false);
|
||||
};
|
||||
const currentConversation = common_vendor.ref();
|
||||
common_vendor.Jt.watch(common_vendor.o.CONV, {
|
||||
currentConversation: (conversation) => {
|
||||
currentConversation.value = conversation;
|
||||
}
|
||||
});
|
||||
const container = common_vendor.ref();
|
||||
const submitEvaluate = () => {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
const payload = {
|
||||
data: JSON.stringify({
|
||||
businessID: "pk",
|
||||
title: "PK邀请",
|
||||
buttonText1: "接受邀请",
|
||||
buttonText2: "拒绝邀请"
|
||||
}),
|
||||
description: "",
|
||||
extension: ""
|
||||
};
|
||||
const options = {
|
||||
to: ((_b = (_a = currentConversation == null ? void 0 : currentConversation.value) == null ? void 0 : _a.groupProfile) == null ? void 0 : _b.groupID) || ((_d = (_c = currentConversation == null ? void 0 : currentConversation.value) == null ? void 0 : _c.userProfile) == null ? void 0 : _d.userID),
|
||||
conversationType: (_e = currentConversation == null ? void 0 : currentConversation.value) == null ? void 0 : _e.type,
|
||||
payload,
|
||||
needReadReceipt: TUIKit_components_TUIChat_utils_utils.isEnabledMessageReadReceiptGlobal()
|
||||
};
|
||||
const offlinePushInfoCreateParams = {
|
||||
conversation: currentConversation.value,
|
||||
payload: options.payload,
|
||||
messageType: common_vendor.qt.TYPES.MSG_CUSTOM
|
||||
};
|
||||
const sendMessageOptions = {
|
||||
offlinePushInfo: TUIKit_components_TUIChat_offlinePushInfoManager_index.OfflinePushInfoManager.create(offlinePushInfoCreateParams)
|
||||
};
|
||||
common_vendor.Qt.sendCustomMessage(options, sendMessageOptions);
|
||||
(_f = container == null ? void 0 : container.value) == null ? void 0 : _f.toggleDialogDisplay(false);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o$1(submitEvaluate),
|
||||
b: common_vendor.sr(container, "241228dc-0", {
|
||||
"k": "container"
|
||||
}),
|
||||
c: common_vendor.o$1(onDialogShow),
|
||||
d: common_vendor.o$1(onDialogClose),
|
||||
e: common_vendor.p({
|
||||
iconFile: common_vendor.unref(evaluateIcon),
|
||||
title: "邀请",
|
||||
needBottomPopup: true,
|
||||
iconWidth: _ctx.isUniFrameWork ? "36px" : "30px",
|
||||
iconHeight: _ctx.isUniFrameWork ? "36px" : "30px"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-241228dc"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIChat/message-input-toolbar/evaluate/CustomMessage.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<toolbar-item-container wx:if="{{e}}" class="r data-v-241228dc" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{c}}" bindonDialogClose="{{d}}" u-i="241228dc-0" bind:__l="__l" u-p="{{e}}"><view class="data-v-241228dc"><view class="container data-v-241228dc"></view><button class="send-btn data-v-241228dc" bindtap="{{a}}">发送邀请</button></view></toolbar-item-container>
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
.container.data-v-241228dc {
|
||||
height: 300rpx;
|
||||
}
|
||||
.send-btn.data-v-241228dc {
|
||||
margin-bottom: 100rpx;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ const TUIKit_utils_enableSampleTaskStatus = require("../../../utils/enableSample
|
||||
const TUIKit_components_TUIChat_offlinePushInfoManager_index = require("../offlinePushInfoManager/index.js");
|
||||
const TUIKit_components_TUIChat_offlinePushInfoManager_const = require("../offlinePushInfoManager/const.js");
|
||||
if (!Math) {
|
||||
(EmojiPickerDialog + ImageUpload + VideoUpload + ToolbarItemContainer + Evaluate + Words + UserSelector)();
|
||||
(EmojiPickerDialog + ImageUpload + VideoUpload + ToolbarItemContainer + Evaluate + Words + CustomMessage + UserSelector)();
|
||||
}
|
||||
const ImageUpload = () => "./image-upload/index.js";
|
||||
const VideoUpload = () => "./video-upload/index.js";
|
||||
@@ -15,6 +15,7 @@ const Words = () => "./words/index.js";
|
||||
const ToolbarItemContainer = () => "./toolbar-item-container/index.js";
|
||||
const EmojiPickerDialog = () => "./emoji-picker/emoji-picker-dialog.js";
|
||||
const UserSelector = () => "./user-selector/index.js";
|
||||
const CustomMessage = () => "./evaluate/CustomMessage.js";
|
||||
const __default__ = {
|
||||
options: {
|
||||
styleIsolation: "shared"
|
||||
@@ -220,26 +221,33 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
} : common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
p: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
o: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}) : {}, {
|
||||
q: common_vendor.unref(neededCountFirstPage) > 1
|
||||
}, common_vendor.unref(neededCountFirstPage) > 1 ? common_vendor.e({
|
||||
r: common_vendor.unref(featureConfig).InputEvaluation
|
||||
}, common_vendor.unref(featureConfig).InputEvaluation ? {
|
||||
s: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
t: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}, common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
v: common_vendor.o$1(handleSwiperDotShow)
|
||||
o: common_vendor.unref(featureConfig).InputQuickReplies,
|
||||
q: common_vendor.unref(featureConfig).InputCustomMessage
|
||||
}, common_vendor.unref(featureConfig).InputCustomMessage ? {
|
||||
r: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}) : {}, {
|
||||
w: common_vendor.unref(neededCountFirstPage) <= 1
|
||||
s: common_vendor.unref(neededCountFirstPage) > 1
|
||||
}, common_vendor.unref(neededCountFirstPage) > 1 ? common_vendor.e({
|
||||
t: common_vendor.unref(featureConfig).InputEvaluation
|
||||
}, common_vendor.unref(featureConfig).InputEvaluation ? {
|
||||
v: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
w: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}, common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
x: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
y: common_vendor.unref(featureConfig).InputCustomMessage
|
||||
}, common_vendor.unref(featureConfig).InputCustomMessage ? {
|
||||
z: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}) : {}, {
|
||||
A: common_vendor.unref(neededCountFirstPage) <= 1
|
||||
}, common_vendor.unref(neededCountFirstPage) <= 1 ? common_vendor.e({
|
||||
x: common_vendor.f(common_vendor.unref(currentExtensionList).slice(common_vendor.unref(slicePos)), (extension, index, i0) => {
|
||||
B: common_vendor.f(common_vendor.unref(currentExtensionList).slice(common_vendor.unref(slicePos)), (extension, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: extension
|
||||
}, extension ? {
|
||||
b: common_vendor.o$1(($event) => onExtensionClick(extension), index),
|
||||
c: "76f68da4-10-" + i0,
|
||||
c: "76f68da4-12-" + i0,
|
||||
d: common_vendor.p({
|
||||
iconFile: genExtensionIcon(extension),
|
||||
title: genExtensionText(extension),
|
||||
@@ -251,28 +259,32 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
e: index
|
||||
});
|
||||
}),
|
||||
y: common_vendor.unref(neededCountFirstPage) === 1
|
||||
C: common_vendor.unref(neededCountFirstPage) === 1
|
||||
}, common_vendor.unref(neededCountFirstPage) === 1 ? common_vendor.e({
|
||||
z: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}, common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
A: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}) : common_vendor.e({
|
||||
B: common_vendor.unref(featureConfig).InputEvaluation
|
||||
}, common_vendor.unref(featureConfig).InputEvaluation ? {
|
||||
C: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
D: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}, common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
E: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}) : common_vendor.e({
|
||||
F: common_vendor.unref(featureConfig).InputEvaluation
|
||||
}, common_vendor.unref(featureConfig).InputEvaluation ? {
|
||||
G: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
H: common_vendor.unref(featureConfig).InputQuickReplies
|
||||
}, common_vendor.unref(featureConfig).InputQuickReplies ? {
|
||||
I: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {}, {
|
||||
J: common_vendor.unref(featureConfig).InputCustomMessage
|
||||
}, common_vendor.unref(featureConfig).InputCustomMessage ? {
|
||||
K: common_vendor.o$1(handleSwiperDotShow)
|
||||
} : {})) : {}, {
|
||||
F: common_vendor.unref(isSwiperIndicatorDotsEnable)
|
||||
L: common_vendor.unref(isSwiperIndicatorDotsEnable)
|
||||
}), {
|
||||
G: common_vendor.sr(userSelectorRef, "76f68da4-14", {
|
||||
M: common_vendor.sr(userSelectorRef, "76f68da4-17", {
|
||||
"k": "userSelectorRef"
|
||||
}),
|
||||
H: common_vendor.o$1(onUserSelectorSubmit),
|
||||
I: common_vendor.o$1(onUserSelectorCancel),
|
||||
J: common_vendor.p({
|
||||
N: common_vendor.o$1(onUserSelectorSubmit),
|
||||
O: common_vendor.o$1(onUserSelectorCancel),
|
||||
P: common_vendor.p({
|
||||
type: common_vendor.unref(selectorShowType),
|
||||
currentConversation: common_vendor.unref(currentConversation),
|
||||
isGroup: common_vendor.unref(isGroup)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"words": "./words/index",
|
||||
"toolbar-item-container": "./toolbar-item-container/index",
|
||||
"emoji-picker-dialog": "./emoji-picker/emoji-picker-dialog",
|
||||
"user-selector": "./user-selector/index"
|
||||
"user-selector": "./user-selector/index",
|
||||
"custom-message": "./evaluate/CustomMessage"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['message-input-toolbar', 'message-input-toolbar-h5', 'message-input-toolbar-uni']}}"><view wx:if="{{a}}"><emoji-picker-dialog u-i="76f68da4-0" bind:__l="__l"/></view><view wx:else><swiper class="{{['message-input-toolbar-swiper']}}" indicator-dots="{{F}}" autoplay="{{false}}" circular="{{false}}"><swiper-item class="{{['message-input-toolbar-list', 'message-input-toolbar-h5-list', 'message-input-toolbar-uni-list']}}"><image-upload wx:if="{{b}}" u-i="76f68da4-1" bind:__l="__l" u-p="{{c}}"/><image-upload wx:if="{{d}}" u-i="76f68da4-2" bind:__l="__l" u-p="{{e}}"/><video-upload wx:if="{{f}}" u-i="76f68da4-3" bind:__l="__l" u-p="{{g}}"/><video-upload wx:if="{{h}}" u-i="76f68da4-4" bind:__l="__l" u-p="{{i}}"/><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="extension" wx:key="e"><toolbar-item-container wx:if="{{extension.a}}" bindonIconClick="{{extension.b}}" u-i="{{extension.c}}" bind:__l="__l" u-p="{{extension.d}}"/></view></block><block wx:if="{{l}}"><evaluate wx:if="{{m}}" bindonDialogPopupShowOrHide="{{n}}" u-i="76f68da4-6" bind:__l="__l"/><words wx:elif="{{o}}" bindonDialogPopupShowOrHide="{{p}}" u-i="76f68da4-7" bind:__l="__l"/></block><block wx:if="{{q}}"><evaluate wx:if="{{r}}" bindonDialogPopupShowOrHide="{{s}}" u-i="76f68da4-8" bind:__l="__l"/><words wx:if="{{t}}" bindonDialogPopupShowOrHide="{{v}}" u-i="76f68da4-9" bind:__l="__l"/></block></swiper-item><swiper-item wx:if="{{w}}" class="{{['message-input-toolbar-list', 'message-input-toolbar-h5-list', 'message-input-toolbar-uni-list']}}"><view wx:for="{{x}}" wx:for-item="extension" wx:key="e"><toolbar-item-container wx:if="{{extension.a}}" bindonIconClick="{{extension.b}}" u-i="{{extension.c}}" bind:__l="__l" u-p="{{extension.d}}"/></view><block wx:if="{{y}}"><words wx:if="{{z}}" bindonDialogPopupShowOrHide="{{A}}" u-i="76f68da4-11" bind:__l="__l"/></block><block wx:else><evaluate wx:if="{{B}}" bindonDialogPopupShowOrHide="{{C}}" u-i="76f68da4-12" bind:__l="__l"/><words wx:if="{{D}}" bindonDialogPopupShowOrHide="{{E}}" u-i="76f68da4-13" bind:__l="__l"/></block></swiper-item></swiper></view><user-selector wx:if="{{J}}" class="r" u-r="userSelectorRef" bindsubmit="{{H}}" bindcancel="{{I}}" u-i="76f68da4-14" bind:__l="__l" u-p="{{J}}"/></view>
|
||||
<view class="{{['message-input-toolbar', 'message-input-toolbar-h5', 'message-input-toolbar-uni']}}"><view wx:if="{{a}}"><emoji-picker-dialog u-i="76f68da4-0" bind:__l="__l"/></view><view wx:else><swiper class="{{['message-input-toolbar-swiper']}}" indicator-dots="{{L}}" autoplay="{{false}}" circular="{{false}}"><swiper-item class="{{['message-input-toolbar-list', 'message-input-toolbar-h5-list', 'message-input-toolbar-uni-list']}}"><image-upload wx:if="{{b}}" u-i="76f68da4-1" bind:__l="__l" u-p="{{c}}"/><image-upload wx:if="{{d}}" u-i="76f68da4-2" bind:__l="__l" u-p="{{e}}"/><video-upload wx:if="{{f}}" u-i="76f68da4-3" bind:__l="__l" u-p="{{g}}"/><video-upload wx:if="{{h}}" u-i="76f68da4-4" bind:__l="__l" u-p="{{i}}"/><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="extension" wx:key="e"><toolbar-item-container wx:if="{{extension.a}}" bindonIconClick="{{extension.b}}" u-i="{{extension.c}}" bind:__l="__l" u-p="{{extension.d}}"/></view></block><block wx:if="{{l}}"><evaluate wx:if="{{m}}" bindonDialogPopupShowOrHide="{{n}}" u-i="76f68da4-6" bind:__l="__l"/><words wx:elif="{{o}}" bindonDialogPopupShowOrHide="{{p}}" u-i="76f68da4-7" bind:__l="__l"/><custom-message wx:if="{{q}}" bindonDialogPopupShowOrHide="{{r}}" u-i="76f68da4-8" bind:__l="__l"/></block><block wx:if="{{s}}"><evaluate wx:if="{{t}}" bindonDialogPopupShowOrHide="{{v}}" u-i="76f68da4-9" bind:__l="__l"/><words wx:if="{{w}}" bindonDialogPopupShowOrHide="{{x}}" u-i="76f68da4-10" bind:__l="__l"/><custom-message wx:if="{{y}}" bindonDialogPopupShowOrHide="{{z}}" u-i="76f68da4-11" bind:__l="__l"/></block></swiper-item><swiper-item wx:if="{{A}}" class="{{['message-input-toolbar-list', 'message-input-toolbar-h5-list', 'message-input-toolbar-uni-list']}}"><view wx:for="{{B}}" wx:for-item="extension" wx:key="e"><toolbar-item-container wx:if="{{extension.a}}" bindonIconClick="{{extension.b}}" u-i="{{extension.c}}" bind:__l="__l" u-p="{{extension.d}}"/></view><block wx:if="{{C}}"><words wx:if="{{D}}" bindonDialogPopupShowOrHide="{{E}}" u-i="76f68da4-13" bind:__l="__l"/></block><block wx:else><evaluate wx:if="{{F}}" bindonDialogPopupShowOrHide="{{G}}" u-i="76f68da4-14" bind:__l="__l"/><words wx:if="{{H}}" bindonDialogPopupShowOrHide="{{I}}" u-i="76f68da4-15" bind:__l="__l"/><custom-message wx:if="{{J}}" bindonDialogPopupShowOrHide="{{K}}" u-i="76f68da4-16" bind:__l="__l"/></block></swiper-item></swiper></view><user-selector wx:if="{{P}}" class="r" u-r="userSelectorRef" bindsubmit="{{N}}" bindcancel="{{O}}" u-i="76f68da4-17" bind:__l="__l" u-p="{{P}}"/></view>
|
||||
@@ -83,12 +83,17 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
v: common_vendor.t(common_vendor.unref(customData).text),
|
||||
w: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("message.custom.查看详情>>")),
|
||||
x: common_vendor.unref(customData).link
|
||||
} : common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK ? {
|
||||
z: common_vendor.t(common_vendor.unref(customData).title),
|
||||
A: common_vendor.t(common_vendor.unref(customData).buttonText1),
|
||||
B: common_vendor.t(common_vendor.unref(customData).buttonText2)
|
||||
} : {
|
||||
y: _ctx.content.custom
|
||||
C: _ctx.content.custom
|
||||
}, {
|
||||
i: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).EVALUATE,
|
||||
n: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).ORDER,
|
||||
t: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).LINK
|
||||
t: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).LINK,
|
||||
y: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"></image><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{y}}"/></label></block></view>
|
||||
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"></image><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{z}}</view><view class="button-group data-v-abd5dfdc"><button class="buttonAccept data-v-abd5dfdc">{{A}}</button><button class="buttonRefuse data-v-abd5dfdc">{{B}}</button></view></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{C}}"/></label></block></view>
|
||||
@@ -77,7 +77,7 @@ a.data-v-abd5dfdc {
|
||||
color: #679ce1;
|
||||
}
|
||||
.custom.data-v-abd5dfdc {
|
||||
font-size: 14px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.custom h1.data-v-abd5dfdc {
|
||||
font-size: 14px;
|
||||
@@ -123,4 +123,52 @@ a.data-v-abd5dfdc {
|
||||
.custom .order img.data-v-abd5dfdc {
|
||||
width: 67px;
|
||||
height: 67px;
|
||||
}
|
||||
.custom .pk.data-v-abd5dfdc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.custom .pk h1.data-v-abd5dfdc {
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.custom .pk .button-group.data-v-abd5dfdc {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.custom .pk .button-group .buttonAccept.data-v-abd5dfdc {
|
||||
width: 40%;
|
||||
height: 60rpx;
|
||||
background-color: #84ff0055;
|
||||
border-radius: 10px;
|
||||
border: 2px solid #26ff00;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
margin-bottom: 10px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.custom .pk .button-group .buttonRefuse.data-v-abd5dfdc {
|
||||
width: 40%;
|
||||
height: 60rpx;
|
||||
background-color: #ff000078;
|
||||
border: 2px solid #ff0000;
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="Navigation data-v-40b33296"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-40b33296"/></view><view class="tui-conversation data-v-40b33296" bindtap="{{h}}" bindtouchstart="{{i}}" bindtouchend="{{j}}"><t-u-i-search wx:if="{{b}}" class="data-v-40b33296" u-i="40b33296-0" bind:__l="__l" u-p="{{b}}"/><conversation-header wx:if="{{c}}" class="r data-v-40b33296" u-r="headerRef" u-i="40b33296-1" bind:__l="__l"/><conversation-network class="data-v-40b33296" u-i="40b33296-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-40b33296" bindhandleSwitchConversation="{{f}}" bindgetPassingRef="{{g}}" u-i="40b33296-3" bind:__l="__l"/></view><view class="data-v-40b33296"><tab-bar class="data-v-40b33296" u-i="40b33296-4" bind:__l="__l"></tab-bar></view>
|
||||
<view class="Navigation-left data-v-40b33296"></view><view class="Navigation data-v-40b33296"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-40b33296"/></view><view class="tui-conversation data-v-40b33296" bindtap="{{h}}" bindtouchstart="{{i}}" bindtouchend="{{j}}"><t-u-i-search wx:if="{{b}}" class="data-v-40b33296" u-i="40b33296-0" bind:__l="__l" u-p="{{b}}"/><conversation-header wx:if="{{c}}" class="r data-v-40b33296" u-r="headerRef" u-i="40b33296-1" bind:__l="__l"/><conversation-network class="data-v-40b33296" u-i="40b33296-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-40b33296" bindhandleSwitchConversation="{{f}}" bindgetPassingRef="{{g}}" u-i="40b33296-3" bind:__l="__l"/></view><view class="data-v-40b33296"><tab-bar class="data-v-40b33296" u-i="40b33296-4" bind:__l="__l"></tab-bar></view>
|
||||
@@ -497,6 +497,11 @@ input.data-v-32d81a7d:focus, input.data-v-32d81a7d:active, textarea.data-v-32d81
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Navigation-left{
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 998;
|
||||
}
|
||||
/* .Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
@@ -15,6 +15,7 @@ const CHAT_MSG_CUSTOM_TYPE = {
|
||||
SERVICE: "consultion",
|
||||
EVALUATE: "evaluation",
|
||||
LINK: "text_link",
|
||||
PK: "pk",
|
||||
CALL: 1,
|
||||
ORDER: "order"
|
||||
};
|
||||
|
||||
4
unpackage/dist/dev/mp-weixin/app.js
vendored
4
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -19,8 +19,8 @@ if (!Math) {
|
||||
let vueVersion = 2;
|
||||
vueVersion = 3;
|
||||
common_vendor.index.$SDKAppID = 1600086550;
|
||||
common_vendor.index.$userID = "123";
|
||||
common_vendor.index.$userSig = "eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwoZGxlDh4pTsxIKCzBQlK0MzAwMDCzNTUwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZuYGxpbALVATclMB5qaUmwRlpvkHBmcHWps7hScoe3sm6PtmRxZXOWZkZYbWGKYXlVo6ByUUlqRbqtUCwBTujBs";
|
||||
common_vendor.index.$userID = "oi";
|
||||
common_vendor.index.$userSig = "eJwtzEELwiAYxvHv4jmGWjobdInIwGCHgsFuI529tS1bQ4zou2fbjs-vgf8HnY*nxJseZYgmGC3GDdp0A9Qw8gNmfel75RxolBGOMRacMTw9JjjoTXTGGI3XpAO0f0tX6XJNORdzBWyM2qe9HhTfVabLSQCSt14Wb6NuRVOyC9nL0ssmKLwFsUHfH3s4MI4_";
|
||||
const _sfc_main = {
|
||||
onLaunch: function() {
|
||||
common_vendor.A.login({
|
||||
|
||||
BIN
unpackage/dist/dev/mp-weixin/assets/InvitationDark.c8a31c9e.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/assets/InvitationDark.c8a31c9e.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
BIN
unpackage/dist/dev/mp-weixin/assets/InvitationLight.ee30129f.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/assets/InvitationLight.ee30129f.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.9 KiB |
@@ -55,6 +55,8 @@ const wordsIconLight = "/assets/words-light.c8aec883.svg";
|
||||
const wordsIconDark = "/assets/words-dark.6a706f9a.svg";
|
||||
const faceIconLight = "/assets/face-light.b3a6acfa.svg";
|
||||
const faceIconDark = "/assets/face-dark.1ce4b9fa.svg";
|
||||
const InvitationDark = "/assets/InvitationDark.c8a31c9e.png";
|
||||
const InvitationLight = "/assets/InvitationLight.ee30129f.png";
|
||||
const SearchDefaultIcon = "/assets/search-default.0969a8df.svg";
|
||||
const delIcon = "/assets/del-icon.e0d1d417.svg";
|
||||
const plusSVG = "/assets/plus.dfad243b.svg";
|
||||
@@ -76,6 +78,8 @@ exports.AddIcon = AddIcon;
|
||||
exports.C2C = C2C;
|
||||
exports.ForwardEachIcon = ForwardEachIcon;
|
||||
exports.ForwardMergeIcon = ForwardMergeIcon;
|
||||
exports.InvitationDark = InvitationDark;
|
||||
exports.InvitationLight = InvitationLight;
|
||||
exports.SearchDefaultIcon = SearchDefaultIcon;
|
||||
exports._imports_0 = _imports_0$2;
|
||||
exports._imports_0$1 = _imports_0$3;
|
||||
|
||||
@@ -7770,7 +7770,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.0.107,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_gcKgKG";
|
||||
const id = "mp-weixin_AbyXCr";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
24
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
24
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -1,21 +1,23 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
// 打开会话列表
|
||||
openConversationList() {
|
||||
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
},
|
||||
// 打开联系人
|
||||
openContact() {
|
||||
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIContact/index" });
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
return {
|
||||
a: common_vendor.o$1((...args) => $options.openConversationList && $options.openConversationList(...args)),
|
||||
b: common_vendor.o$1((...args) => $options.openContact && $options.openContact(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-402ad917"]]);
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Mine/Mine.js.map
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<view><button bindtap="{{a}}">打开会话列表</button><button bindtap="{{b}}">打开联系人</button></view>
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
/* 样式定义 */
|
||||
|
||||
Reference in New Issue
Block a user