xiaokuaisong-xiaochengxu/uniapp04/unpackage/dist/dev/mp-alipay/pages/messageCenter/messageCenter.js

55 lines
1.9 KiB
JavaScript
Raw Normal View History

2024-10-18 07:53:00 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_uni_list_chat2 = common_vendor.resolveComponent("uni-list-chat");
const _easycom_uni_list2 = common_vendor.resolveComponent("uni-list");
(_easycom_uni_list_chat2 + _easycom_uni_list2)();
}
const _easycom_uni_list_chat = () => "../../uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js";
const _easycom_uni_list = () => "../../uni_modules/uni-list/components/uni-list/uni-list.js";
if (!Math) {
(_easycom_uni_list_chat + _easycom_uni_list)();
}
2025-04-11 06:42:29 +00:00
const _sfc_main = {
__name: "messageCenter",
setup(__props) {
const historyList = common_vendor.ref([
{
imgUrl: "https://ts1.tc.mm.bing.net/th/id/R-C.e05fb7d12c52fc08ed0b83cc9aafaa70?rik=n8c5LP%2bsEJF1WQ&riu=http%3a%2f%2fwww.kuaipng.com%2fUploads%2fpic%2fw%2f2021%2f04-21%2f99523%2fwater_99523_698_698_.png&ehk=pHsR6er2LGmrUr%2bVVLRbNE%2bSWMkqOSMyvoYueS4GqDs%3d&risl=&pid=ImgRaw&r=0",
title: "支付宝客服",
unread: "1",
time: "刚才",
message: "我的外卖被偷了,抓紧给我退款"
}
]);
const handleDonate = () => {
common_vendor.index.navigateTo({ url: "../talk/talk" });
};
return (_ctx, _cache) => {
2024-10-18 07:53:00 +00:00
return {
2025-04-11 06:42:29 +00:00
a: common_vendor.f(historyList.value, (item, index, i0) => {
return {
a: "8911ee70-2-" + i0 + "," + ("8911ee70-1-" + i0),
b: common_vendor.p({
title: item.title,
avatar: item.imgUrl,
note: item.message,
time: item.time,
["badge-positon"]: "left",
["badge-text"]: item.unread,
clickable: "true"
}),
c: index,
d: "8911ee70-1-" + i0 + ",8911ee70-0"
};
2024-10-18 07:53:00 +00:00
}),
2025-04-11 06:42:29 +00:00
b: common_vendor.o(handleDonate),
c: common_vendor.p({
border: true
})
2024-10-18 07:53:00 +00:00
};
2025-04-11 06:42:29 +00:00
};
}
};
my.createPage(_sfc_main);