(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33ae6ca6"],{"00fd":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return u});n("a481");var r=n("f8b7"),i=n("cba2"),o=n("74f9");function a(t){return new Promise(function(e,n){i["a"].confirm({mes:"确认取消该订单?",opts:function(){Object(r["a"])(t).then(function(t){i["a"].success("取消成功"),e(t)}).catch(function(t){i["a"].error("取消失败"),n(t)})}})})}function s(t){return new Promise(function(e,n){Object(r["o"])(t).then(function(t){i["a"].success("收货成功"),e(t)}).catch(function(t){i["a"].error("收货失败"),n(t)})})}function c(t){return new Promise(function(e,n){i["a"].confirm({mes:"确认删除该订单?",opts:function(){Object(r["c"])(t).then(function(t){i["a"].success("删除成功"),e(t)}).catch(function(t){i["a"].error("删除失败"),n(t)})}})})}function u(t,e,n){return new Promise(function(a,s){i["a"].loading.open(""),Object(r["k"])(t,e,n).then(function(t){var e=t.data;switch(i["a"].loading.close(),e.status){case"WECHAT_H5_PAY":s(e),setTimeout(function(){location.replace(e.result.jsConfig.mweb_url)},100);break;case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"PAY_DEFICIENCY":i["a"].toast({mes:t.msg}),s(e);break;case"SUCCESS":i["a"].success(t.msg),a(e);break;case"WECHAT_PAY":Object(o["pay"])(e.result.jsConfig).then(function(){a(e)})}}).catch(function(t){i["a"].loading.close(),i["a"].toast({mes:t.msg||"订单支付失败"})})})}},"029b":function(t,e,n){},"2a23":function(t,e,n){"use strict";var r=n("fde3"),i=n.n(r);i.a},"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("795b"),i=n.n(r);function o(t,e,n,r,o,a,s){try{var c=t[a](s),u=c.value}catch(l){return void n(l)}c.done?e(u):i.a.resolve(u).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new i.a(function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)})}}},"713c":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"orderGoods"},[n("div",{staticClass:"total"},[t._v("共"+t._s(t.cartInfo.length)+"件商品")]),n("div",{staticClass:"goodWrapper"},t._l(t.cartInfo,function(e){return n("div",{key:e.id,staticClass:"item acea-row row-between-wrapper"},[n("div",{staticClass:"pictrue"},[n("img",{staticClass:"image",attrs:{src:e.productInfo.image}})]),n("div",{staticClass:"text"},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("div",{staticClass:"name line1"},[t._v(t._s(e.productInfo.store_name))]),n("div",{staticClass:"num"},[t._v("x "+t._s(e.cart_num))])]),e.productInfo.attrInfo?n("div",{staticClass:"attr line1"},[t._v("\n "+t._s(e.productInfo.attrInfo.suk)+"\n ")]):t._e(),n("div",{staticClass:"money font-color-red"},[t._v("¥"+t._s(e.truePrice))]),3===t.evaluate?n("div",{staticClass:"evaluate",on:{click:function(n){return t.$router.push({path:"/goods_evaluate/"+e.unique})}}},[t._v("\n 评价\n ")]):t._e()])])}),0)])},i=[],o=(n("c5f6"),{name:"OrderGoods",props:{evaluate:Number,cartInfo:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{}}),a=o,s=n("2877"),c=Object(s["a"])(a,r,i,!1,null,null,null);e["a"]=c.exports},"795b":function(t,e,n){t.exports=n("696e")},"92b7":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"payment",class:!0===t.value?"on":""},[n("div",{staticClass:"title acea-row row-center-wrapper"},[t._v("\n 选择付款方式"),n("span",{staticClass:"iconfont icon-guanbi",on:{click:t.close}})]),-1!==t.types.indexOf("weixin")?n("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("weixin")}}},[t._m(0),n("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("alipay")?n("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("alipay")}}},[t._m(1),n("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("yue")?n("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("yue")}}},[n("div",{staticClass:"left acea-row row-between-wrapper"},[n("div",{staticClass:"iconfont icon-yuezhifu"}),n("div",{staticClass:"text"},[n("div",{staticClass:"name"},[t._v("余额支付")]),n("div",{staticClass:"info"},[t._v("\n 当前可用余额:"),n("span",{staticClass:"money"},[t._v(t._s(t.balance))])])])]),n("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("offline")?n("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("offline")}}},[t._m(2),n("div",{staticClass:"iconfont icon-xiangyou"})]):t._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"mask",on:{click:t.close}})])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left acea-row row-between-wrapper"},[n("div",{staticClass:"iconfont icon-weixinzhifu"}),n("div",{staticClass:"text"},[n("div",{staticClass:"name"},[t._v("微信支付")]),n("div",{staticClass:"info"},[t._v("使用微信快捷支付")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left acea-row row-between-wrapper"},[n("div",{staticClass:"iconfont icon-zhifubao"}),n("div",{staticClass:"text"},[n("div",{staticClass:"name"},[t._v("支付宝支付")]),n("div",{staticClass:"info"},[t._v("使用线上支付宝支付")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left acea-row row-between-wrapper"},[n("div",{staticClass:"iconfont icon-yuezhifu1"}),n("div",{staticClass:"text"},[n("div",{staticClass:"name"},[t._v("线下支付")]),n("div",{staticClass:"info"},[t._v("选择线下付款方式")])])])}],o=(n("c5f6"),{name:"Payment",props:{value:{type:Boolean,default:!1},balance:{type:[Number,String],default:0},types:{type:Array,default:function(){return["weixin","alipay","yue","offline"]}}},data:function(){return{}},mounted:function(){},methods:{checked:function(t){this.$emit("checked",t),this.close()},close:function(){this.$emit("input",!1)}}}),a=o,s=(n("2a23"),n("2877")),c=Object(s["a"])(a,r,i,!1,null,"54b2b916",null);e["a"]=c.exports},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=x(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var l="suspendedStart",d="suspendedYield",f="executing",p="completed",v={};function h(){}function y(){}function m(){}var _={};_[o]=function(){return this};var w=Object.getPrototypeOf,g=w&&w(w(T([])));g&&g!==n&&r.call(g,o)&&(_=g);var b=m.prototype=h.prototype=Object.create(_);function C(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){function e(n,i,o,a){var s=u(t[n],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},function(t){return e("throw",t,o,a)})}a(s.arg)}var n;function i(t,r){function i(){return new Promise(function(n,i){e(t,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=i}function x(t,e,n){var r=l;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=u(t,e,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function I(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function T(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"9d97":function(t,e,n){t.exports=n.p+"h5/img/writeOff.e1bf8d03.jpg"},afa3:function(t,e,n){t.exports=n.p+"h5/img/line.05bf1c84.jpg"},b11c:function(t,e,n){"use strict";var r=n("029b"),i=n.n(r);i.a},b311:function(t,e,n){ /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ (function(e,n){t.exports=n()})(0,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var r="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},i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,l.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(c.default);function y(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=h},function(t,e,n){"use strict";var r="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},i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=u},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r=0?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>0&&9!=t.status.type}}),r("div",{staticClass:"iconfont",class:[1===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=1&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}),1===t.orderInfo.shipping_type?r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>1&&6!=t.status.type&&9!=t.status.type}}):t._e(),1===t.orderInfo.shipping_type?r("div",{staticClass:"iconfont",class:[2===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=2&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}):t._e(),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>2&&6!=t.status.type&&9!=t.status.type}}),r("div",{staticClass:"iconfont",class:[3===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=3&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]}),r("div",{staticClass:"line",class:{"bg-color-red":t.status.type>3&&6!=t.status.type&&9!=t.status.type}}),r("div",{staticClass:"iconfont",class:[4==t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=4&&6!=t.status.type&&9!=t.status.type?"font-color-red":""]})])]),2===t.orderInfo.shipping_type&&1===t.orderInfo.paid?r("div",{staticClass:"writeOff"},[r("div",{staticClass:"title"},[t._v("核销信息")]),r("div",{staticClass:"grayBg"},[r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:t.orderInfo.code}})])]),t._m(0),r("div",{staticClass:"num"},[t._v(t._s(t.orderInfo._verify_code))]),r("div",{staticClass:"rules"},[r("div",{staticClass:"item"},[t._m(1),r("div",{staticClass:"info"},[t._v("\n 每日:"),r("span",{staticClass:"time"},[t._v(t._s(t.system_store.day_time))])])]),t._m(2)])]):t._e(),2===t.orderInfo.shipping_type&&1===t.orderInfo.paid?r("div",{staticClass:"map acea-row row-between-wrapper"},[r("div",[t._v("自提地址信息")]),r("div",{staticClass:"place cart-color acea-row row-center-wrapper",on:{click:t.showChang}},[r("span",{staticClass:"iconfont icon-weizhi"}),t._v("查看位置\n ")])]):t._e(),1===t.orderInfo.shipping_type?r("div",{staticClass:"address"},[r("div",{staticClass:"name"},[t._v("\n "+t._s(t.orderInfo.real_name)),r("span",{staticClass:"phone"},[t._v(t._s(t.orderInfo.user_phone))])]),r("div",[t._v(t._s(t.orderInfo.user_address))])]):r("div",{staticClass:"address"},[r("div",{staticClass:"name"},[t._v("\n "+t._s(t.system_store.name)),r("span",{staticClass:"phone"},[t._v(t._s(t.system_store.phone))]),r("a",{staticClass:"iconfont icon-tonghua font-color-red",attrs:{href:"tel:"+t.system_store.phone}})]),r("div",[t._v(t._s(t.system_store._detailed_address))])]),1===t.orderInfo.shipping_type?r("div",{staticClass:"line"},[r("img",{attrs:{src:n("afa3")}})]):t._e()],r("OrderGoods",{attrs:{evaluate:t.status.type||0,cartInfo:t.orderInfo.cartInfo||[]}}),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("订单编号:")]),r("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.order_id)),r("span",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":t.orderInfo.order_id}},[t._v("复制")])])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("下单时间:")]),r("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderInfo.add_time_y+" "+t.orderInfo.add_time_h)+"\n ")])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("订单类型:")]),r("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderTypeName)+"\n ")])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付状态:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.paid?"已支付":"未支付"))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付方式:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo._status._payType))])]),t.orderInfo.mark?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("买家留言:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.mark))])]):t._e()]),0!=t.orderInfo.status?r("div",["express"===t.orderInfo.delivery_type?r("div",{staticClass:"wrapper"},[t._m(3),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("快递公司:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("快递号:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_id||""))])])]):r("div",{staticClass:"wrapper"},[t._m(4),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送人:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送电话:")]),r("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.delivery_id||"")),r("span",{staticClass:"copy"},[t._v("拨打")])])])])]):t._e(),t.refundOrder?r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("收货人:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.real_name))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("联系电话:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_phone))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("收货地址:")]),r("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_address))])])]):t._e(),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("支付金额:")]),r("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.total_price))])]),t.orderInfo.coupon_price>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("优惠券抵扣:")]),r("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.coupon_price))])]):t._e(),t.orderInfo.use_integral>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("积分抵扣:")]),r("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.deduction_price))])]):t._e(),t.orderInfo.pay_postage>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("运费:")]),r("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.pay_postage))])]):t._e(),r("div",{staticClass:"actualPay acea-row row-right"},[t._v("\n 实付款:"),r("span",{staticClass:"money font-color-red"},[t._v("¥"+t._s(t.orderInfo.pay_price))])])]),!t.refundOrder&&t.offlineStatus?r("div",{staticStyle:{height:"1.2rem"}}):t._e(),!t.refundOrder&&t.offlineStatus?r("div",{staticClass:"footer acea-row row-right row-middle"},[0===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:t.cancelOrder}},[t._v("取消订单")]),r("div",{staticClass:"bnt bg-color-red",on:{click:function(e){t.pay=!0}}},[t._v("立即付款")])]:t._e(),1===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:function(e){return t.$router.push({path:"/order/refund/"+t.orderInfo.order_id})}}},[t._v("\n 申请退款\n ")])]:t._e(),2===t.status.type?[r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")]),r("div",{staticClass:"bnt bg-color-red",on:{click:t.takeOrder}},[t._v("\n 确认收货\n ")])]:t._e(),3===t.status.type&&"express"===t.orderInfo.delivery_type?[r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")])]:t._e(),4===t.status.type?[r("div",{staticClass:"bnt cancel",on:{click:t.delOrder}},[t._v("\n 删除订单\n ")]),r("div",{staticClass:"bnt default",on:{click:function(e){return t.$router.push({path:"/order/logistics/"+t.orderInfo.order_id})}}},[t._v("\n 查看物流\n ")])]:t._e(),6===t.status.type?[r("div",{staticClass:"bnt bg-color-red",on:{click:function(e){return t.$router.push({path:"/activity/group_rule/"+t.orderInfo.pink_id})}}},[t._v("\n 查看拼团\n ")])]:t._e()],2):t._e(),r("Payment",{attrs:{types:t.payType,balance:t.userInfo.now_money},on:{checked:t.toPay},model:{value:t.pay,callback:function(e){t.pay=e},expression:"pay"}}),t.mapShow?r("div",{staticClass:"geoPage"},[r("iframe",{attrs:{width:"100%",height:"100%",frameborder:"0",scrolling:"no",src:"https://apis.map.qq.com/uri/v1/geocoder?coord="+t.system_store.latitude+","+t.system_store.longitude+"&referer="+t.mapKey}})]):t._e()],2)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"gear"},[r("img",{attrs:{src:n("9d97")}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rulesTitle acea-row row-middle"},[n("span",{staticClass:"iconfont icon-shijian"}),t._v("核销时间\n ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item"},[n("div",{staticClass:"rulesTitle acea-row row-middle"},[n("span",{staticClass:"iconfont icon-shuoming1"}),t._v("使用说明\n ")]),n("div",{staticClass:"info"},[t._v("可将二维码出示给店员扫描或提供数字核销码")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("配送方式:")]),n("div",{staticClass:"conter"},[t._v("\n 发货\n ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("配送方式:")]),n("div",{staticClass:"conter"},[t._v("\n 送货\n ")])])}],o=(n("96cf"),n("3b8d")),a=(n("a481"),n("7f7f"),n("cebc")),s=n("713c"),c=n("f8b7"),u=n("b311"),l=n.n(u),d=n("92b7"),f=n("ed08"),p=n("2f62"),v=n("00fd"),h=n("74f9"),y="OrderDetails",m={name:y,components:{OrderGoods:s["a"],Payment:d["a"]},props:{},data:function(){return{offlinePayStatus:2,orderTypeName:"普通订单",orderTypeNameStatus:!0,offlineStatus:!0,id:this.$route.params.id,orderInfo:{_status:{}},status:{},pay:!1,payType:["yue","weixin"],from:Object(f["d"])()?"weixin":"weixinh5",system_store:{},mapKay:"",mapShow:!1}},computed:Object(a["a"])({refundOrder:function(){return this.orderInfo.refund_status>0}},Object(p["b"])(["userInfo"])),watch:{$route:function(t){t.name===y&&this.id!==t.params.id&&(this.id=t.params.id,this.getDetail())}},inject:["app"],mounted:function(){this.getDetail(),this.$nextTick(function(){var t=this,e=document.getElementsByClassName("copy-data"),n=new l.a(e);n.on("success",function(){t.$dialog.success("复制成功")})})},methods:{showChang:function(){if(Object(f["d"])()){var t={latitude:parseFloat(this.system_store.latitude),longitude:parseFloat(this.system_store.longitude),name:this.system_store.name,address:this.system_store._detailed_address};Object(h["wechatEvevt"])("openLocation",t).then(function(t){console.log(t)}).catch(function(e){e.is_ready&&e.wx.openLocation(t)})}else{if(!this.mapKey)return this.$dialog.error("暂无法使用查看地图,请配置您的腾讯地图key");this.mapShow=!0}},goBack:function(){var t=this.app.history,e=t[t.length-1]||{};return"MyOrder"===e.name?this.$router.go(-1):this.$router.replace({path:"/order/list/"})},cancelOrder:function(){var t=this;Object(v["a"])(this.orderInfo.order_id).then(function(){setTimeout(function(){return t.goBack()},300)}).catch(function(){t.getDetail()})},takeOrder:function(){var t=this;Object(v["d"])(this.orderInfo.order_id).finally(function(){t.getDetail()})},delOrder:function(){var t=this;Object(v["b"])(this.orderInfo.order_id).then(function(){setTimeout(function(){return t.goBack()},300)})},setOfflinePayStatus:function(t){var e=this;e.offlinePayStatus=t,1===t&&!0===e.orderTypeNameStatus&&e.payType.push("offline")},getOrderStatus:function(){var t=this.orderInfo||{},e=t._status||{_type:0},n={},r=parseInt(e._type),i=t.delivery_type,o=t.seckill_id?parseInt(t.seckill_id):0,a=t.bargain_id?parseInt(t.bargain_id):0,s=t.combination_id?parseInt(t.combination_id):0;n={type:r,class_status:0},1===r&&s>0&&(n.type=6,n.class_status=1),2===r&&"express"===i&&(n.class_status=2),2===r&&(n.class_status=3),4!==r&&0!==r||(n.class_status=4),o||a||s||3!==r&&4!==r||(n.class_status=5),9==r&&(n.class_status=0,this.offlineStatus=!1),this.status=n},getDetail:function(){var t=this,e=this.id;if(!e)return this.$dialog.error("订单不存在");Object(c["i"])(e).then(function(e){t.orderInfo=e.data,t.getOrderStatus(),t.orderInfo.combination_id>0?(t.orderTypeName="拼团订单",t.orderTypeNameStatus=!1):t.orderInfo.bargain_id>0?(t.orderTypeName="砍价订单",t.orderTypeNameStatus=!1):t.orderInfo.seckill_id>0&&(t.orderTypeName="秒杀订单",t.orderTypeNameStatus=!1),t.system_store=e.data.system_store||{},t.mapKey=e.data.mapKey,t.setOfflinePayStatus(t.orderInfo.offlinePayStatus)}).catch(function(e){t.$dialog.error(e.msg)})},toPay:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=this,t.next=3,Object(v["c"])(this.orderInfo.order_id,e,n.from).then(function(){}).catch(function(t){"WECHAT_H5_PAY"===t.status&&n.$router.push({path:"/order/status/"+n.orderInfo.order_id+"/0"})});case 3:n.getDetail();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}()}},_=m,w=(n("b11c"),n("2877")),g=Object(w["a"])(_,r,i,!1,null,"15d1bbac",null);e["default"]=g.exports},f8b7:function(t,e,n){"use strict";n.d(e,"m",function(){return i}),n.d(e,"l",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return u}),n.d(e,"a",function(){return l}),n.d(e,"i",function(){return d}),n.d(e,"h",function(){return f}),n.d(e,"n",function(){return p}),n.d(e,"o",function(){return v}),n.d(e,"c",function(){return h}),n.d(e,"d",function(){return y}),n.d(e,"k",function(){return m}),n.d(e,"j",function(){return _});var r=n("b775");function i(t){return r["a"].post("/order/confirm",{cartId:t})}function o(t,e){return r["a"].post("/order/computed/"+t,e)}function a(t){return r["a"].get("/coupons/order/"+(parseFloat(t)||0))}function s(t,e){return r["a"].post("/order/create/"+t,e||{})}function c(){return r["a"].get("/order/data")}function u(t){return r["a"].get("/order/list",t)}function l(t){return r["a"].post("/order/cancel",{id:t})}function d(t){return r["a"].get("/order/detail/"+t)}function f(){return r["a"].get("/order/refund/reason")}function p(t){return r["a"].post("/order/refund/verify",t)}function v(t){return r["a"].post("/order/take",{uni:t})}function h(t){return r["a"].post("/order/del",{uni:t})}function y(t){return r["a"].get("order/express/"+t)}function m(t,e,n){return r["a"].post("order/pay",{uni:t,paytype:e,from:n})}function _(t,e){return r["a"].post("order/order_verific",{verify_code:t,is_confirm:e})}},fde3:function(t,e,n){}}]); //# sourceMappingURL=chunk-33ae6ca6.86f00a36.js.map