(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-708dd8a7"],{"3b8d":function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("795b"),o=r.n(n);function i(t,e,r,n,i,a,s){try{var c=t[a](s),l=c.value}catch(u){return void r(u)}c.done?e(l):o.a.resolve(l).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new o.a(function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)})}}},"680d":function(t,e,r){"use strict";var n=r("b96f"),o=r.n(n);o.a},"713c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"orderGoods"},[r("div",{staticClass:"total"},[t._v("共"+t._s(t.cartInfo.length)+"件商品")]),r("div",{staticClass:"goodWrapper"},t._l(t.cartInfo,function(e){return r("div",{key:e.id,staticClass:"item acea-row row-between-wrapper"},[r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.productInfo.image,expression:"cart.productInfo.image"}],staticClass:"image",attrs:{alt:"img"}})]),r("div",{staticClass:"text"},[r("div",{staticClass:"acea-row row-between-wrapper"},[r("div",{staticClass:"name line1"},[t._v(t._s(e.productInfo.store_name))]),r("div",{staticClass:"num"},[t._v("x "+t._s(e.cart_num))])]),e.productInfo.attrInfo?r("div",{staticClass:"attr line1"},[t._v("\n "+t._s(e.productInfo.attrInfo.suk)+"\n ")]):t._e(),r("div",{staticClass:"money font-color-red"},[t._v("\n ¥"+t._s(e.productInfo.attrInfo?e.productInfo.attrInfo.price:e.productInfo.price)+"\n ")]),3===t.evaluate?r("div",{staticClass:"evaluate",on:{click:function(r){return t.$router.push({path:"/goods_evaluate/"+e.unique})}}},[t._v("\n 评价\n ")]):t._e()])])}),0)])},o=[],i=(r("c5f6"),{name:"OrderGoods",props:{evaluate:Number,cartInfo:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{}}),a=i,s=r("2877"),c=Object(s["a"])(a,n,o,!1,null,null,null);e["a"]=c.exports},"795b":function(t,e,r){t.exports=r("696e")},"8b76":function(t,e,r){},"92b7":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"payment",class:!0===t.value?"on":""},[r("div",{staticClass:"title acea-row row-center-wrapper"},[t._v("\n 选择付款方式"),r("span",{staticClass:"iconfont icon-guanbi",on:{click:t.close}})]),-1!==t.types.indexOf("weixin")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("weixin")}}},[t._m(0),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("alipay")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("alipay")}}},[t._m(1),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("yue")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("yue")}}},[r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-yuezhifu"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("余额支付")]),r("div",{staticClass:"info"},[t._v("\n 当前可用余额:"),r("span",{staticClass:"money"},[t._v(t._s(t.balance))])])])]),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e(),-1!==t.types.indexOf("offline")?r("div",{staticClass:"item acea-row row-between-wrapper",on:{click:function(e){return t.checked("offline")}}},[t._m(2),r("div",{staticClass:"iconfont icon-xiangyou"})]):t._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"mask",on:{click:t.close}})])},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-weixinzhifu"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("微信支付")]),r("div",{staticClass:"info"},[t._v("使用微信快捷支付")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-zhifubao"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("支付宝支付")]),r("div",{staticClass:"info"},[t._v("使用线上支付宝支付")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left acea-row row-between-wrapper"},[r("div",{staticClass:"iconfont icon-yuezhifu1"}),r("div",{staticClass:"text"},[r("div",{staticClass:"name"},[t._v("线下支付")]),r("div",{staticClass:"info"},[t._v("选择线下付款方式")])])])}],i=(r("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=i,s=(r("680d"),r("2877")),c=Object(s["a"])(a,n,o,!1,null,"140ca59e",null);e["a"]=c.exports},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=I(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var u="suspendedStart",d="suspendedYield",f="executing",p="completed",v={};function h(){}function y(){}function _(){}var m={};m[i]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==r&&n.call(w,i)&&(m=w);var b=_.prototype=h.prototype=Object.create(m);function C(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){function e(r,o,i,a){var s=l(t[r],t,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,a)})}a(s.arg)}var r;function o(t,n){function o(){return new Promise(function(r,o){e(t,n,r,o)})}return r=r?r.then(o,o):o()}this._invoke=o}function I(t,e,r){var n=u;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return j()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(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(E,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){while(++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9d97":function(t,e,r){t.exports=r.p+"h5/img/writeOff.e1bf8d03.jpg"},afa3:function(t,e,r){t.exports=r.p+"h5/img/line.05bf1c84.jpg"},b311:function(t,e,r){ /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ (function(e,r){t.exports=r()})(0,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";var n="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},o=function(){function t(t,e){for(var r=0;r0&&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"===n(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.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,r=!!document.queryCommandSupported;return e.forEach(function(t){r=r&&!!document.queryCommandSupported(t)}),r}}]),e}(c.default);function y(t,e){var r="data-clipboard-"+t;if(e.hasAttribute(r))return e.getAttribute(r)}t.exports=h},function(t,e,r){"use strict";var n="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},o=function(){function t(t,e){for(var r=0;r0&&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 r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"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":n(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=l},function(t,e){function r(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(t),n.removeAllRanges(),n.addRange(o),e=n.toString()}return e}t.exports=r},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;for(n;n=0?"font-color-red":""]}),n("div",{staticClass:"line",class:{"bg-color-red":t.status.type>0&&9!=t.status.type}}),n("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?n("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?n("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(),n("div",{staticClass:"line",class:{"bg-color-red":t.status.type>2&&6!=t.status.type&&9!=t.status.type}}),n("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":""]}),n("div",{staticClass:"line",class:{"bg-color-red":t.status.type>3&&6!=t.status.type&&9!=t.status.type}}),n("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?n("div",{staticClass:"writeOff"},[n("div",{staticClass:"title"},[t._v("核销信息")]),n("div",{staticClass:"grayBg"},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.orderInfo.code}})])]),t._m(0),n("div",{staticClass:"num"},[t._v(t._s(t.orderInfo._verify_code))]),n("div",{staticClass:"rules"},[n("div",{staticClass:"item"},[t._m(1),n("div",{staticClass:"info"},[t._v("\n 每日:"),n("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?n("div",{staticClass:"map acea-row row-between-wrapper"},[n("div",[t._v("自提地址信息")]),n("div",{staticClass:"place cart-color acea-row row-center-wrapper",on:{click:t.showChang}},[n("span",{staticClass:"iconfont icon-weizhi"}),t._v("查看位置\n ")])]):t._e(),1===t.orderInfo.shipping_type?n("div",{staticClass:"address"},[n("div",{staticClass:"name"},[t._v("\n "+t._s(t.orderInfo.real_name)),n("span",{staticClass:"phone"},[t._v(t._s(t.orderInfo.user_phone))])]),n("div",[t._v(t._s(t.orderInfo.user_address))])]):n("div",{staticClass:"address"},[n("div",{staticClass:"name"},[t._v("\n "+t._s(t.system_store.name)),n("span",{staticClass:"phone"},[t._v(t._s(t.system_store.phone))]),n("a",{staticClass:"iconfont icon-tonghua font-color-red",attrs:{href:"tel:"+t.system_store.phone}})]),n("div",[t._v(t._s(t.system_store._detailed_address))])]),1===t.orderInfo.shipping_type?n("div",{staticClass:"line"},[n("img",{attrs:{src:r("afa3")}})]):t._e()],n("OrderGoods",{attrs:{evaluate:t.status.type||0,cartInfo:t.orderInfo.cartInfo||[]}}),n("div",{staticClass:"goodCall",on:{click:function(e){return t.$router.push({path:"/customer/list?orderId="+t.orderInfo.order_id})}}},[n("span",{staticClass:"iconfont icon-kefu"}),n("span",[t._v("联系客服")])]),n("div",{staticClass:"wrapper"},[n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("订单编号:")]),n("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.order_id)),n("span",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":t.orderInfo.order_id}},[t._v("复制")])])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("下单时间:")]),n("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderInfo.add_time_y+" "+t.orderInfo.add_time_h)+"\n ")])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("订单类型:")]),n("div",{staticClass:"conter"},[t._v("\n "+t._s(t.orderTypeName)+"\n ")])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("支付状态:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.paid?"已支付":"未支付"))])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("支付方式:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo._status._payType))])]),t.orderInfo.mark?n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("买家留言:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.mark))])]):t._e()]),0!=t.orderInfo.status?n("div",["express"===t.orderInfo.delivery_type?n("div",{staticClass:"wrapper"},[t._m(3),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("快递公司:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("快递号:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_id||""))])])]):t._e(),"send"===t.orderInfo.delivery_type?n("div",{staticClass:"wrapper"},[t._m(4),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("配送人:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.delivery_name||""))])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("配送电话:")]),n("div",{staticClass:"conter acea-row row-middle row-right"},[t._v("\n "+t._s(t.orderInfo.delivery_id||"")),n("a",{attrs:{href:"tel:"+t.orderInfo.delivery_id}},[n("span",{staticClass:"copy"},[t._v("拨打")])])])])]):t._e()]):t._e(),t.refundOrder?n("div",{staticClass:"wrapper"},[n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("收货人:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.real_name))])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("联系电话:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_phone))])]),n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("收货地址:")]),n("div",{staticClass:"conter"},[t._v(t._s(t.orderInfo.user_address))])])]):t._e(),n("div",{staticClass:"wrapper"},[n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("支付金额:")]),n("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.total_price))])]),t.orderInfo.coupon_price>0?n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("优惠券抵扣:")]),n("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.coupon_price))])]):t._e(),t.orderInfo.use_integral>0?n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("积分抵扣:")]),n("div",{staticClass:"conter"},[t._v("-¥"+t._s(t.orderInfo.deduction_price))])]):t._e(),t.orderInfo.pay_postage>0?n("div",{staticClass:"item acea-row row-between"},[n("div",[t._v("运费:")]),n("div",{staticClass:"conter"},[t._v("¥"+t._s(t.orderInfo.pay_postage))])]):t._e(),n("div",{staticClass:"actualPay acea-row row-right"},[t._v("\n 实付款:"),n("span",{staticClass:"money font-color-red"},[t._v("¥"+t._s(t.orderInfo.pay_price))])])]),!t.refundOrder&&t.offlineStatus?n("div",{staticStyle:{height:"1.2rem"}}):t._e(),!t.refundOrder&&t.offlineStatus?n("div",{staticClass:"footer acea-row row-right row-middle"},[0===t.status.type?[n("div",{staticClass:"bnt cancel",on:{click:t.cancelOrder}},[t._v("取消订单")]),n("div",{staticClass:"bnt bg-color-red",on:{click:function(e){t.pay=!0}}},[t._v("立即付款")])]:t._e(),1===t.status.type?[n("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?[1===t.orderInfo.paid&&0===t.orderInfo.refund_status?n("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(),"express"===t.orderInfo.delivery_type?n("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(),n("div",{staticClass:"bnt bg-color-red",on:{click:t.takeOrder}},[t._v("\n 确认收货\n ")])]:t._e(),3===t.status.type?[1===t.orderInfo.paid&&0===t.orderInfo.refund_status?n("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(),"express"===t.orderInfo.delivery_type?n("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()]:t._e(),4===t.status.type?[1===t.orderInfo.paid&&0===t.orderInfo.refund_status?n("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(),n("div",{staticClass:"bnt cancel",on:{click:t.delOrder}},[t._v("\n 删除订单\n ")]),"express"===t.orderInfo.delivery_type?n("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()]:t._e(),6===t.status.type?[1===t.orderInfo.paid&&0===t.orderInfo.refund_status?n("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(),n("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(),1===t.orderInfo.paid&&0===t.orderInfo.refund_status&&t.orderInfo.status>=2?n("div",{staticClass:"bnt bg-color-red",on:{click:function(e){return t.goOrderConfirm(t.orderInfo)}}},[t._v("\n 再次购买\n ")]):t._e()],2):t._e(),n("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?n("div",{staticClass:"geoPage"},[n("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(),n("GeneralWindow",{attrs:{generalActive:t.generalActive,generalContent:t.generalContent},on:{closeGeneralWindow:t.closeGeneralWindow}})],2)},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gear"},[n("img",{attrs:{src:r("9d97")}})])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"rulesTitle acea-row row-middle"},[r("span",{staticClass:"iconfont icon-shijian"}),t._v("核销时间\n ")])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item"},[r("div",{staticClass:"rulesTitle acea-row row-middle"},[r("span",{staticClass:"iconfont icon-shuoming1"}),t._v("使用说明\n ")]),r("div",{staticClass:"info"},[t._v("可将二维码出示给店员扫描或提供数字核销码")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送方式:")]),r("div",{staticClass:"conter"},[t._v("\n 发货\n ")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item acea-row row-between"},[r("div",[t._v("配送方式:")]),r("div",{staticClass:"conter"},[t._v("\n 送货\n ")])])}],i=(r("96cf"),r("3b8d")),a=(r("a481"),r("7f7f"),r("cebc")),s=r("713c"),c=r("f8b7"),l=r("b311"),u=r.n(l),d=r("92b7"),f=r("ed08"),p=r("2f62"),v=r("00fd"),h=r("74f9"),y=r("ea53"),_="OrderDetails",m={name:_,components:{OrderGoods:s["a"],Payment:d["a"],GeneralWindow:y["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,generalActive:!1,generalContent:{promoterNum:"",title:""}}},computed:Object(a["a"])({refundOrder:function(){return this.orderInfo.refund_status>0}},Object(p["b"])(["userInfo"])),watch:{$route:function(t){t.name===_&&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"),r=new u.a(e);r.on("success",function(){t.$dialog.success("复制成功")})})},methods:{goOrderConfirm:function(t){var e=this;Object(c["i"])(t.order_id).then(function(t){e.$router.push({path:"/order/submit/"+t.data.cateId})}).catch(function(t){e.$dialog.error(t.msg)})},closeGeneralWindow:function(t){this.generalActive=t,this.getDetail()},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;this.$dialog.loading.open("正在加载中"),Object(v["e"])(this.orderInfo.order_id).then(function(e){return"0.00"!=e.data.gain_integral&&"0.00"!=e.data.gain_coupon||e.data.gain_integral>0&&e.data.gain_coupon>0?(t.$dialog.loading.close(),t.generalActive=!0,void(t.generalContent={promoterNum:"恭喜您获得".concat(e.data.gain_coupon,"元优惠券以及").concat(e.data.gain_integral,"积分,购买商品时可抵现哦~"),title:"恭喜您获得优惠礼包"})):"0.00"!=e.data.gain_integral||e.data.gain_integral>0?(t.$dialog.loading.close(),t.generalActive=!0,void(t.generalContent={promoterNum:"恭喜您获得".concat(e.data.gain_integral,"积分,购买商品时可抵现哦~"),title:"赠送积分"})):"0.00"!=e.data.gain_coupon||e.data.gain_coupon>0?(t.$dialog.loading.close(),t.generalActive=!0,void(t.generalContent={promoterNum:"恭喜您获得".concat(e.data.gain_coupon,"元优惠券,购买商品时可抵现哦~"),title:"恭喜您获得优惠券"})):(t.$dialog.loading.close(),t.$dialog.success("收货成功"),void t.getDetail())}).catch(function(e){t.$dialog.loading.close(),t.$dialog.error(e.msg)})},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},r={},n=parseInt(e._type),o=t.delivery_type,i=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;r={type:n,class_status:0},1===n&&s>0&&(r.type=6,r.class_status=1),2===n&&"express"===o&&(r.class_status=2),2===n&&(r.class_status=3),4!==n&&0!==n||(r.class_status=4),i||a||s||3!==n&&4!==n||(r.class_status=5),9==n&&(r.class_status=0,this.offlineStatus=!1),this.status=r},getDetail:function(){var t=this,e=this.id;if(!e)return this.$dialog.error("订单不存在");Object(c["j"])(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),t.$nextTick(function(){var t=this,e=document.getElementsByClassName("copy-data"),r=new u.a(e);r.on("success",function(){t.$dialog.success("复制成功")})})}).catch(function(e){t.$dialog.error(e.msg),t.$router.go(-1)})},toPay:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return r=this,t.next=3,Object(v["d"])(this.orderInfo.order_id,e,r.from).then(function(){}).catch(function(t){"WECHAT_H5_PAY"===t.status&&r.$router.push({path:"/order/status/"+r.orderInfo.order_id+"/0"})});case 3:r.getDetail();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}()}},g=m,w=(r("cf7a"),r("2877")),b=Object(w["a"])(g,n,o,!1,null,"061a4e0c",null);e["default"]=b.exports}}]); //# sourceMappingURL=chunk-708dd8a7.efc08d73.js.map