1 |
- var I=Object.defineProperty;var f=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var L=(e,s,o)=>s in e?I(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o,b=(e,s)=>{for(var o in s||(s={}))v.call(s,o)&&L(e,o,s[o]);if(f)for(var o of f(s))j.call(s,o)&&L(e,o,s[o]);return e};import{C as P,P as N}from"./index.c3eb7a0c.js";import{d as p,b as t,m as O,p as m,I as T,j as a,q as E,F as l,L as R,B as A,P as C,T as S,D as U}from"./vendor.2bcdc9cf.js";import{C as k,U as F}from"./index.190275ff.js";import{C as M,r as y,s as h,p as q,m as x}from"./index.b8b9219f.js";import{C as w}from"./index.4cc32b24.js";import{o as i,a as D,r as z}from"./orderStatus.c1cbd21b.js";/* empty css *//* empty css *//* empty css */import{g as B}from"./tradeOrder.c6e62fd3.js";import{I as V}from"./item.95d8a33b.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.c593ab77.js";const G="_tips_5sbtb_6",H="_paymentInfo_5sbtb_31",X="_protocol_5sbtb_37",J="_btnGroup_5sbtb_41",K="_priceSection_5sbtb_51",Y="_price_5sbtb_51",W="_priceUnit_5sbtb_62";var u={"order-detail":"_order-detail_5sbtb_1",tips:G,paymentInfo:H,protocol:X,btnGroup:J,priceSection:K,price:Y,priceUnit:W};const _="_memberLogo_1ki51_1",Z="_titleClass_1ki51_5",Q="_title_1ki51_5",$="_price_1ki51_14",ee="_timerTitle_1ki51_25",te="_timer_1ki51_25",oe="_timerCell_1ki51_39";var c={memberLogo:_,titleClass:Z,title:Q,price:$,timerTitle:ee,timer:te,timerCell:oe},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGoAAABkCAYAAABuK6XnAAAAAXNSR0IArs4c6QAADZhJREFUeNrtnAl0VNUZx68ooh5sPaVarD1q22i1SGbLvmcykzCTmYSEbASILNbSiniwWg2udTtNI6jHc7AxtlGptdS6IptLFQETFXD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yc+jk8Ivvcjh6iQaI5yBqOhyO7phDhwb0BHjteAtwhMQnNdc8k+KtWXiybXjwIAYSCZ2QI8mkPL7TMUhqzVyTOM+uNOykEzvsH3aeHoV+T7cnisMmfj+pLakxsuogn46x40ZMhyM9vQf/7ktPTx/AAC+OKNz20YT0xBjB8QdIzTA9kRriWsbuOHAc/wcuSPQjCOd5hwAAAABJRU5ErkJggg==",ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAIRQTFRFAAAAAP//AKqqAP+qK6qqLtGiLtG5Mc6qLsitLsmqMseuLMisK8OoLcisLMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+Pz9/Uvj+oYAAAFBSURBVDjLtZTbtoIwDESDooKKVzgiF7koFt3//38+aIEiLs+L89R0zWrSSSYiP8HEj9NSqTKN/ckHihtXNKhid4Bih1cMqNDuc2YJQBHtl46z3EUFQDIzOfMcyDaWjq1NBuRz450c6r9x92oc1JB33rITuKz6FXgXSNq6QqhX73/xagibv18h0MHhfD7ocwBXrUQMWVPPDW76PMogfulcwabJAdAEa6ie2vtQWMMkqwBfZ4tkmCSRzpfC/hNpC6mIiJSwNEkAt4OIyAJKERFR4LyTOIuIOKAGSPdhkpkuug+mS2H3aVabwk0JTBy1BKaYBloxp0ZbDLRtMRvcxejUNFhc1RmVLgJQbnfovC9D9xxf78v4Po0QjIx6+kZ4Weq0bi21Pr1ZqjXnduE4i+1x0Jwidqi+2vx/C6O3eqa/WW4PDPQ4oVW3WKoAAAAASUVORK5CYII=",re=p({name:"OrderVideo",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:c.videoOrder},[t(O,{class:"mb12",border:!1,style:{borderRadius:"8px",overflow:"hidden"}},{default:()=>[t(m,{center:!0,titleClass:c.titleClass},{icon:()=>t(T,{class:c.memberLogo,src:se},null),title:()=>t("div",{class:c.container},[t("div",{class:c.title},[a("\u5C0F\u9177Ai"),e.title]),t("div",{class:c.price},[t("i",null,[a("\xA5")]),this.$filters.moneyFormat(e.price)])])}),t(m,{center:!0},{title:()=>t("div",{class:c.timerCell},[t("div",{class:c.timerTitle},[t(E,{name:ie,size:18},null),t("span",{style:{paddingLeft:"5px"}},[a("\u751F\u6548\u65F6\u95F4")])]),t("div",{class:c.timer},[e.startTime,a(" \u81F3 "),e.endTime])])})]})])}});const ne="_useCoupon_dzp2v_1",ae="_couponCount_dzp2v_5",ue="_choiceCoupon_dzp2v_14",ce="_couponTitle_dzp2v_20",de="_iconClose_dzp2v_32",le="_couponContent_dzp2v_39",pe="_couponFooter_dzp2v_46",me="_couponSelectText_dzp2v_53";var d={useCoupon:ne,couponCount:ae,choiceCoupon:ue,couponTitle:ce,iconClose:de,couponContent:le,couponFooter:pe,couponSelectText:me},he=p({name:"choice-coupon",props:{orderAmount:{type:Number,default:0},useCoupon:{type:Array,default:()=>[]},couponCategory:{type:String,default:"UNIVERSAL"},couponList:{type:Array,default:()=>[]}},emits:["close","submit"],data(){return{list:[],dataLoading:!1}},computed:{useLength(){return this.list.filter(e=>e.checked).length||0}},async mounted(){this.couponList.forEach(o=>{this.useCoupon.forEach(r=>{o.couponIssueId===r.couponIssueId&&(o.checked=!0)})});const e=this.couponList.filter(o=>!o.disabled),s=this.couponList.filter(o=>o.disabled);this.list=[...e,...s],this.calcCoupon()},methods:{onSubmit(){this.$emit("submit",this.list.filter(e=>e.checked)),this.list.forEach(e=>{e.checked=!1})},onSelect(e){e.checked=!e.checked,this.calcCoupon()},calcCoupon(){const s=this.list.filter(n=>n.checked).map(n=>Number(n.useLimit||0)),o=s.length>0?s.reduce((n,g)=>n+g):0,r=this.orderAmount-o;this.list.forEach(n=>{Number(n.useLimit)>r&&!n.checked?n.disabled=!0:n.disabled=!1})}},render(){return t("div",{class:d.choiceCoupon},[t("div",{class:d.couponTitle},[t("span",null,[a("\u4F18\u60E0\u5238")]),t("i",{class:d.iconClose,onClick:()=>this.$emit("close")},null)]),t("div",{class:d.couponContent},[this.dataLoading?t(R,{size:48,color:"#01C1B5",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:()=>[a("\u52A0\u8F7D\u4E2D...")]}):t(l,null,[this.list.length>0?t(l,null,[this.list.map(e=>t(V,{item:e,isSelect:!0,onClick:this.onSelect},null))]):t(M,{btnStatus:!1,tips:"\u6682\u65E0\u4F18\u60E0\u5238",classImgSize:"SMALL"},null)])]),t("div",{class:[d.couponFooter,"van-hairline--top"]},[t("div",{class:d.couponSelectText},[a("\u5DF2\u9009"),t("span",null,[this.useLength]),a("\u5F20")]),t(A,{type:"primary",round:!0,style:{minWidth:"105px",fontSize:"16px"},onClick:this.onSubmit},{default:()=>[a("\u786E\u5B9A")]})])])}});const fe={UNIVERSAL:"UNIVERSAL",VIP:"VIP",PINAO_ROOM:"PIANO",GOODS:"MALL",MUSIC:"MUSIC",PRACTICE:"SPARRING",LIVE:"LIVE",VIDEO:"VIDEO"};var Le=p({name:"use-conpon",props:{disabled:{type:Boolean,default:!1},orderAmount:{type:Number,default:0},orderType:{type:String,default:""},discountPrice:{type:Number,default:0}},emits:["couponSelect"],data(){return{popupStatus:!1,popupLoading:!1,useCouponList:[],useCouponLoading:!1,useCouponCount:0,dataLoading:!1,list:[]}},computed:{couponCount(){const e=this.useCouponList.map(o=>Number(o.discountPrice||0));let s=0;return this.disabled?s=this.discountPrice:s=e.length>0?e.reduce((o,r)=>o+r):0,s},couponCategory(){return fe[this.orderType]||"UNIVERSAL"}},mounted(){this.getList()},methods:{async getList(){if(!this.dataLoading){this.dataLoading=!0;try{const e=await y.post(`${h.platformApi}/couponInfo/page`,{data:{couponCategory:this.couponCategory,couponType:"FULL_DISCOUNT",useState:"USABLE",orderUse:1,page:1,rows:100}});this.dataLoading=!1;const s=e.data||{};if(this.list.length>0&&s.pageNo===1)return;this.list=s.rows||[],this.list.forEach(r=>{r.checked=!1,r.useLimit>this.orderAmount?r.disabled=!0:r.disabled=!1});let o=0;this.list.forEach(r=>{r.disabled||o++}),console.log(this.list,"list"),this.useCouponCount=o}catch{}}},onSubmit(e){this.useCouponList=e,this.$emit("couponSelect",e),this.popupStatus=!1,this.popupLoading=!1}},render(){return t(l,null,[t(m,{title:"\u4F18\u60E0\u5238",class:d.useCoupon,style:{borderRadius:"8px"},isLink:!this.disabled,clickable:!1,onClick:()=>{this.disabled||(this.popupStatus=!0,this.popupLoading=!0)}},{value:()=>!this.useCouponLoading&&t(l,null,[this.couponCount>0?t("span",{class:d.couponCount},[t("i",null,[a("-\uFFE5")]),this.couponCount]):t(l,null,[this.useCouponCount>0?`${this.useCouponCount}\u5F20\u53EF\u4F7F\u7528`:"\u6682\u65E0\u53EF\u4F7F\u7528\u4F18\u60E0\u5238"])])}),t(C,{show:this.popupStatus,"onUpdate:show":e=>this.popupStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,style:{height:"75%"},onClosed:()=>{this.popupLoading=!1}},{default:()=>[this.popupLoading&&t(he,{couponCategory:this.couponCategory,useCoupon:this.useCouponList,orderAmount:this.orderAmount,couponList:this.list,onClose:()=>this.popupStatus=!1,onSubmit:e=>this.onSubmit(e)},null)]})])}}),Me=p({name:"order-detail",data(){const e=this.$route.query;return{loading:!1,orderType:e.orderType,recomUserId:e.recomUserId,activityId:e.activityId,id:e.id,agreeStatus:!1,popupShow:!1,paymentStatus:!1,orderAmount:0,orderPrice:0,dataLoading:!0}},unmounted(){i.orderInfo={orderNo:"",actualPrice:0,payStatus:!1}},computed:{orderList(){return i.orderObject.orderList||[]}},async mounted(){if(this.dataLoading=!0,this.orderType=="MUSIC"&&this.id)try{const e=await B(this.id);i.orderObject.orderType="MUSIC",i.orderObject.orderName=e.musicSheetName,i.orderObject.orderDesc=e.musicSheetName,i.orderObject.actualPrice=e.musicPrice,i.orderObject.recomUserId=this.recomUserId,i.orderObject.activityId=this.activityId,["WAIT_PAY","PAYING"].includes(e.orderStatus)?i.orderObject.orderNo=e.orderNo:["PAID","CLOSE","FAIL"].includes(e.orderStatus)&&(S("\u8BA2\u5355\u6709\u8BEF"),q({api:"back",content:{}})),i.orderObject.orderList=[b({orderType:"MUSIC",goodsName:e.musicSheetName,actualPrice:e.musicPrice},e)]}catch{}this.orderAmount=i.orderObject.actualPrice||0,this.orderPrice=i.orderObject.actualPrice||0,this.dataLoading=!1,this.orderPrice===0&&i.orderObject.orderType&&(this.loading=!0,this.onSubmit())},methods:{onAuthSuccess(){this.popupShow=!1,this.onSubmit()},async onSubmit(){if(this.orderPrice>0){if(!this.agreeStatus){S("\u8BF7\u5148\u9605\u8BFB\u5E76\u540C\u610F\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B");return}const e=h.user.data;if(!(e==null?void 0:e.realName)||!(e==null?void 0:e.idCardNo)){this.popupShow=!0;return}}if(i.orderObject.orderNo){this.paymentStatus=!0;return}try{const e=i.orderObject,s=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder":"/api-student/userOrder/executeOrder",r=(await y.post(s,{data:{orderName:e.orderName,orderDesc:e.orderDesc,orderType:e.orderType,actualPrice:this.orderPrice||0,recomUserId:e.recomUserId,activityId:e.activityId,couponId:e.couponId,orderInfos:[...D()]}})).data||{};if(r.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:r.orderNo}});return}i.orderObject.orderNo=r.orderNo,i.orderObject.actualPrice=r.actualPrice,this.paymentStatus=!0}catch{this.loading=!1,this.orderPrice===0&&U.alert({title:"\u63D0\u793A",message:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01",confirmButtonText:"\u786E\u5B9A",confirmButtonColor:"#01C1B5"})}},onBackOut(){z()},onCouponSelect(e){console.log("onCouponSelect",e);let s=0;(e||[]).forEach(n=>{s+=Number(n.discountPrice)});const o=Number((Number(this.orderAmount)-Number(s)).toFixed(2));this.orderPrice=o>=0?o:0;const r=(e||[]).map(n=>n.couponIssueId);i.orderObject.couponId=r.join(",")||""}},render(){return t("div",{class:u["order-detail"]},[t(w,null,null),!this.loading&&t(l,null,[this.orderList.map(e=>{if(e.orderType==="VIP")return t(re,{item:e},null)}),!this.dataLoading&&t(Le,{discountPrice:i.orderObject.discountPrice,orderType:this.orderType,orderAmount:this.orderAmount,onCouponSelect:this.onCouponSelect,disabled:!!i.orderObject.orderNo},null),t("div",{class:u.paymentInfo},[this.orderPrice>0&&t("div",{class:u.protocol},[t(P,{modelValue:this.agreeStatus,"onUpdate:modelValue":e=>this.agreeStatus=e,showHeader:!0,style:{paddingLeft:0,paddingRight:0}},null)]),t("div",{class:u.btnGroup},[t("div",{class:u.priceSection},[a("\u652F\u4ED8\u91D1\u989D\uFF1A"),t("div",{class:u.price},[t("span",{class:u.priceUnit},[a("\uFFE5")]),t("span",{class:u.priceNum},[x(this.orderPrice)])])]),t(A,{type:"primary",round:!0,class:u.btn,onClick:this.onSubmit},{default:()=>[a("\u7ACB\u5373\u652F\u4ED8")]})])])]),t(k,{modelValue:this.popupShow,"onUpdate:modelValue":e=>this.popupShow=e},{default:()=>[t(F,{onSuccess:this.onAuthSuccess},null)]}),t(C,{show:this.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[t(N,{modelValue:this.paymentStatus,"onUpdate:modelValue":e=>this.paymentStatus=e,orderInfo:i.orderObject,onBackOut:this.onBackOut},null)]})])}});export{Me as default};
|