| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["GoodsOrderDetail"],{"0bb3":function(t,e,r){},"1e6a":function(t,e,r){"use strict";r("9ba1")},"325c":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));r("5a0c");function n(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/Mac OS X/),android:t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPhone:t.indexOf("DAYAAPPI")>-1,isApp:t.indexOf("DAYAAPPI")>-1||t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:t.indexOf("MicroMessenger")>-1,huawei:!!t.match(/huawei/i)||!!t.match(/honor/i),xiaomi:!!t.match(/mi\s/i)||!!t.match(/redmi/i)||!!t.match(/mix/i)}}function o(){var t=window.location.href,e="";return e=/test/.test(t)?"http://mstutest.dayaedu.com":/dev/.test(t)?"http://mstudev.dayaedu.com":/online/.test(t)?"https://mstuonline.dayaedu.com":"http://mstutest.dayaedu.com",e}},"485a":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("433b");var n=r("d399");function o(t){t?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},"5a0c":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",a="minute",i="hour",s="day",c="week",u="month",l="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),a=r-o<0,i=e.clone().add(n+(a?-1:1),u);return+(-(n+(r-o)/(a?o-i:i-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:c,d:s,D:f,h:i,m:a,s:o,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",b={};b[_]=m;var w=function(t){return t instanceof O},S=function t(e,r,n){var o;if(!e)return _;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(o=a),r&&(b[a]=r,o=a);var i=e.split("-");if(!o&&i.length>1)return t(i[0])}else{var s=e.name;b[s]=e,o=s}return!n&&o&&(_=o),o||!n&&_},D=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new O(r)},x=g;x.l=S,x.i=w,x.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var r=D(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return D(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<D(t)},y.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,n=!!x.u(e)||e,l=x.p(t),p=function(t,e){var o=x.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?o:o.endOf(s)},h=function(t,e){return x.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},v=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case d:return n?p(1,0):p(31,11);case u:return n?p(1,m):p(0,m+1);case c:var _=this.$locale().weekStart||0,b=(v<_?v+7:v)-_;return p(n?y-b:y+(6-b),m);case s:case f:return h(g+"Hours",0);case i:return h(g+"Minutes",1);case a:return h(g+"Seconds",2);case o:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,c=x.p(t),l="set"+(this.$u?"UTC":""),p=(r={},r[s]=l+"Date",r[f]=l+"Date",r[u]=l+"Month",r[d]=l+"FullYear",r[i]=l+"Hours",r[a]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[c],h=c===s?this.$D+(e-this.$W):e;if(c===u||c===d){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[x.p(t)]()},y.add=function(n,l){var f,p=this;n=Number(n);var h=x.p(l),v=function(t){var e=D(p);return x.w(e.date(e.date()+Math.round(t*n)),p)};if(h===u)return this.set(u,this.$M+n);if(h===d)return this.set(d,this.$y+n);if(h===s)return v(1);if(h===c)return v(7);var m=(f={},f[a]=e,f[i]=r,f[o]=t,f)[h]||1,y=this.$d.getTime()+n*m;return x.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=x.z(this),a=this.$H,i=this.$m,s=this.$M,c=r.weekdays,u=r.months,l=function(t,r,o,a){return t&&(t[r]||t(e,n))||o[r].slice(0,a)},d=function(t){return x.s(a%12||12,t,"0")},f=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:x.s(s+1,2,"0"),MMM:l(r.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,c,2),ddd:l(r.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(a),HH:x.s(a,2,"0"),h:d(1),hh:d(2),a:f(a,i,!0),A:f(a,i,!1),m:String(i),mm:x.s(i,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:o};return n.replace(v,(function(t,e){return e||h[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,p){var h,v=x.p(f),m=D(n),y=(m.utcOffset()-this.utcOffset())*e,g=this-m,_=x.m(this,m);return _=(h={},h[d]=_/12,h[u]=_,h[l]=_/3,h[c]=(g-y)/6048e5,h[s]=(g-y)/864e5,h[i]=g/r,h[a]=g/e,h[o]=g/t,h)[v]||g,p?_:x.a(_)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return x.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=O.prototype;return D.prototype=$,[["$ms",n],["$s",o],["$m",a],["$H",i],["$W",s],["$M",u],["$y",d],["$D",f]].forEach((function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),D.extend=function(t,e){return t.$i||(t(e,O,D),t.$i=!0),D},D.locale=S,D.isDayjs=w,D.unix=function(t){return D(1e3*t)},D.en=b[_],D.Ls=b,D.p={},D}))},"5b0f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"goodsOrder"},[r("m-header",{attrs:{backUrl:t.backUrl}}),t.goodsDetail?r("van-cell-group",{staticClass:"order-section",staticStyle:{"margin-top":"0.1rem"}},t._l(t.goodsDetail.goodsJson,(function(e,n){return r("van-cell",{key:n,staticClass:"input-cell",attrs:{"is-link":"",center:!0},on:{click:function(r){return t.getGoodsDetail(e)}},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" x "+t._s(e.goodsNum)+" ")]},proxy:!0}],null,!0)},[r("template",{slot:"icon"},[r("van-image",{staticClass:"logo",attrs:{src:e.image},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}],null,!0)})],1),r("template",{slot:"title"},[t._v("\n "+t._s(e.goodsName)+"\n "),r("p",{staticClass:"money"},[t._v("¥"+t._s(t._f("moneyFormat")(e.goodsPrice)))])])],2)})),1):t._e(),t.goodsDetail?r("van-cell-group",{staticClass:"order-section order-info"},[r("p",{staticClass:"order-item"},[r("span",[t._v("订单总金额")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(t.allPrice)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("应付金额")]),r("span",{staticStyle:{color:"#ff3535"}},[t._v("¥"+t._s(t._f("moneyFormat")(t.goodsDetail.totalAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("乐器减免")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.marketAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("优惠券")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.couponRemitFee)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("余额支付")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.balancePaymentAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("现金支付")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(t.goodsDetail.actualAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("订单状态")]),"SUCCESS"==t.goodsDetail.status?r("span",{staticStyle:{color:"#01c1b5"}},[t._v("支付成功")]):r("span",{staticStyle:{color:"#ff3535"}},[t._v("待支付")])]),r("p",{staticClass:"order-item"},[r("span",[t._v("学员姓名")]),r("span",[t._v(t._s(t.goodsDetail.userName))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("收货状态")]),"NO_RECEIVE"==t.goodsDetail.receiveStatus?r("span",{staticStyle:{color:"#ff802c"}},[t._v("未确认收货")]):t._e(),"AUTO_RECEIVE"==t.goodsDetail.receiveStatus?r("span",[t._v("自动确认收货")]):t._e(),"MANUAL_RECEIVE"==t.goodsDetail.receiveStatus?r("span",[t._v("手动确认收货")]):t._e()]),r("p",{staticClass:"order-item"},[r("span",[t._v("订单号")]),r("span",[t._v(t._s(t.goodsDetail.orderNo))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("交易流水号")]),r("span",{staticStyle:{"max-width":"60%","word-break":"break-all","line-height":"1.5"}},[t._v(t._s(t.goodsDetail.transNo))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("创建时间")]),r("span",[t._v(t._s(t.goodsDetail.createTime))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("付款时间")]),r("span",[t._v(t._s(t.goodsDetail.payTime))])])]):t._e(),r("van-popup",{staticClass:"goodsDetail",style:{height:"100%"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.goodsStatus,callback:function(e){t.goodsStatus=e},expression:"goodsStatus"}},[r("m-header",{attrs:{backUrl:t.backUrl2,name:"商品详情"}}),r("van-cell-group",[r("van-cell",{staticClass:"input-cell",attrs:{center:!0}},[r("template",{slot:"icon"},[r("van-image",{staticClass:"logo",staticStyle:{width:"1rem",height:"1rem"},attrs:{src:t.popupGoodsDetail.image},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])})],1),r("template",{slot:"title"},[r("div",[t._v(t._s(t.popupGoodsDetail.name))]),r("van-tag",{staticStyle:{margin:"0.04rem 0"},attrs:{plain:"",color:"#C2A076"}},[t._v("品牌:"+t._s(t.popupGoodsDetail.brand))]),r("div",{staticClass:"price-section"},[r("span",{staticClass:"money"},[r("i",[t._v("现价:¥")]),t._v(t._s(t._f("moneyFormat")(t.popupGoodsDetail.discountPrice)))]),r("del",[t._v("原价:¥"+t._s(t._f("moneyFormat")(t.popupGoodsDetail.marketPrice)))])])],1)],2)],1),r("van-cell-group",[r("van-cell",{attrs:{title:"品牌","value-class":"valueStyle",value:t.popupGoodsDetail.brand,center:!0}}),r("van-cell",{attrs:{title:"商品类型","value-class":"valueStyle",center:!0}},[t._v("\n "+t._s(t._f("shopType")(t.popupGoodsDetail.type))+"\n ")]),r("van-cell",{attrs:{title:"商品分类","value-class":"valueStyle",value:t.popupGoodsDetail.goodsCategoryName,center:!0}}),r("van-cell",{attrs:{title:"具体型号","value-class":"valueStyle",value:t.popupGoodsDetail.specification,center:!0}})],1),r("van-cell-group",{staticStyle:{"margin-bottom":"0.75rem"}},[r("van-cell",{staticStyle:{"flex-direction":"column"},attrs:{title:"商品详情","title-class":"title-detail","value-class":"value-detail",value:t.popupGoodsDetail.desc}})],1),r("van-row",{staticClass:"btn-group",attrs:{gutter:"10",type:"flex",justify:"center"}},[r("van-col",{attrs:{span:"22"}},[r("van-button",{attrs:{type:"primary",color:"#01C1B5",round:"",block:""},on:{click:function(e){t.goodsStatus=!1}}},[t._v("关闭")])],1)],1)],1)],1)},o=[],a=(r("325c"),r("71c2")),i=r("d678"),s=r("485a"),c=r("b092");function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),i=new O(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=c;var f={};function p(){}function h(){}function v(){}var m={};s(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y($([])));g&&g!==e&&r.call(g,o)&&(m=g);var _=v.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,a,i,s){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function $(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,i,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(_),s(_,i,"Generator"),s(_,o,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=$,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){d(a,n,o,i,s,"next",t)}function s(t){d(a,n,o,i,s,"throw",t)}i(void 0)}))}}var p={name:"goodsOrder",components:{MHeader:a["a"],MEmpty:i["a"]},data:function(){var t=this.$route.query,e=this;return{headerStatus:!1,goodsDetail:null,backUrl:{status:!0,path:"/goodsOrder?activeTab="+t.activeTab},backUrl2:{callBack:function(){e.goodsStatus=!1}},goodsStatus:!1,popupGoodsDetail:{}}},mounted:function(){document.title="订单详情",this.__init()},methods:{__init:function(){var t=localStorage.getItem("orderGoodsDetail");t=t?JSON.parse(t):null,this.goodsDetail=t},getGoodsDetail:function(){var t=f(l().mark((function t(e){var r=this;return l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.popupGoodsDetail.id||this.popupGoodsDetail.id!=e.goodsId){t.next=3;break}return this.goodsStatus=!0,t.abrupt("return");case 3:return Object(s["a"])(!0),t.next=6,Object(c["f"])(e.goodsId).then((function(t){Object(s["a"])(!1);var e=t.data;200==e.code&&(r.popupGoodsDetail=e.data,r.goodsStatus=!0)})).catch((function(){Object(s["a"])(!1)}));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},destroyed:function(){localStorage.removeItem("orderGoodsDetail")},computed:{allPrice:function(){var t=0;return Array.isArray(this.goodsDetail.goodsJson)&&this.goodsDetail.goodsJson.forEach((function(e){t+=e.goodsPrice*e.goodsNum})),t}}},h=p,v=(r("1e6a"),r("2877")),m=Object(v["a"])(h,n,o,!1,null,"31385cb6",null);e["default"]=m.exports},"911e":function(t,e,r){"use strict";r("0bb3")},"9ba1":function(t,e,r){},aec3:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"goodsOrder"},[r("m-header",{attrs:{backUrl:t.backUrl}}),t.goodsDetail?r("van-cell-group",{staticClass:"order-section",staticStyle:{"margin-top":"0.1rem"}},t._l(t.goodsDetail.goodsJson,(function(e,n){return r("van-cell",{key:n,staticClass:"input-cell",attrs:{center:!0},scopedSlots:t._u([{key:"icon",fn:function(){return[r("van-image",{staticClass:"logo",attrs:{src:e.productPic},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}],null,!0)})]},proxy:!0},{key:"title",fn:function(){return[t._v("\n "+t._s(e.productName)+"\n "),r("p",{staticClass:"money"},[t._v("¥"+t._s(t._f("moneyFormat")(e.productPrice)))])]},proxy:!0},{key:"default",fn:function(){return[r("span",[t._v(" x "+t._s(e.productQuantity))])]},proxy:!0}],null,!0)})})),1):t._e(),t.goodsDetail?r("van-cell-group",{staticClass:"order-section order-info"},[r("p",{staticClass:"order-item"},[r("span",[t._v("订单总金额")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(t.allPrice)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("应付金额")]),r("span",{staticStyle:{color:"#ff3535"}},[t._v("¥"+t._s(t._f("moneyFormat")(t.goodsDetail.totalAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("乐器减免")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.marketAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("优惠券")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.couponRemitFee)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("余额支付")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(-t.goodsDetail.balancePaymentAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("现金支付")]),r("span",[t._v("¥"+t._s(t._f("moneyFormat")(t.goodsDetail.actualAmount)))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("订单状态")]),"SUCCESS"==t.goodsDetail.status?r("span",{staticStyle:{color:"#01c1b5"}},[t._v("支付成功")]):r("span",{staticStyle:{color:"#ff3535"}},[t._v("待支付")])]),r("p",{staticClass:"order-item"},[r("span",[t._v("学员姓名")]),r("span",[t._v(t._s(t.goodsDetail.userName))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("收货状态")]),"NO_RECEIVE"==t.goodsDetail.receiveStatus?r("span",{staticStyle:{color:"#ff802c"}},[t._v("未确认收货")]):t._e(),"AUTO_RECEIVE"==t.goodsDetail.receiveStatus?r("span",[t._v("自动确认收货")]):t._e(),"MANUAL_RECEIVE"==t.goodsDetail.receiveStatus?r("span",[t._v("手动确认收货")]):t._e()]),r("p",{staticClass:"order-item"},[r("span",[t._v("订单号")]),r("span",[t._v(t._s(t.goodsDetail.orderNo))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("交易流水号")]),r("span",{staticStyle:{"max-width":"60%","word-break":"break-all","line-height":"1.5"}},[t._v(t._s(t.goodsDetail.transNo))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("创建时间")]),r("span",[t._v(t._s(t.goodsDetail.createTime))])]),r("p",{staticClass:"order-item"},[r("span",[t._v("付款时间")]),r("span",[t._v(t._s(t.goodsDetail.payTime))])])]):t._e(),r("van-popup",{staticClass:"goodsDetail",style:{height:"100%"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.goodsStatus,callback:function(e){t.goodsStatus=e},expression:"goodsStatus"}},[r("m-header",{attrs:{backUrl:t.backUrl2,name:"商品详情"}}),r("van-cell-group",[r("van-cell",{staticClass:"input-cell",attrs:{center:!0}},[r("template",{slot:"icon"},[r("van-image",{staticClass:"logo",staticStyle:{width:"1rem",height:"1rem"},attrs:{src:t.popupGoodsDetail.image},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])})],1),r("template",{slot:"title"},[r("div",[t._v(t._s(t.popupGoodsDetail.name))]),r("van-tag",{staticStyle:{margin:"0.04rem 0"},attrs:{plain:"",color:"#C2A076"}},[t._v("品牌:"+t._s(t.popupGoodsDetail.brand))]),r("div",{staticClass:"price-section"},[r("span",{staticClass:"money"},[r("i",[t._v("现价:¥")]),t._v(t._s(t._f("moneyFormat")(t.popupGoodsDetail.discountPrice)))]),r("del",[t._v("原价:¥"+t._s(t._f("moneyFormat")(t.popupGoodsDetail.marketPrice)))])])],1)],2)],1),r("van-cell-group",[r("van-cell",{attrs:{title:"品牌","value-class":"valueStyle",value:t.popupGoodsDetail.brand,center:!0}}),r("van-cell",{attrs:{title:"商品类型","value-class":"valueStyle",center:!0}},[t._v("\n "+t._s(t._f("shopType")(t.popupGoodsDetail.type))+"\n ")]),r("van-cell",{attrs:{title:"商品分类","value-class":"valueStyle",value:t.popupGoodsDetail.goodsCategoryName,center:!0}}),r("van-cell",{attrs:{title:"具体型号","value-class":"valueStyle",value:t.popupGoodsDetail.specification,center:!0}})],1),r("van-cell-group",{staticStyle:{"margin-bottom":"0.75rem"}},[r("van-cell",{staticStyle:{"flex-direction":"column"},attrs:{title:"商品详情","title-class":"title-detail","value-class":"value-detail",value:t.popupGoodsDetail.desc}})],1),r("van-row",{staticClass:"btn-group",attrs:{gutter:"10",type:"flex",justify:"center"}},[r("van-col",{attrs:{span:"22"}},[r("van-button",{attrs:{type:"primary",color:"#01C1B5",plain:"",round:"",block:""},on:{click:function(e){t.goodsStatus=!1}}},[t._v("关闭")])],1)],1)],1)],1)},o=[],a=r("71c2"),i=r("d678"),s=r("485a"),c=r("ba25");function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),i=new O(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=c;var f={};function p(){}function h(){}function v(){}var m={};s(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y($([])));g&&g!==e&&r.call(g,o)&&(m=g);var _=v.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,a,i,s){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function $(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,i,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(_),s(_,i,"Generator"),s(_,o,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=$,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){d(a,n,o,i,s,"next",t)}function s(t){d(a,n,o,i,s,"throw",t)}i(void 0)}))}}var p={name:"goodsOrder",components:{MHeader:a["a"],MEmpty:i["a"]},data:function(){var t=this.$route.query,e=this;return{headerStatus:!1,goodsDetail:null,backUrl:{status:!0,path:"/shopGoodsOrder?activeTab="+t.activeTab},backUrl2:{callBack:function(){e.goodsStatus=!1}},goodsStatus:!1,popupGoodsDetail:{}}},mounted:function(){document.title="订单详情",this.__init()},methods:{__init:function(){var t=localStorage.getItem("shopOrderGoodsDetail");t=t?JSON.parse(t):null,this.goodsDetail=t},getGoodsDetail:function(){var t=f(l().mark((function t(e){var r=this;return l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.popupGoodsDetail.id||this.popupGoodsDetail.id!=e.goodsId){t.next=3;break}return this.goodsStatus=!0,t.abrupt("return");case 3:return Object(s["a"])(!0),t.next=6,Object(c["goodsGet"])(e.goodsId).then((function(t){Object(s["a"])(!1);var e=t.data;200==e.code&&(r.popupGoodsDetail=e.data,r.goodsStatus=!0)})).catch((function(){Object(s["a"])(!1)}));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},destroyed:function(){localStorage.removeItem("shopOrderGoodsDetail")},computed:{allPrice:function(){var t=0;return Array.isArray(this.goodsDetail.goodsJson)&&this.goodsDetail.goodsJson.forEach((function(e){t+=e.productPrice*e.productQuantity})),t}}},h=p,v=(r("911e"),r("2877")),m=Object(v["a"])(h,n,o,!1,null,"5ab863fc",null);e["default"]=m.exports},ba25:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return s})),r.d(e,"d",(function(){return c}));var n=r("2b7c");function o(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/home/content",method:"get",params:t})}var a=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/product/search",method:"post",data:t})},i=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/member/address/list/".concat(t.userId),method:"get"})},s=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/cart/addAll",method:"post",data:t})},c=function(t){return Object(n["a"])({baseURL:"/api-mall-portal",url:"/order/teacher/generateOrder",method:"post",data:t})}}}]);
|