import{_ as m,c as _,d as u,e as c,f as g,g as d,h as l,j as p,k as b,l as v,m as f,n as h,o as w,p as C,q as F,r as E}from"./tip_bg.1c34b2e7.js";import{d as x,a as t,I as B,j as i,K as y,B as I}from"./vendor.3506a68e.js";/* empty css               */import{s as D,r as a,b as j}from"./index.9e4b607f.js";import{s as A,w as S}from"./wx_bg.5eddda0b.js";import{i as k,s as U}from"./share.622205d9.js";import{q as $}from"./index.339fc024.js";const q="_intro_8doog_6",P="_shareBanner_8doog_18",T="_memberContainer_8doog_21",L="_memberItem_8doog_27",N="_title_8doog_30",V="_member_function_8doog_38",H="_function_item__content_8doog_43",M="_function_item_8doog_43",R="_function_text_8doog_55",z="_price_8doog_96",G="_originalPrice_8doog_104",J="_active_8doog_108",K="_tagDiscount_8doog_137",O="_wxpopup_8doog_150";var n={"member-center":"_member-center_8doog_1",intro:q,shareBanner:P,memberContainer:T,memberItem:L,title:N,member_function:V,function_item__content:H,function_item:M,function_text:R,"system-list":"_system-list_8doog_60","system-item":"_system-item_8doog_76",price:z,originalPrice:G,active:J,tagDiscount:K,wxpopup:O};const Q=e=>{const o=`../../../views/member-center/images/${e}`;return{"../../../views/member-center/images/1.png":m,"../../../views/member-center/images/2.png":_,"../../../views/member-center/images/3.png":u,"../../../views/member-center/images/4.png":c,"../../../views/member-center/images/5.png":g,"../../../views/member-center/images/6.png":d,"../../../views/member-center/images/7.png":l,"../../../views/member-center/images/8.png":p,"../../../views/member-center/images/discount_bg.png":b,"../../../views/member-center/images/icon_discount.png":v,"../../../views/member-center/images/icon_gift.png":f,"../../../views/member-center/images/icon_video.png":h,"../../../views/member-center/images/member_bg.png":w,"../../../views/member-center/images/member_logo.png":C,"../../../views/member-center/images/record_bg.png":F,"../../../views/member-center/images/tip_bg.png":E}[o].default};var ie=x({name:"MemberCenter",data(){const e=this.$route.query,o=`${location.origin}/student/#/memberCenter?${$.stringify(e)}`;return{activityId:e.activityId,recomUserId:e.recomUserId,discount:0,functionList:[],wxStatus:!1,jumpUrl:o}},computed:{userInfo(){const e=D.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(){k(this.jumpUrl)},async mounted(){try{const o=(await a.post("/api-teacher/open/memberPriceSettings/vipPermissions")).data||[];this.functionList=o.map(r=>({title:r.paramName,icon:Q(`${r.paramValue}.png`)}));const s=await a.post(`/api-teacher/open/activity/state/${this.activityId}`);this.discount=s.data.check||0}catch{}},methods:{onShare(){if(j().weixin){this.wxStatus=!0;return}U(this.jumpUrl),setTimeout(()=>{window.location.href=location.origin+"/student/#/download"},3e3)}},render(){return t("div",{class:n["member-center"]},[t(B,{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(y,{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(I,{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:S,alt:""},null)])])}});export{ie as default,Q as getAssetsHomeFile};
