"use strict";const e=require("../../common/vendor.js"),m=require("../../request/api.js"),r=require("../../common/assets.js"),i={data:()=>({navH:e.inject("navHeight"),memberInfo:null,privilegeList:["高效选股工具","股票基金明星榜单","定期专属晨报、股票动态","独家产业研报","个股产业分析","股票、基金基础指标","7x24 财经直播"]}),onLoad(){this.getMemberStatus()},methods:{clickJoinVip(){this.memberInfo.is_member||e.index.showModal({content:"请点击下方按钮复制链接并在浏览器中打开以完成会员购买流程",showCancel:!1,confirmText:"复制",success(e){e.confirm}})},getMemberStatus(){m.membershipStatus().then((m=>{200==m.code?this.memberInfo=m.data:e.index.showToast({title:m.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("navBar")()}Math;const o=e._export_sfc(i,[["render",function(m,i,o,t,s,n){return e.e({a:e.p({leftText:"会员中心"}),b:r._imports_0,c:s.memberInfo},s.memberInfo?e.e({d:s.memberInfo.is_member},s.memberInfo.is_member?{e:r._imports_1$7}:{f:r._imports_2$8},{g:s.memberInfo.is_member},s.memberInfo.is_member?{h:e.t(s.memberInfo.member_expire_date)}:{},{i:s.memberInfo.is_member},s.memberInfo.is_member?{j:r._imports_3$6}:{k:r._imports_4$4},{l:s.memberInfo.is_member},s.memberInfo.is_member?{m:r._imports_5$3}:{n:r._imports_6$1},{o:e.f(s.privilegeList,((m,i,o)=>e.e({a:e.t(m),b:0==i||1==i||2==i},0==i||1==i||2==i?{c:r._imports_7$1}:{},{d:3==i||4==i},3==i||4==i?e.e({e:3==i},{},{f:4==i},{}):{},{g:5==i||6==i},5==i||6==i?{h:r._imports_8$1}:{},{i:i}))),p:r._imports_8$1,q:e.n("privilegeList "+(s.memberInfo.is_member?"vip":"")),r:e.s("margin-top:"+s.navH+"px;")}):{},{s:s.memberInfo},s.memberInfo?{t:e.t(s.memberInfo.is_member?"您已是年度VIP":"立即加入年度VIP"),v:e.o((e=>n.clickJoinVip()))}:{})}]]);wx.createPage(o);
