chunk-3d8cc7ff.95358daf.js
11.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d8cc7ff"],{"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)}},"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"),l=n("f270"),s={name:"tool-single-img",mixins:[l["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","")}}},c=s,r=(n("7c05"),n("2877")),u=Object(r["a"])(c,i,a,!1,null,"7d74df17",null);e["a"]=u.exports},"54ea":function(t,e,n){"use strict";n("ecc4")},"55db":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:"itemBox"},[n("label",[t._v("标题")]),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.activeComponent.componentContent.title,callback:function(e){t.$set(t.activeComponent.componentContent,"title",e)},expression:"activeComponent.componentContent.title"}})],1),n("div",{staticClass:"itemBox"},[n("label",[t._v("文字对齐方式")]),n("el-select",{attrs:{"popper-append-to-body":!1,placeholder:"请选文字对齐方式"},model:{value:t.activeComponent.componentContent.textAlign,callback:function(e){t.$set(t.activeComponent.componentContent,"textAlign",e)},expression:"activeComponent.componentContent.textAlign"}},t._l(t.alignList,(function(t){return n("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})})),1)],1),n("div",{staticClass:"textTit"},[t._v("内容")]),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?"":"")}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.imgCurrent===i,expression:"imgCurrent === index"}],staticClass:"addBox"},[n("div",{staticClass:"addContent"},[n("div",{staticClass:"imgIsShow"},[n("span",[t._v("图片是否展示")]),n("el-switch",{attrs:{"active-color":"#FF7800","inactive-color":"#E8EAEC"},model:{value:e.isShow,callback:function(n){t.$set(e,"isShow",n)},expression:"item.isShow"}})],1),n("tool-single-img",{attrs:{imageUrl:e.imgData,tip:"建议尺寸5:4等比例图片"},on:{"update:imageUrl":function(n){return t.$set(e,"imgData",n)},"update:image-url":function(n){return t.$set(e,"imgData",n)}}}),n("div",{staticClass:"itemImgTit itemBox"},[n("label",[t._v("标题")]),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.title,callback:function(n){t.$set(e,"title",n)},expression:"item.title"}})],1),n("div",{staticClass:"itemBox"},[n("label",[t._v("描述内容")]),n("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容",resize:"none"},model:{value:e.describe,callback:function(n){t.$set(e,"describe",n)},expression:"item.describe"}})],1),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)]),n("div",{staticClass:"addImgBtn",on:{click:t.addImgText}},[n("span",{staticClass:"iconfont"},[t._v("")]),t._v("添加图文")]),n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.deleteItem},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v("点击确定删除此项")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)]),n("el-dialog",{attrs:{visible:t.dialogImageVisible},on:{"update:visible":function(e){t.dialogImageVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},a=[],o=(n("a434"),n("b76a")),l=n.n(o),s=n("629e"),c=n("54a1"),r=n("347c"),u={name:"imageTextList",mixins:[s["a"]],components:{ToolSelectLink:r["a"],ToolSingleImg:c["a"],Draggable:l.a},data:function(){return{title:"",textInfo:"",dialogImageVisible:!1,dialogImageUrl:"",imgTextData:[{title:"",isShow:!0,imgData:"",describe:"",url:""}],alignList:[{id:1,label:"居左",value:"left"},{id:2,label:"居中",value:"center"}],textAlign:"left",imgCurrent:null,dialogVisible:!1}},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,p=(n("54ea"),n("2877")),f=Object(p["a"])(d,i,a,!1,null,"01779ffe",null);e["default"]=f.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"),l=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),c=String(this),r=o.lastIndex;l(r,0)||(o.lastIndex=0);var u=s(o,c);return l(o.lastIndex,r)||(o.lastIndex=r),null===u?-1:u.index}]}))},9263:function(t,e,n){"use strict";var i=n("ad6d"),a=n("9f7f"),o=RegExp.prototype.exec,l=String.prototype.replace,s=o,c=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),r=a.UNSUPPORTED_Y||a.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=c||u||r;d&&(s=function(t){var e,n,a,s,d=this,p=r&&d.sticky,f=i.call(d),g=d.source,m=0,v=t;return p&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="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+")",f)),u&&(n=new RegExp("^"+g+"$(?!\\s)",f)),c&&(e=d.lastIndex),a=o.call(p?n:d,v),p?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:c&&a&&(d.lastIndex=d.global?a.index+a[0].length:e),u&&a&&a.length>1&&l.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"),l=n("861d"),s=n("7b0b"),c=n("50c4"),r=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),f=n("2d00"),g=p("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",x=f>=51||!a((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),b=d("concat"),h=function(t){if(!l(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)},C=!x||!b;i({target:"Array",proto:!0,forced:C},{concat:function(t){var e,n,i,a,o,l=s(this),d=u(l,0),p=0;for(e=-1,i=arguments.length;e<i;e++)if(o=-1===e?l:arguments[e],h(o)){if(a=c(o.length),p+a>m)throw TypeError(v);for(n=0;n<a;n++,p++)n in o&&r(d,p,o[n])}else{if(p>=m)throw TypeError(v);r(d,p++,o)}return d.length=p,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,l=o.toString,s=/^\s*function ([^ (]*)/,c="name";i&&!(c in o)&&a(o,c,{configurable:!0,get:function(){try{return l.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"),l=n("9263"),s=n("9112"),c=o("species"),r=!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"),p=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!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[c]=function(){return n},n.flags="",n[g]=/./[g]),n.exec=function(){return e=!0,null},n[g](""),!e}));if(!m||!v||"replace"===t&&(!r||!u||p)||"split"===t&&!f){var x=/./[g],b=n(g,""[t],(function(t,e,n,i,a){return e.exec===l?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:p}),h=b[0],C=b[1];i(String.prototype,t,h),i(RegExp.prototype,g,2==e?function(t,e){return C.call(t,this,e)}:function(t){return C.call(t,this)})}d&&s(RegExp.prototype[g],"sham",!0)}},ecc4:function(t,e,n){}}]);