"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),n=require("../../api/api.js"),r=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("statusBar")+e.resolveComponent("up-avatar")+e.resolveComponent("cc-myTabbar"))()}Math||((()=>"../../components/statusBar/statusBar.js")+(()=>"../../uni_modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js"))();const t={__name:"mine",setup(t){const{nav:s,navTo:o}=r.useNav();let i=e.ref({}),c=e.ref([{name:"我的电卡",img:"/static/icon/dk_mine.png",path:"/pages/mine/card",type:"nav"},{name:"充电订单",img:"/static/icon/cd_mine.png",path:"/pages/order/order",type:"switchTab"},{name:"余额明细",img:"/static/icon/ye_mine.png",path:"/pages/mine/incomeList",type:"nav"},{name:"客服中心",img:"/static/icon/kf_mine.png",call:!0}]);e.onShow((async()=>{e.index.hideTabBar();let a=await n.userInfo();i.value=a}));const m=()=>{e.index.navigateTo({url:"./sett"})};return(n,r)=>({a:e.p({size:"150rpx",src:e.unref(i).avatar}),b:e.t(e.unref(i).nickName),c:e.t(e.unref(i).phone||""),d:e.o(m),e:a._imports_0$2,f:e.t(e.unref(i).balance||0),g:e.o((a=>e.unref(o)("/pages/mine/incomeList"))),h:e.o((a=>e.unref(o)("/pages/mine/incomeList"))),i:e.o((a=>e.unref(o)(`/pageMake/refund/refund?balance=${e.unref(i).refundableAmount}`))),j:e.o((a=>e.unref(o)("/pages/money/recharge"))),k:e.f(e.unref(c),((a,n,r)=>({a:a.img,b:e.t(a.name),c:n,d:e.o((n=>e.unref(s)(a)),n)}))),l:e.p({tabBarShow:4})})}},s=e._export_sfc(t,[["__scopeId","data-v-4a8b484a"]]);wx.createPage(s);
