feat: 第一次上传代码
This commit is contained in:
55
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.js
vendored
Normal file
55
unpackage/dist/dev/mp-weixin/pages/chat/ChatMoreTips.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"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
|
||||
Reference in New Issue
Block a user