1 |
- !function(){function e(e,t,i,o,r,a,n){try{var _=e[a](n),c=_.value}catch(l){return void i(l)}_.done?t(c):Promise.resolve(c).then(o,r)}function t(t){return function(){var i=this,o=arguments;return new Promise((function(r,a){var n=t.apply(i,o);function _(t){e(n,r,a,_,c,"next",t)}function c(t){e(n,r,a,_,c,"throw",t)}_(void 0)}))}}var i=document.createElement("style");i.innerHTML='._double12Active_1q8o3_1{width:100%;background:linear-gradient(180deg,#fdccbf 0%,#fde0cf 100%);padding:0 .42667rem 2.88rem;box-sizing:border-box}._double12Active_1q8o3_1 .van-nav-bar .van-nav-bar__left{color:#2c3e50}._double12Active_1q8o3_1 ._headImg_1q8o3_10{position:absolute;top:0;left:0;width:100%;height:9.84rem;z-index:1;background:url(./assets/head.be7f8c6d.png) no-repeat;background-size:100% 100%}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20{margin-top:calc(9.84rem - var(--van-nav-bar-height) - var(--navBarHeight) - .48rem);background-color:#fff;width:100%;border-radius:.53333rem;border:.05333rem solid #ffffff;filter:blur(0);position:relative;padding:.32rem 0 .64rem .53333rem;box-sizing:border-box}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._tip1_1q8o3_31{position:absolute;left:.05333rem;top:-.64rem;width:4.98667rem;height:1.14667rem;z-index:1}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._shadowImg_1q8o3_39{position:absolute;left:0;top:0;z-index:0;width:100%;height:1.6rem;border-radius:.50667rem .50667rem 0 0}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48{margin-top:.64rem;position:relative;z-index:2}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeBox_1q8o3_53{width:2.13333rem;height:.72rem;background:#ffdd71;border-radius:.37333rem;font-family:Helvetica Neue,Helvetica,PingFangSC;font-weight:600;font-size:.4rem;color:#000;line-height:.72rem;text-align:center}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeTimes_1q8o3_65{margin-top:.32rem;font-weight:500;font-size:.37333rem;color:#333;line-height:.56rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72{box-sizing:border-box;padding-left:.34667rem;margin-top:.32rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72 ._activeList_1q8o3_72{position:relative;font-weight:500;font-size:.4rem;color:#333;line-height:.66667rem;margin-top:.08rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72 ._activeList_1q8o3_72:first-child{margin-top:0}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72 ._activeList_1q8o3_72:after{content:"";position:absolute;width:.13333rem;height:.13333rem;background:linear-gradient(162deg,#ff1e3d 0%,#ff0704 51%,#ff7a4f 100%);opacity:.6;left:-.34667rem;top:50%;transform:translateY(-50%);border-radius:50%}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72 ._activeList_1q8o3_72>span{color:#ff1a00}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeCon_1q8o3_48 ._activeListCon_1q8o3_72 ._activeList_1q8o3_72 ._number_1q8o3_103{font-family:DIN;font-size:.58667rem;line-height:1}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108{margin-top:.42667rem;width:calc(100% - .53333rem);height:4.98667rem;background:url(./assets/boxImg.7ff0bbd7.png) no-repeat;background-size:100% 100%;position:relative}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116{position:absolute;display:flex;flex-direction:column;align-items:center}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116>:nth-child(1){font-weight:600;font-size:.29333rem;color:#5e2b17;line-height:.42667rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116>:nth-child(2){font-weight:500;font-size:.29333rem;color:rgba(94,43,23,.5);line-height:.42667rem;-webkit-text-decoration-line:line-through;text-decoration-line:line-through}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116._vipBuy1_1q8o3_135{left:0;bottom:1.6rem;width:33.33%}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116._vipBuy2_1q8o3_140{left:33.33%;bottom:1.6rem;width:33.33%;box-sizing:border-box;padding-left:.26667rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._vipNumber_1q8o3_116._vipBuy3_1q8o3_147{left:66.66%;bottom:1.6rem;width:33.33%;box-sizing:border-box;padding-right:.26667rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._svipDetails_1q8o3_154{position:absolute;bottom:.16rem;left:.32rem;display:flex;align-items:flex-end;line-height:.74667rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._svipDetails_1q8o3_154>span:nth-child(1){font-weight:600;font-size:.48rem;color:#fff}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._svipDetails_1q8o3_154>span:nth-child(2){margin:0 .10667rem;font-family:DIN;font-size:.8rem;color:#fff;line-height:1.01333rem}._double12Active_1q8o3_1 ._activeArea1_1q8o3_20 ._activeContent_1q8o3_108 ._svipDetails_1q8o3_154>span:nth-child(3){font-weight:500;font-size:.32rem;color:rgba(255,255,255,.8)}._double12Active_1q8o3_1 ._activeArea2_1q8o3_179{margin-top:.53333rem;width:100%;height:11.86667rem}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184{margin-top:1.14667rem;background-color:#fff;width:100%;border-radius:.53333rem;border:.05333rem solid #ffffff;filter:blur(0);position:relative;padding:.85333rem .37333rem .64rem .53333rem;box-sizing:border-box}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._tip1_1q8o3_31{position:absolute;left:.05333rem;top:-.64rem;width:2.85333rem;height:1.14667rem;z-index:1}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._shadowImg_1q8o3_39{position:absolute;left:0;top:0;z-index:0;width:100%;height:1.6rem;border-radius:.50667rem .50667rem 0 0}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._titCon_1q8o3_212{position:relative;z-index:2;font-weight:500;font-size:.4rem;color:#333;line-height:.69333rem}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._titCon_1q8o3_212>span{color:#ff1a00}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._classCon_1q8o3_223{margin-top:.42667rem;width:calc(100% - .16rem);height:3.41333rem;background:url(./assets/class.68fe7494.png) no-repeat;background-size:100% 100%;position:relative}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._classCon_1q8o3_223 ._classBox_1q8o3_231{position:absolute;left:50%;transform:translate(-50%);height:.85333rem;line-height:.85333rem;display:flex;align-items:flex-end;font-size:.4rem;color:#fff;font-weight:600;font-family:Helvetica Neue,Helvetica,PingFangSC}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._classCon_1q8o3_223 ._classBox_1q8o3_231>span:nth-child(1){font-size:.58667rem;font-weight:500;line-height:.90667rem}._double12Active_1q8o3_1 ._activeArea3_1q8o3_184 ._classCon_1q8o3_223 ._classBox_1q8o3_231>span{color:#fff176}._double12Active_1q8o3_1 ._activeArea4_1q8o3_252{margin-top:.53333rem;width:100%;height:4.96rem}._double12Active_1q8o3_1 ._subBtnCon_1q8o3_257{position:fixed;z-index:999;bottom:0;left:0;width:100%;height:2.08rem;padding-top:.26667rem;box-sizing:border-box;display:flex;justify-content:center;background-color:#fff}._double12Active_1q8o3_1 ._subBtnCon_1q8o3_257 ._subBtn_1q8o3_257{background:url(./assets/subBtn.6eb82691.png) no-repeat;background-size:100% 100%;width:8.4rem;height:1.22667rem;line-height:1.22667rem;font-size:.48rem;color:#fff;letter-spacing:.02667rem;text-align:center;font-weight:600}._double12Active_1q8o3_1 ._subBtnCon_1q8o3_257 ._subBtn_1q8o3_257._disable_1q8o3_282{pointer-events:none;opacity:.4}._dialogContainer_1q8o3_286{width:7.65333rem;box-sizing:border-box;background:#ffffff;border-radius:.32rem;padding:.42667rem .64rem .58667rem;text-align:center}._dialogContainer_1q8o3_286 ._dialogTitle_1q8o3_294{font-weight:500;font-size:.48rem;color:#333;line-height:.66667rem}._dialogContainer_1q8o3_286 ._dialogContent_1q8o3_300{padding:.42667rem 0 .56rem;font-size:.4rem;color:#777;line-height:.69333rem}._dialogContainer_1q8o3_286 ._dialogBtnGroup_1q8o3_306{padding:0 .42667rem}._dialogContainer_1q8o3_286 ._dialogBtnGroup_1q8o3_306._orderGroup_1q8o3_309{display:flex;align-items:center;padding:0}._dialogContainer_1q8o3_286 ._dialogBtnGroup_1q8o3_306 .van-button{font-weight:500;font-size:.42667rem}._dialogContainer_1q8o3_286 ._dialogBtn_1q8o3_306{margin-left:.32rem;color:#fff;line-height:.58667rem}\n',document.head.appendChild(i),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.87bcd48f.js","./tradeOrder-legacy.5003e5e4.js","./orderStatus-legacy.e7da1c46.js","./index-legacy.ce3d9289.js"],(function(e){"use strict";var i,o,r,a,n,_,c,l,s,d,u,v,m,g,f,p,b,q,h,y,A;return{setters:[function(e){i=e.d,o=e.Q,r=e.P,a=e.S,n=e.W,_=e.g,c=e.y,l=e.V,s=e.n,d=e.af,u=e.j,v=e.A,m=e.w,g=e.aS,f=e.B,p=e.T},function(e){b=e.C},function(e){q=e.t},function(e){h=e.o},function(e){y=e.s,A=e.m}],execute:function(){var C="_double12Active_1q8o3_1",x="_headImg_1q8o3_10",w="_activeArea1_1q8o3_20",z="_tip1_1q8o3_31",D="_shadowImg_1q8o3_39",B="_activeCon_1q8o3_48",k="_activeBox_1q8o3_53",I="_activeTimes_1q8o3_65",N="_activeListCon_1q8o3_72",P="_activeList_1q8o3_72",T="_number_1q8o3_103",S="_activeContent_1q8o3_108",L="_vipNumber_1q8o3_116",O="_vipBuy1_1q8o3_135",Y="_vipBuy2_1q8o3_140",E="_vipBuy3_1q8o3_147",H="_svipDetails_1q8o3_154",V="_activeArea2_1q8o3_179",j="_activeArea3_1q8o3_184",M="_titCon_1q8o3_212",R="_classCon_1q8o3_223",F="_classBox_1q8o3_231",G="_activeArea4_1q8o3_252",U="_subBtnCon_1q8o3_257",Q="_subBtn_1q8o3_257",W="_disable_1q8o3_282",J="_dialogContainer_1q8o3_286",K="_dialogTitle_1q8o3_294",X="_dialogContent_1q8o3_300",Z="_dialogBtnGroup_1q8o3_306",$="_orderGroup_1q8o3_309",ee="_dialogBtn_1q8o3_306",te="./assets/shadow.4180f90c.png";e("default",i({name:"double12Active",setup:function(e,i){i.emit;var ie=o(),oe=r(),re=a({titleOpacity:0,navBarHeight:0,orderVisiable:!1,orderDetail:{},activityId:oe.query.activityId}),ae=a({activityStart:"2024-12-12 00:00:00",activityEnd:"2024-12-12 23:59:59",registrationPrice:0,buyCount:0,buyNum:0,vipCardId:0,activityList:[]}),ne=n((function(){return Date.now()<new Date(ae.activityStart).getTime()?{disable:!0,text:"活动未开始"}:Date.now()>new Date(ae.activityEnd).getTime()?{disable:!0,text:"活动已结束"}:ae.buyCount<=ae.buyNum?{disable:!0,text:"您已参与活动"}:{disable:!1,text:"立即购买"}})),_e=n((function(){return _.user.data})),ce=n((function(){var e;return"PERMANENT_SVIP"===(null===(e=_e.value.userVip)||void 0===e?void 0:e.vipType)}));function le(){return(le=t(regeneratorRuntime.mark((function e(){var t,i,o,r,a,n,_,l,s,d,u,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!ce.value){e.next=4;break}return p("您已是永久SVIP会员"),e.abrupt("return");case 4:return r="SVIP",e.next=7,c.post("/api-student/userOrder/getPendingOrder",{data:{goodType:r}});case 7:if(a=e.sent,console.log(a,"resPadding"),null==a||null===(t=a.data)||void 0===t||!t.id){e.next=13;break}return re.orderVisiable=!0,re.orderDetail=a.data||{},e.abrupt("return");case 13:return e.next=15,c.post("/api-student/memberPriceSettings/list",{data:{status:1}});case 15:n=e.sent,_=n.data,(l=((null==_?void 0:_.list)||[]).find((function(e){return e.id===ae.vipCardId})))||p("未匹配上活动"),l.title=A[l.period],s=m(_e.value.userVip.svipEndDate||new Date).toDate(),d=m(s).add(1,"year").toDate(),h.orderObject.orderType=r,h.orderObject.orderName="小酷Ai ".concat(r," ").concat(l.title),h.orderObject.orderDesc="小酷Ai ".concat(r," ").concat(l.title),h.orderObject.actualPrice=ae.registrationPrice,h.orderObject.recomUserId="",h.orderObject.activityId=re.activityId,h.orderObject.orderNo="",u={orderType:r,goodsName:"小酷Ai ".concat(r," ").concat(l.title),id:l.id,title:l.title,num:1,salePrice:l.salePrice,period:l.period,vipEndDays:(null===(i=_e.value.userVip)||void 0===i?void 0:i.vipEndDays)||0,svipEndDays:(null===(o=_e.value.userVip)||void 0===o?void 0:o.svipEndDays)||0,discount:l.discount,discountPrice:l.discountPrice,price:ae.registrationPrice,startTime:m(s).format("YYYY-MM-DD"),endTime:m(d).format("YYYY-MM-DD"),recomUserId:"",activityBuyCount:0,activityList:[],discountCardFlag:_e.value.discountCardFlag,discountEndTime:_e.value.discountEndTime,discountStartTime:_e.value.discountStartTime},(v=ae.buyCount-ae.buyNum)>0&&(u.activityBuyCount=v,u.activityList=ae.activityList),h.orderObject.orderList=[u],ie.push({path:"/orderDetail",query:{orderType:r}}),e.next=38;break;case 36:e.prev=36,e.t0=e.catch(0);case 38:case"end":return e.stop()}}),e,null,[[0,36]])})))).apply(this,arguments)}!function(){if(!re.activityId)return;c.get("/api-student/memberPriceSettings/getDoubleTwelve/".concat(re.activityId)).then((function(e){if(200===e.code&&e.data){var t=e.data||{},i=t.activityStart,o=t.activityEnd,r=t.registrationPrice,a=t.buyCount,n=t.buyNum,_=t.vipCardId,c=t.activityRewardList;ae.activityStart=i,ae.activityEnd=o,ae.registrationPrice=r,ae.buyCount=a<1?99999:a,ae.buyNum=n,ae.vipCardId=_,ae.activityList=(c||[]).map((function(e){var t=e.activityReward,i=t.rewardType,o=t.vipCardId,r=t.unit;return"DISCOUNT"===i?{goodType:i,goodName:"畅学卡 ".concat(y[r]),goodNum:1,bizContent:o,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:r}:{goodType:i,goodName:"小酷Ai ".concat(i," ").concat(A[r]),goodNum:1,bizContent:o,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:r}}))}})).catch((function(e){console.log(e)}))}();var se=function(){var e=t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.post("/api-student/userOrder/orderCancel",{data:{orderNo:re.orderDetail.orderNo}});case 3:re.orderVisiable=!1,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=t(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=re.orderDetail||{},q(t,(function(){ie.push({path:"/orderDetail",query:{orderType:t.orderType}})}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return l((function(){s({api:"getNavHeight"},(function(e){var t=e.content,i=t.dpi||2;if(t.navHeight){var o=t.navHeight/i;re.navBarHeight=o}}))})),d("scroll",(function(){var e=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;re.titleOpacity=e>30?1:0})),function(){return u("div",{class:C,style:{"--navBarHeight":"".concat(re.navBarHeight,"px")}},[u(b,{background:"rgba(255,255,255, ".concat(re.titleOpacity,")"),color:"rgba(0,0,0, ".concat(re.titleOpacity,")"),backIconColor:"black",hideHeader:!1,border:!1},null),u("div",{class:x},null),u("div",{class:w},[u("img",{class:z,src:"./assets/tip1Img.c5ce28aa.png"},null),u("img",{class:D,src:te},null),u("div",{class:B},[u("div",{class:k},[v("活动时间")]),u("div",{class:I},["".concat(m(ae.activityStart).format("YYYY年MM月DD日HH:mm"),"-").concat(m(ae.activityEnd).format("YYYY年MM月DD日HH:mm"))])]),u("div",{class:B},[u("div",{class:k},[v("活动内容")]),u("div",{class:N},[u("div",{class:P},[v("SVIP年度会员限时特惠至"),u("span",{class:T},[" ",ae.registrationPrice," "]),u("span",null,[v("元")])]),u("div",{class:P},[v("活动期间"),u("span",null,[v("买一年送一年")])]),u("div",{class:P},[v("同时额外"),u("span",null,[v("获赠一年畅学卡")]),v(",享受约课75折!")])])]),u("div",{class:S},[u("div",{class:[L,O]},[u("div",null,[v("SVIP年度会员")]),u("div",null,[v("价值1280元")])])," ",u("div",{class:[L,Y]},[u("div",null,[v("SVIP年度会员")]),u("div",null,[v("价值1280元")])])," ",u("div",{class:[L,E]},[u("div",null,[v("畅学卡一年期")]),u("div",null,[v("价值200元")])]),u("div",{class:H},[u("span",null,[v("¥")]),u("span",null,[ae.registrationPrice]),u("span",null,[v("(SVIP会员买1年赠1年,还送1年畅学卡)")])])])]),u("img",{class:V,src:"./assets/svipCon1.619c1f15.png"},null),u("div",{class:j},[u("img",{class:z,src:"./assets/tip2Img.97d3f6ef.png"},null),u("img",{class:D,src:te},null),u("div",{class:M},[v("专为音乐学习者设计的全方位学习通行证,畅学卡生效期间,购买任何VIP定制课、趣纠课、直播课、视频课"),u("span",null,[v("享受75折")]),v("优惠,助您在音乐道路上更进一步。")]),u("div",{class:R},[u("div",{class:F},[v("课程全部"),u("span",null,[v("75")]),u("span",null,[v("折")])])])]),u("img",{class:G,src:"./assets/svipCon2.db632703.png"},null),u("div",{class:U},[u("div",{class:[Q,ne.value.disable&&W],onClick:function(){!ne.value.disable&&function(){le.apply(this,arguments)}()}},[ne.value.text])]),u(g,{show:re.orderVisiable,"onUpdate:show":function(e){return re.orderVisiable=e},style:{background:"transparent"},closeOnClickOverlay:!1},{default:function(){return[u("div",{class:J},[u("div",{class:K},[v("提示")]),u("div",{class:X},[v("您有待支付的订单,是否继续支付")]),u("div",{class:[Z,$]},[u(f,{round:!0,type:"default",plain:!0,block:!0,onClick:se},{default:function(){return[v("取消订单")]}}),u(f,{round:!0,type:"primary",block:!0,class:ee,onClick:de},{default:function(){return[v("继续支付")]}})])])]}})])}}}))}}}))}();
|