import{_ as a,c as m,d as _,e as u,f as c,g,h as l,j as d,k as p,l as b,m as v,n as f,o as h,p as w,q as C,r as F}from"./tip_bg.2a396e3e.js";import{d as E,u as y,g as B,x as r,f as x,j as t,z as i,M as I,B as D}from"./index.3bfa6a0e.js";import{I as S}from"./index.0fd5538f.js";import{s as A}from"./share-banner.3808bbad.js";import{w as T}from"./wx_bg.cce2a6c0.js";import{i as U,s as k}from"./share.58ceb09e.js";const $="_intro_8doog_6",P="_shareBanner_8doog_18",j="_memberContainer_8doog_21",q="_memberItem_8doog_27",L="_title_8doog_30",N="_member_function_8doog_38",M="_function_item__content_8doog_43",V="_function_item_8doog_43",z="_function_text_8doog_55",H="_price_8doog_96",R="_originalPrice_8doog_104",G="_active_8doog_108",J="_tagDiscount_8doog_137",K="_wxpopup_8doog_150";var n={"member-center":"_member-center_8doog_1",intro:$,shareBanner:P,memberContainer:j,memberItem:q,title:L,member_function:N,function_item__content:M,function_item:V,function_text:z,"system-list":"_system-list_8doog_60","system-item":"_system-item_8doog_76",price:H,originalPrice:R,active:G,tagDiscount:J,wxpopup:K};const O=e=>{const o=`../../../views/member-center/images/${e}`;return{"../../../views/member-center/images/1.png":a,"../../../views/member-center/images/2.png":m,"../../../views/member-center/images/3.png":_,"../../../views/member-center/images/4.png":u,"../../../views/member-center/images/5.png":c,"../../../views/member-center/images/6.png":g,"../../../views/member-center/images/7.png":l,"../../../views/member-center/images/8.png":d,"../../../views/member-center/images/discount_bg.png":p,"../../../views/member-center/images/icon_discount.png":b,"../../../views/member-center/images/icon_gift.png":v,"../../../views/member-center/images/icon_video.png":f,"../../../views/member-center/images/member_bg.png":h,"../../../views/member-center/images/member_logo.png":w,"../../../views/member-center/images/record_bg.png":C,"../../../views/member-center/images/tip_bg.png":F}[o].default};var te=E({name:"MemberCenter",data(){const e=this.$route.query;e.recomUserId=e.userType&&e.userType=="STUDENT"?"":e.recomUserId;const o=`${location.origin}/student/#/memberCenter?${y.stringify(e)}`;return{activityId:e.activityId,recomUserId:e.recomUserId,discount:0,functionList:[],wxStatus:!1,jumpUrl:o}},computed:{userInfo(){const e=B.user.data;return{username:e==null?void 0:e.username,phone:e==null?void 0:e.phone,avatar:e==null?void 0:e.heardUrl,id:e==null?void 0:e.userId,memberRankSettingId:e==null?void 0:e.memberRankSettingId,membershipDays:e==null?void 0:e.membershipDays,membershipEndTime:e==null?void 0:e.membershipEndTime}}},created(){U(this.jumpUrl)},async mounted(){try{const o=(await r.post("/api-teacher/open/memberPriceSettings/vipPermissions")).data||[];if(this.functionList=o.map(s=>({title:s.paramName,icon:O(`${s.paramValue}.png`)})),this.activityId){const s=await r.post(`/api-teacher/open/activity/state/${this.activityId}`);this.discount=s.data.check||0}}catch{}},methods:{onShare(){if(x().weixin){this.wxStatus=!0;return}k(this.jumpUrl),setTimeout(()=>{window.location.href=location.origin+"/student/#/download"},3e3)}},render(){return t("div",{class:n["member-center"]},[t(S,{src:A,class:n.shareBanner},null),t("div",{class:n.memberContainer},[t("div",{class:[n.intro]},[t("p",null,[i("\u9177\u4E50\u79C0\u4F1A\u5458\u53EF\u4F7F\u7528\u5305\u62EC\u5E73\u53F0\u63D0\u4F9B\u7684\u6240\u6709\u8BAD\u7EC3\u4E50\u8C31\uFF0C\u5E76\u4E13\u4EAB\u201C"),t("b",null,[i("\u5C0F\u9177Ai")]),i("\u201D\u516B\u5927\u6838\u5FC3\u529F\u80FD\uFF0C\u5B69\u5B50\u5728\u5BB6\u5C31\u80FD\u8F7B\u677E\u5B8C\u6210\u4E50\u5668\u81EA\u4E3B\u89C4\u8303\u7EC3\u4E60\u3002")])]),this.functionList.length>0&&t("div",{class:n.memberItem},[t("div",{class:n.title},[i("\u4F1A\u5458\u529F\u80FD")]),t("div",{class:n.member_function},[this.functionList.map(e=>t("div",{class:n.function_item},[t(I,{name:e.icon,size:34},null),t("div",{class:n.function_text,innerHTML:e.title},null)]))])])]),t("div",{class:["btnGroup"],style:{paddingTop:"12px",position:"relative"}},[this.discount===1&&t("div",{class:n.tagDiscount},[i("\u4E13\u5C5E\u4F18\u60E0")]),t(D,{block:!0,round:!0,type:"primary",onClick:this.onShare,color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)"},{default:()=>[i("\u4E0B\u8F7D\u5C0F\u9177Ai\u5F00\u59CB\u7EC3\u4E60\u5427\uFF01")]})]),this.wxStatus&&t("div",{class:n.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:T,alt:""},null)])])}});export{te as default,O as getAssetsHomeFile};
