1 |
- import{_ as m,c as a,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,s as y,e as r,b as B,i as t,A as n,N as I,B as x}from"./index.6b776f4b.js";import{I as D}from"./index.7cc0b0e7.js";import{s as A}from"./share-banner.3808bbad.js";import{w as S}from"./wx_bg.cce2a6c0.js";import{i as T,s as U}from"./share.809e59ee.js";import{q as k}from"./index.c3591af3.js";const $="_intro_8doog_6",q="_shareBanner_8doog_18",N="_memberContainer_8doog_21",P="_memberItem_8doog_27",L="_title_8doog_30",j="_member_function_8doog_38",V="_function_item__content_8doog_43",H="_function_item_8doog_43",M="_function_text_8doog_55",R="_price_8doog_96",z="_originalPrice_8doog_104",G="_active_8doog_108",J="_tagDiscount_8doog_137",K="_wxpopup_8doog_150";var i={"member-center":"_member-center_8doog_1",intro:$,shareBanner:q,memberContainer:N,memberItem:P,title:L,member_function:j,function_item__content:V,function_item:H,function_text:M,"system-list":"_system-list_8doog_60","system-item":"_system-item_8doog_76",price:R,originalPrice:z,active:G,tagDiscount:J,wxpopup:K};const O=e=>{const o=`../../../views/member-center/images/${e}`;return{"../../../views/member-center/images/1.png":m,"../../../views/member-center/images/2.png":a,"../../../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 ie=E({name:"MemberCenter",data(){const e=this.$route.query;e.recomUserId=e.userType&&e.userType=="STUDENT"?"":e.recomUserId;const o=`${location.origin}/student/#/memberCenter?${k.stringify(e)}`;return{activityId:e.activityId,recomUserId:e.recomUserId,discount:0,functionList:[],wxStatus:!1,jumpUrl:o}},computed:{userInfo(){const e=y.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(){T(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(B().weixin){this.wxStatus=!0;return}U(this.jumpUrl),setTimeout(()=>{window.location.href=location.origin+"/student/#/download"},3e3)}},render(){return t("div",{class:i["member-center"]},[t(D,{src:A,class:i.shareBanner},null),t("div",{class:i.memberContainer},[t("div",{class:[i.intro]},[t("p",null,[n("\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,[n("\u5C0F\u9177Ai")]),n("\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:i.memberItem},[t("div",{class:i.title},[n("\u4F1A\u5458\u529F\u80FD")]),t("div",{class:i.member_function},[this.functionList.map(e=>t("div",{class:i.function_item},[t(I,{name:e.icon,size:34},null),t("div",{class:i.function_text,innerHTML:e.title},null)]))])])]),t("div",{class:["btnGroup"],style:{paddingTop:"12px",position:"relative"}},[this.discount===1&&t("div",{class:i.tagDiscount},[n("\u4E13\u5C5E\u4F18\u60E0")]),t(x,{block:!0,round:!0,type:"primary",onClick:this.onShare,color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)"},{default:()=>[n("\u4E0B\u8F7D\u5C0F\u9177Ai\u5F00\u59CB\u7EC3\u4E60\u5427\uFF01")]})]),this.wxStatus&&t("div",{class:i.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:S,alt:""},null)])])}});export{ie as default,O as getAssetsHomeFile};
|