chunk-70e9c263.02ee908c.js 9.57 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70e9c263"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"14c3":function(t,e,n){var i=n("c6b6"),a=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(t,e)}},4923:function(t,e,n){"use strict";n("6e69")},"54a1":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"module-box single-img"},[n("div",{staticClass:"single-img__box"},[n("el-upload",{attrs:{drag:"",action:t.fileUploadApi.fileUpload,"on-success":t.handleAvatarSuccess,"before-upload":t.beforeAvatarUpload,"show-file-list":!1}},[t.imageUrl?n("img",{staticClass:"single-img__img",attrs:{src:t.imageUrl}}):n("i",{staticClass:"el-icon-upload"},[n("div",{staticClass:"el-upload__text"},[n("em",[t._v("选择图片")])]),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(t._s(t.tip))])])]),t.imageUrl?n("div",{staticClass:"overlay"},[n("i",{staticClass:"iconfont icon-chakan",on:{click:t.showImage}}),n("i",{staticClass:"iconfont icon-shanchu1",on:{click:t.delImage}})]):t._e()],1),n("el-dialog",{attrs:{title:"图片展示",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},a=[],o=n("7a32"),r=n("f270"),s={name:"tool-single-img",mixins:[r["b"]],data:function(){return{dialogVisible:!1,dialogImageUrl:"",fileUploadApi:{fileUpload:""}}},props:{imageUrl:{type:String,default:""},tip:{type:String,default:"建议尺寸: 1080*900px, 高度自适应"}},mounted:function(){console.log(o["a"]),this.fileUploadApi=o["a"]},methods:{handleAvatarSuccess:function(t,e){this.$emit("update:imageUrl",t.data.url)},beforeAvatarUpload:function(t){var e=t.size/1024/1024<1;return e||this.$message.error("上传图片大小不能超过 1MB!"),e},showImage:function(){this.dialogImageUrl=this.imageUrl,this.dialogVisible=!0},delImage:function(){this.$emit("update:imageUrl","")}}},l=s,c=(n("7c05"),n("2877")),u=Object(c["a"])(l,i,a,!1,null,"7d74df17",null);e["a"]=u.exports},"6e69":function(t,e,n){},"7b45":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"brandListTool"},[n("h3",{staticClass:"toolTit"},[t._v("每日好店")]),n("div",{staticClass:"toolBox"},[n("div",{staticClass:"imgListBox"},[n("draggable",{model:{value:t.activeComponent.componentContent.imgTextData,callback:function(e){t.$set(t.activeComponent.componentContent,"imgTextData",e)},expression:"activeComponent.componentContent.imgTextData"}},t._l(t.activeComponent.componentContent.imgTextData,(function(e,i){return n("div",{key:i,staticClass:"item"},[n("div",{staticClass:"listItemBox"},[n("div",{staticClass:"addImgTit",on:{click:function(n){return t.openAddImg(e,i)}}},[n("div",{staticClass:"titLeft"},[n("span",{staticClass:"iconfont"},[t._v("")]),n("span",{staticClass:"iconfont"},[t._v("")]),n("span",[t._v("图片")])]),n("div",{staticClass:"titRight"},[n("span",{staticClass:"iconfont",on:{click:function(n){return n.stopPropagation(),t.deleteItem(e,i)}}},[t._v("")]),n("span",{staticClass:"iconfont",domProps:{innerHTML:t._s(t.imgCurrent===i?"&#xe660;":"&#xe695;")}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.imgCurrent===i,expression:"imgCurrent === index"}],staticClass:"addBox"},[n("div",{staticClass:"addContent"},[n("tool-single-img",{attrs:{imageUrl:e.img,tip:"建议尺寸: 710*420px"},on:{"update:imageUrl":function(n){return t.$set(e,"img",n)},"update:image-url":function(n){return t.$set(e,"img",n)}}}),n("tool-select-link",{attrs:{linkObj:e.linkObj},on:{"update:linkObj":function(n){return t.$set(e,"linkObj",n)},"update:link-obj":function(n){return t.$set(e,"linkObj",n)}}})],1),n("div",{staticClass:"deleteItem",on:{click:function(n){return t.deleteItem(e,i)}}},[n("span",{staticClass:"iconfont"},[t._v("")]),t._v("删除图片")])])])])})),0)],1)]),t.activeComponent.componentContent.imgTextData.length<5?n("div",{staticClass:"addImgBtn",on:{click:t.addImgText}},[n("span",{staticClass:"iconfont"},[t._v("")]),t._v("添加图片")]):n("div",{staticClass:"addImgBtn"},[n("span",{staticClass:"iconfont"},[t._v("")]),t._v("最多只能添加5个")])])},a=[],o=(n("a434"),n("b76a")),r=n.n(o),s=n("629e"),l=n("54a1"),c=n("347c"),u={mixins:[s["a"]],name:"imageTextNavTool",components:{ToolSelectLink:c["a"],ToolSingleImg:l["a"],Draggable:r.a},data:function(){return{title:"",textInfo:"",dialogImageUrl:"",imgTextData:[{title:"",isShow:!0,imgData:"",describe:"",url:""}],textAlign:"left",imgCurrent:null}},computed:{},methods:{openAddImg:function(t,e){if(this.imgCurrent===e)return this.imgCurrent=null,!1;this.imgCurrent=e},addImgText:function(){this.activeComponent.componentContent.imgTextData.push({title:"",isShow:!0,imgData:"",linkObj:{selsectValue:"",selectName:"",typeText:"",url:""}})},deleteItem:function(t,e){var n=this;this.$confirm("确定删除此项?").then((function(t){n.activeComponent.componentContent.imgTextData.splice(e,1)})).catch((function(t){}))}}},d=u,f=(n("4923"),n("2877")),p=Object(f["a"])(d,i,a,!1,null,"4e191686",null);e["default"]=p.exports},"7c05":function(t,e,n){"use strict";n("b57d")},"841c":function(t,e,n){"use strict";var i=n("d784"),a=n("825a"),o=n("1d80"),r=n("129f"),s=n("14c3");i("search",1,(function(t,e,n){return[function(e){var n=o(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var o=a(t),l=String(this),c=o.lastIndex;r(c,0)||(o.lastIndex=0);var u=s(o,l);return r(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},9263:function(t,e,n){"use strict";var i=n("ad6d"),a=n("9f7f"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=a.UNSUPPORTED_Y||a.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(t){var e,n,a,s,d=this,f=c&&d.sticky,p=i.call(d),g=d.source,m=0,v=t;return f&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),v=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),u&&(n=new RegExp("^"+g+"$(?!\\s)",p)),l&&(e=d.lastIndex),a=o.call(f?n:d,v),f?a?(a.input=a.input.slice(m),a[0]=a[0].slice(m),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:l&&a&&(d.lastIndex=d.global?a.index+a[0].length:e),u&&a&&a.length>1&&r.call(a[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(a[s]=void 0)})),a}),t.exports=s},"99af":function(t,e,n){"use strict";var i=n("23e7"),a=n("d039"),o=n("e8b5"),r=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),g=f("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",x=p>=51||!a((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),h=d("concat"),C=function(t){if(!r(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)},b=!x||!h;i({target:"Array",proto:!0,forced:b},{concat:function(t){var e,n,i,a,o,r=s(this),d=u(r,0),f=0;for(e=-1,i=arguments.length;e<i;e++)if(o=-1===e?r:arguments[e],C(o)){if(a=l(o.length),f+a>m)throw TypeError(v);for(n=0;n<a;n++,f++)n in o&&c(d,f,o[n])}else{if(f>=m)throw TypeError(v);c(d,f++,o)}return d.length=f,d}})},"9f7f":function(t,e,n){"use strict";var i=n("d039");function a(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=i((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ac1f:function(t,e,n){"use strict";var i=n("23e7"),a=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},b0c0:function(t,e,n){var i=n("83ab"),a=n("9bf2").f,o=Function.prototype,r=o.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&a(o,l,{configurable:!0,get:function(){try{return r.call(this).match(s)[1]}catch(t){return""}}})},b57d:function(t,e,n){},d784:function(t,e,n){"use strict";n("ac1f");var i=n("6eeb"),a=n("d039"),o=n("b622"),r=n("9263"),s=n("9112"),l=o("species"),c=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=o("replace"),f=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),p=!a((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var g=o(t),m=!a((function(){var e={};return e[g]=function(){return 7},7!=""[t](e)})),v=m&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[g]=/./[g]),n.exec=function(){return e=!0,null},n[g](""),!e}));if(!m||!v||"replace"===t&&(!c||!u||f)||"split"===t&&!p){var x=/./[g],h=n(g,""[t],(function(t,e,n,i,a){return e.exec===r?m&&!a?{done:!0,value:x.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),C=h[0],b=h[1];i(String.prototype,t,C),i(RegExp.prototype,g,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}d&&s(RegExp.prototype[g],"sham",!0)}}}]);