acdr-ui/dist/build/mp-weixin/pages/message/index.js

2 lines
1023 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";const e=require("../../common/vendor.js"),s=require("../../store/message.js"),a=require("../../utils/commUtils.js");if(!Array){e.resolveComponent("layout-default-uni")()}Math||t();const t=()=>"../../components/Tabbar.js",r={__name:"index",setup(t){const r=s.useMessageStore(),n=e.ref([{title:"订阅消息",description:"微信消息订阅,避免错过重要通知",icon:"@/static/message/subscribed.png",iconWrapperClass:"",badge:r.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"}]);return(s,t)=>({a:e.f(e.unref(n),((s,t,r)=>e.e({a:e.unref(a.imgUrl)(s.icon),b:e.n(s.iconWrapperClass),c:e.t(s.title),d:e.t(s.description),e:s.badge},s.badge?{f:e.t(s.badge)}:{},{g:e.o((a=>{return t=s.path,void e.index.navigateTo({url:t});var t}),t),h:t})))})}},n=e._export_sfc(r,[["__scopeId","data-v-e0602a9b"]]);wx.createPage(n);