1 |
- var f=Object.defineProperty;var u=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var p=(e,o,i)=>o in e?f(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,l=(e,o)=>{for(var i in o||(o={}))j.call(o,i)&&p(e,i,o[i]);if(u)for(var i of u(o))L.call(o,i)&&p(e,i,o[i]);return e};import{C as v,P as S}from"./index.b51c1990.js";import{d as m,b as t,m as I,p as A,I as g,j as c,q as P,T as h,D as O,F as N,B as C,P as T}from"./vendor.2bcdc9cf.js";import{U as R,C as q,a as M}from"./index.71215e22.js";import{r as b,p as E,s as y,m as U}from"./index.f45ba589.js";import{C as x}from"./index.8f85fe36.js";import{o as r,a as k,r as w}from"./orderStatus.e6e3ea82.js";/* empty css *//* empty css *//* empty css */import{g as F}from"./tradeOrder.45cee3ae.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./item.3ccc7112.js";import"./index.ebee95a8.js";const B="_tips_5sbtb_6",D="_paymentInfo_5sbtb_31",G="_protocol_5sbtb_37",V="_btnGroup_5sbtb_41",H="_priceSection_5sbtb_51",z="_price_5sbtb_51",X="_priceUnit_5sbtb_62";var s={"order-detail":"_order-detail_5sbtb_1",tips:B,paymentInfo:D,protocol:G,btnGroup:V,priceSection:H,price:z,priceUnit:X};const J="_memberLogo_1ki51_1",W="_titleClass_1ki51_5",K="_title_1ki51_5",Y="_price_1ki51_14",Z="_timerTitle_1ki51_25",Q="_timer_1ki51_25",_="_timerCell_1ki51_39";var a={memberLogo:J,titleClass:W,title:K,price:Y,timerTitle:Z,timer:Q,timerCell:_},$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGoAAABkCAYAAABuK6XnAAAAAXNSR0IArs4c6QAADZhJREFUeNrtnAl0VNUZx68ooh5sPaVarD1q22i1SGbLvmcykzCTmYSEbASILNbSiniwWg2udTtNI6jHc7AxtlGptdS6IptLFQETFXDBBXcJ4BKrQo00YcnXe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5yBqOhyO7phDhwb0BHjteAtwhMQnNdc8k+KtWXiybXjwIAYSCZ2QI8mkPL7TMUhqzVyTOM+uNOykEzvsH3aeHoV+T7cnisMmfj+pLakxsuogn46x40ZMhyM9vQf/7ktPTx/AAC+OKNz20YT0xBjB8QdIzTA9kRriWsbuOHAc/wcuSPQjCOd5hwAAAABJRU5ErkJggg==",ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAIRQTFRFAAAAAP//AKqqAP+qK6qqLtGiLtG5Mc6qLsitLsmqMseuLMisK8OoLcisLMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+Pz9/Uvj+oYAAAFBSURBVDjLtZTbtoIwDESDooKKVzgiF7koFt3//38+aIEiLs+L89R0zWrSSSYiP8HEj9NSqTKN/ckHihtXNKhid4Bih1cMqNDuc2YJQBHtl46z3EUFQDIzOfMcyDaWjq1NBuRz450c6r9x92oc1JB33rITuKz6FXgXSNq6QqhX73/xagibv18h0MHhfD7ocwBXrUQMWVPPDW76PMogfulcwabJAdAEa6ie2vtQWMMkqwBfZ4tkmCSRzpfC/hNpC6mIiJSwNEkAt4OIyAJKERFR4LyTOIuIOKAGSPdhkpkuug+mS2H3aVabwk0JTBy1BKaYBloxp0ZbDLRtMRvcxejUNFhc1RmVLgJQbnfovC9D9xxf78v4Po0QjIx6+kZ4Weq0bi21Pr1ZqjXnduE4i+1x0Jwidqi+2vx/C6O3eqa/WW4PDPQ4oVW3WKoAAAAASUVORK5CYII=",te=m({name:"OrderVideo",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:a.videoOrder},[t(I,{class:"mb12",border:!1,style:{borderRadius:"8px",overflow:"hidden"}},{default:()=>[t(A,{center:!0,titleClass:a.titleClass},{icon:()=>t(g,{class:a.memberLogo,src:$},null),title:()=>t("div",{class:a.container},[t("div",{class:a.title},[c("\u5C0F\u9177Ai"),e.title]),t("div",{class:a.price},[t("i",null,[c("\xA5")]),this.$filters.moneyFormat(e.price)])])}),t(A,{center:!0},{title:()=>t("div",{class:a.timerCell},[t("div",{class:a.timerTitle},[t(P,{name:ee,size:18},null),t("span",{style:{paddingLeft:"5px"}},[c("\u751F\u6548\u65F6\u95F4")])]),t("div",{class:a.timer},[e.startTime,c(" \u81F3 "),e.endTime])])})]})])}}),Le=m({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,paymentWay:[]}},unmounted(){r.orderInfo={orderNo:"",actualPrice:0,payStatus:!1}},computed:{orderList(){return r.orderObject.orderList||[]}},async mounted(){try{const o=(await b.get("/api-student/sysConfig/queryByParamName",{params:{paramName:"payment_channel_action"}})).data.paranValue;this.paymentWay=o?JSON.parse(o):[]}catch{}if(this.dataLoading=!0,this.orderType=="MUSIC"&&this.id)try{const e=await F(this.id);r.orderObject.orderType="MUSIC",r.orderObject.orderName=e.musicSheetName,r.orderObject.orderDesc=e.musicSheetName,r.orderObject.actualPrice=e.musicPrice,r.orderObject.recomUserId=this.recomUserId,r.orderObject.activityId=this.activityId,["WAIT_PAY","PAYING"].includes(e.orderStatus)?r.orderObject.orderNo=e.orderNo:["PAID","CLOSE","FAIL"].includes(e.orderStatus)&&(h("\u8BA2\u5355\u6709\u8BEF"),E({api:"back",content:{}})),r.orderObject.orderList=[l({orderType:"MUSIC",goodsName:e.musicSheetName,actualPrice:e.musicPrice},e)]}catch{}this.orderAmount=r.orderObject.actualPrice||0,this.orderPrice=r.orderObject.actualPrice||0,this.dataLoading=!1,this.orderPrice===0&&r.orderObject.orderType&&(this.loading=!0,this.onSubmit())},methods:{onAuthSuccess(){this.popupShow=!1,this.onSubmit()},async onSubmit(){if(this.orderPrice>0){if(!this.agreeStatus){h("\u8BF7\u5148\u9605\u8BFB\u5E76\u540C\u610F\u300A\u7BA1\u4E50\u8FF7\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B");return}const e=y.user.data;if(!(e==null?void 0:e.realName)||!(e==null?void 0:e.idCardNo)){this.popupShow=!0;return}}if(r.orderObject.orderNo){this.paymentStatus=!0;return}try{const e=r.orderObject,o=y.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder":"/api-student/userOrder/executeOrder",d=(await b.post(o,{data:{orderName:e.orderName,orderDesc:e.orderDesc,orderType:e.orderType,actualPrice:this.orderPrice||0,recomUserId:e.recomUserId,activityId:e.activityId,couponId:e.couponId,orderInfos:[...k()]}})).data||{};if(d.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:d.orderNo}});return}r.orderObject.orderNo=d.orderNo,r.orderObject.actualPrice=d.actualPrice,this.paymentStatus=!0}catch{this.loading=!1,this.orderPrice===0&&O.alert({title:"\u63D0\u793A",message:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01",confirmButtonText:"\u786E\u5B9A",confirmButtonColor:"#01C1B5"})}},onBackOut(){w()},onCouponSelect(e){console.log("onCouponSelect",e);let o=0;(e||[]).forEach(n=>{o+=Number(n.discountPrice)});const i=Number((Number(this.orderAmount)-Number(o)).toFixed(2));this.orderPrice=i>=0?i:0;const d=(e||[]).map(n=>n.couponIssueId);r.orderObject.couponId=d.join(",")||""}},render(){return t("div",{class:s["order-detail"]},[t(x,null,null),!this.loading&&t(N,null,[this.orderList.map(e=>{if(e.orderType==="VIP")return t(te,{item:e},null)}),!this.dataLoading&&t(R,{discountPrice:r.orderObject.discountPrice,orderType:this.orderType,orderAmount:this.orderAmount,onCouponSelect:this.onCouponSelect,disabled:!!r.orderObject.orderNo},null),t("div",{class:s.paymentInfo},[this.orderPrice>0&&t("div",{class:s.protocol},[t(v,{modelValue:this.agreeStatus,"onUpdate:modelValue":e=>this.agreeStatus=e,showHeader:!0,style:{paddingLeft:0,paddingRight:0}},null)]),t("div",{class:s.btnGroup},[t("div",{class:s.priceSection},[c("\u652F\u4ED8\u91D1\u989D\uFF1A"),t("div",{class:s.price},[t("span",{class:s.priceUnit},[c("\uFFE5")]),t("span",{class:s.priceNum},[U(this.orderPrice)])])]),t(C,{type:"primary",round:!0,class:s.btn,onClick:this.onSubmit},{default:()=>[c("\u7ACB\u5373\u652F\u4ED8")]})])])]),t(q,{modelValue:this.popupShow,"onUpdate:modelValue":e=>this.popupShow=e},{default:()=>[t(M,{onSuccess:this.onAuthSuccess},null)]}),t(T,{show:this.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[t(S,{paymentWay:this.paymentWay,modelValue:this.paymentStatus,"onUpdate:modelValue":e=>this.paymentStatus=e,orderInfo:r.orderObject,onBackOut:this.onBackOut},null)]})])}});export{Le as default};
|