"use strict"; const common_vendor = require("../../common/vendor.js"); const store_message = require("../../store/message.js"); const utils_commUtils = require("../../utils/commUtils.js"); if (!Array) { const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni"); _component_layout_default_uni(); } if (!Math) { Tabbar(); } const Tabbar = () => "../../components/Tabbar.js"; const _sfc_main = { __name: "index", setup(__props) { const useMessage = store_message.useMessageStore(); const messages = common_vendor.ref([ { title: "订阅消息", description: "微信消息订阅,避免错过重要通知", icon: "@/static/message/subscribed.png", iconWrapperClass: "", badge: useMessage.messages.unreadMessages.length, path: "/pages/message/message-list" }, { title: "在线客服", description: "工作时间:10:00-18:00", icon: "@/static/message/maotou_kefu.png", iconWrapperClass: "icon-wrapper-2", badge: null, path: "/pages/message/chat" } ]); const toPath = (path) => { common_vendor.index.navigateTo({ url: path }); }; return (_ctx, _cache) => { return { a: common_vendor.f(common_vendor.unref(messages), (message, index, i0) => { return common_vendor.e({ a: common_vendor.unref(utils_commUtils.imgUrl)(message.icon), b: common_vendor.n(message.iconWrapperClass), c: common_vendor.t(message.title), d: common_vendor.t(message.description), e: message.badge }, message.badge ? { f: common_vendor.t(message.badge) } : {}, { g: common_vendor.o(($event) => toPath(message.path), index), h: index }); }) }; }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bdafde18"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=index.js.map