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 o})),r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return a}));r("5a0c");function o(){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 n(t,e){"string"==typeof t&&(t=t.replace(/-/gi,"/"));var r=new Date(t),o=r.getFullYear()>=10?r.getFullYear():"0"+r.getFullYear(),n=r.getMonth()+1>=10?r.getMonth()+1:"0"+(r.getMonth()+1),a=r.getDate()>=10?r.getDate():"0"+r.getDate();return"ios"==e?o+"/"+n+"/"+a:o+"-"+n+"-"+a}function a(){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 n}));r("433b");var o=r("d399");function n(t){t?o["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):o["a"].clear()}},"5b0f":function(t,e,r){"use strict";r.r(e);var o=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,o){return r("van-cell",{key:o,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)},n=[],a=(r("325c"),r("71c2")),i=r("d678"),s=r("485a"),c=r("b092");function l(t){return l="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},l(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.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(C){s=function(t,e,r){return t[e]=r}}function c(t,e,r,o){var n=e&&e.prototype instanceof f?e:f,a=Object.create(n.prototype),i=new E(o||[]);return a._invoke=function(t,e,r){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return k()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=x(i,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var c=p(t,e,r);if("normal"===c.type){if(o=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=c;var d={};function f(){}function h(){}function v(){}var m={};s(m,n,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==e&&r.call(g,n)&&(m=g);var _=v.prototype=f.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 o(n,a,i,s){var c=p(t[n],t,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,i,s)}),(function(t){o("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,s)}))}s(c.arg)}var n;this._invoke=function(t,r){function a(){return new e((function(e,n){o(t,r,e,n)}))}return n=n?n.then(a,a):a()}}function x(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,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=p(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var n=o.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:k}}function k(){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,o,n,a){void 0===a&&(a=Promise);var i=new w(c(e,r,o,n),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(_),s(_,i,"Generator"),s(_,n,(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 o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,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(D),!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 o(r,o){return i.type="throw",i.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;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,d):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),d},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),D(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;D(r)}return n}}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),d}},t}function p(t,e,r,o,n,a,i){try{var s=t[a](i),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(o,n)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(o,n){var a=t.apply(e,r);function i(t){p(a,o,n,i,s,"next",t)}function s(t){p(a,o,n,i,s,"throw",t)}i(void 0)}))}}var f={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=d(u().mark((function t(e){var r=this;return u().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=f,v=(r("1e6a"),r("2877")),m=Object(v["a"])(h,o,n,!1,null,"31385cb6",null);e["default"]=m.exports},"7f02":function(t,e,r){"use strict";r("ba03")},"9ba1":function(t,e,r){},aec3:function(t,e,r){"use strict";r.r(e);var o=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,o){return r("van-cell",{key:o,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.actualAmount+t.goodsDetail.balancePaymentAmount)))])]),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)},n=[],a=r("71c2"),i=r("d678"),s=r("485a"),c=r("ba25");function l(t){return l="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},l(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.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(C){s=function(t,e,r){return t[e]=r}}function c(t,e,r,o){var n=e&&e.prototype instanceof f?e:f,a=Object.create(n.prototype),i=new E(o||[]);return a._invoke=function(t,e,r){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return k()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=x(i,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var c=p(t,e,r);if("normal"===c.type){if(o=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=c;var d={};function f(){}function h(){}function v(){}var m={};s(m,n,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==e&&r.call(g,n)&&(m=g);var _=v.prototype=f.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 o(n,a,i,s){var c=p(t[n],t,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,i,s)}),(function(t){o("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,s)}))}s(c.arg)}var n;this._invoke=function(t,r){function a(){return new e((function(e,n){o(t,r,e,n)}))}return n=n?n.then(a,a):a()}}function x(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,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=p(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var n=o.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:k}}function k(){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,o,n,a){void 0===a&&(a=Promise);var i=new w(c(e,r,o,n),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(_),s(_,i,"Generator"),s(_,n,(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 o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,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(D),!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 o(r,o){return i.type="throw",i.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;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,d):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),d},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),D(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;D(r)}return n}}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),d}},t}function p(t,e,r,o,n,a,i){try{var s=t[a](i),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(o,n)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(o,n){var a=t.apply(e,r);function i(t){p(a,o,n,i,s,"next",t)}function s(t){p(a,o,n,i,s,"throw",t)}i(void 0)}))}}var f={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=d(u().mark((function t(e){var r=this;return u().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=f,v=(r("7f02"),r("2877")),m=Object(v["a"])(h,o,n,!1,null,"0e57ae38",null);e["default"]=m.exports},ba03:function(t,e,r){},ba25:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),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 o=r("2b7c");function n(t){return Object(o["a"])({baseURL:"/api-mall-portal",url:"/home/content",method:"get",params:t})}var a=function(t){return Object(o["a"])({baseURL:"/api-mall-portal",url:"/product/search",method:"post",data:t})},i=function(t){return Object(o["a"])({baseURL:"/api-mall-portal",url:"/member/address/list/".concat(t.userId),method:"get"})},s=function(t){return Object(o["a"])({baseURL:"/api-mall-portal",url:"/cart/addAll",method:"post",data:t})},c=function(t){return Object(o["a"])({baseURL:"/api-mall-portal",url:"/order/teacher/generateOrder",method:"post",data:t})}}}]);
|