"use strict";const e=require("../../common/vendor.js"),i=require("../../request/api.js"),n=require("../../common/assets.js"),t={data:()=>({menuTop:e.inject("menuTop"),menuH:e.inject("menuHeight"),infoTop:"",userInfo:null,menuList:[{icon:"/static/icon/mine/aboutUs.png",title:"关于我们",url:"/pages/mine/web/web?type=1"},{icon:"/static/icon/mine/serviceTerm.png",title:"服务条款",url:"/pages/mine/web/web?type=2"},{icon:"/static/icon/mine/privacyProtocol.png",title:"隐私协议",url:"/pages/mine/web/web?type=3"},{icon:"/static/icon/mine/feedback.png",title:"意见反馈",url:"/pages/mine/feedback/feedback"},{icon:"/static/icon/mine/customerService.png",title:"联系客服"},{icon:"/static/icon/mine/logout.png",title:"退出登录"}]}),onLoad(){this.infoTop=e.inject("navHeight")+32/750*e.inject("windowWidth")},onShow(){this.getUserInfoData()},methods:{clickPersonalInfo(){e.index.navigateTo({url:"/pages/mine/basicInfo/basicInfo"})},clickVip(){e.index.navigateTo({url:"/pagesMine/vip/vip"})},clickNumItem(i){0==i?e.index.navigateTo({url:"/pages/mine/commentReply/commentReply"}):1==i?e.index.navigateTo({url:"/pages/mine/followCollect/followCollect"}):e.index.navigateTo({url:"/pages/mine/myLike/myLike"})},clickMenuItem(i,n){i?e.index.navigateTo({url:i}):n==this.menuList.length-1&&e.index.showModal({title:"您确定要退出登录么",success(i){i.confirm&&(e.index.removeStorageSync("token"),e.index.switchTab({url:"/pages/index/index"}))}})},getUserInfoData(){i.userInfo().then((i=>{200==i.code?this.userInfo=i.data:e.wx$1.showToast({title:i.message})})).catch((e=>{}))}}};const o=e._export_sfc(t,[["render",function(i,t,o,s,c,a){return e.e({a:n._imports_0,b:e.s("top:"+c.menuTop+"px;line-height:"+c.menuH+"px;"),c:c.userInfo},c.userInfo?{d:c.userInfo.basic_info.avatar_url,e:e.t(c.userInfo.basic_info.username),f:e.t(c.userInfo.basic_info.phone),g:n._imports_1$2,h:e.s("margin-top:"+c.infoTop+"px;"),i:e.o((e=>a.clickPersonalInfo()))}:{},{j:c.userInfo},c.userInfo?{k:e.t(c.userInfo.statistics.total_comments),l:e.o((e=>a.clickNumItem(0))),m:e.t(c.userInfo.statistics.follows_count),n:e.o((e=>a.clickNumItem(1))),o:e.t(c.userInfo.statistics.likes_count),p:e.o((e=>a.clickNumItem(2)))}:{},{q:n._imports_2$4,r:e.o((e=>a.clickVip())),s:e.f(c.menuList,((i,n,t)=>e.e({a:i.icon,b:e.t(i.title),c:n==c.menuList.length-2},(c.menuList.length,{}),{d:n,e:e.o((e=>a.clickMenuItem(i.url,n)),n)}))),t:n._imports_3$3})}]]);wx.createPage(o);
