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