chunk-14bbae88.undefined.1643358245804.js 7.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14bbae88"],{1432:function(e,t,n){var r=n("e4e4");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"30df":function(e,t,n){},"336f":function(e,t,n){var r=n("bde6"),o=n("70d4"),a=n("42ad"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"509f":function(e,t,n){var r=n("bde6");e.exports=r((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"581d":function(e,t,n){var r=n("99b2"),o=n("7088"),a=n("1306"),i=n("63ec"),c=n("ed3e"),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,s=4==e,p=6==e,d=7==e,f=5==e||p;return function(g,v,x,h){for(var b,m,y=a(g),w=o(y),E=r(v,x,3),I=i(w.length),R=0,A=h||c,C=t?A(g,I):n||d?A(g,0):void 0;I>R;R++)if((f||R in w)&&(b=w[R],m=E(b,R,y),e))if(t)C[R]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return R;case 2:u.call(C,b)}else switch(e){case 4:return!1;case 7:u.call(C,b)}return p?-1:l||s?s:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},"5f69":function(e,t,n){"use strict";var r=n("d27d").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6115:function(e,t,n){"use strict";var r=n("e9fe");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"78c1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("cropper",{attrs:{width:300,height:300,"fixed-number":[1,1]},on:{subUploadSucceed:e.getShopImages}}),e._v(" "+e._s(e.url)+" ")],1)},o=[],a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"one-form-item"},[n("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","auto-upload":!1,"on-change":e.uploadFileMethodAnswer,"show-file-list":!1,multiple:!0,"before-upload":e.beforeUpload}},[n("el-button",{staticClass:"uploader-button",attrs:{type:"primary"}},[e._v("上传banner图")])],1)],1),n("el-dialog",{attrs:{title:"图片剪裁(为确保剪切后图片的分辨率足够,请尽量不缩放剪切原图)",visible:e.dialogVisible,"append-to-body":"",width:"70%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"cropper-content"},[n("div",{staticClass:"cropper",staticStyle:{"text-align":"center"}},[n("vueCropper",{ref:"cropper",attrs:{img:e.option.img,outputSize:e.option.size,outputType:e.option.outputType}})],1)]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.finish}},[e._v("确认")])],1)])],1)},i=[],c=(n("0d3d"),n("7706")),u=n("b678"),l=n.n(u),s=n("7c78"),p={data:function(){return{imageUrl:"",token:{},domain:"https://up-z1.qiniup.com",qiniuaddr:"xhead.beswell.com",option:{img:"",outputSize:1,full:!1,outputType:"png",canMove:!0,original:!1,canMoveBox:!0,autoCrop:!0,autoCropWidth:868,autoCropHeight:488,fixedBox:!1,fixed:!0,maxImgSize:3e3,fixedNumber:[16,9]},dialogVisible:!1,loading:!1}},methods:{finish:function(){var e=this;this.$refs.cropper.getCropBlob((function(t){var n=null,r=new FileReader;r.onload=function(t){n=t.target.result,e.loading=!0;var r=new FormData;r.append("imageFile",n),uploadImg({formData:r}).then((function(e){})).catch((function(){}))},r.readAsDataURL(t)}))},uploadFileMethodAnswer:function(){this.dialogVisible=!0},cutDown:function(e){console.log(e),this.imageUrl=e.dataURL,this.upqiniu(e)},upqiniu:function(e){var t=this,n={headers:{"Content-Type":"multipart/form-data"}},r="";r="image/png"===e.file.type?"png":"jpg";var o="GoAllOut"+(new Date).valueOf()+Math.floor(100*Math.random())+"."+r,a={token:localStorage.token},i=s.stringify(a);this.axios.post("/api/v1/QiNiu/GetSimpleQiNiuToken",i).then((function(r){var a=new FormData;a.append("file",e.file),a.append("token",r.data.QiNinToken),a.append("key",o),t.axios.post(t.domain,a,n).then((function(e){t.imageUrl="http://"+t.qiniuaddr+"/"+e.data.key}))}))},beforeUpload:function(e){var t=e.size/1024/1024<70;return t||this.$message.error("上传头像图片大小不能超过 70MB!"),isJPG&&t}},components:{ImgCutter:c["a"],VueCropper:l.a}},d=p,f=(n("c65d"),n("cba8")),g=Object(f["a"])(d,a,i,!1,null,"5ebdf985",null),v=g.exports,x=n("8d6e"),h={data:function(){return{editableTabsValue:"1",url:""}},methods:{getShopImages:function(e){this.url=e}},components:{upHead:v,cropper:x["a"]}},b=h,m=Object(f["a"])(b,r,o,!1,null,"66ff9c23",null);t["default"]=m.exports},"7e31":function(e,t,n){var r=n("bde6"),o=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9af7":function(e,t,n){var r=n("e4e4"),o=n("c01f");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},a717:function(e,t,n){"use strict";var r=n("3fad"),o=n("c01f");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},acc8:function(e,t,n){var r=n("bde6");e.exports=r((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},bc37:function(e,t,n){var r=n("1de2"),o=n("1432"),a=n("70d4"),i=a("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)?r(t)&&(t=t[i],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},c01f:function(e,t,n){"use strict";var r=n("0bdd"),o=n("6115"),a=n("7e31"),i=n("0226"),c=n("d69f"),u=n("38e1").get,l=n("acc8"),s=n("509f"),p=RegExp.prototype.exec,d=i("native-string-replace",String.prototype.replace),f=p,g=function(){var e=/a/,t=/b*/g;return p.call(e,"a"),p.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),v=a.UNSUPPORTED_Y||a.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],h=g||x||v||l||s;h&&(f=function(e){var t,n,a,i,l,s,h,b=this,m=u(b),y=r(e),w=m.raw;if(w)return w.lastIndex=b.lastIndex,t=f.call(w,y),b.lastIndex=w.lastIndex,t;var E=m.groups,I=v&&b.sticky,R=o.call(b),A=b.source,C=0,k=y;if(I&&(R=R.replace("y",""),-1===R.indexOf("g")&&(R+="g"),k=y.slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==y.charAt(b.lastIndex-1))&&(A="(?: "+A+")",k=" "+k,C++),n=new RegExp("^(?:"+A+")",R)),x&&(n=new RegExp("^"+A+"$(?!\\s)",R)),g&&(a=b.lastIndex),i=p.call(I?n:b,k),I?i?(i.input=i.input.slice(C),i[0]=i[0].slice(C),i.index=b.lastIndex,b.lastIndex+=i[0].length):b.lastIndex=0:g&&i&&(b.lastIndex=b.global?i.index+i[0].length:a),x&&i&&i.length>1&&d.call(i[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(i[l]=void 0)})),i&&E)for(i.groups=s=c(null),l=0;l<E.length;l++)h=E[l],s[h[0]]=i[h[1]];return i}),e.exports=f},c65d:function(e,t,n){"use strict";n("30df")},da50:function(e,t,n){"use strict";n("a717");var r=n("d03a"),o=n("c01f"),a=n("bde6"),i=n("70d4"),c=n("3f48"),u=i("species"),l=RegExp.prototype;e.exports=function(e,t,n,s){var p=i(e),d=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),f=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!d||!f||n){var g=/./[p],v=t(p,""[e],(function(e,t,n,r,a){var i=t.exec;return i===o||i===l.exec?d&&!a?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(l,p,v[1])}s&&c(l[p],"sham",!0)}},ed3e:function(e,t,n){var r=n("bc37");e.exports=function(e,t){return new(r(e))(0===t?0:t)}}}]);