feat: 门票组件封装

This commit is contained in:
duanshuwen
2025-07-15 16:48:32 +08:00
parent b31b04f2e2
commit 591287e757
40 changed files with 420 additions and 50 deletions

View File

@@ -3,7 +3,7 @@ const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const model_ChatModel = require("../../model/ChatModel.js");
if (!Math) {
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + OneFeelMK001 + ResponseIntro + ImageSwiper + Stepper + ResponseWrapper + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
(ChatTopBgImg + ChatTopNavBar + ChatTopBanner + OneFeelMK001 + ResponseIntro + ImageSwiper + Stepper + SumCard + FormCard + ResponseWrapper + ChatCardAI + ChatCardMine + ChatMoreTips + ChatQuickAccess)();
}
const ChatTopBanner = () => "./ChatTopBanner.js";
const ChatTopBgImg = () => "./ChatTopBgImg.js";
@@ -17,6 +17,8 @@ const ResponseIntro = () => "../../components/ResponseIntro/index.js";
const ResponseWrapper = () => "../../components/ResponseWrapper/index.js";
const ImageSwiper = () => "../../components/ImageSwiper/index.js";
const Stepper = () => "../../components/Stepper/index.js";
const SumCard = () => "../../components/SumCard/index.js";
const FormCard = () => "../../components/FormCard/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "ChatMainList",
emits: ["openDrawer"],
@@ -34,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
const emits = __emit;
const openDrawer = () => {
emits("openDrawer");
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:174", "=============打开抽屉");
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:178", "=============打开抽屉");
};
const handleReply = (text) => {
loadMessage(text);
@@ -100,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
};
chatMsgList.value.push(newMsgAI);
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:258", "发送的新消息:", JSON.stringify(newMsg));
common_vendor.index.__f__("log", "at pages/chat/ChatMainList.vue:262", "发送的新消息:", JSON.stringify(newMsg));
};
const scrollToBottom = () => {
lastMsgId.value = `${chatMsgList.value[chatMsgList.value.length - 1].msgId}`;
@@ -113,7 +115,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
a: common_vendor.o(openDrawer),
b: statusBarHeight.value + "px",
c: navBgColor.value,
d: common_vendor.f(chatMsgList.value, (item, k0, i0) => {
d: common_vendor.p({
referencePrice: 700,
discount: 10
}),
e: common_vendor.f(chatMsgList.value, (item, k0, i0) => {
return common_vendor.e({
a: item.msgType === common_vendor.unref(model_ChatModel.MessageRole).AI
}, item.msgType === common_vendor.unref(model_ChatModel.MessageRole).AI ? common_vendor.e({
@@ -121,13 +127,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}, item.msgContent && item.msgContent.type === common_vendor.unref(model_ChatModel.MessageType).IMAGE ? {
c: common_assets._imports_0$1
} : {}, {
d: "d7316ec5-11-" + i0 + "," + ("d7316ec5-10-" + i0),
e: "d7316ec5-10-" + i0,
d: "d7316ec5-13-" + i0 + "," + ("d7316ec5-12-" + i0),
e: "d7316ec5-12-" + i0,
f: common_vendor.p({
text: item.msg
})
}) : item.msgType === common_vendor.unref(model_ChatModel.MessageRole).ME ? {
h: "d7316ec5-12-" + i0,
h: "d7316ec5-14-" + i0,
i: common_vendor.p({
text: item.msg
})
@@ -139,19 +145,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
l: item.msgId
});
}),
e: lastMsgId.value,
f: lastMsgId.value,
g: common_vendor.o(handleReply),
g: lastMsgId.value,
h: common_vendor.o(handleReply),
i: common_assets._imports_1,
j: common_vendor.o(sendMessage),
k: common_vendor.o(handleNoHideKeyboard),
l: holdKeyboard.value,
m: inputMessage.value,
n: common_vendor.o(($event) => inputMessage.value = $event.detail.value),
o: common_assets._imports_2,
p: common_vendor.o(sendMessage),
q: common_vendor.o(handleTouchEnd)
i: common_vendor.o(handleReply),
j: common_assets._imports_1,
k: common_vendor.o(sendMessage),
l: common_vendor.o(handleNoHideKeyboard),
m: holdKeyboard.value,
n: inputMessage.value,
o: common_vendor.o(($event) => inputMessage.value = $event.detail.value),
p: common_assets._imports_2,
q: common_vendor.o(sendMessage),
r: common_vendor.o(handleTouchEnd)
};
};
}