1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["GoodsOrderDetail"],{"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",i="minute",a="hour",s="day",u="week",c="month",l="quarter",d="year",f="date",h="Invalid Date",p=/^(\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,c),i=r-o<0,a=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:u,d:s,D:f,h:a,m:i,s:o,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",w={};w[_]=m;var D=function(t){return t instanceof x},S=function t(e,r,n){var o;if(!e)return _;if("string"==typeof e){var i=e.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var a=e.split("-");if(!o&&a.length>1)return t(a[0])}else{var s=e.name;w[s]=e,o=s}return!n&&o&&(_=o),o||!n&&_},$=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new x(r)},b=g;b.l=S,b.i=D,b.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=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(b.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(p);if(n){var o=n[2]-1||0,i=(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,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}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 b},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,e){var r=$(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return $(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<$(t)},y.$g=function(t,e,r){return b.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=!!b.u(e)||e,l=b.p(t),h=function(t,e){var o=b.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?o:o.endOf(s)},p=function(t,e){return b.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?h(1,0):h(31,11);case c:return n?h(1,m):h(0,m+1);case u:var _=this.$locale().weekStart||0,w=(v<_?v+7:v)-_;return h(n?y-w:y+(6-w),m);case s:case f:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case i:return p(g+"Seconds",2);case o:return p(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,u=b.p(t),l="set"+(this.$u?"UTC":""),h=(r={},r[s]=l+"Date",r[f]=l+"Date",r[c]=l+"Month",r[d]=l+"FullYear",r[a]=l+"Hours",r[i]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],p=u===s?this.$D+(e-this.$W):e;if(u===c||u===d){var v=this.clone().set(f,1);v.$d[h](p),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[b.p(t)]()},y.add=function(n,l){var f,h=this;n=Number(n);var p=b.p(l),v=function(t){var e=$(h);return b.w(e.date(e.date()+Math.round(t*n)),h)};if(p===c)return this.set(c,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===s)return v(1);if(p===u)return v(7);var m=(f={},f[i]=e,f[a]=r,f[o]=t,f)[p]||1,y=this.$d.getTime()+n*m;return b.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||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].slice(0,i)},d=function(t){return b.s(i%12||12,t,"0")},f=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:b.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return n.replace(v,(function(t,e){return e||p[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,h){var p,v=b.p(f),m=$(n),y=(m.utcOffset()-this.utcOffset())*e,g=this-m,_=b.m(this,m);return _=(p={},p[d]=_/12,p[c]=_,p[l]=_/3,p[u]=(g-y)/6048e5,p[s]=(g-y)/864e5,p[a]=g/r,p[i]=g/e,p[o]=g/t,p)[v]||g,h?_:b.a(_)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return w[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 b.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=x.prototype;return $.prototype=O,[["$ms",n],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),$.extend=function(t,e){return t.$i||(t(e,x,$),t.$i=!0),$},$.locale=S,$.isDayjs=D,$.unix=function(t){return $(1e3*t)},$.en=w[_],$.Ls=w,$.p={},$}))},"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=[],i=(r("325c"),r("71c2")),a=r("d678"),s=r("485a"),u=r("b092");function c(t){return c="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},c(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",i=n.asyncIterator||"@@asyncIterator",a=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 u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return M()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,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 u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=u;var f={};function h(){}function p(){}function v(){}var m={};s(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==e&&r.call(g,o)&&(m=g);var _=v.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(o,i,a,s){var u=d(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}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 $(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function O(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,i=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 i.next=i}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=v,s(_,"constructor",v),s(v,"constructor",p),p.displayName=s(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(D.prototype),s(D.prototype,i,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new D(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),s(_,a,"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,x.prototype={constructor:x,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(b),!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 a.type="throw",a.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 i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},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),b(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;b(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,s,"next",t)}function s(t){d(i,n,o,a,s,"throw",t)}a(void 0)}))}}var h={name:"goodsOrder",components:{MHeader:i["a"],MEmpty:a["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(u["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}}},p=h,v=(r("1e6a"),r("2877")),m=Object(v["a"])(p,n,o,!1,null,"31385cb6",null);e["default"]=m.exports},"9ba1":function(t,e,r){}}]);
|