12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ;(function(){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 _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 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}._useCoupon_dzp2v_1{padding-top:.42667rem;padding-bottom:.42667rem}._useCoupon_dzp2v_1 ._couponCount_dzp2v_5{color:#ff3535;font-size:.42667rem;font-weight:600}._useCoupon_dzp2v_1 ._couponCount_dzp2v_5 i{font-style:normal;font-size:.37333rem}._choiceCoupon_dzp2v_14{display:flex;flex-direction:column;overflow:hidden;height:100%}._couponTitle_dzp2v_20{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:0 .45333rem;height:1.6rem;line-height:1.6rem;font-size:.48rem;font-weight:600;color:#1a1a1a}._couponTitle_dzp2v_20 ._iconClose_dzp2v_32{display:inline-block;width:.64rem;height:.64rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAAG9QTFRFAAAAzMzM8fHx8/Pz6+vr8fHx6urq7Ozs6urq6+vr7Ozs6+vr6+vr6+vr6+vr7Ozs6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr7OzsZmZma2trbGxsgYGBj4+PysrKy8vLzMzMz8/P39/f6+vrszxq/gAAABp0Uk5TAAUSFhkkJVBXZmt1jY+2yM7b6/Hz9Pj8/v60zef/AAABRUlEQVRIx61W2baCMAyMIIvsm6ChgGD+/xvvA4gta+O580TITE+bpEkBljDdMEqzsszSKHRNOIHhxQ+S8Ig944B+De60wj247tAvfkGbKPzLFt9KaBeJteY7OR0gd5b8W0WHqG4L/pNO8FQUTkWnqKRd2TlpILfneCakheQTXZ804U/5LXQFxZjzgLQRAAAYcv28W9EMX3NoRPuW68oAAE9eokXEuvtYXY2Irez3ACCWfwhERPEajddoyf4YwFTqv8GvYuRjo9wPE1zlVEM9KyZ+PSgEF0I1Dt1IE30/fXSqP4RoEblpYSFQPs6MCFLaVmzzKYWM9hVrPmVQrvM5bR9Fv/aVfAF7S+xDs8PKThy7NNjFxy5v/gViX1F2E+C3GXYj47dK3WZs/d7u+QOFP7L4QxHAPhq79n8Mdv7T4YfHic7z5w+yIe8epvSUygAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._couponContent_dzp2v_39{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:.32rem .37333rem;--coupon-point: #fff}._couponFooter_dzp2v_46{display:flex;align-items:center;justify-content:space-between;line-height:1.49333rem;padding:0 .42667rem}._couponFooter_dzp2v_46 ._couponSelectText_dzp2v_53{font-size:.42667rem;color:#1a1a1a}._couponFooter_dzp2v_46 ._couponSelectText_dzp2v_53 span{padding:0 .24rem;font-weight:600;color:#fc1a19}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.c01b86ad.js','./vendor-legacy.73abbe39.js','./index-legacy.564b8047.js','./index-legacy.4b2d517a.js','./index-legacy.dda51a96.js','./orderStatus-legacy.f44528f2.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a.js','./index-legacy.f25f109a4.js','./tradeOrder-legacy.303c3124.js','./item-legacy.a918e11e.js','./index-legacy.f25f109a7.js','./index-legacy.f25f109a8.js','./index-legacy.637f35563.js','./index-legacy.637f3556.js','./index-legacy.f25f109a3.js','./index-legacy.9f5d8c8e.js'],function(exports){'use strict';var ColProtocol,Payment,defineComponent,createVNode,CellGroup,Cell,Image,createTextVNode,Icon,Fragment,Loading,Button,Popup,Toast,Dialog,ColPopup,UserAuth,ColResult,request,state,postMessage,moneyFormat,ColHeader,orderStatus,orderInfos,resestState,getMusicDetail,Item;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;Fragment=module.F;Loading=module.L;Button=module.B;Popup=module.P;Toast=module.T;Dialog=module.D;},function(module){ColPopup=module.C;UserAuth=module.U;},function(module){ColResult=module.C;request=module.r;state=module.s;postMessage=module.p;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(module){Item=module.I;},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$2={"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$1={memberLogo:memberLogo,titleClass:titleClass,title:title,price:price,timerTitle:timerTitle,timer:timer,timerCell:timerCell};var iconMember="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGoAAABkCAYAAABuK6XnAAAAAXNSR0IArs4c6QAADZhJREFUeNrtnAl0VNUZx68ooh5sPaVarD1q22i1SGbLvmcykzCTmYSEbASILNbSiniwWg2udTtNI6jHc7AxtlGptdS6IptLFQETFXDBBXc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k8Ivvcjh6iQaI5yBqOhyO7phDhwb0BHjteAtwhMQnNdc8k+KtWXiybXjwIAYSCZ2QI8mkPL7TMUhqzVyTOM+uNOykEzvsH3aeHoV+T7cnisMmfj+pLakxsuogn46x40ZMhyM9vQf/7ktPTx/AAC+OKNz20YT0xBjB8QdIzTA9kRriWsbuOHAc/wcuSPQjCOd5hwAAAABJRU5ErkJggg==";var iconTimer="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAIRQTFRFAAAAAP//AKqqAP+qK6qqLtGiLtG5Mc6qLsitLsmqMseuLMisK8OoLcisLMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+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$1.videoOrder},[createVNode(CellGroup,{"class":'mb12',"border":false,"style":{borderRadius:'8px',overflow:'hidden'}},{default:function _default(){return[createVNode(Cell,{"center":true,"titleClass":styles$1.titleClass},{icon:function icon(){return createVNode(Image,{"class":styles$1.memberLogo,"src":iconMember},null);},title:function title(){return createVNode("div",{"class":styles$1.container},[createVNode("div",{"class":styles$1.title},[createTextVNode("\u5C0F\u9177Ai"),item.title]),createVNode("div",{"class":styles$1.price},[createVNode("i",null,[createTextVNode("\xA5")]),_this.$filters.moneyFormat(item.price)])]);}}),createVNode(Cell,{"center":true},{title:function title(){return createVNode("div",{"class":styles$1.timerCell},[createVNode("div",{"class":styles$1.timerTitle},[createVNode(Icon,{"name":iconTimer,"size":18},null),createVNode("span",{"style":{paddingLeft:'5px'}},[createTextVNode("\u751F\u6548\u65F6\u95F4")])]),createVNode("div",{"class":styles$1.timer},[item.startTime,createTextVNode(" \u81F3 "),item.endTime])]);}})];}})])// 视频课
- ;}});var useCoupon="_useCoupon_dzp2v_1";var couponCount="_couponCount_dzp2v_5";var choiceCoupon="_choiceCoupon_dzp2v_14";var couponTitle="_couponTitle_dzp2v_20";var iconClose="_iconClose_dzp2v_32";var couponContent="_couponContent_dzp2v_39";var couponFooter="_couponFooter_dzp2v_46";var couponSelectText="_couponSelectText_dzp2v_53";var styles={useCoupon:useCoupon,couponCount:couponCount,choiceCoupon:choiceCoupon,couponTitle:couponTitle,iconClose:iconClose,couponContent:couponContent,couponFooter:couponFooter,couponSelectText:couponSelectText};var ChoiceCoupon=defineComponent({name:'choice-coupon',props:{orderAmount:{type:Number,default:0},useCoupon:{type:Array,default:function _default(){return[];}},couponCategory:{type:String,default:'UNIVERSAL'},couponList:{type:Array,default:function _default(){return[];}}},emits:['close','submit'],data:function data(){return{list:[],// consumeAmount: 0 // 消耗金额
- dataLoading:false};},computed:{// 使用优惠券的数量
- useLength:function useLength(){return this.list.filter(function(list){return list.checked;}).length||0;}},mounted:function mounted(){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var canUsable,canUsed;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:// this.getList()
- // 处理显示已选择的优惠券
- // 处理可用优惠券是否支付使用
- _this2.couponList.forEach(function(item){_this2.useCoupon.forEach(function(coupon){if(item.couponIssueId===coupon.couponIssueId){item.checked=true;}});});canUsable=_this2.couponList.filter(function(list){return!list.disabled;});canUsed=_this2.couponList.filter(function(list){return list.disabled;});_this2.list=[].concat(_toConsumableArray(canUsable),_toConsumableArray(canUsed));_this2.calcCoupon();case 5:case"end":return _context.stop();}}},_callee);}))();},methods:{// async getList() {
- // if (this.dataLoading) return
- // this.dataLoading = true
- // try {
- // const res = await request.post(`${state.platformApi}/couponInfo/page`, {
- // data: {
- // couponCategory: this.couponCategory,
- // couponType: 'FULL_DISCOUNT',
- // useState: 'USABLE',
- // page: 1,
- // rows: 100
- // }
- // })
- // this.dataLoading = false
- // const result = res.data || {}
- // // 处理重复请求数据
- // if (this.list.length > 0 && result.pageNo === 1) return
- // this.list = result.rows || []
- // // 处理可用优惠券是否支付使用
- // this.list.forEach((item: any) => {
- // item.checked = false
- // // 如果使用金额大于订单金额则优惠券不可用
- // if (item.useLimit > this.orderAmount) {
- // item.disabled = true
- // } else {
- // item.disabled = false
- // }
- // // 处理显示已选择的优惠券
- // this.useCoupon.forEach((coupon: any) => {
- // if (item.couponIssueId === coupon.couponIssueId) {
- // item.checked = true
- // }
- // })
- // })
- // // 初始化排序
- // const canUsable = this.list.filter((list: any) => !list.disabled)
- // const canUsed = this.list.filter((list: any) => list.disabled)
- // this.list = [...canUsable, ...canUsed]
- // this.calcCoupon()
- // } catch {
- // //
- // }
- // },
- onSubmit:function onSubmit(){// 返回选中的优惠券
- this.$emit('submit',this.list.filter(function(list){return list.checked;}));this.list.forEach(function(item){item.checked=false;});},onSelect:function onSelect(item){item.checked=!item.checked;this.calcCoupon();},calcCoupon:function calcCoupon(){// 计算优惠券
- // 已使用的优惠券
- var useList=this.list.filter(function(list){return list.checked;});var limitCount=useList.map(function(list){return Number(list.useLimit||0);});var usePrice=limitCount.length>0?limitCount.reduce(function(sum,list){return sum+list;}):0;// 使用优惠券后,可判断的金额
- var useLastAmount=this.orderAmount-usePrice;// 判断使用优惠券之后还有没有其它优惠券可用
- this.list.forEach(function(item){if(Number(item.useLimit)>useLastAmount&&!item.checked){item.disabled=true;}else{item.disabled=false;}});}},render:function render(){var _this3=this;return createVNode("div",{"class":styles.choiceCoupon},[createVNode("div",{"class":styles.couponTitle},[createVNode("span",null,[createTextVNode("\u4F18\u60E0\u5238")]),createVNode("i",{"class":styles.iconClose,"onClick":function onClick(){return _this3.$emit('close');}},null)]),createVNode("div",{"class":styles.couponContent},[!this.dataLoading?createVNode(Fragment,null,[this.list.length>0?createVNode(Fragment,null,[this.list.map(function(item){return createVNode(Item,{"item":item,"isSelect":true,"onClick":_this3.onSelect},null);})]):createVNode(ColResult,{"btnStatus":false,"tips":"暂无优惠券","classImgSize":"SMALL"},null)]):createVNode(Loading,{"size":48,"color":"#01C1B5","vertical":true,"style":{height:'100%',justifyContent:'center'}},{default:function _default(){return[createTextVNode("\u52A0\u8F7D\u4E2D...")];}})]),createVNode("div",{"class":[styles.couponFooter,'van-hairline--top']},[createVNode("div",{"class":styles.couponSelectText},[createTextVNode("\u5DF2\u9009"),createVNode("span",null,[this.useLength]),createTextVNode("\u5F20")]),createVNode(Button,{"type":"primary","round":true,"style":{minWidth:'105px',fontSize:'16px'},"onClick":this.onSubmit},{default:function _default(){return[createTextVNode("\u786E\u5B9A")];}})])]);}});/*
- * 订单类型对应优惠券类型
- */var couponEnum={UNIVERSAL:'UNIVERSAL',VIP:'VIP',PINAO_ROOM:'PIANO',GOODS:'MALL',MUSIC:'MUSIC',PRACTICE:'SPARRING',LIVE:'LIVE',VIDEO:'VIDEO'};var UseCoupon=defineComponent({name:'use-conpon',props:{disabled:{type:Boolean,default:false},orderAmount:{type:Number,default:0},orderType:{type:String,default:''},discountPrice:{// 优惠券使用金额
- type:Number,default:0}},emits:['couponSelect'],data:function data(){return{popupStatus:false,popupLoading:false,useCouponList:[],useCouponLoading:false,useCouponCount:0,dataLoading:false,list:[]};},computed:{couponCount:function couponCount(){var limitCount=this.useCouponList.map(function(list){return Number(list.discountPrice||0);});var count=0;if(this.disabled){count=this.discountPrice;}else{count=limitCount.length>0?limitCount.reduce(function(sum,list){return sum+list;}):0;}return count;},couponCategory:function couponCategory(){// 如果订单类型不在优惠券类型里面,则默认查询通用券
- return couponEnum[this.orderType]||'UNIVERSAL';}},mounted:function mounted(){// this.getUseableCoupon()
- this.getList();},methods:{getList:function getList(){var _this4=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var res,result,count;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:if(!_this4.dataLoading){_context2.next=2;break;}return _context2.abrupt("return");case 2:_this4.dataLoading=true;_context2.prev=3;_context2.next=6;return request.post("".concat(state.platformApi,"/couponInfo/page"),{data:{couponCategory:_this4.couponCategory,couponType:'FULL_DISCOUNT',useState:'USABLE',orderUse:1,page:1,rows:100}});case 6:res=_context2.sent;_this4.dataLoading=false;result=res.data||{};// 处理重复请求数据
- if(!(_this4.list.length>0&&result.pageNo===1)){_context2.next=11;break;}return _context2.abrupt("return");case 11:_this4.list=result.rows||[];// 处理可用优惠券是否支付使用
- _this4.list.forEach(function(item){item.checked=false;// 如果使用金额大于订单金额则优惠券不可用
- if(item.useLimit>_this4.orderAmount){item.disabled=true;}else{item.disabled=false;}});count=0;_this4.list.forEach(function(item){if(!item.disabled){count++;}});console.log(_this4.list,'list');_this4.useCouponCount=count;_context2.next=21;break;case 19:_context2.prev=19;_context2.t0=_context2["catch"](3);case 21:case"end":return _context2.stop();}}},_callee2,null,[[3,19]]);}))();},// async getUseableCoupon() {
- // try {
- // this.useCouponLoading = true
- // // 判断是哪个端
- // const url =
- // state.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
- // const res = await request.get(`${url}/couponInfo/statInfo`)
- // this.useCouponLoading = false
- // const result = (res.data || []).find(
- // result => result.useState === 'USABLE'
- // )
- // this.useCouponCount = result.total || 0
- // } catch {
- // // TODO: handle
- // }
- // },
- onSubmit:function onSubmit(item){// useCouponList
- this.useCouponList=item;this.$emit('couponSelect',item);this.popupStatus=false;this.popupLoading=false;}},render:function render(){var _this5=this;return createVNode(Fragment,null,[createVNode(Cell,{"title":"优惠券","class":styles.useCoupon,"style":{borderRadius:'8px'},"isLink":!this.disabled,"clickable":false,"onClick":function onClick(){if(_this5.disabled)return;_this5.popupStatus=true;_this5.popupLoading=true;}},{value:function value(){return!_this5.useCouponLoading&&createVNode(Fragment,null,[_this5.couponCount>0?createVNode("span",{"class":styles.couponCount},[createVNode("i",null,[createTextVNode("-\uFFE5")]),_this5.couponCount]):createVNode(Fragment,null,[_this5.useCouponCount>0?"".concat(_this5.useCouponCount,"\u5F20\u53EF\u4F7F\u7528"):'暂无可使用优惠券'])]);}}),createVNode(Popup,{"show":this.popupStatus,"onUpdate:show":function onUpdateShow($event){return _this5.popupStatus=$event;},"position":"bottom","round":true,"safeAreaInsetBottom":true,"style":{height:'75%'},"onClosed":function onClosed(){_this5.popupLoading=false;}},{default:function _default(){return[_this5.popupLoading&&createVNode(ChoiceCoupon,{"couponCategory":_this5.couponCategory,"useCoupon":_this5.useCouponList,"orderAmount":_this5.orderAmount,"couponList":_this5.list,"onClose":function onClose(){return _this5.popupStatus=false;},"onSubmit":function onSubmit(item){return _this5.onSubmit(item);}},null)];}})]);}});var index=exports('default',defineComponent({name:'order-detail',data:function data(){var query=this.$route.query;return{loading:false,// 是否加载中,为了处理0元订单()
- orderType:query.orderType,recomUserId:query.recomUserId,// 推荐人id
- activityId:query.activityId,// 活动编号
- id:query.id,agreeStatus:false,popupShow:false,paymentStatus:false,orderAmount:0,// 订单金额,用于使用优惠券,余额,优惠等
- orderPrice:0,// 支付金额,最后支付金额
- dataLoading:true};},unmounted:function unmounted(){// 销毁时解绑监听
- orderStatus.orderInfo={orderNo:'',actualPrice:0,payStatus:false};},computed:{orderList:function orderList(){// 商品列表
- var orderObject=orderStatus.orderObject;return orderObject.orderList||[];}},mounted:function mounted(){var _this6=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){var item;return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:// 判断是否是曲目购买(只有智能陪练才会有入口),其它地方不会有入口
- _this6.dataLoading=true;if(!(_this6.orderType=='MUSIC'&&_this6.id)){_context3.next=18;break;}_context3.prev=2;_context3.next=5;return getMusicDetail(_this6.id);case 5:item=_context3.sent;orderStatus.orderObject.orderType='MUSIC';orderStatus.orderObject.orderName=item.musicSheetName;orderStatus.orderObject.orderDesc=item.musicSheetName;orderStatus.orderObject.actualPrice=item.musicPrice;orderStatus.orderObject.recomUserId=_this6.recomUserId;orderStatus.orderObject.activityId=_this6.activityId;// 判断当前订单是否在支付中
- if(['WAIT_PAY','PAYING'].includes(item.orderStatus)){orderStatus.orderObject.orderNo=item.orderNo;}else if(['PAID','CLOSE','FAIL'].includes(item.orderStatus)){// 判断订单是否是其它状态
- Toast('订单有误');postMessage({api:'back',content:{}});}orderStatus.orderObject.orderList=[_objectSpread({orderType:'MUSIC',goodsName:item.musicSheetName,actualPrice:item.musicPrice},item)];_context3.next=18;break;case 16:_context3.prev=16;_context3.t0=_context3["catch"](2);case 18:_this6.orderAmount=orderStatus.orderObject.actualPrice||0;_this6.orderPrice=orderStatus.orderObject.actualPrice||0;_this6.dataLoading=false;// 0元支付特别处理
- if(_this6.orderPrice===0&&orderStatus.orderObject.orderType){_this6.loading=true;_this6.onSubmit();}case 22:case"end":return _context3.stop();}}},_callee3,null,[[2,16]]);}))();},methods:{onAuthSuccess:function onAuthSuccess(){this.popupShow=false;this.onSubmit();// 实名成功后自动支付
- },onSubmit:function onSubmit(){var _this7=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4(){var users,orderObject,url,res,result;return regeneratorRuntime.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:if(!(_this7.orderPrice>0)){_context4.next=8;break;}if(_this7.agreeStatus){_context4.next=4;break;}Toast('请先阅读并同意《酷乐秀平台服务协议》');return _context4.abrupt("return");case 4:users=state.user.data;// 判断是否需要实名认证
- if(!(!(users!==null&&users!==void 0&&users.realName)||!(users!==null&&users!==void 0&&users.idCardNo))){_context4.next=8;break;}_this7.popupShow=true;return _context4.abrupt("return");case 8:if(!orderStatus.orderObject.orderNo){_context4.next=11;break;}_this7.paymentStatus=true;return _context4.abrupt("return");case 11:_context4.prev=11;orderObject=orderStatus.orderObject;url=state.platformType==='TEACHER'?'/api-teacher/userOrder/executeOrder':'/api-student/userOrder/executeOrder';_context4.next=16;return request.post(url,{data:{orderName:orderObject.orderName,orderDesc:orderObject.orderDesc,orderType:orderObject.orderType,actualPrice:_this7.orderPrice||0,recomUserId:orderObject.recomUserId,activityId:orderObject.activityId,couponId:orderObject.couponId,orderInfos:_toConsumableArray(orderInfos())}});case 16:res=_context4.sent;result=res.data||{};// 支付成功
- if(!(result.status=='PAID')){_context4.next=21;break;}_this7.$router.replace({path:'/tradeDetail',query:{orderNo:result.orderNo}});return _context4.abrupt("return");case 21:// 拉起支付方式
- orderStatus.orderObject.orderNo=result.orderNo;orderStatus.orderObject.actualPrice=result.actualPrice;_this7.paymentStatus=true;_context4.next=30;break;case 26:_context4.prev=26;_context4.t0=_context4["catch"](11);_this7.loading=false;if(_this7.orderPrice===0){Dialog.alert({title:'提示',message:'支付失败,请稍后重试!',confirmButtonText:'确定',confirmButtonColor:'#01C1B5'});}case 30:case"end":return _context4.stop();}}},_callee4,null,[[11,26]]);}))();},onBackOut:function onBackOut(){// 关闭订单后需要重置数据
- 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;// 设置优惠券编号
- var couponIds=(item||[]).map(function(item){return item.couponIssueId;});orderStatus.orderObject.couponId=couponIds.join(',')||'';}},render:function render(){var _this8=this;return createVNode("div",{"class":styles$2['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(UseCoupon,{"discountPrice":orderStatus.orderObject.discountPrice,"orderType":this.orderType,"orderAmount":this.orderAmount,"onCouponSelect":this.onCouponSelect,"disabled":orderStatus.orderObject.orderNo?true:false},null),createVNode("div",{"class":styles$2.paymentInfo},[this.orderPrice>0&&createVNode("div",{"class":styles$2.protocol},[createVNode(ColProtocol,{"modelValue":this.agreeStatus,"onUpdate:modelValue":function onUpdateModelValue($event){return _this8.agreeStatus=$event;},"showHeader":true,"style":{paddingLeft:0,paddingRight:0}},null)]),createVNode("div",{"class":styles$2.btnGroup},[createVNode("div",{"class":styles$2.priceSection},[createTextVNode("\u652F\u4ED8\u91D1\u989D\uFF1A"),createVNode("div",{"class":styles$2.price},[createVNode("span",{"class":styles$2.priceUnit},[createTextVNode("\uFFE5")]),createVNode("span",{"class":styles$2.priceNum},[moneyFormat(this.orderPrice)])])]),createVNode(Button,{"type":"primary","round":true,"class":styles$2.btn,"onClick":this.onSubmit},{default:function _default(){return[createTextVNode("\u7ACB\u5373\u652F\u4ED8")];}})])])]),createVNode(ColPopup,{"modelValue":this.popupShow,"onUpdate:modelValue":function onUpdateModelValue($event){return _this8.popupShow=$event;}},{default:function _default(){return[createVNode(UserAuth,{"onSuccess":_this8.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,{"modelValue":_this8.paymentStatus,"onUpdate:modelValue":function onUpdateModelValue($event){return _this8.paymentStatus=$event;},"orderInfo":orderStatus.orderObject,"onBackOut":_this8.onBackOut},null)];}})]);}}));}};});})();
|