Files
YGChatCS/unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.js
2025-06-29 23:41:37 +08:00

56 lines
1.3 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "ChatMoreTips",
emits: ["replySent"],
setup(__props, { emit: __emit }) {
const itemList = common_vendor.ref([]);
const emits = __emit;
const sendReply = (text) => {
emits("replySent", text);
};
common_vendor.onMounted(() => {
initData();
});
const initData = () => {
itemList.value = [
{
title: "定温泉票"
},
{
title: "定酒店"
},
{
title: "优惠套餐"
},
{
title: "亲子玩法"
},
{
title: "了解交通"
},
{
title: "看看酒店"
},
{
title: "看看美食"
}
];
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(itemList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.o(($event) => sendReply(item.title), index),
c: index
};
})
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d881dd42"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/chat/ChatMoreTips.js.map