1 |
- !function(){function t(t,e,r,i,a,n,o){try{var _=t[n](o),c=_.value}catch(s){return void r(s)}_.done?e(c):Promise.resolve(c).then(i,a)}function e(e){return function(){var r=this,i=arguments;return new Promise((function(a,n){var o=e.apply(r,i);function _(e){t(o,a,n,_,c,"next",e)}function c(e){t(o,a,n,_,c,"throw",e)}_(void 0)}))}}var r=document.createElement("style");r.innerHTML='._double12Active_1t9rg_1{width:100%;background:linear-gradient(180deg,#fdccbf 0%,#fde0cf 100%);padding:0 .42667rem 2.88rem;box-sizing:border-box}._double12Active_1t9rg_1 .van-nav-bar .van-nav-bar__left{color:#2c3e50}._double12Active_1t9rg_1 ._headImg_1t9rg_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_1t9rg_1 ._activeArea1_1t9rg_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_1t9rg_1 ._activeArea1_1t9rg_20 ._tip1_1t9rg_31{position:absolute;left:.05333rem;top:-.64rem;width:4.98667rem;height:1.14667rem;z-index:1}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._shadowImg_1t9rg_39{position:absolute;left:0;top:0;z-index:0;width:100%;height:1.6rem;border-radius:.53333rem .53333rem 0 0}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48{margin-top:.64rem;position:relative;z-index:2}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeBox_1t9rg_53{width:2.13333rem;height:.72rem;background:#ffdd71;border-radius:.37333rem;font-weight:600;font-size:.4rem;color:#000;line-height:.72rem;text-align:center}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeTimes_1t9rg_64{margin-top:.32rem;font-weight:500;font-size:.4rem;color:#333;line-height:.56rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71{box-sizing:border-box;padding-left:.34667rem;margin-top:.32rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71 ._activeList_1t9rg_71{position:relative;font-weight:500;font-size:.4rem;color:#333;line-height:.66667rem;margin-top:.08rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71 ._activeList_1t9rg_71:first-child{margin-top:0}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71 ._activeList_1t9rg_71: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_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71 ._activeList_1t9rg_71>span{color:#ff1a00}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeCon_1t9rg_48 ._activeListCon_1t9rg_71 ._activeList_1t9rg_71 ._number_1t9rg_102{font-family:DIN;font-size:.58667rem;line-height:1}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107{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_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115{position:absolute;display:flex;flex-direction:column;align-items:center}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115>:nth-child(1){font-weight:600;font-size:.29333rem;color:#5e2b17;line-height:.42667rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115>: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_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115._vipBuy1_1t9rg_134{left:0;bottom:1.6rem;width:33.33%}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115._vipBuy2_1t9rg_139{left:33.33%;bottom:1.6rem;width:33.33%;box-sizing:border-box;padding-left:.26667rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._vipNumber_1t9rg_115._vipBuy3_1t9rg_146{left:66.66%;bottom:1.6rem;width:33.33%;box-sizing:border-box;padding-right:.26667rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._svipDetails_1t9rg_153{position:absolute;bottom:.16rem;left:.32rem;display:flex;align-items:flex-end;line-height:.74667rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._svipDetails_1t9rg_153>span:nth-child(1){font-weight:600;font-size:.48rem;color:#fff}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._svipDetails_1t9rg_153>span:nth-child(2){margin:0 .10667rem;font-family:DIN;font-size:.8rem;color:#fff;line-height:1.01333rem}._double12Active_1t9rg_1 ._activeArea1_1t9rg_20 ._activeContent_1t9rg_107 ._svipDetails_1t9rg_153>span:nth-child(3){font-weight:500;font-size:.32rem;color:rgba(255,255,255,.8)}._double12Active_1t9rg_1 ._activeArea2_1t9rg_178{margin-top:.53333rem;width:100%;height:11.86667rem}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183{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_1t9rg_1 ._activeArea3_1t9rg_183 ._tip1_1t9rg_31{position:absolute;left:.05333rem;top:-.64rem;width:2.85333rem;height:1.14667rem;z-index:1}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._shadowImg_1t9rg_39{position:absolute;left:0;top:0;z-index:0;width:100%;height:1.6rem;border-radius:.53333rem .53333rem 0 0}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._titCon_1t9rg_211{position:relative;z-index:2;font-weight:500;font-size:.4rem;color:#333;line-height:.69333rem}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._titCon_1t9rg_211>span{color:#ff1a00}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._classCon_1t9rg_222{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_1t9rg_1 ._activeArea3_1t9rg_183 ._classCon_1t9rg_222 ._classBox_1t9rg_230{position:absolute;left:50%;transform:translate(-50%);height:.85333rem;line-height:.85333rem;display:flex;align-items:flex-end;font-size:.4rem;color:#fff}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._classCon_1t9rg_222 ._classBox_1t9rg_230>span:nth-child(1){font-size:.58667rem;font-weight:500;line-height:.90667rem}._double12Active_1t9rg_1 ._activeArea3_1t9rg_183 ._classCon_1t9rg_222 ._classBox_1t9rg_230>span{color:#fff176}._double12Active_1t9rg_1 ._activeArea4_1t9rg_249{margin-top:.53333rem;width:100%;height:4.96rem}._double12Active_1t9rg_1 ._subBtnCon_1t9rg_254{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_1t9rg_1 ._subBtnCon_1t9rg_254 ._subBtn_1t9rg_254{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}._double12Active_1t9rg_1 ._subBtnCon_1t9rg_254 ._subBtn_1t9rg_254._disable_1t9rg_278{pointer-events:none;opacity:.4}._dialogContainer_1t9rg_282{width:7.65333rem;box-sizing:border-box;background:#ffffff;border-radius:.32rem;padding:.42667rem .64rem .58667rem;text-align:center}._dialogContainer_1t9rg_282 ._dialogTitle_1t9rg_290{font-weight:500;font-size:.48rem;color:#333;line-height:.66667rem}._dialogContainer_1t9rg_282 ._dialogContent_1t9rg_296{padding:.42667rem 0 .56rem;font-size:.4rem;color:#777;line-height:.69333rem}._dialogContainer_1t9rg_282 ._dialogBtnGroup_1t9rg_302{padding:0 .42667rem}._dialogContainer_1t9rg_282 ._dialogBtnGroup_1t9rg_302._orderGroup_1t9rg_305{display:flex;align-items:center;padding:0}._dialogContainer_1t9rg_282 ._dialogBtnGroup_1t9rg_302 .van-button{font-weight:500;font-size:.42667rem}._dialogContainer_1t9rg_282 ._dialogBtn_1t9rg_302{margin-left:.32rem;color:#fff;line-height:.58667rem}\n',document.head.appendChild(r),System.register(["./ResizeObserver.es-legacy.a3d44ddf.js","./index-legacy.58de274c.js","./tradeOrder-legacy.9cb42a04.js","./orderStatus-legacy.a4640058.js","./index-legacy.9eccffde.js"],(function(t){"use strict";var r,i,a,n,o,_,c,s,d,g,l,u,v,m,f,p,b,h,y,A,C;return{setters:[function(t){r=t.d,i=t.Q,a=t.P,n=t.S,o=t.W,_=t.g,c=t.y,s=t.V,d=t.n,g=t.af,l=t.j,u=t.A,v=t.w,m=t.aS,f=t.B,p=t.T},function(t){b=t.C},function(t){h=t.t},function(t){y=t.a},function(t){A=t.s,C=t.m}],execute:function(){var x="_double12Active_1t9rg_1",w="_headImg_1t9rg_10",z="_activeArea1_1t9rg_20",D="_tip1_1t9rg_31",B="_shadowImg_1t9rg_39",k="_activeCon_1t9rg_48",I="_activeBox_1t9rg_53",N="_activeTimes_1t9rg_64",P="_activeListCon_1t9rg_71",T="_activeList_1t9rg_71",L="_number_1t9rg_102",O="_activeContent_1t9rg_107",S="_vipNumber_1t9rg_115",Y="_vipBuy1_1t9rg_134",E="_vipBuy2_1t9rg_139",V="_vipBuy3_1t9rg_146",j="_svipDetails_1t9rg_153",H="_activeArea2_1t9rg_178",M="_activeArea3_1t9rg_183",R="_titCon_1t9rg_211",G="_classCon_1t9rg_222",U="_classBox_1t9rg_230",q="_activeArea4_1t9rg_249",F="_subBtnCon_1t9rg_254",Q="_subBtn_1t9rg_254",W="_disable_1t9rg_278",J="_dialogContainer_1t9rg_282",K="_dialogTitle_1t9rg_290",X="_dialogContent_1t9rg_296",Z="_dialogBtnGroup_1t9rg_302",$="_orderGroup_1t9rg_305",tt="_dialogBtn_1t9rg_302",et="./assets/shadow.4180f90c.png";t("default",r({name:"double12Active",setup:function(t,r){r.emit;var rt=i(),it=a(),at=n({titleOpacity:0,navBarHeight:0,orderVisiable:!1,orderDetail:{},activityId:it.query.activityId}),nt=n({activityStart:"2024-12-12 00:00:00",activityEnd:"2024-12-12 23:59:59",registrationPrice:0,buyCount:0,buyNum:0,vipCardId:0,activityList:[]}),ot=o((function(){return Date.now()<new Date(nt.activityStart).getTime()?{disable:!0,text:"活动未开始"}:Date.now()>new Date(nt.activityEnd).getTime()?{disable:!0,text:"活动已结束"}:nt.buyCount<=nt.buyNum?{disable:!0,text:"您已参与活动"}:{disable:!1,text:"立即购买"}})),_t=o((function(){return _.user.data})),ct=o((function(){var t;return"PERMANENT_SVIP"===(null===(t=_t.value.userVip)||void 0===t?void 0:t.vipType)}));function st(){return(st=e(regeneratorRuntime.mark((function t(){var e,r,i,a,n,o,_,s,d,g,l,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!ct.value){t.next=4;break}return p("您已是永久SVIP会员"),t.abrupt("return");case 4:return a="SVIP",t.next=7,c.post("/api-student/userOrder/getPendingOrder",{data:{goodType:a}});case 7:if(n=t.sent,console.log(n,"resPadding"),null==n||null===(e=n.data)||void 0===e||!e.id){t.next=13;break}return at.orderVisiable=!0,at.orderDetail=n.data||{},t.abrupt("return");case 13:return t.next=15,c.post("/api-student/memberPriceSettings/list",{data:{status:1}});case 15:o=t.sent,_=o.data,(s=((null==_?void 0:_.list)||[]).find((function(t){return t.id===nt.vipCardId})))||p("未匹配上活动"),s.title=C[s.period],d=v(_t.value.userVip.svipEndDate||new Date).toDate(),g=v(d).add(1,"year").toDate(),y.orderObject.orderType=a,y.orderObject.orderName="小酷Ai ".concat(a," ").concat(s.title),y.orderObject.orderDesc="小酷Ai ".concat(a," ").concat(s.title),y.orderObject.actualPrice=nt.registrationPrice,y.orderObject.recomUserId="",y.orderObject.activityId=at.activityId,y.orderObject.orderNo="",l={orderType:a,goodsName:"小酷Ai ".concat(a," ").concat(s.title),id:s.id,title:s.title,num:1,salePrice:s.salePrice,period:s.period,vipEndDays:(null===(r=_t.value.userVip)||void 0===r?void 0:r.vipEndDays)||0,svipEndDays:(null===(i=_t.value.userVip)||void 0===i?void 0:i.svipEndDays)||0,discount:s.discount,discountPrice:s.discountPrice,price:nt.registrationPrice,startTime:v(d).format("YYYY-MM-DD"),endTime:v(g).format("YYYY-MM-DD"),recomUserId:"",activityBuyCount:0,activityList:[],discountEndTime:_t.value.discountEndTime,discountStartTime:_t.value.discountStartTime},(u=nt.buyCount-nt.buyNum)>0&&(l.activityBuyCount=u,l.activityList=nt.activityList),y.orderObject.orderList=[l],rt.push({path:"/orderDetail",query:{orderType:a}}),t.next=38;break;case 36:t.prev=36,t.t0=t.catch(0);case 38:case"end":return t.stop()}}),t,null,[[0,36]])})))).apply(this,arguments)}!function(){if(!at.activityId)return;c.get("/api-student/memberPriceSettings/getDoubleTwelve/".concat(at.activityId)).then((function(t){if(200===t.code&&t.data){var e=t.data||{},r=e.activityStart,i=e.activityEnd,a=e.registrationPrice,n=e.buyCount,o=e.buyNum,_=e.vipCardId,c=e.activityRewardList;nt.activityStart=r,nt.activityEnd=i,nt.registrationPrice=a,nt.buyCount=n<1?99999:n,nt.buyNum=o,nt.vipCardId=_,nt.activityList=(c||[]).map((function(t){var e=t.activityReward,r=e.rewardType,i=e.vipCardId,a=e.unit;return"DISCOUNT"===r?{goodType:r,goodName:"畅学卡 ".concat(A[a]),goodNum:1,bizContent:i,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:a}:{goodType:r,goodName:"小酷Ai ".concat(r," ").concat(C[a]),goodNum:1,bizContent:i,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:a}}))}})).catch((function(t){console.log(t)}))}();var dt=function(){var t=e(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.post("/api-student/userOrder/orderCancel",{data:{orderNo:at.orderDetail.orderNo}});case 3:at.orderVisiable=!1,t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),gt=function(){var t=e(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=at.orderDetail||{},h(e,(function(){rt.push({path:"/orderDetail",query:{orderType:e.orderType}})}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return s((function(){d({api:"getNavHeight"},(function(t){var e=t.content,r=e.dpi||2;if(e.navHeight){var i=e.navHeight/r;at.navBarHeight=i}}))})),g("scroll",(function(){var t=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;at.titleOpacity=t>30?1:0})),function(){return l("div",{class:x,style:{"--navBarHeight":"".concat(at.navBarHeight,"px")}},[l(b,{background:"rgba(255,255,255, ".concat(at.titleOpacity,")"),color:"rgba(0,0,0, ".concat(at.titleOpacity,")"),backIconColor:"black",hideHeader:!1,border:!1},null),l("div",{class:w},null),l("div",{class:z},[l("img",{class:D,src:"./assets/tip1Img.1824449c.png"},null),l("img",{class:B,src:et},null),l("div",{class:k},[l("div",{class:I},[u("活动时间")]),l("div",{class:N},["".concat(v(nt.activityStart).format("YYYY年MM月DD日HH:MM"),"-").concat(v(nt.activityEnd).format("YYYY年MM月DD日HH:MM"))])]),l("div",{class:k},[l("div",{class:I},[u("活动内容")]),l("div",{class:P},[l("div",{class:T},[u("SVIP年度会员限时特惠至"),l("span",{class:L},[" ",nt.registrationPrice," "]),l("span",null,[u("元")])]),l("div",{class:T},[u("活动期间"),l("span",null,[u("买一年送一年")])]),l("div",{class:T},[u("同时额外"),l("span",null,[u("获赠一年畅学卡")]),u(",享受约课75折!")])])]),l("div",{class:O},[l("div",{class:[S,Y]},[l("div",null,[u("SVIP年度会员")]),l("div",null,[u("价值1280元")])])," ",l("div",{class:[S,E]},[l("div",null,[u("SVIP年度会员")]),l("div",null,[u("价值1280元")])])," ",l("div",{class:[S,V]},[l("div",null,[u("畅学卡一年期")]),l("div",null,[u("价值129元")])]),l("div",{class:j},[l("span",null,[u("¥")]),l("span",null,[nt.registrationPrice]),l("span",null,[u("(SVIP会员买1年赠1年,还送1年畅学)")])])])]),l("img",{class:H,src:"./assets/svipCon1.40bac9c1.png"},null),l("div",{class:M},[l("img",{class:D,src:"./assets/tip2Img.856e089c.png"},null),l("img",{class:B,src:et},null),l("div",{class:R},[u("专为音乐学习者设计的全方位学习通行证,畅学卡生效期间,购买任何VIP定制课、趣纠课、直播课、视频课"),l("span",null,[u("享受75折")]),u("优惠,助您在音乐道路上更进一步。")]),l("div",{class:G},[l("div",{class:U},[u("课程全部"),l("span",null,[u("75")]),l("span",null,[u("折")])])])]),l("img",{class:q,src:"./assets/svipCon2.f35d5251.png"},null),l("div",{class:F},[l("div",{class:[Q,ot.value.disable&&W],onClick:function(){!ot.value.disable&&function(){st.apply(this,arguments)}()}},[ot.value.text])]),l(m,{show:at.orderVisiable,"onUpdate:show":function(t){return at.orderVisiable=t},style:{background:"transparent"},closeOnClickOverlay:!1},{default:function(){return[l("div",{class:J},[l("div",{class:K},[u("提示")]),l("div",{class:X},[u("您有待支付的订单,是否继续支付")]),l("div",{class:[Z,$]},[l(f,{round:!0,type:"default",plain:!0,block:!0,onClick:dt},{default:function(){return[u("取消订单")]}}),l(f,{round:!0,type:"primary",block:!0,class:tt,onClick:gt},{default:function(){return[u("继续支付")]}})])])]}})])}}}))}}}))}();
|