徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
22 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-66c86bde"],{2398:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIzSURBVGiB7dkvbBRBFIDxihMVJ05UVCARFYgKBKKiEoFoQgWyElFRgUA2gQQBogmWpAgcJBgc8kgqEBUVFRUVFScqECcqTvwQu5te2D8zd927WZJ+enffN7Mzb9+bXVm5556ZwfPUDnOBAb7KeJLaZyawjSu3fEztFAV6eKPMNVZT+zWCNfyskIcJNlI71oJNXNbIw8vUjrVgDzcN8gepHWvBYYN4d+Vlm/U4IH+Y2rMS9NVv1oJPqT0ryeWHAfkf6KV2LYF1nAXkf6Of2rVELn8ekB9hPbVriUj5GzxO7VoiX/OnAXnYS+1aQtyGhQ+pXUvI8vz3CPmhjmac4wj5azxI7VoCryPk4WmbQR+18SrxTFb6hjhqw7sIuoWxbM3O/RHJJ2EcIX/axmQVQTf+CTrEYI7nDDTX8wUTbLYpP6oIcm7GL6K4jAOvFi1fcCWyhcN+pPyJFpfOjvBmG2Er8JxNzd1UwRgPW5GfCh4zc2M16Q6rwjVOwX6r8lMSMTl7gt2Ke99Hyp8sRH5K5ChS5GDqnu3Ie5ZzHILPkULvZEXaZeT1hwuXzwfQw7dIqYvI684t8zQtH8SvSLkYGjPYogbRl+Xru5LuVEFcC9jEH6wlG8DUIK4ConUsJufPinC5UcWZLnVYslIhpkQuWP7GDeG2XwjxJbVrLdjVXPzd6GJ/Ow1eNAzgbWq/KHBQIT8yRxeXDOWfEt39/VOH2wr2QpfS5izIir+d1B5z89/O/D134C+N9zTDbeyE4AAAAABJRU5ErkJggg=="},"8cb7":function(t,e,n){"use strict";n("fc3a")},"90e7":function(t,e,n){"use strict";n.d(e,"u",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"wb",(function(){return c})),n.d(e,"vb",(function(){return u})),n.d(e,"X",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"ab",(function(){return f})),n.d(e,"P",(function(){return d})),n.d(e,"kb",(function(){return h})),n.d(e,"H",(function(){return l})),n.d(e,"jb",(function(){return p})),n.d(e,"p",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return b})),n.d(e,"q",(function(){return v})),n.d(e,"r",(function(){return y})),n.d(e,"S",(function(){return j})),n.d(e,"T",(function(){return O})),n.d(e,"Q",(function(){return w})),n.d(e,"R",(function(){return _})),n.d(e,"I",(function(){return x})),n.d(e,"B",(function(){return L})),n.d(e,"F",(function(){return k})),n.d(e,"E",(function(){return A})),n.d(e,"w",(function(){return E})),n.d(e,"G",(function(){return C})),n.d(e,"y",(function(){return I})),n.d(e,"D",(function(){return U})),n.d(e,"x",(function(){return z})),n.d(e,"v",(function(){return P})),n.d(e,"h",(function(){return S})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return G})),n.d(e,"xb",(function(){return V})),n.d(e,"yb",(function(){return F})),n.d(e,"zb",(function(){return N})),n.d(e,"Z",(function(){return B})),n.d(e,"lb",(function(){return J})),n.d(e,"J",(function(){return R})),n.d(e,"nb",(function(){return Q})),n.d(e,"mb",(function(){return X})),n.d(e,"ob",(function(){return q})),n.d(e,"pb",(function(){return W})),n.d(e,"qb",(function(){return Y})),n.d(e,"rb",(function(){return D})),n.d(e,"Ab",(function(){return H})),n.d(e,"Bb",(function(){return K})),n.d(e,"K",(function(){return M})),n.d(e,"f",(function(){return Z})),n.d(e,"Cb",(function(){return $})),n.d(e,"bb",(function(){return tt})),n.d(e,"cb",(function(){return et})),n.d(e,"C",(function(){return nt})),n.d(e,"z",(function(){return rt})),n.d(e,"Y",(function(){return ot})),n.d(e,"db",(function(){return it})),n.d(e,"eb",(function(){return ct})),n.d(e,"fb",(function(){return ut})),n.d(e,"A",(function(){return at})),n.d(e,"L",(function(){return st})),n.d(e,"O",(function(){return ft})),n.d(e,"M",(function(){return dt})),n.d(e,"N",(function(){return ht})),n.d(e,"g",(function(){return lt})),n.d(e,"t",(function(){return pt})),n.d(e,"s",(function(){return mt})),n.d(e,"U",(function(){return gt})),n.d(e,"gb",(function(){return bt})),n.d(e,"ib",(function(){return vt})),n.d(e,"b",(function(){return yt})),n.d(e,"hb",(function(){return jt})),n.d(e,"l",(function(){return Ot})),n.d(e,"a",(function(){return wt})),n.d(e,"k",(function(){return _t})),n.d(e,"j",(function(){return xt})),n.d(e,"sb",(function(){return Lt})),n.d(e,"tb",(function(){return kt})),n.d(e,"ub",(function(){return At})),n.d(e,"m",(function(){return Et})),n.d(e,"V",(function(){return Ct})),n.d(e,"W",(function(){return It}));var r=n("b6bd");function o(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function i(t,e){return Object(r.a)({url:e,method:"get",params:t})}function c(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function u(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function a(){return Object(r.a)({url:"serve/info",method:"get"})}function s(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function d(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function h(){return Object(r.a)({url:"merchant/store",method:"GET"})}function l(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function p(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function m(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function g(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function b(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function v(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function y(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function j(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function O(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function w(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function _(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function x(){return Object(r.a)({url:"setting/role/create",method:"get"})}function L(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function k(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function A(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function E(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function C(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function I(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function U(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function z(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function P(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function S(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function T(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function G(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function V(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function F(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function N(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function B(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function J(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function R(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function Q(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function X(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function q(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function W(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function Y(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function D(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function H(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function K(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function M(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function Z(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function $(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function tt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function et(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function nt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function rt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function ot(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function it(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function ct(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function ut(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function at(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function st(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function ft(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function dt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function ht(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function lt(t){return Object(r.a)({url:"city",method:"get",params:t})}function pt(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function mt(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function gt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function bt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function vt(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function yt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function jt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Ot(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function wt(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function _t(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function xt(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Lt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function kt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function At(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Et(t,e){return Object(r.a)({url:"system/form/update_name/"+t,method:"post",data:e})}function Ct(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function It(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},e90e:function(t,e,n){"use strict";n.r(e);var r=[function(){var t=this._self._c;return t("div",{staticClass:"success"},[t("img",{attrs:{src:n("2398")}})])}],o=n("d708"),i=n("90e7"),c=n("a006");function u(t){return(u="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})(t)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,c=Object.create(i.prototype),u=new z(r||[]);return o(c,"_invoke",{value:E(t,n,u)}),c}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",g="executing",b="completed",v={};function y(){}function j(){}function O(){}var w={};d(w,c,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(P([])));x&&x!==n&&r.call(x,c)&&(w=x);var L=O.prototype=y.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(o,i,c,a){var s=l(t[o],t,i);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==u(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):e.resolve(d).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,a)}))}a(s.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=p;return function(i,c){if(o===g)throw Error("Generator is already running");if(o===b){if("throw"===i)throw c;return{value:t,done:!0}}for(r.method=i,r.arg=c;;){var u=r.delegate;if(u){var a=C(u,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var s=l(e,n,r);if("normal"===s.type){if(o=r.done?b:m,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=b,r.method="throw",r.arg=s.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var c=i.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):c:(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 U(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return j.prototype=O,o(L,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:j,configurable:!0}),j.displayName=d(O,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,d(t,f,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(A.prototype),d(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var c=new A(h(t,n,r,o),i);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(L),d(L,f,"Generator"),d(L,c,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(U),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(a&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),U(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 o=r.arg;U(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function s(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){s(i,r,o,c,u,"next",t)}function u(t){s(i,r,o,c,u,"throw",t)}c(void 0)}))}}var d={name:"mobile_upload",data:function(){return{action:"".concat(o.a.apiBaseURL,"file/scan/upload"),imgList:[],uploading:!1,pid:0,cache:0,type:0,relation_id:0,token:0,maxSize:0,page1Visible:!0}},computed:{imgListPreview:function(){return this.imgList.map((function(t){return{name:t.name,url:URL.createObjectURL(t)}}))},allSize:function(){var t=this.imgList.reduce((function(t,e){return t+e.size}),0);return(t/1e6).toFixed(2)}},created:function(){document.getElementsByName("viewport")[0].content+=",viewport-fit=cover",document.title="手机端扫码上传",this.pid=this.$route.query.pid,this.cache=this.$route.query.cache,this.type=this.$route.query.type,this.relation_id=this.$route.query.relation_id,this.token=this.$route.query.token,this.maxSize=this.$route.query.upload_file_size_max},methods:{chooseImage:function(){this.$refs.upload.handleClick()},removeImage:function(t){for(var e=0;e<this.imgList.length;e++)if(this.imgList[e].name===t){this.imgList.splice(e,1);break}},againUpload:function(){this.page1Visible=!0},confirmUpload:function(){var t=f(a().mark((function t(){var e,n=this;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.imgList.length){t.next=2;break}return t.abrupt("return",!1);case 2:if(!this.uploading){t.next=4;break}return t.abrupt("return",!1);case 4:this.uploading=!0,e=0;case 6:if(!(e<this.imgList.length)){t.next=14;break}return t.next=9,this.uploadImage(this.imgList[e]).catch((function(t){n.$Message.error(t)}));case 9:t.sent,e===this.imgList.length-1&&(this.imgList=[],this.uploading=!1,this.page1Visible=!1);case 11:e++,t.next=6;break;case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),uploadImage:function(t){var e=this;return new Promise((function(n,r){var o=new FormData;o.append("relation_id",e.relation_id),o.append("uploadToken",e.token),o.append("cache",e.cache),o.append("type",e.type),o.append("pid",e.pid),o.append("file",t),o.append("upload_type",0),Object(i.W)(o).then((function(e){200===e.status?n():r("".concat(t.name,"上传失败"))})).catch((function(t){r(t.msg)}))}))},beforeUpload:function(){var t=f(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.size>this.maxSize)){t.next=4;break}return t.next=3,Object(c.a)(e);case 3:e=t.sent;case 4:return this.imgList.push(e),t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}},h=(n("8cb7"),n("2877")),l=Object(h.a)(d,(function(){var t=this,e=t._self._c;return e("div",[t.page1Visible?e("div",{staticClass:"page1"},[e("div",{staticClass:"main"},[t.imgList.length?e("div",{staticClass:"img-list"},t._l(t.imgListPreview,(function(n){return e("div",{key:n.url,staticClass:"item"},[e("img",{attrs:{src:n.url}}),e("Icon",{attrs:{type:"ios-close",size:"17",color:"#FFFFFF"},on:{click:function(e){return t.removeImage(n.name)}}})],1)})),0):t._e(),e("Upload",{directives:[{name:"show",rawName:"v-show",value:!t.imgList.length,expression:"!imgList.length"}],ref:"upload",attrs:{action:t.action,"show-upload-list":!1,"before-upload":t.beforeUpload,multiple:""}},[e("Icon",{attrs:{type:"ios-add",size:"44",color:"#CCCCCC"}}),e("div",[t._v("点击选择图片")])],1)],1),e("div",{staticClass:"footer"},[e("div",{staticClass:"text"},[t.imgList.length?[t._v("\n 共"+t._s(t.imgList.length)+"张,"+t._s(t.allSize)+"M\n ")]:t._e()],2),e("div",{staticClass:"btn",on:{click:t.chooseImage}},[t._v("\n "+t._s(t.imgList.length?"继续选择":"选择图片")+"\n ")]),e("div",{staticClass:"btn primary",class:{disabled:!t.imgList.length||t.uploading},on:{click:t.confirmUpload}},[t._v("\n 确认上传\n ")])])]):e("div",{staticClass:"page2"},[t._m(0),e("div",{staticClass:"text"},[t._v("图片上传成功")]),e("div",{staticClass:"btn",on:{click:t.againUpload}},[t._v("继续上传")])]),t.uploading?e("Spin",{attrs:{fix:""}}):t._e()],1)}),r,!1,null,"7604eae6",null);e.default=l.exports},fc3a:function(t,e,n){}}]);