chunk-4d0713cc.6090f65d.js 17 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4d0713cc"],{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=="},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"Jb",(function(){return o})),n.d(e,"Ib",(function(){return a})),n.d(e,"j",(function(){return i})),n.d(e,"db",(function(){return s})),n.d(e,"kb",(function(){return d})),n.d(e,"gb",(function(){return f})),n.d(e,"hb",(function(){return m})),n.d(e,"d",(function(){return l})),n.d(e,"eb",(function(){return h})),n.d(e,"Nb",(function(){return p})),n.d(e,"ib",(function(){return g})),n.d(e,"p",(function(){return b})),n.d(e,"o",(function(){return j})),n.d(e,"c",(function(){return O})),n.d(e,"U",(function(){return v})),n.d(e,"mb",(function(){return _})),n.d(e,"T",(function(){return w})),n.d(e,"nb",(function(){return y})),n.d(e,"xb",(function(){return k})),n.d(e,"K",(function(){return A})),n.d(e,"wb",(function(){return x})),n.d(e,"s",(function(){return C})),n.d(e,"q",(function(){return L})),n.d(e,"r",(function(){return U})),n.d(e,"t",(function(){return I})),n.d(e,"u",(function(){return z})),n.d(e,"X",(function(){return E})),n.d(e,"Y",(function(){return V})),n.d(e,"V",(function(){return T})),n.d(e,"W",(function(){return P})),n.d(e,"M",(function(){return F})),n.d(e,"E",(function(){return G})),n.d(e,"I",(function(){return B})),n.d(e,"H",(function(){return S})),n.d(e,"z",(function(){return J})),n.d(e,"J",(function(){return N})),n.d(e,"B",(function(){return Q})),n.d(e,"G",(function(){return R})),n.d(e,"A",(function(){return X})),n.d(e,"y",(function(){return q})),n.d(e,"L",(function(){return D})),n.d(e,"i",(function(){return H})),n.d(e,"e",(function(){return W})),n.d(e,"f",(function(){return K})),n.d(e,"Kb",(function(){return Y})),n.d(e,"Lb",(function(){return M})),n.d(e,"Mb",(function(){return Z})),n.d(e,"lb",(function(){return $})),n.d(e,"yb",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"Ab",(function(){return nt})),n.d(e,"zb",(function(){return rt})),n.d(e,"Bb",(function(){return ut})),n.d(e,"Cb",(function(){return ct})),n.d(e,"Db",(function(){return ot})),n.d(e,"Eb",(function(){return at})),n.d(e,"Ob",(function(){return it})),n.d(e,"Pb",(function(){return st})),n.d(e,"O",(function(){return dt})),n.d(e,"g",(function(){return ft})),n.d(e,"Qb",(function(){return mt})),n.d(e,"ob",(function(){return lt})),n.d(e,"pb",(function(){return ht})),n.d(e,"F",(function(){return pt})),n.d(e,"C",(function(){return gt})),n.d(e,"jb",(function(){return bt})),n.d(e,"qb",(function(){return jt})),n.d(e,"rb",(function(){return Ot})),n.d(e,"sb",(function(){return vt})),n.d(e,"D",(function(){return _t})),n.d(e,"fb",(function(){return wt})),n.d(e,"cb",(function(){return yt})),n.d(e,"P",(function(){return kt})),n.d(e,"S",(function(){return At})),n.d(e,"Q",(function(){return xt})),n.d(e,"R",(function(){return Ct})),n.d(e,"h",(function(){return Lt})),n.d(e,"w",(function(){return Ut})),n.d(e,"v",(function(){return It})),n.d(e,"Z",(function(){return zt})),n.d(e,"tb",(function(){return Et})),n.d(e,"vb",(function(){return Vt})),n.d(e,"b",(function(){return Tt})),n.d(e,"ub",(function(){return Pt})),n.d(e,"n",(function(){return Ft})),n.d(e,"a",(function(){return Gt})),n.d(e,"m",(function(){return Bt})),n.d(e,"l",(function(){return St})),n.d(e,"Fb",(function(){return Jt})),n.d(e,"Gb",(function(){return Nt})),n.d(e,"Hb",(function(){return Qt})),n.d(e,"ab",(function(){return Rt})),n.d(e,"bb",(function(){return Xt}));var r=n("b6bd");function u(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function c(t,e){return Object(r.a)({url:e,method:"get",params:t})}function o(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function a(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function s(){return Object(r.a)({url:"serve/info",method:"get"})}function d(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function f(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function m(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function l(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function p(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function g(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function b(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function j(){return Object(r.a)({url:"serve/export_all",method:"get"})}function O(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function v(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function _(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function w(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function y(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function k(){return Object(r.a)({url:"merchant/store",method:"GET"})}function A(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function x(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function C(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function L(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function U(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function I(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function z(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function E(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function V(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function T(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function P(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function F(){return Object(r.a)({url:"setting/role/create",method:"get"})}function G(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function B(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function S(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function J(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function N(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function Q(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function R(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function X(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function q(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function D(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function H(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function W(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function K(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function Y(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function M(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function Z(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function $(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function tt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function et(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function nt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function rt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function ut(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function ct(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function ot(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function at(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function it(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function st(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function dt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function ft(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function mt(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function lt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function ht(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function pt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function gt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function bt(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function jt(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function Ot(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function vt(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function _t(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function wt(){return Object(r.a)({url:"serve/open",method:"get"})}function yt(){return Object(r.a)({url:"serve/dump_open",method:"get"})}function kt(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function At(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function xt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function Ct(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 Ut(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function It(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function zt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Et(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 Tt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function Pt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Ft(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function Gt(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function Bt(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function St(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Jt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function Nt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Qt(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Rt(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Xt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},ab30:function(t,e,n){},e7e2:function(t,e,n){"use strict";var r=n("ab30");n.n(r).a},e90e:function(t,e,n){"use strict";n.r(e);var r=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"success"},[e("img",{attrs:{src:n("2398")}})])}],u=n("a34a"),c=n.n(u),o=n("d708"),a=n("90e7"),i=n("a006");function s(t,e,n,r,u,c,o){try{var a=t[c](o),i=a.value}catch(t){return void n(t)}a.done?e(i):Promise.resolve(i).then(r,u)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,u){var c=t.apply(e,n);function o(t){s(c,r,u,o,a,"next",t)}function a(t){s(c,r,u,o,a,"throw",t)}o(void 0)}))}}var f={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=d(c.a.mark((function t(){var e,n=this;return c.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 u=new FormData;u.append("relation_id",e.relation_id),u.append("uploadToken",e.token),u.append("cache",e.cache),u.append("type",e.type),u.append("pid",e.pid),u.append("file",t),u.append("upload_type",0),Object(a.bb)(u).then((function(e){200===e.status?n():r("".concat(t.name,"上传失败"))})).catch((function(t){r(t.msg)}))}))},beforeUpload:function(){var t=d(c.a.mark((function t(e){return c.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(i.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)}}()}},m=(n("e7e2"),n("2877")),l=Object(m.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.page1Visible?n("div",{staticClass:"page1"},[n("div",{staticClass:"main"},[t.imgList.length?n("div",{staticClass:"img-list"},t._l(t.imgListPreview,(function(e){return n("div",{key:e.url,staticClass:"item"},[n("img",{attrs:{src:e.url}}),n("Icon",{attrs:{type:"ios-close",size:"17",color:"#FFFFFF"},on:{click:function(n){return t.removeImage(e.name)}}})],1)})),0):t._e(),n("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:""}},[n("Icon",{attrs:{type:"ios-add",size:"44",color:"#CCCCCC"}}),n("div",[t._v("点击选择图片")])],1)],1),n("div",{staticClass:"footer"},[n("div",{staticClass:"text"},[t.imgList.length?[t._v("\n 共"+t._s(t.imgList.length)+"张,"+t._s(t.allSize)+"M\n ")]:t._e()],2),n("div",{staticClass:"btn",on:{click:t.chooseImage}},[t._v("\n "+t._s(t.imgList.length?"继续选择":"选择图片")+"\n ")]),n("div",{staticClass:"btn primary",class:{disabled:!t.imgList.length||t.uploading},on:{click:t.confirmUpload}},[t._v("\n 确认上传\n ")])])]):n("div",{staticClass:"page2"},[t._m(0),n("div",{staticClass:"text"},[t._v("图片上传成功")]),n("div",{staticClass:"btn",on:{click:t.againUpload}},[t._v("继续上传")])]),t.uploading?n("Spin",{attrs:{fix:""}}):t._e()],1)}),r,!1,null,"7604eae6",null);e.default=l.exports}}]);