123456789 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c7885fa6"],{"3e6e":function(t,e,r){},"57f0":function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,c,"next",t)}function c(t){n(a,o,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return o}))},"58d9":function(t,e,r){},"63ff":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 O(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,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<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:j}}function j(){return{value:e,done:!0}}return y.prototype=b.constructor=_,_.constructor=y,_[s]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},C(k.prototype),k.prototype[a]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,o){var i=new k(c(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(b),b[s]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=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<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},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),E(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;E(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)}},"680d":function(t,e,r){"use strict";var n=r("58d9"),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",{staticClass:"image",attrs:{src:e.productInfo.image}})]),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("163d"),{name:"OrderGoods",props:{evaluate:Number,cartInfo:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{}}),a=i,s=r("623f"),c=Object(s["a"])(a,n,o,!1,null,null,null);e["a"]=c.exports},"7cbd":function(t,e,r){
- (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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(1),a=d(i),s=r(3),c=d(s),l=r(4),u=d(l);function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(t,r){f(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(r),n.listenClick(t),n}return v(e,t),o(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(2),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var l=function(){function t(e){c(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&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<o;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,a=n.length;i<a;i++)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}},t.exports=r},function(t,e,r){var n=r(5),o=r(6);function i(t,e,r){if(!t&&!e&&!r)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(t))return a(t,e,r);if(n.nodeList(t))return s(t,e,r);if(n.string(t))return c(t,e,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,r){return t.addEventListener(e,r),{destroy:function(){t.removeEventListener(e,r)}}}function s(t,e,r){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,r)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,r)}))}}}function c(t,e,r){return o(document.body,t,e,r)}t.exports=i},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var r=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,r){var n=r(7);function o(t,e,r,n,o){var i=a.apply(this,arguments);return t.addEventListener(r,i,o),{destroy:function(){t.removeEventListener(r,i,o)}}}function i(t,e,r,n,i){return"function"===typeof t.addEventListener?o.apply(null,arguments):"function"===typeof r?o.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,r,n,i)})))}function a(t,e,r,o){return function(r){r.delegateTarget=n(r.target,e),r.delegateTarget&&o.call(t,r)}}t.exports=i},function(t,e){var r=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function o(t,e){while(t&&t.nodeType!==r){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}t.exports=o}])}))},"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("163d"),{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("623f")),c=Object(s["a"])(a,n,o,!1,null,"140ca59e",null);e["a"]=c.exports},"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"},cf7a:function(t,e,r){"use strict";var n=r("3e6e"),o=r.n(n);o.a},e68f:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"order-details"},[n("div",{staticClass:"header bg-color-red acea-row row-middle",class:t.refundOrder?"on":""},[t.refundOrder?t._e():n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.orderInfo.status_pic}})]),n("div",{staticClass:"data",class:t.refundOrder?"on":""},[n("div",{staticClass:"state"},[t._v(t._s(t.orderInfo._status._msg))]),n("div",[t._v("\n "+t._s(t.orderInfo.add_time_y)),n("span",{staticClass:"time"},[t._v(t._s(t.orderInfo.add_time_h))])])])]),t.refundOrder?t._e():[n("div",{staticClass:"nav"},[n("div",{staticClass:"navCon acea-row row-between-wrapper"},[n("div",{class:{on:0===t.status.type||9===t.status.type}},[t._v("\n 待付款\n ")]),2===t.orderInfo.shipping_type?n("div",{class:{on:1===t.status.type}},[t._v("\n 待核销\n ")]):n("div",{class:{on:1===t.status.type}},[t._v("待发货")]),1===t.orderInfo.shipping_type?n("div",{class:{on:2===t.status.type}},[t._v("\n 待收货\n ")]):t._e(),n("div",{class:{on:3===t.status.type}},[t._v("待评价")]),n("div",{class:{on:4===t.status.type}},[t._v("已完成")])]),n("div",{staticClass:"progress acea-row row-between-wrapper"},[n("div",{staticClass:"iconfont",class:[0===t.status.type||9===t.status.type?"icon-webicon318":"icon-yuandianxiao",t.status.type>=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("5ab2"),r("6d57"),r("e10e"),r("63ff"),r("57f0")),a=(r("f548"),r("cc57"),r("289c")),s=r("713c"),c=r("f8b7"),l=r("7cbd"),u=r.n(l),d=r("92b7"),f=r("ed08"),p=r("08c1"),v=r("00fd"),h=r("74f9"),y=r("ea53");function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){Object(a["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g="OrderDetails",w={name:g,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:m({refundOrder:function(){return this.orderInfo.refund_status>0}},Object(p["b"])(["userInfo"])),watch:{$route:function(t){t.name===g&&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}()}},b=w,C=(r("cf7a"),r("623f")),k=Object(C["a"])(b,n,o,!1,null,"061a4e0c",null);e["default"]=k.exports}}]);
|