index-legacy.176f8618.js 21 KB

12345678910111213141516171819
  1. ;(function(){function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._order-detail_5sbtb_1{position:relative;padding:.37333rem .37333rem 0;overflow:hidden}._order-detail_5sbtb_1 ._tips_5sbtb_6{margin-bottom:3.2rem;background-color:#fff;border-radius:.21333rem;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding)}._order-detail_5sbtb_1 ._tips_5sbtb_6 h3{display:flex;font-size:.37333rem;font-weight:500;color:#333;line-height:1}._order-detail_5sbtb_1 ._tips_5sbtb_6 p{padding-top:.24rem;font-size:.32rem;color:#7a7a7a;line-height:.61333rem}._order-detail_5sbtb_1 ._tips_5sbtb_6 .van-icon{margin-right:.16rem}._order-detail_5sbtb_1 .van-popup--bottom.van-popup--round{border-radius:.26667rem .26667rem 0 0}._order-detail_5sbtb_1 ._paymentInfo_5sbtb_31{position:fixed;bottom:0;left:0;right:0}._order-detail_5sbtb_1 ._protocol_5sbtb_37{padding:0 .37333rem;background-color:#f6f8f9}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41{background-color:#fff;display:flex;align-items:center;padding:.32rem .42667rem;justify-content:space-between}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 .van-button{padding:0 .48rem}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51 ._price_5sbtb_51{font-size:.48rem;font-weight:700;color:#ff3535}._order-detail_5sbtb_1 ._btnGroup_5sbtb_41 ._priceSection_5sbtb_51 ._price_5sbtb_51 ._priceUnit_5sbtb_62{font-size:.37333rem}._memberLogo_1ki51_1{width:1.41333rem;height:1.33333rem}._titleClass_1ki51_5{padding-left:.53333rem}._title_1ki51_5{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._price_1ki51_14{padding-top:.08rem;font-size:.42667rem;font-weight:500;color:#ff4e19;line-height:.53333rem}._price_1ki51_14 i{font-style:normal;font-size:.37333rem}._timerTitle_1ki51_25{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem;padding-right:.32rem}._timer_1ki51_25{font-size:.34667rem;color:#999;line-height:.48rem}._timerCell_1ki51_39{display:flex;align-items:center}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.fef83bdf.js','./vendor-legacy.73abbe39.js','./index-legacy.7cce38f9.js','./index-legacy.890d473e.js','./index-legacy.372e7f90.js','./orderStatus-legacy.ac613bcd.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a.js','./index-legacy.f25f109a4.js','./tradeOrder-legacy.f55651c7.js','./index-legacy.f25f109a7.js','./index-legacy.f25f109a8.js','./index-legacy.637f35563.js','./index-legacy.637f3556.js','./index-legacy.f25f109a3.js','./item-legacy.8c78baa8.js','./index-legacy.cddcfa89.js'],function(exports){'use strict';var ColProtocol,Payment,defineComponent,createVNode,CellGroup,Cell,Image,createTextVNode,Icon,Toast,Dialog,Fragment,Button,Popup,UseCoupons,ColPopup,UserAuth,request,postMessage,state,moneyFormat,ColHeader,orderStatus,orderInfos,resestState,getMusicDetail;return{setters:[function(module){ColProtocol=module.C;Payment=module.P;},function(module){defineComponent=module.d;createVNode=module.b;CellGroup=module.m;Cell=module.p;Image=module.I;createTextVNode=module.j;Icon=module.q;Toast=module.T;Dialog=module.D;Fragment=module.F;Button=module.B;Popup=module.P;},function(module){UseCoupons=module.U;ColPopup=module.C;UserAuth=module.a;},function(module){request=module.r;postMessage=module.p;state=module.s;moneyFormat=module.m;},function(module){ColHeader=module.C;},function(module){orderStatus=module.o;orderInfos=module.a;resestState=module.r;},function(){},function(){},function(){},function(module){getMusicDetail=module.g;},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var tips="_tips_5sbtb_6";var paymentInfo="_paymentInfo_5sbtb_31";var protocol="_protocol_5sbtb_37";var btnGroup="_btnGroup_5sbtb_41";var priceSection="_priceSection_5sbtb_51";var price$1="_price_5sbtb_51";var priceUnit="_priceUnit_5sbtb_62";var styles$1={"order-detail":"_order-detail_5sbtb_1",tips:tips,paymentInfo:paymentInfo,protocol:protocol,btnGroup:btnGroup,priceSection:priceSection,price:price$1,priceUnit:priceUnit};var memberLogo="_memberLogo_1ki51_1";var titleClass="_titleClass_1ki51_5";var title="_title_1ki51_5";var price="_price_1ki51_14";var timerTitle="_timerTitle_1ki51_25";var timer="_timer_1ki51_25";var timerCell="_timerCell_1ki51_39";var styles={memberLogo:memberLogo,titleClass:titleClass,title:title,price:price,timerTitle:timerTitle,timer:timer,timerCell:timerCell};var iconMember="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGoAAABkCAYAAABuK6XnAAAAAXNSR0IArs4c6QAADZhJREFUeNrtnAl0VNUZx68ooh5sPaVarD1q22i1SGbLvmcykzCTmYSEbASILNbSiniwWg2udTtNI6jHc7AxtlGptdS6IptLFQETFXDBBXcJ4BKrQo00YcnXe+fNm7x339z37ltmJoH3zvklM/d+9/vu9/157955bwJCnEd9ff34lvpQ46z6cEdLfbgH04cZwIANFwPRmvUINQw1kpoiq46Z9VVpLQ3hTuy8f1ZdGARCcvBEItDtMfso9fERk+H2c/jE7ye1JTU2LFAgEBg3qyHUhp0NKidgYy2RGreRmusSaXZ9cOLMaaFu0dHMZDFNzpEXP9xNas8r0uRZ00K99KT5qKQIJZnRH5/UnmigsWEITpyBDWfgIGqITpXtArz2Rjn844d661lnFrk+YoNu2YBaDegAvPZafuz4RKzuuGvWjLpgWzMelEzEiTaniJEen2hCbcEr0nDHYHNtEARE42CKsONHG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LMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+Pz9/Uvj+oYAAAFBSURBVDjLtZTbtoIwDESDooKKVzgiF7koFt3//38+aIEiLs+L89R0zWrSSSYiP8HEj9NSqTKN/ckHihtXNKhid4Bih1cMqNDuc2YJQBHtl46z3EUFQDIzOfMcyDaWjq1NBuRz450c6r9x92oc1JB33rITuKz6FXgXSNq6QqhX73/xagibv18h0MHhfD7ocwBXrUQMWVPPDW76PMogfulcwabJAdAEa6ie2vtQWMMkqwBfZ4tkmCSRzpfC/hNpC6mIiJSwNEkAt4OIyAJKERFR4LyTOIuIOKAGSPdhkpkuug+mS2H3aVabwk0JTBy1BKaYBloxp0ZbDLRtMRvcxejUNFhc1RmVLgJQbnfovC9D9xxf78v4Po0QjIx6+kZ4Weq0bi21Pr1ZqjXnduE4i+1x0Jwidqi+2vx/C6O3eqa/WW4PDPQ4oVW3WKoAAAAASUVORK5CYII=";var OrderVip=defineComponent({name:'OrderVideo',props:{item:{type:Object,default:{}}},render:function render(){var _this=this;var item=this.item;return createVNode("div",{"class":styles.videoOrder},[createVNode(CellGroup,{"class":'mb12',"border":false,"style":{borderRadius:'8px',overflow:'hidden'}},{default:function _default(){return[createVNode(Cell,{"center":true,"titleClass":styles.titleClass},{icon:function icon(){return createVNode(Image,{"class":styles.memberLogo,"src":iconMember},null);},title:function title(){return createVNode("div",{"class":styles.container},[createVNode("div",{"class":styles.title},[createTextVNode("\u5C0F\u9177Ai"),item.title]),createVNode("div",{"class":styles.price},[createVNode("i",null,[createTextVNode("\xA5")]),_this.$filters.moneyFormat(item.price)])]);}}),createVNode(Cell,{"center":true},{title:function title(){return createVNode("div",{"class":styles.timerCell},[createVNode("div",{"class":styles.timerTitle},[createVNode(Icon,{"name":iconTimer,"size":18},null),createVNode("span",{"style":{paddingLeft:'5px'}},[createTextVNode("\u751F\u6548\u65F6\u95F4")])]),createVNode("div",{"class":styles.timer},[item.startTime,createTextVNode(" \u81F3 "),item.endTime])]);}})];}})])// 视频课
  2. ;}});var index=exports('default',defineComponent({name:'order-detail',data:function data(){var query=this.$route.query;return{loading:false,// 是否加载中,为了处理0元订单()
  3. orderType:query.orderType,recomUserId:query.recomUserId,// 推荐人id
  4. activityId:query.activityId,// 活动编号
  5. id:query.id,agreeStatus:false,popupShow:false,paymentStatus:false,orderAmount:0,// 订单金额,用于使用优惠券,余额,优惠等
  6. orderPrice:0,// 支付金额,最后支付金额
  7. dataLoading:true,paymentWay:[]};},unmounted:function unmounted(){// 销毁时解绑监听
  8. orderStatus.orderInfo={orderNo:'',actualPrice:0,payStatus:false};},computed:{orderList:function orderList(){// 商品列表
  9. var orderObject=orderStatus.orderObject;return orderObject.orderList||[];}},mounted:function mounted(){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res,paranValue,item;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.get('/api-student/sysConfig/queryByParamName',{params:{paramName:'payment_channel_action'}});case 3:res=_context.sent;paranValue=res.data.paranValue;_this2.paymentWay=paranValue?JSON.parse(paranValue):[];_context.next=10;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);case 10:// 判断是否是曲目购买(只有智能陪练才会有入口),其它地方不会有入口
  10. _this2.dataLoading=true;if(!(_this2.orderType=='MUSIC'&&_this2.id)){_context.next=28;break;}_context.prev=12;_context.next=15;return getMusicDetail(_this2.id);case 15:item=_context.sent;orderStatus.orderObject.orderType='MUSIC';orderStatus.orderObject.orderName=item.musicSheetName;orderStatus.orderObject.orderDesc=item.musicSheetName;orderStatus.orderObject.actualPrice=item.musicPrice;orderStatus.orderObject.recomUserId=_this2.recomUserId;orderStatus.orderObject.activityId=_this2.activityId;// 判断当前订单是否在支付中
  11. if(['WAIT_PAY','PAYING'].includes(item.orderStatus)){orderStatus.orderObject.orderNo=item.orderNo;}else if(['PAID','CLOSE','FAIL'].includes(item.orderStatus)){// 判断订单是否是其它状态
  12. Toast('订单有误');postMessage({api:'back',content:{}});}orderStatus.orderObject.orderList=[_objectSpread({orderType:'MUSIC',goodsName:item.musicSheetName,actualPrice:item.musicPrice},item)];_context.next=28;break;case 26:_context.prev=26;_context.t1=_context["catch"](12);case 28:_this2.orderAmount=orderStatus.orderObject.actualPrice||0;_this2.orderPrice=orderStatus.orderObject.actualPrice||0;_this2.dataLoading=false;// 0元支付特别处理
  13. if(_this2.orderPrice===0&&orderStatus.orderObject.orderType){_this2.loading=true;_this2.onSubmit();}case 32:case"end":return _context.stop();}}},_callee,null,[[0,8],[12,26]]);}))();},methods:{onAuthSuccess:function onAuthSuccess(){this.popupShow=false;this.onSubmit();// 实名成功后自动支付
  14. },onSubmit:function onSubmit(){var _this3=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var users,orderObject,url,res,result;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:if(!(_this3.orderPrice>0)){_context2.next=8;break;}if(_this3.agreeStatus){_context2.next=4;break;}Toast('请先阅读并同意《管乐迷平台服务协议》');return _context2.abrupt("return");case 4:users=state.user.data;// 判断是否需要实名认证
  15. if(!(!(users!==null&&users!==void 0&&users.realName)||!(users!==null&&users!==void 0&&users.idCardNo))){_context2.next=8;break;}_this3.popupShow=true;return _context2.abrupt("return");case 8:if(!orderStatus.orderObject.orderNo){_context2.next=11;break;}_this3.paymentStatus=true;return _context2.abrupt("return");case 11:_context2.prev=11;orderObject=orderStatus.orderObject;url=state.platformType==='TEACHER'?'/api-teacher/userOrder/executeOrder':'/api-student/userOrder/executeOrder';_context2.next=16;return request.post(url,{data:{orderName:orderObject.orderName,orderDesc:orderObject.orderDesc,orderType:orderObject.orderType,actualPrice:_this3.orderPrice||0,recomUserId:orderObject.recomUserId,activityId:orderObject.activityId,couponId:orderObject.couponId,orderInfos:_toConsumableArray(orderInfos())}});case 16:res=_context2.sent;result=res.data||{};// 支付成功
  16. if(!(result.status=='PAID')){_context2.next=21;break;}_this3.$router.replace({path:'/tradeDetail',query:{orderNo:result.orderNo}});return _context2.abrupt("return");case 21:// 拉起支付方式
  17. orderStatus.orderObject.orderNo=result.orderNo;orderStatus.orderObject.actualPrice=result.actualPrice;_this3.paymentStatus=true;_context2.next=30;break;case 26:_context2.prev=26;_context2.t0=_context2["catch"](11);_this3.loading=false;if(_this3.orderPrice===0){Dialog.alert({title:'提示',message:'支付失败,请稍后重试!',confirmButtonText:'确定',confirmButtonColor:'#01C1B5'});}case 30:case"end":return _context2.stop();}}},_callee2,null,[[11,26]]);}))();},onBackOut:function onBackOut(){// 关闭订单后需要重置数据
  18. resestState();},onCouponSelect:function onCouponSelect(item){console.log('onCouponSelect',item);var discountCount=0;(item||[]).forEach(function(item){discountCount+=Number(item.discountPrice);});var lastAmount=Number((Number(this.orderAmount)-Number(discountCount)).toFixed(2));this.orderPrice=lastAmount>=0?lastAmount:0;// 设置优惠券编号
  19. var couponIds=(item||[]).map(function(item){return item.couponIssueId;});orderStatus.orderObject.couponId=couponIds.join(',')||'';}},render:function render(){var _this4=this;return createVNode("div",{"class":styles$1['order-detail']},[createVNode(ColHeader,null,null),!this.loading&&createVNode(Fragment,null,[this.orderList.map(function(item){if(item.orderType==='VIP'){return createVNode(OrderVip,{"item":item},null);}}),!this.dataLoading&&createVNode(UseCoupons,{"discountPrice":orderStatus.orderObject.discountPrice,"orderType":this.orderType,"orderAmount":this.orderAmount,"onCouponSelect":this.onCouponSelect,"disabled":orderStatus.orderObject.orderNo?true:false},null),createVNode("div",{"class":styles$1.paymentInfo},[this.orderPrice>0&&createVNode("div",{"class":styles$1.protocol},[createVNode(ColProtocol,{"modelValue":this.agreeStatus,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.agreeStatus=$event;},"showHeader":true,"style":{paddingLeft:0,paddingRight:0}},null)]),createVNode("div",{"class":styles$1.btnGroup},[createVNode("div",{"class":styles$1.priceSection},[createTextVNode("\u652F\u4ED8\u91D1\u989D\uFF1A"),createVNode("div",{"class":styles$1.price},[createVNode("span",{"class":styles$1.priceUnit},[createTextVNode("\uFFE5")]),createVNode("span",{"class":styles$1.priceNum},[moneyFormat(this.orderPrice)])])]),createVNode(Button,{"type":"primary","round":true,"class":styles$1.btn,"onClick":this.onSubmit},{default:function _default(){return[createTextVNode("\u7ACB\u5373\u652F\u4ED8")];}})])])]),createVNode(ColPopup,{"modelValue":this.popupShow,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.popupShow=$event;}},{default:function _default(){return[createVNode(UserAuth,{"onSuccess":_this4.onAuthSuccess},null)];}}),createVNode(Popup,{"show":this.paymentStatus,"closeOnClickOverlay":false,"position":"bottom","round":true,"closeOnPopstate":true,"safeAreaInsetBottom":true,"style":{minHeight:'30%'}},{default:function _default(){return[createVNode(Payment,{"paymentWay":_this4.paymentWay,"modelValue":_this4.paymentStatus,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.paymentStatus=$event;},"orderInfo":orderStatus.orderObject,"onBackOut":_this4.onBackOut},null)];}})]);}}));}};});})();