<<<<<<<< HEAD:dist/assets/order-detail-legacy.c319ffde.js !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(r).concat(o))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var e=this;return i("div",{class:ae},[i(N,{modelValue:this.checked,"onUpdate:modelValue":function(n){return e.checked=n}},{default:function(){return[c("我已阅读并同意")]},icon:function(e){return i(l,{class:ce,name:e.checked?P:I,size:"15"},null)}}),i("span",{onClick:this.getContractDetail,class:ie},[se[this.prototcolType]]),i(g,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[e.showHeader&&i(y,{title:"管乐团平台服务协议"},null),e.popupStatus&&i("div",{id:"mProtocol"},[i("div",{class:le,innerHTML:e.protocolHTML},null)])]}})])}}),de="_userAuth_1sper_1",me="_cellGroup_1sper_6",_e=t({name:"UserAuth",props:{onSuccess:{type:Function,default:function(){}},hideHeader:{type:Boolean,default:!1}},data:function(){return{form:{realName:"",idCardNo:""}}},mounted:function(){var e=h.user.data;this.form.realName=null==e?void 0:e.account.realName},methods:{onSubmit:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=h.platformApi+"/sysAccount/realNameAuth",t.next=4,f.post(r,{data:n(n({},e.form),{},{contract:!0,save:!0})});case 4:h.user.data.account.realName=e.form.realName,h.user.data.account.idCardNo=e.form.idCardNo,e.onSuccess(),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))()}},render:function(){var e=this;return i(O,{class:de,onSubmit:this.onSubmit},{default:function(){return[!e.hideHeader&&i(y,{title:"实名认证"},null),i(T,{inset:!0,class:me},{default:function(){return[i(z,{required:!0,label:"真实姓名",modelValue:e.form.realName,"onUpdate:modelValue":function(n){return e.form.realName=n},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"50"},null),i(z,{required:!0,label:"身份证号",modelValue:e.form.idCardNo,"onUpdate:modelValue":function(n){return e.form.idCardNo=n},maxlength:18,rules:[{required:!0,message:"请输入身份证号"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"请输入正确的身份证号"}],placeholder:"请输入身份证号"},null)]}}),i("div",{class:["btnGroup"]},[i(m,{block:!0,round:!0,type:"primary","native-type":"submit"},{default:function(){return[c("确定")]}})])]}})}}),pe="_saveShareImage_hccn0_1",fe="_topImage_hccn0_23",ge="_shareContaienr_hccn0_29",he="_orchestraContainer_hccn0_38",qe="_schoolName_hccn0_42",ve="_tips_hccn0_48",be="_tipsTitle_hccn0_54",Ae="_tipsContent_hccn0_60",ye="_shareType_hccn0_86",we="_qrcodeSection_hccn0_95",Ce="_memo_hccn0_103",ke=t({name:"qrcode-payment",props:{url:{type:String,default:""},pay_channel:{type:String,default:"wx_pub"},orderType:{type:String,default:""}},setup:function(e){return function(){return i("div",{class:[pe]},[i(U,{src:D,class:fe},null),i("div",{class:[ge,he]},[i("div",{class:qe},["VIP"===e.orderType?"会员购买":"报名缴费"]),i("div",{class:ye},[c("请截图下方二维码"),i("span",null,[c("登录"),"wx_pub"===e.pay_channel?"微信":"支付宝",c("扫码支付")])]),i("div",{class:we},[i(j,{text:e.url,logoSize:"small",size:"100%"},null)]),i("div",{class:Ce},[c("请在30分钟内扫码支付")])]),i("div",{class:[ge,ve]},[i("div",{class:be},[c("使用说明:")]),i("div",{class:Ae},[c("1.打开"),"wx_pub"===e.pay_channel?"微信":"支付宝",c("扫一扫"),i("br",null,null),c("2.选择相册中的二维码"),i("br",null,null),c("3.请在30分钟内扫码支付")])])])}}});e("default",t({name:"order-detail",setup:function(){var e=q(),n=r(),t=u({orderTimer:null,paymentStatus:!1,showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderNo:e.query.orderNo,orderInfo:{},goodsInfos:[],config:e.query.config?JSON.parse(e.query.config):{},hasFreight:!e.query.hf,freight:"",agreeStatus:!0,showHeader:!1,authShow:!1,memberBaoStatus:!1,goodsStatus:!1,selectGoodsId:null,currentPrice:0,dialogStatus:!1,dialogMessage:"",submitStatus:!1}),l=a((function(){return t.orderInfo.orderType})),_=v({}),x=function(){var e=o(regeneratorRuntime.mark((function e(){var n,r,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.get("/api-student/userPaymentOrder/detail/"+t.orderNo);case 3:n=e.sent,r=n.data,o=r.goodsInfos||[],t.orderInfo=r,a=!1,i=!1,o.forEach((function(e){var n=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=n,"INSTRUMENTS"===e.goodsType?a=!0:"TEXTBOOK"===e.goodsType&&(i=!0)})),t.goodsInfos=o,_.value.id||(_.value=r.addresses||{}),console.log(a,i),t.freight=!a&&i?"到付":"免运费","WAIT_PAY"!==r.status&&"PAYING"!==r.status&&(t.dialogStatus=!0,t.dialogMessage="订单"+M[r.status]),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(0);case 19:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}(),S=function(e){var n=t.config;t.pay_channel=e.pay_channel,"payResult"===e.payCode?window.location.href=window.location.origin+"/orchestra-student/#/payResult?"+V.stringify({pay_channel:e.pay_channel,wxAppId:n.wxAppId,body:n.body,price:n.price,orderNo:n.merOrderNo,userId:n.userId}):(t.qrCodeUrl=window.location.origin+"/orchestra-student/#/payDefine?pay_channel="+e.pay_channel+"&wxAppId="+n.wxAppId+"&body="+n.body+"&price="+n.price+"&orderNo="+n.merOrderNo+"&userId="+n.userId,console.log(t.qrCodeUrl,"qrCodeUrl"),t.showQrcode=!0,t.paymentStatus=!1,setTimeout((function(){P()}),300))},P=function(){var n=o(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=setInterval(o(regeneratorRuntime.mark((function n(){var o,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("orderDetail"==e.name){n.next=3;break}return clearInterval(r),n.abrupt("return");case 3:return t.orderTimer=r,n.prev=4,n.next=7,f.post("/api-student/open/userOrder/paymentStatus/"+t.orderNo,{hideLoading:!0});case 7:o=n.sent,"WAIT_PAY"!==(a=o.data).status&&"PAYING"!==a.status&&(clearInterval(r),setTimeout((function(){D()}),100)),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(4),clearInterval(r);case 15:case"end":return n.stop()}}),n,null,[[4,12]])}))),5e3);case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),I=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval(t.orderTimer),"VIP"===l.value?O(N):z(N);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){t.pay_channel?function(){var e=t.pay_channel,n="qrCode";p().weixin?"alipay_qr"==e||"alipay_wap"==e?n="qrCode":"wx_pub"==e&&(n="pay"):n=p().alipay&&"alipay_wap"==e?"pay":"qrCode",S({payCode:"qrCode"==n?"payDefine":"payResult",pay_channel:e})}():t.paymentStatus=!0},O=function(){var e=o(regeneratorRuntime.mark((function e(r){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.submitStatus=!0,e.next=4,f.get("/api-student/userPaymentOrder/detail/"+t.orderNo,{hideLoading:!1});case 4:o=e.sent,a=o.data,console.log(a),t.pay_channel=a.paymentChannel,t.submitStatus=!1,"WAIT_PAY"!==a.status&&"PAYING"!==a.status?n.replace({path:"/payment-result",query:{orderNo:t.orderNo}}):r&&r(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),t.submitStatus=!1;case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=o(regeneratorRuntime.mark((function e(n){var r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_.value.id){e.next=3;break}return A("请选择收货地址"),e.abrupt("return");case 3:if(t.agreeStatus){e.next=6;break}return A("请先阅读并同意《管乐团平台服务协议》"),e.abrupt("return");case 6:if(null!=(r=h.user.data)&&r.account.realName&&null!=r&&r.account.idCardNo){e.next=10;break}return t.authShow=!0,e.abrupt("return");case 10:return t.submitStatus=!0,e.prev=11,e.next=14,f.post("/api-student/userPaymentOrder/updateReceiveAddress",{hideLoading:!1,data:{orderNo:t.orderNo,orderType:"ORCHESTRA",receiveAddress:_.value.id}});case 14:o=e.sent,a=o.data,console.log(a),t.pay_channel=a.paymentChannel,t.submitStatus=!1,"WAIT_PAY"!==a.status&&"PAYING"!==a.status?D():n&&n(),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(11),t.submitStatus=!1;case 25:case"end":return e.stop()}}),e,null,[[11,22]])})));return function(n){return e.apply(this,arguments)}}(),D=function(){"ORCHESTRA"===l.value?window.location.replace("https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=3&sn=9b265d36b5dabe7f9393fc679c367540&chksm=c12c256cf65bac7ae2a865435b950f6e1285afd226356db0ffde815b1ee345f29cfcdb798cc9#rd"):n.replace({path:"/payment-result",query:{orderNo:t.orderNo}})},j=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.post("/api-student/userPaymentOrder/cancelPayment/"+t.orderNo);case 3:n.back(),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)}}(),L=function(){t.authShow=!1,I()};return b((function(){p().isApp?t.showHeader=!0:t.showHeader=!1;var e=sessionStorage.getItem("addressDetails");e=e?JSON.parse(e):{},_.value=e,sessionStorage.removeItem("addressDetails"),x()})),function(){return i(s,null,[p().isApp&&i(y,{border:!1},null),i("div",{class:Y.cartConfirm},["ORCHESTRA"===l.value&&i("div",{class:Y.cartConfirmBox},[i(Z,{item:_.value},null)]),i(T,{style:{margin:0}},{default:function(){return[t.goodsInfos&&t.goodsInfos.map((function(e){return i(w,{class:Y.cellItem,onClick:function(){"INSTRUMENTS"===e.goodsType||"TEXTBOOK"===e.goodsType?(console.log(e),t.selectGoodsId=e.goodsId,t.currentPrice=e.currentPrice,t.goodsStatus=!0):"VIP"===e.goodsType&&(t.memberBaoStatus=!0)}},{icon:function(){return i(U,{class:Y.img,src:e.goodsUrl},null)},title:function(){return i("div",{class:Y.goodsContent},[i("h2",null,[i("span",null,[e.goodsName]),i("span",{class:Y.goodsNum},["VIP"===e.goodsType?"6个月":"x 1"])]),i("div",{class:Y.goodsPrice},[i(C,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:Y.brandName},{default:function(){return[e.brandName]}}),i("span",{class:[Y.goodsNums,e.paymentCashAmount>0?Y.numFont:Y.free]},[e.paymentCashAmount>0?i(s,null,[i("span",{class:Y.numPrefix},[c("¥ ")]),d(e.paymentCashAmount)]):"免费"])]),i("p",{class:Y.model},[e.description])])}})}))]}}),"ORCHESTRA"===l.value&&i(w,{class:Y.freight,title:"运费",value:t.freight},null)]),i(k,{position:"bottom"},{default:function(){return[i("div",{class:Y.protocol},[i(ue,{modelValue:t.agreeStatus,"onUpdate:modelValue":function(e){return t.agreeStatus=e},showHeader:t.showHeader,style:{paddingTop:0,paddingBottom:0}},null)]),i("div",{class:Y.paymentContainer},[i("div",{class:Y.payemntPrice},[i("p",{class:Y.needPrice},[c("支付金额:"),i("span",null,[c("¥ "),d(t.orderInfo.currentPrice)])])]),i("div",{class:Y.paymentBtn},[i(m,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:I,loading:t.submitStatus,disabled:t.submitStatus},{default:function(){return[c("立即购买")]}})])])]}}),i(g,{show:t.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[i(oe,{paymentConfig:t.orderInfo,onClose:function(){return t.paymentStatus=!1},onBackOut:j,onConfirm:function(e){return S(e)}},null)]}}),i(R,{modelValue:t.showQrcode,"onUpdate:modelValue":function(e){return t.showQrcode=e},onClose:function(){clearInterval(t.orderTimer)}},{default:function(){return[i(ke,{url:t.qrCodeUrl,pay_channel:t.pay_channel,orderType:l.value},null)]}}),i(R,{modelValue:t.authShow,"onUpdate:modelValue":function(e){return t.authShow=e}},{default:function(){return[i(_e,{onSuccess:L,hideHeader:!p().isApp},null)]}}),i(R,{modelValue:t.memberBaoStatus,"onUpdate:modelValue":function(e){return t.memberBaoStatus=e},position:"right"},{default:function(){return[i(E,null,null)]}}),i(R,{modelValue:t.goodsStatus,"onUpdate:modelValue":function(e){return t.goodsStatus=e},position:"right",destroy:!0},{default:function(){return[t.goodsStatus&&i(B,{id:t.selectGoodsId,groupPrice:t.currentPrice},null)]}}),i(G,{title:"提示",show:t.dialogStatus,"onUpdate:show":function(e){return t.dialogStatus=e},message:t.dialogMessage,confirmButtonText:"确定",onConfirm:function(){D()}},null)])}}}))}}}))}(); ======== !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(r).concat(o))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var e=this;return i("div",{class:ae},[i(N,{modelValue:this.checked,"onUpdate:modelValue":function(t){return e.checked=t}},{default:function(){return[c("我已阅读并同意")]},icon:function(e){return i(l,{class:ce,name:e.checked?P:I,size:"15"},null)}}),i("span",{onClick:this.getContractDetail,class:ie},[se[this.prototcolType]]),i(g,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[e.showHeader&&i(h,{title:"管乐团平台服务协议"},null),e.popupStatus&&i("div",{id:"mProtocol"},[i("div",{class:le,innerHTML:e.protocolHTML},null)])]}})])}}),de="_userAuth_1sper_1",me="_cellGroup_1sper_6",fe=n({name:"UserAuth",props:{onSuccess:{type:Function,default:function(){}},hideHeader:{type:Boolean,default:!1}},data:function(){return{form:{realName:"",idCardNo:""}}},mounted:function(){var e=q.user.data;this.form.realName=null==e?void 0:e.account.realName},methods:{onSubmit:function(){var e=this;return o(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=q.platformApi+"/sysAccount/realNameAuth",n.next=4,_.post(r,{data:t(t({},e.form),{},{contract:!0,save:!0})});case 4:q.user.data.account.realName=e.form.realName,q.user.data.account.idCardNo=e.form.idCardNo,e.onSuccess(),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(0);case 11:case"end":return n.stop()}}),n,null,[[0,9]])})))()}},render:function(){var e=this;return i(z,{class:de,onSubmit:this.onSubmit},{default:function(){return[!e.hideHeader&&i(h,{title:"实名认证"},null),i(S,{inset:!0,class:me},{default:function(){return[i(O,{required:!0,label:"真实姓名",modelValue:e.form.realName,"onUpdate:modelValue":function(t){return e.form.realName=t},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"50"},null),i(O,{required:!0,label:"身份证号",modelValue:e.form.idCardNo,"onUpdate:modelValue":function(t){return e.form.idCardNo=t},maxlength:18,rules:[{required:!0,message:"请输入身份证号"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"请输入正确的身份证号"}],placeholder:"请输入身份证号"},null)]}}),i("div",{class:["btnGroup"]},[i(m,{block:!0,round:!0,type:"primary","native-type":"submit"},{default:function(){return[c("确定")]}})])]}})}}),pe="_saveShareImage_sn42f_1",_e="_topImage_sn42f_35",ge="_shareContaienr_sn42f_41",he="_orchestraContainer_sn42f_50",qe="_schoolName_sn42f_54",ve="_tips_sn42f_60",be="_tipsTitle_sn42f_66",Ae="_tipsContent_sn42f_72",ye="_shareType_sn42f_98",we="_qrcodeSection_sn42f_107",Ce="_memo_sn42f_115",ke=n({name:"qrcode-payment",props:{url:{type:String,default:""},pay_channel:{type:String,default:"wx_pub"},orderType:{type:String,default:""}},setup:function(e){r();var t=u({height:0});return function(){return i("div",{class:[pe]},[p().isApp&&i(k,{position:"top",onGetHeight:function(e){t.height=e,console.log(e,"height")}},{default:function(){return[i(h,{title:"VIP"===e.orderType?"会员购买":"报名缴费"},null)]}}),i(U,{src:D,class:_e,style:{top:t.height+"px"}},null),i("div",{class:[ge,he]},[i("div",{class:qe},["VIP"===e.orderType?"会员购买":"报名缴费"]),i("div",{class:ye},[c("请截图下方二维码"),i("span",null,[c("登录"),"wx_pub"===e.pay_channel?"微信":"支付宝",c("扫码支付")])]),i("div",{class:we},[i(j,{text:e.url,logoSize:"small",size:"100%"},null)]),i("div",{class:Ce},[c("请在30分钟内扫码支付")])]),i("div",{class:[ge,ve]},[i("div",{class:be},[c("使用说明:")]),i("div",{class:Ae},[c("1.打开"),"wx_pub"===e.pay_channel?"微信":"支付宝",c("扫一扫"),i("br",null,null),c("2.选择相册中的二维码"),i("br",null,null),c("3.请在30分钟内扫码支付")])])])}}});e("default",n({name:"order-detail",setup:function(){var e=v(),t=r(),n=u({orderTimer:null,paymentStatus:!1,showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderNo:e.query.orderNo,orderInfo:{},goodsInfos:[],config:e.query.config?JSON.parse(e.query.config):{},hasFreight:!e.query.hf,freight:"",agreeStatus:!0,showHeader:!1,authShow:!1,memberBaoStatus:!1,goodsStatus:!1,selectGoodsId:null,currentPrice:0,dialogStatus:!1,dialogMessage:"",submitStatus:!1}),l=a((function(){return n.orderInfo.orderType})),f=b({}),x=function(){var e=o(regeneratorRuntime.mark((function e(){var t,r,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.get("/api-student/userPaymentOrder/detail/"+n.orderNo);case 3:t=e.sent,r=t.data,o=r.goodsInfos||[],n.orderInfo=r,a=!1,i=!1,o.forEach((function(e){var t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t,"INSTRUMENTS"===e.goodsType?a=!0:"TEXTBOOK"===e.goodsType&&(i=!0)})),n.goodsInfos=o,f.value.id||(f.value=r.addresses||{}),console.log(a,i),n.freight=!a&&i?"到付":"免运费","WAIT_PAY"!==r.status&&"PAYING"!==r.status&&(n.dialogStatus=!0,n.dialogMessage="订单"+M[r.status]),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(0);case 19:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}(),T=function(e){var t=n.config;n.pay_channel=e.pay_channel,"payResult"===e.payCode?window.location.href=window.location.origin+"/orchestra-student/#/payResult?"+V.stringify({pay_channel:e.pay_channel,wxAppId:t.wxAppId,body:t.body,price:t.price,orderNo:t.merOrderNo,userId:t.userId}):(n.qrCodeUrl=window.location.origin+"/orchestra-student/#/payDefine?pay_channel="+e.pay_channel+"&wxAppId="+t.wxAppId+"&body="+t.body+"&price="+t.price+"&orderNo="+t.merOrderNo+"&userId="+t.userId,console.log(n.qrCodeUrl,"qrCodeUrl"),n.showQrcode=!0,n.paymentStatus=!1,setTimeout((function(){P()}),300))},P=function(){var t=o(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=setInterval(o(regeneratorRuntime.mark((function t(){var o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("orderDetail"==e.name){t.next=3;break}return clearInterval(r),t.abrupt("return");case 3:return n.orderTimer=r,t.prev=4,t.next=7,_.post("/api-student/open/userOrder/paymentStatus/"+n.orderNo,{hideLoading:!0});case 7:o=t.sent,"WAIT_PAY"!==(a=o.data).status&&"PAYING"!==a.status&&(clearInterval(n.orderTimer),setTimeout((function(){D()}),100)),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),clearInterval(n.orderTimer);case 15:case"end":return t.stop()}}),t,null,[[4,12]])}))),5e3);case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),I=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval(n.orderTimer),"VIP"===l.value?z(N):O(N);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){n.pay_channel?function(){var e=n.pay_channel,t="qrCode";p().weixin?"alipay_qr"==e||"alipay_wap"==e?t="qrCode":"wx_pub"==e&&(t="pay"):t=p().alipay&&"alipay_wap"==e?"pay":"qrCode",T({payCode:"qrCode"==t?"payDefine":"payResult",pay_channel:e})}():n.paymentStatus=!0},z=function(){var e=o(regeneratorRuntime.mark((function e(r){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.submitStatus=!0,e.next=4,_.get("/api-student/userPaymentOrder/detail/"+n.orderNo,{hideLoading:!1});case 4:o=e.sent,a=o.data,console.log(a),n.pay_channel=a.paymentChannel,n.submitStatus=!1,"WAIT_PAY"!==a.status&&"PAYING"!==a.status?t.replace({path:"/payment-result",query:{orderNo:n.orderNo}}):r&&r(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),n.submitStatus=!1;case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=o(regeneratorRuntime.mark((function e(t){var r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f.value.id){e.next=3;break}return y("请选择收货地址"),e.abrupt("return");case 3:if(n.agreeStatus){e.next=6;break}return y("请先阅读并同意《管乐团平台服务协议》"),e.abrupt("return");case 6:if(null!=(r=q.user.data)&&r.account.realName&&null!=r&&r.account.idCardNo){e.next=10;break}return n.authShow=!0,e.abrupt("return");case 10:return n.submitStatus=!0,e.prev=11,e.next=14,_.post("/api-student/userPaymentOrder/updateReceiveAddress",{hideLoading:!1,data:{orderNo:n.orderNo,orderType:"ORCHESTRA",receiveAddress:f.value.id}});case 14:o=e.sent,a=o.data,console.log(a),n.pay_channel=a.paymentChannel,n.submitStatus=!1,"WAIT_PAY"!==a.status&&"PAYING"!==a.status?D():t&&t(),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(11),n.submitStatus=!1;case 25:case"end":return e.stop()}}),e,null,[[11,22]])})));return function(t){return e.apply(this,arguments)}}(),D=function(){"ORCHESTRA"===l.value?window.location.replace("https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=3&sn=9b265d36b5dabe7f9393fc679c367540&chksm=c12c256cf65bac7ae2a865435b950f6e1285afd226356db0ffde815b1ee345f29cfcdb798cc9#rd"):t.replace({path:"/payment-result",query:{orderNo:n.orderNo}})},j=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-student/userPaymentOrder/cancelPayment/"+n.orderNo);case 3:t.back(),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)}}(),Y=function(){n.authShow=!1,I()};return A((function(){p().isApp?n.showHeader=!0:n.showHeader=!1;var e=sessionStorage.getItem("addressDetails");e=e?JSON.parse(e):{},f.value=e,sessionStorage.removeItem("addressDetails"),x()})),function(){return i(s,null,[p().isApp&&i(h,{border:!1},null),i("div",{class:H.cartConfirm},["ORCHESTRA"===l.value&&i("div",{class:H.cartConfirmBox},[i(Z,{item:f.value},null)]),i(S,{style:{margin:0}},{default:function(){return[n.goodsInfos&&n.goodsInfos.map((function(e){return i(w,{class:H.cellItem,onClick:function(){"INSTRUMENTS"===e.goodsType||"TEXTBOOK"===e.goodsType?(console.log(e),n.selectGoodsId=e.goodsId,n.currentPrice=e.currentPrice,n.goodsStatus=!0):"VIP"===e.goodsType&&(n.memberBaoStatus=!0)}},{icon:function(){return i(U,{class:H.img,src:e.goodsUrl},null)},title:function(){return i("div",{class:H.goodsContent},[i("h2",null,[i("span",null,[e.goodsName]),i("span",{class:H.goodsNum},["VIP"===e.goodsType?"6个月":"x 1"])]),i("div",{class:H.goodsPrice},[i(C,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:H.brandName},{default:function(){return[e.brandName]}}),i("span",{class:[H.goodsNums,e.paymentCashAmount>0?H.numFont:H.free]},[e.paymentCashAmount>0?i(s,null,[i("span",{class:H.numPrefix},[c("¥ ")]),d(e.paymentCashAmount)]):"免费"])]),i("p",{class:H.model},[e.description])])}})}))]}}),"ORCHESTRA"===l.value&&i(w,{class:H.freight,title:"运费",value:n.freight},null)]),i(k,{position:"bottom"},{default:function(){return[i("div",{class:H.protocol},[i(ue,{modelValue:n.agreeStatus,"onUpdate:modelValue":function(e){return n.agreeStatus=e},showHeader:n.showHeader,style:{paddingTop:0,paddingBottom:0}},null)]),i("div",{class:H.paymentContainer},[i("div",{class:H.payemntPrice},[i("p",{class:H.needPrice},[c("支付金额:"),i("span",null,[c("¥ "),d(n.orderInfo.currentPrice)])])]),i("div",{class:H.paymentBtn},[i(m,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:I,loading:n.submitStatus,disabled:n.submitStatus},{default:function(){return[c("立即购买")]}})])])]}}),i(g,{show:n.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[i(oe,{paymentConfig:n.orderInfo,onClose:function(){return n.paymentStatus=!1},onBackOut:j,onConfirm:function(e){return T(e)}},null)]}}),i(R,{modelValue:n.showQrcode,"onUpdate:modelValue":function(e){return n.showQrcode=e},onClose:function(){clearInterval(n.orderTimer)}},{default:function(){return[i(ke,{url:n.qrCodeUrl,pay_channel:n.pay_channel,orderType:l.value},null)]}}),i(R,{modelValue:n.authShow,"onUpdate:modelValue":function(e){return n.authShow=e}},{default:function(){return[i(fe,{onSuccess:Y,hideHeader:!p().isApp},null)]}}),i(R,{modelValue:n.memberBaoStatus,"onUpdate:modelValue":function(e){return n.memberBaoStatus=e},position:"right"},{default:function(){return[i(E,null,null)]}}),i(R,{modelValue:n.goodsStatus,"onUpdate:modelValue":function(e){return n.goodsStatus=e},position:"right",destroy:!0},{default:function(){return[n.goodsStatus&&i(B,{id:n.selectGoodsId,groupPrice:n.currentPrice},null)]}}),i(G,{title:"提示",show:n.dialogStatus,"onUpdate:show":function(e){return n.dialogStatus=e},message:n.dialogMessage,confirmButtonText:"确定",onConfirm:function(){D()}},null)])}}}))}}}))}(); >>>>>>>> online:dist/assets/order-detail-legacy.a7d339fd.js