"use strict";const e=require("../../common/vendor.js"),n=require("../../request/api.js"),t=require("../../common/assets.js"),i={data:()=>({menuTop:e.inject("menuTop"),menuH:e.inject("menuHeight"),infoTop:"",userInfo:null,memberInfo: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(),this.getMemberStatus()},methods:{clickPersonalInfo(){e.index.navigateTo({url:"/pages/mine/basicInfo/basicInfo"})},clickVip(){e.index.navigateTo({url:"/pagesMine/vip/vip"})},clickNumItem(n){0==n?e.index.navigateTo({url:"/pages/mine/commentReply/commentReply"}):1==n?e.index.navigateTo({url:"/pages/mine/followCollect/followCollect"}):e.index.navigateTo({url:"/pages/mine/myLike/myLike"})},clickMenuItem(n,t){n?e.index.navigateTo({url:n}):t==this.menuList.length-2?this.$refs.popup.open():t==this.menuList.length-1&&e.index.showModal({title:"您确定要退出登录么",success(n){n.confirm&&(e.index.removeStorageSync("token"),e.index.switchTab({url:"/pages/index/index"}))}})},getUserInfoData(){n.userInfo().then((n=>{200==n.code?this.userInfo=n.data:e.wx$1.showToast({title:n.message})})).catch((e=>{}))},getMemberStatus(){n.membershipStatus().then((n=>{200==n.code?this.memberInfo=n.data:e.index.showToast({title:n.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("uni-popup")()}Math;const o=e._export_sfc(i,[["render",function(n,i,o,s,m,c){return e.e({a:t._imports_0,b:e.s("top:"+m.menuTop+"px;line-height:"+m.menuH+"px;"),c:m.userInfo},m.userInfo?e.e({d:m.userInfo.basic_info.avatar_url,e:e.t(m.userInfo.basic_info.nickname),f:e.t(m.userInfo.basic_info.phone),g:m.memberInfo&&m.memberInfo.is_member},m.memberInfo&&m.memberInfo.is_member?{h:e.t(m.memberInfo.subscription_type)}:{},{i:t._imports_1$4,j:e.s("margin-top:"+m.infoTop+"px;"),k:e.o((e=>c.clickPersonalInfo()))}):{},{l:m.userInfo},m.userInfo?{m:e.t(m.userInfo.statistics.total_comments),n:e.o((e=>c.clickNumItem(0))),o:e.t(m.userInfo.statistics.follows_count),p:e.o((e=>c.clickNumItem(1))),q:e.t(m.userInfo.statistics.likes_count),r:e.o((e=>c.clickNumItem(2)))}:{},{s:m.memberInfo&&!m.memberInfo.is_member},m.memberInfo&&!m.memberInfo.is_member?{t:t._imports_2$4,v:e.o((e=>c.clickVip()))}:{},{w:e.f(m.menuList,((n,t,i)=>({a:n.icon,b:e.t(n.title),c:t,d:e.o((e=>c.clickMenuItem(n.url,t)),t)}))),x:t._imports_3$3,y:t._imports_4$4,z:e.sr("popup","dd5840e4-0"),A:e.p({type:"center"})})}]]);wx.createPage(o);
