page.2153dfd2.js 121 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page"],{"04ee":function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125617589",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2328",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M792.021333 668.501333a411.434667 411.434667 0 0 1-278.4 107.392 411.434667 411.434667 0 0 1-277.973333-107.008c-130.389333 65.706667-215.978667 182.613333-215.978667 341.418667h991.317334c0-159.146667-87.168-276.181333-218.965334-341.802667M191.488 523.946667V271.786667a131.84 131.84 0 0 0-10.496 0.426666c57.173333-124.117333 184.533333-210.517333 332.672-210.517333 148.181333 0 275.498667 86.4 332.672 210.517333a131.498667 131.498667 0 0 0-10.496-0.426666v252.16c71.168 0 128.896-56.448 128.896-126.08a125.653333 125.653333 0 0 0-66.005333-110.08C843.349333 131.797333 692.096 19.712 513.706667 19.712c-178.346667 0-329.642667 112.085333-385.024 268.117333a125.653333 125.653333 0 0 0-66.005334 110.08c0 69.632 57.685333 126.08 128.853334 126.08m322.133333-377.984C359.552 145.962667 234.666667 268.245333 234.666667 419.114667c0 150.826667 124.885333 273.109333 278.954666 273.109333 154.112 0 278.997333-122.282667 278.997334-273.109333 0-150.869333-124.885333-273.152-278.997334-273.152","p-id":"2329"}}]})}},"075b":function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604290113020",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8777",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M838.304 774.88c71.168-83.936 109.472-190.336 109.472-300.96C947.392 212.416 735.392 0.032 473.888 0.032S0 212.416 0 473.92s212.384 473.888 473.888 473.888c68.096 0 134.624-14.304 196.512-42.944 18.944-8.128 27.072-30.176 17.408-47.584a36.48 36.48 0 0 0-33.28-20.512 56.96 56.96 0 0 0-15.872 3.104c-49.12 22.048-104.448 36.352-164.8 36.352-220.128 0-400.768-179.104-400.768-400.768 0-220.128 179.104-400.768 400.768-400.768 220.128 0 400.768 179.104 400.768 400.768 0 104.448-39.456 202.72-111.04 277.376-6.176 6.176-9.664 15.872-9.664 25.536s4.64 18.944 11.232 27.072c1.536 1.536 3.104 1.536 3.104 1.536 1.536 1.536 1.536 3.104 3.104 4.64l188.384 201.152c6.176 6.176 15.872 11.232 27.072 11.232 9.664 0 17.408-3.104 25.536-9.664 7.744-6.176 11.232-15.872 11.232-27.072 0-9.664-3.104-18.944-9.664-25.536l-175.616-186.848z m0 0","p-id":"8778"}}]})}},"0773":function(t,e,a){"use strict";a.r(e);a("aa8b");var s=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"card-title"},[t._v(t._s(t.$route.meta.title))]),e("div",{staticClass:"table-operator"},[e("a-row",[e("a-col",{attrs:{span:6}},[t.$auth("/page/create")?e("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:t.handleAdd}},[t._v("新增")]):t._e()],1),e("a-col",{attrs:{span:8,offset:10}},[e("a-input-search",{staticClass:"input-search",attrs:{placeholder:"请输入页面名称"},on:{search:t.onSearch},model:{value:t.queryParam.name,callback:function(e){t.$set(t.queryParam,"name",e)},expression:"queryParam.name"}})],1)],1)],1),e("s-table",{ref:"table",attrs:{rowKey:"page_id",loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15},scopedSlots:t._u([{key:"page_type",fn:function(a){return[e("a-tag",{attrs:{color:a==t.PageTypeEnum.HOME.value?"green":""}},[t._v(t._s(t.PageTypeEnum[a].name))])]}},{key:"action",fn:function(a){return e("span",{staticClass:"actions"},[t.$auth("/page/update")?e("a",{on:{click:function(e){return t.handleEdit(a)}}},[t._v("编辑")]):t._e(),a.page_type!=t.PageTypeEnum.HOME.value?e("a",{directives:[{name:"action",rawName:"v-action:setHome",arg:"setHome"}],on:{click:function(e){return t.handleSetHome(a)}}},[t._v("设为首页")]):t._e(),a.page_type!=t.PageTypeEnum.HOME.value?e("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(e){return t.handleDelete(a)}}},[t._v("删除")]):t._e()])}}])})],1)},n=[],i=a("753f"),o=(a("9f29"),a("bfcf")),r=a("2af9"),c=a("5c06"),l=new c["a"]([{key:"HOME",name:"首页",value:10},{key:"CUSTOM",name:"自定义页",value:20}]),u=[{title:"页面ID",dataIndex:"page_id"},{title:"页面名称",dataIndex:"page_name"},{title:"页面类型",dataIndex:"page_type",scopedSlots:{customRender:"page_type"}},{title:"添加时间",dataIndex:"create_time"},{title:"更新时间",dataIndex:"update_time"},{title:"操作",width:"180px",scopedSlots:{customRender:"action"}}],d={name:"Index",components:{STable:r["c"]},data:function(){var t=this;return{queryParam:{name:""},PageTypeEnum:l,isLoading:!1,columns:u,loadData:function(e){return o["f"](Object(i["a"])(Object(i["a"])({},e),t.queryParam)).then((function(t){return t.data.list}))}}},created:function(){},methods:{handleAdd:function(){this.$router.push("./create")},handleEdit:function(t){this.$router.push({path:"./update",query:{pageId:t.page_id}})},handleSetHome:function(t){var e=this,a=this.$confirm({title:"您确定要设置为首页吗?",onOk:function(){return o["g"]({pageId:t.page_id}).then((function(t){e.$message.success(t.message,1.5),e.handleRefresh()})).finally((function(t){a.destroy()}))}})},handleDelete:function(t){var e=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return o["c"]({pageId:t.page_id}).then((function(t){e.$message.success(t.message,1.5),e.handleRefresh()})).finally((function(t){a.destroy()}))}})},handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t)},onSearch:function(){this.handleRefresh(!0)}}},p=d,f=(a("d2aa"),a("829d")),m=Object(f["a"])(p,s,n,!1,null,null,null);e["default"]=m.exports},"0d46":function(t,e,a){"use strict";a("8565")},"0fc8":function(t,e,a){"use strict";a("4fba")},1453:function(t,e,a){"use strict";a("7be3")},"14b9":function(t,e,a){},1892:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124381409",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5717",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M446.00853333 193.42186667L291.27146667 11.37813333H116.05333333l154.73813334 182.04373334z m455.11146667 0L746.38186667 11.37813333H571.1648l154.73706667 182.04373334z m-227.5552 0L518.82666667 11.37813333H343.60853333L498.34666667 193.42186667z m293.54666667-182.04373334H798.72l154.73813333 182.04373334h81.92V79.6448c0-38.6848-29.58293333-68.26666667-68.26666666-68.26666667z m-903.39626667 0h-6.82666667c-38.68373333 0-68.26666667 29.58186667-68.26666666 68.26666667v113.77706667H218.45333333L63.7152 11.37813333z m-75.09333333 932.97706667c0 38.6848 29.58293333 68.26666667 68.26666666 68.26666667h910.22293334c38.68373333 0 68.26666667-29.58186667 68.26666666-68.26666667V238.93333333H-11.37813333v705.42186667zM352.71146667 443.73333333c0-38.6848 31.85706667-56.88853333 68.26666666-56.88853333 11.37706667 0 25.0304 2.2752 36.40853334 9.10186667L716.8 546.13333333c45.51146667 25.03146667 45.51146667 88.74666667 0 113.77813334l-259.41333333 150.18666666c-11.37813333 6.82666667-22.7552 9.10186667-36.40853334 9.10186667-36.4096 0-68.26666667-18.2048-68.26666666-56.88853333V443.73333333z","p-id":"5718"}}]})}},"27aa":function(t,e,a){},"3b6e":function(t,e,a){"use strict";a("f63e")},"3eca":function(t,e,a){"use strict";a.d(e,"a",(function(){return V})),a.d(e,"c",(function(){return st})),a.d(e,"b",(function(){return Xt}));var s={};a.r(s),a.d(s,"image",(function(){return c.a})),a.d(s,"banner",(function(){return u.a})),a.d(s,"article",(function(){return p.a})),a.d(s,"navBar",(function(){return m.a})),a.d(s,"notice",(function(){return b.a})),a.d(s,"search",(function(){return h.a})),a.d(s,"video",(function(){return C.a})),a.d(s,"window",(function(){return x.a})),a.d(s,"goods",(function(){return w.a})),a.d(s,"service",(function(){return L.a})),a.d(s,"guide",(function(){return P.a})),a.d(s,"richText",(function(){return O.a})),a.d(s,"blank",(function(){return $.a}));var n={};a.r(n),a.d(n,"search",(function(){return K.a})),a.d(n,"volumeFill",(function(){return Z.a}));a("aa8b");var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"components"},[e("a-collapse",{attrs:{defaultActiveKey:t.componentKeys,bordered:!1,expandIconPosition:"right"}},t._l(t.components,(function(a){return e("a-collapse-panel",{key:a.key,attrs:{header:a.name}},[e("div",{staticClass:"module-list"},t._l(a.data,(function(a,s){return e("div",{key:s,staticClass:"module-item",on:{click:function(e){return t.handleClickItem(a.type)}}},[e("a-icon",{staticClass:"module-icon",attrs:{component:a.icon}}),e("span",{staticClass:"module-title"},[t._v(t._s(a.name))])],1)})),0)])})),1)],1)},o=[],r=(a("a815"),a("d139")),c=a.n(r),l=a("4bd1"),u=a.n(l),d=a("8b63"),p=a.n(d),f=a("d633"),m=a.n(f),v=a("d918"),b=a.n(v),g=a("61f9"),h=a.n(g),y=a("1892"),C=a.n(y),k=a("5300"),x=a.n(k),I=a("c2b5"),w=a.n(I),S=a("04ee"),L=a.n(S),M=a("8341"),P=a.n(M),E=a("bd2c"),O=a.n(E),T=a("f484"),$=a.n(T),j=[{name:"媒体组件",key:"media",data:[{name:"轮播图",type:"banner",icon:u.a},{name:"图片",type:"image",icon:c.a},{name:"图片橱窗",type:"window",icon:x.a},{name:"视频",type:"video",icon:C.a},{name:"文章",type:"article",icon:p.a}]},{name:"商城组件",key:"store",data:[{name:"搜索框",type:"search",icon:h.a},{name:"店铺公告",type:"notice",icon:b.a},{name:"导航",type:"navBar",icon:m.a},{name:"商品",type:"goods",icon:w.a},{name:"在线客服",type:"service",icon:L.a}]},{name:"其他组件",key:"other",data:[{name:"富文本",type:"richText",icon:O.a},{name:"辅助空白",type:"blank",icon:$.a},{name:"辅助线",type:"guide",icon:P.a}]}],D={data:function(){return{Icon:s,components:j}},computed:{componentKeys:function(){var t=this.components;return t.map((function(t){return t.key}))}},methods:{handleClickItem:function(t){this.$emit("handleClickItem",t)}}},A=D,N=(a("0fc8"),a("829d")),H=Object(N["a"])(A,i,o,!1,null,"77813ee1",null),z=H.exports,V=z,F=a("3032"),R=(a("e330"),a("72dd"),a("4b79"),a("58f4"),a("ea87"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"phone-content"},[e("div",{staticClass:"phone-top optional",class:Object(F["a"])({selected:"page"===t.selectedIndex},t.data.page.style.titleTextColor,!0),style:{backgroundColor:t.data.page.style.titleBackgroundColor},on:{click:function(e){return t.handelClickItem("page")}}},[e("p",{staticClass:"title",style:{color:t.data.page.style.titleTextColor}},[t._v(t._s(t.data.page.params.title))])]),e("div",{staticClass:"phone-main"},[e("draggable",t._b({staticClass:"content",attrs:{list:t.data.items},on:{update:t.handelDragItem}},"draggable",{animation:120,filter:".undrag"},!1),t._l(t.data.items,(function(a,s){return e("div",{key:s,staticClass:"devise-item optional",class:{selected:s===t.selectedIndex,undrag:t.inArray(a.type,t.undragList)},style:t.renderItemStyle(a),on:{click:function(e){return t.handelClickItem(s)}}},["banner"==a.type?e("div",{staticClass:"diy-banner"},[t._l(a.data,(function(t,a){return e("img",{directives:[{name:"show",rawName:"v-show",value:a<=1,expression:"dataIdx <= 1"}],key:"".concat(s,"_").concat(a,"_img"),attrs:{src:t.imgUrl}})})),e("div",{staticClass:"dots",class:a.style.btnShape},t._l(a.data,(function(t,n){return e("div",{key:"".concat(s,"_").concat(n,"_dots"),staticClass:"dots-item",style:{background:a.style.btnColor}})})),0)],2):"image"==a.type?e("div",{staticClass:"diy-image",style:{paddingBottom:a.style.paddingTop+"px",background:a.style.background}},t._l(a.data,(function(t,n){return e("div",{key:"".concat(s,"_").concat(n),staticClass:"item-image",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px 0")}},[e("img",{attrs:{src:t.imgUrl}})])})),0):"window"==a.type?e("div",{staticClass:"diy-window",style:{background:a.style.background,padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[a.style.layout>-1?e("ul",{staticClass:"data-list clearfix",class:"avg-sm-".concat(a.style.layout)},t._l(a.data,(function(t,n){return e("li",{key:"".concat(s,"_").concat(n),staticClass:"data-item",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[e("div",{staticClass:"item-image"},[e("img",{attrs:{src:t.imgUrl}})])])})),0):e("div",{staticClass:"display"},[e("div",{staticClass:"display-left",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[e("img",{attrs:{src:a.data[0].imgUrl}})]),e("div",{staticClass:"display-right"},[a.data.length>=2?e("div",{staticClass:"display-right1",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[e("img",{attrs:{src:a.data[1].imgUrl}})]):t._e(),e("div",{staticClass:"display-right2"},[a.data.length>=3?e("div",{staticClass:"left",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[e("img",{attrs:{src:a.data[2].imgUrl}})]):t._e(),a.data.length>=4?e("div",{staticClass:"right",style:{padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")}},[e("img",{attrs:{src:a.data[3].imgUrl}})]):t._e()])])])]):"video"==a.type?e("div",{staticClass:"diy-video",style:{padding:"".concat(a.style.paddingTop,"px 0")}},[e("video",{style:{height:"".concat(a.style.height,"px")},attrs:{src:a.params.videoUrl,poster:a.params.poster,controls:""}},[t._v("您的浏览器不支持 video 标签")])]):"article"==a.type?e("div",{staticClass:"diy-article"},[e("div",{staticClass:"diy-article"},t._l("choice"==a.params.source?a.data:a.defaultData,(function(a,n){return e("div",{key:"".concat(s,"_").concat(n),staticClass:"article-item",class:"show-type__".concat(a.show_type)},[10==a.show_type?[e("div",{staticClass:"article-item__left flex-box"},[e("div",{staticClass:"article-item__title twolist-hidden"},[e("span",{staticClass:"article-title"},[t._v(t._s(a.title))])]),e("div",{staticClass:"article-item__footer"},[e("span",{staticClass:"article-views"},[t._v(t._s(a.views_num)+"次浏览")])])]),e("div",{staticClass:"article-item__image"},[e("img",{attrs:{src:a.image,alt:""}})])]:t._e(),20==a.show_type?[e("div",{staticClass:"article-item__title"},[e("span",{staticClass:"article-title"},[t._v(t._s(a.title))])]),e("div",{staticClass:"article-item__image"},[e("img",{attrs:{src:a.image}})]),e("div",{staticClass:"article-item__footer"},[e("span",{staticClass:"article-views"},[t._v(t._s(a.views_num)+"次浏览")])])]:t._e()],2)})),0)]):"search"==a.type?e("div",{staticClass:"diy-search"},[e("div",{staticClass:"inner",class:a.style.searchStyle},[e("div",{staticClass:"search-input",style:{textAlign:a.style.textAlign}},[e("a-icon",{staticClass:"search-icon",attrs:{component:t.Icon.search}}),e("span",[t._v(t._s(a.params.placeholder))])],1)])]):"notice"==a.type?e("div",{staticClass:"diy-notice",style:{padding:"".concat(a.style.paddingTop,"px 0")}},[e("div",{staticClass:"notice-body",style:{background:a.style.background,color:a.style.textColor}},[e("div",{staticClass:"notice__icon"},[e("a-icon",{staticClass:"notice-icon",attrs:{component:t.Icon.volumeFill}})],1),e("div",{staticClass:"notice__text flex-box oneline-hide"},[e("span",[t._v(t._s(a.params.text))])])])]):"navBar"==a.type?e("div",{staticClass:"diy-navBar",style:{padding:"".concat(a.style.paddingTop,"px 0"),background:a.style.background,color:a.style.textColor}},[e("ul",{staticClass:"data-list clearfix",class:"avg-sm-".concat(a.style.rowsNum)},t._l(a.data,(function(a,n){return e("li",{key:"".concat(s,"_").concat(n),staticClass:"item-nav"},[e("div",{staticClass:"item-image"},[e("img",{attrs:{src:a.imgUrl}})]),e("p",{staticClass:"item-text oneline-hide"},[t._v(t._s(a.text))])])})),0)]):"goods"==a.type?e("div",{staticClass:"diy-goods",style:{background:a.style.background}},[e("ul",{staticClass:"goods-list clearfix",class:["display__"+a.style.display,"column__"+a.style.column]},t._l("choice"==a.params.source?a.data:a.defaultData,(function(n,i){return e("li",{key:"".concat(s,"_").concat(i),staticClass:"goods-item"},[1==a.style.column?[e("div",{staticClass:"flex"},[e("div",{staticClass:"goods-item_left"},[e("img",{attrs:{src:n.goods_image}})]),e("div",{staticClass:"goods-item_right"},[a.style.show.includes("goodsName")?e("div",{staticClass:"goods-item_title twolist-hidden"},[e("span",[t._v(t._s(n.goods_name))])]):t._e(),e("div",{staticClass:"goods-item_desc"},[a.style.show.includes("sellingPoint")?e("div",{staticClass:"desc-selling_point oneline-hide"},[e("span",[t._v(t._s(n.selling_point))])]):t._e(),a.style.show.includes("goodsSales")?e("div",{staticClass:"desc-goods_sales oneline-hide"},[e("span",[t._v("已售"+t._s(n.goods_sales)+"件")])]):t._e(),e("div",{staticClass:"desc_footer"},[a.style.show.includes("goodsPrice")?e("span",{staticClass:"price_x"},[e("span",{staticClass:"small-unit"},[t._v("¥")]),e("span",[t._v(t._s(n.goods_price_min))])]):t._e(),a.style.show.includes("linePrice")&&n.line_price_min>0?e("span",{staticClass:"price_y"},[t._v("¥"+t._s(n.line_price_min))]):t._e()])])])])]:[e("div",{staticClass:"goods-image"},[e("img",{attrs:{src:n.goods_image}})]),e("div",{staticClass:"detail"},[a.style.show.includes("goodsName")?e("p",{staticClass:"goods-name twolist-hidden"},[t._v(t._s(n.goods_name))]):t._e(),e("p",{staticClass:"detail-price"},[a.style.show.includes("goodsPrice")?e("span",{staticClass:"goods-price"},[e("span",{staticClass:"small-unit"},[t._v("¥")]),e("span",[t._v(t._s(n.goods_price_min))])]):t._e(),a.style.show.includes("linePrice")&&n.line_price_min>0?e("span",{staticClass:"line-price"},[e("span",{staticClass:"small-unit"},[t._v("¥")]),e("span",[t._v(t._s(n.line_price_min))])]):t._e()])])]],2)})),0)]):"blank"==a.type?e("div",{staticClass:"diy-blank",style:{height:"".concat(a.style.height,"px"),background:a.style.background}}):"guide"==a.type?e("div",{staticClass:"diy-guide",style:{padding:"".concat(a.style.paddingTop,"px 0"),background:a.style.background}},[e("p",{staticClass:"line",style:{borderTopWidth:a.style.lineHeight+"px",borderTopColor:a.style.lineColor,borderTopStyle:a.style.lineStyle}})]):"service"==a.type?e("div",{staticClass:"diy-service",style:{opacity:a.style.opacity/100}},[e("div",{staticClass:"service-icon"},[e("img",{attrs:{src:a.params.image,alt:""}})])]):"richText"==a.type?e("div",{staticClass:"diy-richText",style:{background:a.style.background,padding:"".concat(a.style.paddingTop,"px ").concat(a.style.paddingLeft,"px")},domProps:{innerHTML:t._s(a.params.content)}}):t._e(),e("div",{staticClass:"btn-edit-del"},[e("div",{staticClass:"btn-del",on:{click:function(e){return t.handleDeleleItem(s)}}},[t._v("删除")])])])})),0)],1)])}),U=[],B=a("e99d"),G=a("3335"),q=a.n(G),W=a("ca00"),J=a("075b"),K=a.n(J),Y=a("c76f"),Z=a.n(Y),X=["service"],Q={props:{data:B["a"].object.def({}),selectedIndex:B["a"].oneOfType([B["a"].number,B["a"].string]).def(0)},components:{draggable:q.a},data:function(){return{undragList:X}},beforeCreate:function(){this.Icon=n,this.inArray=W["e"]},methods:{handelDragItem:function(t){this.$emit("onEditer",t.newIndex)},handelClickItem:function(t){this.$emit("onEditer",t)},handleDeleleItem:function(t){this.$emit("onDeleleItem",t)},renderItemStyle:function(t){return"service"===t.type?{position:"absolute",right:t.style.right+"%",bottom:t.style.bottom+"%"}:{}}}},tt=Q,et=(a("7622"),Object(N["a"])(tt,R,U,!1,null,"bd1371f4",null)),at=et.exports,st=at,nt=(a("cf2b"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor"},[e("div",{staticClass:"editor-title"},[e("span",[t._v(t._s("page"===t.selectedIndex?t.data.page.name:t.curItem.name))])]),"page"===t.selectedIndex?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"页面设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("基本信息")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("页面名称")]),e("div",{staticClass:"flex-box"},[e("a-input",{model:{value:t.data.page.params.name,callback:function(e){t.$set(t.data.page.params,"name",e)},expression:"data.page.params.name"}}),e("div",{staticClass:"tips"},[t._v("页面名称仅用于后台管理")])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("分享标题")]),e("div",{staticClass:"flex-box"},[e("a-input",{model:{value:t.data.page.params.shareTitle,callback:function(e){t.$set(t.data.page.params,"shareTitle",e)},expression:"data.page.params.shareTitle"}}),e("div",{staticClass:"tips"},[t._v("用户端转发时显示的标题")])],1)])])]),e("a-tab-pane",{key:"2",attrs:{tab:"标题栏设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("标题栏设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("标题名称")]),e("div",{staticClass:"flex-box"},[e("a-input",{model:{value:t.data.page.params.title,callback:function(e){t.$set(t.data.page.params,"title",e)},expression:"data.page.params.title"}}),e("div",{staticClass:"tips"},[t._v("用户端端顶部显示的标题")])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("文字颜色")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.data.page.style.titleTextColor,callback:function(e){t.$set(t.data.page.style,"titleTextColor",e)},expression:"data.page.style.titleTextColor"}},[e("a-radio-button",{attrs:{value:"white"}},[t._v("白色")]),e("a-radio-button",{attrs:{value:"black"}},[t._v("黑色")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("标题栏背景")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.data.page.style,"titleBackgroundColor","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.data.page.style.titleBackgroundColor,callback:function(e){t.$set(t.data.page.style,"titleBackgroundColor",e)},expression:"data.page.style.titleBackgroundColor"}})],1)])])])],1)],1):t._e(),t.data.items.length&&t.curItem?["search"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("功能设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("提示文字")]),e("a-input",{model:{value:t.curItem.params.placeholder,callback:function(e){t.$set(t.curItem.params,"placeholder",e)},expression:"curItem.params.placeholder"}})],1)])]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("搜索框样式")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.searchStyle,callback:function(e){t.$set(t.curItem.style,"searchStyle",e)},expression:"curItem.style.searchStyle"}},[e("a-radio-button",{attrs:{value:"square"}},[t._v("方形")]),e("a-radio-button",{attrs:{value:"radius"}},[t._v("圆角")]),e("a-radio-button",{attrs:{value:"round"}},[t._v("圆弧")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("文字对齐")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.textAlign,callback:function(e){t.$set(t.curItem.style,"textAlign",e)},expression:"curItem.style.textAlign"}},[e("a-radio-button",{attrs:{value:"left"}},[t._v("居左")]),e("a-radio-button",{attrs:{value:"center"}},[t._v("居中")]),e("a-radio-button",{attrs:{value:"right"}},[t._v("居右")])],1)],1)])])],1)],1):t._e(),"blank"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("样式设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("组件高度")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:5,max:200},model:{value:t.curItem.style.height,callback:function(e){t.$set(t.curItem.style,"height",e)},expression:"curItem.style.height"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.height))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])]):t._e(),"guide"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("样式设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("线条样式")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.lineStyle,callback:function(e){t.$set(t.curItem.style,"lineStyle",e)},expression:"curItem.style.lineStyle"}},[e("a-radio-button",{attrs:{value:"solid"}},[t._v("实线")]),e("a-radio-button",{attrs:{value:"dashed"}},[t._v("虚线")]),e("a-radio-button",{attrs:{value:"dotted"}},[t._v("点状")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("线条颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"lineColor","#000")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#000"},model:{value:t.curItem.style.lineColor,callback:function(e){t.$set(t.curItem.style,"lineColor",e)},expression:"curItem.style.lineColor"}})],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("线条高度")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:1,max:20},model:{value:t.curItem.style.lineHeight,callback:function(e){t.$set(t.curItem.style,"lineHeight",e)},expression:"curItem.style.lineHeight"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.lineHeight))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])]):t._e(),"richText"==t.curItem.type?e("div",{staticClass:"editor-content",style:{width:"395px"}},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("文本内容")]),e("div",{staticClass:"ueditor"},[e("Ueditor",{attrs:{config:{initialFrameWidth:375}},model:{value:t.curItem.params.content,callback:function(e){t.$set(t.curItem.params,"content",e)},expression:"curItem.params.content"}})],1)])]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("左右边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingLeft,callback:function(e){t.$set(t.curItem.style,"paddingLeft",e)},expression:"curItem.style.paddingLeft"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingLeft))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])])],1)],1):t._e(),"notice"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("公告文案")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("内容")]),e("a-input",{model:{value:t.curItem.params.text,callback:function(e){t.$set(t.curItem.params,"text",e)},expression:"curItem.params.text"}})],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("链接")]),e("div",{staticClass:"flex-box"},[e("SLink",{model:{value:t.curItem.params.link,callback:function(e){t.$set(t.curItem.params,"link",e)},expression:"curItem.params.link"}})],1)])])]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("文字颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"textColor","#000")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#000"},model:{value:t.curItem.style.textColor,callback:function(e){t.$set(t.curItem.style,"textColor",e)},expression:"curItem.style.textColor"}})],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)])])])],1)],1):t._e(),"article"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("文章内容")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("文章分类")]),e("SArticleCate",{model:{value:t.curItem.params.auto.category,callback:function(e){t.$set(t.curItem.params.auto,"category",e)},expression:"curItem.params.auto.category"}})],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("显示数量")]),e("div",{staticClass:"block-item-right"},[e("a-input-number",{attrs:{min:1,max:20},model:{value:t.curItem.params.auto.showNum,callback:function(e){t.$set(t.curItem.params.auto,"showNum",e)},expression:"curItem.params.auto.showNum"}}),t._m(0)],1)])])]):t._e(),"service"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("功能设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("客服类型")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.params.type,callback:function(e){t.$set(t.curItem.params,"type",e)},expression:"curItem.params.type"}},[e("a-radio-button",{attrs:{value:"chat"}},[t._v("在线聊天")]),e("a-radio-button",{attrs:{value:"phone"}},[t._v("拨打电话")])],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:"phone"==t.curItem.params.type,expression:"curItem.params.type == 'phone'"}],staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("电话号码")]),e("a-input",{model:{value:t.curItem.params.tel,callback:function(e){t.$set(t.curItem.params,"tel",e)},expression:"curItem.params.tel"}})],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("客服图标")]),e("span",{staticClass:"tips-wrap"},[t._v("建议尺寸:90×90")]),e("SImage",{attrs:{width:60,height:60},model:{value:t.curItem.params.image,callback:function(e){t.$set(t.curItem.params,"image",e)},expression:"curItem.params.image"}})],1)])]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("底边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:100},model:{value:t.curItem.style.bottom,callback:function(e){t.$set(t.curItem.style,"bottom",e)},expression:"curItem.style.bottom"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.bottom))]),e("span",[t._v("%")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("右边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:100},model:{value:t.curItem.style.right,callback:function(e){t.$set(t.curItem.style,"right",e)},expression:"curItem.style.right"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.right))]),e("span",[t._v("%")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("不透明度")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:100},model:{value:t.curItem.style.opacity,callback:function(e){t.$set(t.curItem.style,"opacity",e)},expression:"curItem.style.opacity"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.opacity))]),e("span",[t._v("%")])])],1)])])])],1)],1):t._e(),"video"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("功能设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("视频地址")]),e("div",{staticClass:"flex-box"},[e("a-input",{model:{value:t.curItem.params.videoUrl,callback:function(e){t.$set(t.curItem.params,"videoUrl",e)},expression:"curItem.params.videoUrl"}}),e("div",{staticClass:"tips"},[t._v("仅支持.mp4格式的视频源地址")])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("视频封面")]),e("div",{staticClass:"flex-box"},[e("SImage",{attrs:{width:160,height:90},model:{value:t.curItem.params.poster,callback:function(e){t.$set(t.curItem.params,"poster",e)},expression:"curItem.params.poster"}}),e("div",{staticClass:"tips"},[t._v("建议封面图片尺寸与视频比例一致")])],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("播放设置")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("自动播放")]),e("span",{staticClass:"tips-wrap"},[t._v("仅支持小程序")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.params.autoplay,callback:function(e){t.$set(t.curItem.params,"autoplay",e)},expression:"curItem.params.autoplay"}},[e("a-radio-button",{attrs:{value:1}},[t._v("开启")]),e("a-radio-button",{attrs:{value:0}},[t._v("关闭")])],1)],1)])]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[e("span",[t._v("内容样式")]),e("span",{staticClass:"tips"},[t._v("视频宽度为750像素")])]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("视频高度")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:50,max:400},model:{value:t.curItem.style.height,callback:function(e){t.$set(t.curItem.style,"height",e)},expression:"curItem.style.height"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.height))]),e("span",[t._v("像素")])])],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)])])])],1)],1):t._e(),"image"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"sub-title"},[t._v("添加图片 (最多10张,可拖动排序)")]),e("draggable",t._b({attrs:{list:t.curItem.data}},"draggable",{animation:120,filter:"input",preventOnFilter:!1},!1),t._l(t.curItem.data,(function(a,s){return e("div",{key:s,staticClass:"block-box drag"},[e("div",{staticClass:"block-title"},[e("span",{staticClass:"left"},[t._v("图片 "+t._s(s+1))]),e("a",{staticClass:"link",on:{click:function(e){return t.handleDeleleData(t.curItem,s)}}},[t._v("删除")])]),e("div",{staticClass:"block-item"},[e("div",{staticClass:"block-item-common"},[e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("图片")]),e("span",{staticClass:"label"},[t._v(t._s(a.imgName))])]),e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("链接")]),e("SLink",{model:{value:a.link,callback:function(e){t.$set(a,"link",e)},expression:"item.link"}})],1)]),e("div",{staticClass:"block-item-custom"},[e("SImage",{attrs:{tips:"建议尺寸:宽750"},on:{update:function(t){a.imgName=t.file_name}},model:{value:a.imgUrl,callback:function(e){t.$set(a,"imgUrl",e)},expression:"item.imgUrl"}})],1)])])})),0),t.curItem.data.length<10?e("div",{staticClass:"data-add"},[e("a-button",{attrs:{icon:"plus"},on:{click:function(e){return t.handleAddData(10)}}},[t._v("添加图片")])],1):t._e()],1),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("左右边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingLeft,callback:function(e){t.$set(t.curItem.style,"paddingLeft",e)},expression:"curItem.style.paddingLeft"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingLeft))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])])],1)],1):t._e(),"banner"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"sub-title"},[t._v("添加图片 (最多10张,可拖动排序)")]),e("draggable",t._b({attrs:{list:t.curItem.data}},"draggable",{animation:120,filter:"input",preventOnFilter:!1},!1),t._l(t.curItem.data,(function(a,s){return e("div",{key:s,staticClass:"block-box drag"},[e("div",{staticClass:"block-title"},[e("span",{staticClass:"left"},[t._v("图片 "+t._s(s+1))]),e("a",{staticClass:"link",on:{click:function(e){return t.handleDeleleData(t.curItem,s)}}},[t._v("删除")])]),e("div",{staticClass:"block-item"},[e("div",{staticClass:"block-item-common"},[e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("图片")]),e("span",{staticClass:"label"},[t._v(t._s(a.imgName))])]),e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("链接")]),e("SLink",{model:{value:a.link,callback:function(e){t.$set(a,"link",e)},expression:"item.link"}})],1)]),e("div",{staticClass:"block-item-custom"},[e("SImage",{attrs:{tips:"建议尺寸:750×400"},on:{update:function(t){a.imgName=t.file_name}},model:{value:a.imgUrl,callback:function(e){t.$set(a,"imgUrl",e)},expression:"item.imgUrl"}})],1)])])})),0),t.curItem.data.length<10?e("div",{staticClass:"data-add"},[e("a-button",{attrs:{icon:"plus"},on:{click:function(e){return t.handleAddData(10)}}},[t._v("添加图片")])],1):t._e()],1),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("指示点形状")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.btnShape,callback:function(e){t.$set(t.curItem.style,"btnShape",e)},expression:"curItem.style.btnShape"}},[e("a-radio-button",{attrs:{value:"round"}},[t._v("圆形")]),e("a-radio-button",{attrs:{value:"square"}},[t._v("正方形")]),e("a-radio-button",{attrs:{value:"rectangle"}},[t._v("长方形")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("指示点颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"btnColor","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.btnColor,callback:function(e){t.$set(t.curItem.style,"btnColor",e)},expression:"curItem.style.btnColor"}})],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("切换时间")]),e("div",{staticClass:"item-slider",staticStyle:{width:"190px"}},[e("a-slider",{attrs:{step:1,min:1,max:20},model:{value:t.curItem.style.interval,callback:function(e){t.$set(t.curItem.style,"interval",e)},expression:"curItem.style.interval"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.interval))]),e("span",[t._v("秒")])])],1)])])])],1)],1):t._e(),"goods"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[e("span",[t._v("商品来源")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.params.source,callback:function(e){t.$set(t.curItem.params,"source",e)},expression:"curItem.params.source"}},[e("a-radio-button",{attrs:{value:"auto"}},[t._v("自动获取")]),e("a-radio-button",{attrs:{value:"choice"}},[t._v("手动选择")])],1)],1)]),"choice"===t.curItem.params.source?e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("选择商品 ("+t._s(t.curItem.data.length)+")")]),e("SGoods",{model:{value:t.curItem.data,callback:function(e){t.$set(t.curItem,"data",e)},expression:"curItem.data"}})],1):t._e(),"auto"===t.curItem.params.source?e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("商品内容")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("商品分类")]),e("SGoodsCate",{model:{value:t.curItem.params.auto.category,callback:function(e){t.$set(t.curItem.params.auto,"category",e)},expression:"curItem.params.auto.category"}})],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("商品排序")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.params.auto.goodsSort,callback:function(e){t.$set(t.curItem.params.auto,"goodsSort",e)},expression:"curItem.params.auto.goodsSort"}},[e("a-radio-button",{attrs:{value:"all"}},[t._v("默认")]),e("a-radio-button",{attrs:{value:"sales"}},[t._v("销量")]),e("a-radio-button",{attrs:{value:"price"}},[t._v("价格")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("显示数量")]),e("div",{staticClass:"block-item-right"},[e("a-input-number",{attrs:{min:1,max:50},model:{value:t.curItem.params.auto.showNum,callback:function(e){t.$set(t.curItem.params.auto,"showNum",e)},expression:"curItem.params.auto.showNum"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v("件")])])],1)])]):t._e()]),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("显示类型")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.display,callback:function(e){t.$set(t.curItem.style,"display",e)},expression:"curItem.style.display"}},[e("a-radio-button",{attrs:{value:"list"}},[t._v("列表平铺")]),e("a-radio-button",{attrs:{disabled:1===t.curItem.style.column,value:"slide"}},[t._v("横向滑动")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("分列数量")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.column,callback:function(e){t.$set(t.curItem.style,"column",e)},expression:"curItem.style.column"}},[e("a-radio-button",{attrs:{disabled:"list"!==t.curItem.style.display,value:1}},[t._v("单列")]),e("a-radio-button",{attrs:{value:2}},[t._v("两列")]),e("a-radio-button",{attrs:{value:3}},[t._v("三列")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("显示内容")]),e("div",{staticClass:"item-checkbox",style:{width:"180px"}},[e("a-checkbox-group",{model:{value:t.curItem.style.show,callback:function(e){t.$set(t.curItem.style,"show",e)},expression:"curItem.style.show"}},[e("a-checkbox",{attrs:{value:"goodsName"}},[t._v("商品名称")]),e("a-checkbox",{attrs:{value:"goodsPrice"}},[t._v("商品价格")]),e("a-checkbox",{attrs:{value:"linePrice"}},[t._v("划线价格")]),e("a-checkbox",{directives:[{name:"show",rawName:"v-show",value:1===t.curItem.style.column,expression:"curItem.style.column === 1"}],attrs:{value:"sellingPoint"}},[t._v("商品卖点")]),e("a-checkbox",{directives:[{name:"show",rawName:"v-show",value:1===t.curItem.style.column,expression:"curItem.style.column === 1"}],attrs:{value:"goodsSales"}},[t._v("商品销量")])],1)],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])])],1)],1):t._e(),"navBar"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"sub-title"},[t._v("添加导航 (最少4个,最多10个,可拖动排序)")]),e("draggable",t._b({attrs:{list:t.curItem.data}},"draggable",{animation:120,filter:"input",preventOnFilter:!1},!1),t._l(t.curItem.data,(function(a,s){return e("div",{key:s,staticClass:"block-box drag"},[e("div",{staticClass:"block-title"},[e("span",{staticClass:"left"},[t._v("导航 "+t._s(s+1))]),e("a",{staticClass:"link",on:{click:function(e){return t.handleDeleleData(t.curItem,s)}}},[t._v("删除")])]),e("div",{staticClass:"block-item"},[e("div",{staticClass:"block-item-common"},[e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("名称")]),e("a-input",{model:{value:a.text,callback:function(e){t.$set(a,"text",e)},expression:"item.text"}})],1),e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("链接")]),e("SLink",{model:{value:a.link,callback:function(e){t.$set(a,"link",e)},expression:"item.link"}})],1)]),e("div",{staticClass:"block-item-custom"},[e("SImage",{attrs:{tips:"建议尺寸:100×100"},model:{value:a.imgUrl,callback:function(e){t.$set(a,"imgUrl",e)},expression:"item.imgUrl"}})],1)])])})),0),t.curItem.data.length<10?e("div",{staticClass:"data-add"},[e("a-button",{attrs:{icon:"plus"},on:{click:function(e){return t.handleAddData(10)}}},[t._v("添加导航")])],1):t._e()],1),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("每行数量")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.rowsNum,callback:function(e){t.$set(t.curItem.style,"rowsNum",e)},expression:"curItem.style.rowsNum"}},[e("a-radio-button",{attrs:{value:3}},[t._v("3个")]),e("a-radio-button",{attrs:{value:4}},[t._v("4个")]),e("a-radio-button",{attrs:{value:5}},[t._v("5个")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("文字颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"textColor","#000")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#000"},model:{value:t.curItem.style.textColor,callback:function(e){t.$set(t.curItem.style,"textColor",e)},expression:"curItem.style.textColor"}})],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider"},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])])],1)],1):t._e(),"window"==t.curItem.type?e("div",{staticClass:"editor-content"},[e("a-tabs",[e("a-tab-pane",{key:"1",attrs:{tab:"内容设置"}},[e("div",{staticClass:"sub-title"},[t._v("添加图片 (最多10个,可拖动排序)")]),e("draggable",t._b({attrs:{list:t.curItem.data}},"draggable",{animation:120,filter:"input",preventOnFilter:!1},!1),t._l(t.curItem.data,(function(a,s){return e("div",{key:s,staticClass:"block-box drag"},[e("div",{staticClass:"block-title"},[e("span",{staticClass:"left"},[t._v("图片 "+t._s(s+1))]),e("a",{staticClass:"link",on:{click:function(e){return t.handleDeleleData(t.curItem,s)}}},[t._v("删除")])]),e("div",{staticClass:"block-item"},[e("div",{staticClass:"block-item-common"},[e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("名称")]),e("span",{staticClass:"label"},[t._v(t._s(a.imgName))])]),e("div",{staticClass:"block-item-common-row"},[e("span",{staticClass:"label"},[t._v("链接")]),e("SLink",{model:{value:a.link,callback:function(e){t.$set(a,"link",e)},expression:"item.link"}})],1)]),e("div",{staticClass:"block-item-custom"},[e("SImage",{on:{update:function(t){a.imgName=t.file_name}},model:{value:a.imgUrl,callback:function(e){t.$set(a,"imgUrl",e)},expression:"item.imgUrl"}})],1)])])})),0),t.curItem.data.length<10?e("div",{staticClass:"data-add"},[e("a-button",{attrs:{icon:"plus"},on:{click:function(e){return t.handleAddData(10)}}},[t._v("添加图片")])],1):t._e()],1),e("a-tab-pane",{key:"2",attrs:{tab:"样式设置"}},[e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("内容样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("每行数量")]),e("a-radio-group",{attrs:{buttonStyle:"solid"},model:{value:t.curItem.style.layout,callback:function(e){t.$set(t.curItem.style,"layout",e)},expression:"curItem.style.layout"}},[e("a-radio-button",{attrs:{value:2}},[t._v("2列")]),e("a-radio-button",{attrs:{value:3}},[t._v("3列")]),e("a-radio-button",{attrs:{value:4}},[t._v("4列")]),e("a-radio-button",{attrs:{value:-1}},[t._v("橱窗")])],1)],1),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("上下边距")]),e("div",{staticClass:"item-slider",style:{width:"210px"}},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingTop,callback:function(e){t.$set(t.curItem.style,"paddingTop",e)},expression:"curItem.style.paddingTop"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingTop))]),e("span",[t._v("像素")])])],1)]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("左右边距")]),e("div",{staticClass:"item-slider",style:{width:"210px"}},[e("a-slider",{attrs:{min:0,max:50},model:{value:t.curItem.style.paddingLeft,callback:function(e){t.$set(t.curItem.style,"paddingLeft",e)},expression:"curItem.style.paddingLeft"}}),e("span",{staticClass:"unit-text"},[e("span",[t._v(t._s(t.curItem.style.paddingLeft))]),e("span",[t._v("像素")])])],1)])]),e("div",{staticClass:"block-box"},[e("div",{staticClass:"block-title"},[t._v("组件样式")]),e("div",{staticClass:"block-item"},[e("span",{staticClass:"label"},[t._v("背景颜色")]),e("div",{staticClass:"item-colorPicker"},[e("span",{staticClass:"rest-color",on:{click:function(e){return t.onEditorResetColor(t.curItem.style,"background","#fff")}}},[t._v("重置")]),e("colorPicker",{attrs:{defaultColor:"#fff"},model:{value:t.curItem.style.background,callback:function(e){t.$set(t.curItem.style,"background",e)},expression:"curItem.style.background"}})],1)])])])],1)],1):t._e()]:t._e()],2)}),it=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"unit-text"},[e("span",[t._v("篇")])])}],ot=(a("a2bf"),a("8bbf")),rt=a.n(ot),ct=a("8477"),lt=a.n(ct),ut=a("2af9"),dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"image-custom"},[e("a-tooltip",[t.tips?e("template",{slot:"title"},[t._v(t._s(t.tips))]):t._e(),e("div",{staticClass:"image-box",style:{width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}},[e("img",{attrs:{src:t.imgUrl,alt:""}}),e("div",{staticClass:"update-box-black"}),e("div",{staticClass:"uodate-repalce",on:{click:t.handleSelectImage}},[t._v("替换")])])],2),e("FilesModal",{ref:"FilesModal",attrs:{multiple:!1},on:{handleSubmit:t.handleSelectImageSubmit}})],1)},pt=[],ft=a("fd0d"),mt={name:"SImage",components:{FilesModal:ft["b"]},model:{prop:"value",event:"change"},props:{value:B["a"].string.def(""),tips:B["a"].string.def(""),width:B["a"].integer.def(70),height:B["a"].integer.def(70)},data:function(){return{imgUrl:""}},watch:{value:{immediate:!0,handler:function(t){this.imgUrl=t}}},created:function(){},methods:{handleSelectImage:function(){this.$refs.FilesModal.show()},handleSelectImageSubmit:function(t){if(t.length>0){var e=t[0];this.onChange(e)}},onChange:function(t){this.imgUrl=t.preview_url,this.$emit("change",this.imgUrl),this.$emit("update",t)}}},vt=mt,bt=(a("1453"),Object(N["a"])(vt,dt,pt,!1,null,"895d32f0",null)),gt=bt.exports,ht=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.isLoading}},[e("a-select",{on:{change:t.onChange},model:{value:t.selectedId,callback:function(e){t.selectedId=e},expression:"selectedId"}},[e("a-select-option",{attrs:{value:-1}},[t._v("全部")]),t._l(t.categoryList,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a.category_id}},[t._v(t._s(a.name))])}))],2)],1)},yt=[],Ct=(a("9f29"),a("b775")),_t={list:"/content.article.category/list",add:"/content.article.category/add",edit:"/content.article.category/edit",delete:"/content.article.category/delete"};function kt(t){return Object(Ct["b"])({url:_t.list,method:"get",params:t})}var xt={name:"SArticleCate",components:{},model:{prop:"value",event:"change"},props:{value:B["a"].integer.def(-1)},data:function(){return{isLoading:!1,categoryList:[],selectedId:-1}},watch:{value:{immediate:!0,handler:function(t){this.selectedId=t}}},created:function(){this.getCategoryList()},methods:{getCategoryList:function(){var t=this;this.isLoading=!0,kt().then((function(e){t.categoryList=e.data.list})).finally((function(e){t.isLoading=!1}))},onChange:function(t){this.$emit("change",t)}}},It=xt,wt=(a("fc67"),Object(N["a"])(It,ht,yt,!1,null,"5f36be46",null)),St=wt.exports,Lt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-goods"},[e("div",{staticClass:"data-preview clearfix"},[e("draggable",t._b({attrs:{list:t.selectedItems}},"draggable",{animation:120,filter:"input",preventOnFilter:!1},!1),t._l(t.selectedItems,(function(a,s){return e("div",{key:s,staticClass:"data-item"},[e("a-icon",{staticClass:"icon-close",attrs:{theme:"filled",type:"close-circle"},on:{click:function(e){return t.handleDeleteItem(s)}}}),e("a-tooltip",[e("template",{slot:"title"},[e("span",{staticClass:"f-12"},[t._v(t._s(a.goods_name))])]),e("div",{staticClass:"item-inner"},[e("div",{staticClass:"item-image"},[e("img",{attrs:{src:a.goods_image,alt:""}})])])],2)],1)})),0)],1),e("div",{staticClass:"data-add"},[e("a-button",{attrs:{icon:"plus"},on:{click:function(e){return t.handleSelectGoods()}}},[t._v("选择商品")])],1),e("GoodsModal",{ref:"GoodsModal",attrs:{maxNum:t.maxNum,defaultList:t.selectedItems},on:{handleSubmit:t.handleSelectGoodsSubmit}})],1)},Mt=[],Pt=a("7c98"),Et=["goods_id","goods_name","goods_image","goods_price_min","line_price_min","selling_point","goods_sales"],Ot={name:"SelectGoods",components:{GoodsModal:ft["c"],draggable:q.a},model:{prop:"value",event:"change"},props:{maxNum:B["a"].integer.def(100),value:B["a"].array.def([])},data:function(){return{selectedItems:[]}},watch:{value:{immediate:!0,handler:function(t){this.onUpdate(t)}}},created:function(){},methods:{onUpdate:function(t){this.selectedItems=t,this.onChange()},handleSelectGoods:function(){this.$refs.GoodsModal.handle()},handleSelectGoodsSubmit:function(t){var e=t.selectedItems;this.onUpdate(this.filterItems(e))},filterItems:function(t){return t.map((function(t){return Object(Pt["pick"])(t,Et)}))},handleDeleteItem:function(t){var e=this.selectedItems;e.length<=1?this.$message.warning("请至少保留1个",1):(e.splice(t,1),this.onUpdate(e))},onChange:function(){var t=this.selectedItems;return this.$emit("change",t)}}},Tt=Ot,$t=(a("4ab3"),Object(N["a"])(Tt,Lt,Mt,!1,null,"7df2a3c0",null)),jt=$t.exports,Dt=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.isLoading}},[e("a-tree-select",{attrs:{treeData:t.categoryListTree,dropdownStyle:{maxHeight:"500px",overflow:"auto"},allowClear:""},on:{change:t.onChange},model:{value:t.selectedId,callback:function(e){t.selectedId=e},expression:"selectedId"}})],1)},At=[],Nt=a("8243"),Ht={name:"SGoodsCate",components:{},model:{prop:"value",event:"change"},props:{value:B["a"].integer.def(-1)},data:function(){return{isLoading:!1,categoryListTree:[],selectedId:-1}},watch:{value:{immediate:!0,handler:function(t){this.selectedId=t}}},created:function(){this.getCategoryList()},methods:{getCategoryList:function(){var t=this;this.isLoading=!0,Nt["a"].getListFromScreen().then((function(e){t.categoryListTree=e})).finally((function(e){t.isLoading=!1}))},onChange:function(t){this.$emit("change",t)}}},zt=Ht,Vt=(a("3b6e"),Object(N["a"])(zt,Dt,At,!1,null,"98fd9438",null)),Ft=Vt.exports,Rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-link"},[t.sLink?e("div",{staticClass:"flex flex-x-between"},[e("span",{staticClass:"link-title"},[t._v(t._s(t.sLink.title))]),e("a",{staticClass:"choice",on:{click:function(e){return t.handleSelectLink()}}},[t._v("修改")])]):[e("a",{staticClass:"choice",on:{click:function(e){return t.handleSelectLink()}}},[t._v("选择链接")])],e("LinkModal",{ref:"LinkModal",on:{handleSubmit:t.handleSubmit}})],2)},Ut=[],Bt={name:"SelectLink",components:{LinkModal:ft["d"]},model:{prop:"value",event:"change"},props:{value:B["a"].object.def({})},data:function(){return{sLink:null}},watch:{value:{immediate:!0,handler:function(t){this.onUpdate(t)}}},created:function(){},methods:{onUpdate:function(t){this.sLink=t,this.onChange()},handleSelectLink:function(){var t=this.sLink;this.$refs.LinkModal.handle(t)},handleSubmit:function(t){this.onUpdate(t)},onChange:function(){var t=this.sLink;return this.$emit("change",t)}}},Gt=Bt,qt=(a("918c"),Object(N["a"])(Gt,Rt,Ut,!1,null,"7931214a",null)),Wt=qt.exports;rt.a.use(lt.a);var Jt={props:{defaultData:B["a"].object.def({}),data:B["a"].object.def({}),curItem:B["a"].object.def({}),selectedIndex:B["a"].oneOfType([B["a"].number,B["a"].string]).def(0)},components:{draggable:q.a,Ueditor:ut["f"],SImage:gt,SArticleCate:St,SGoods:jt,SGoodsCate:Ft,SLink:Wt},data:function(){return{}},methods:{handleAddData:function(){var t=this.defaultData,e=this.curItem,a=t.items[e.type].data[0];e.data.push(_.cloneDeep(a))},handleDeleleData:function(t,e){if(t.data.length<=1)return this.$message.warning("至少保留一个"),!1;t.data.splice(e,1)},onEditorResetColor:function(t,e,a){t[e]=a}}},Kt=Jt,Yt=(a("0d46"),Object(N["a"])(Kt,nt,it,!1,null,"2ac4253a",null)),Zt=Yt.exports,Xt=Zt},"4ab3":function(t,e,a){"use strict";a("d182")},"4bd1":function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124594223",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"955",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M1039.92888889 21.94963001v970.90370333H-15.92888889v-970.90370333h1055.85777778zM305.68296334 792.60444445a60.6814811 60.6814811 0 1 0 0 121.36296334 60.6814811 60.6814811 0 0 0 0-121.36296334z m218.45333333 0a60.6814811 60.6814811 0 1 0 0 121.36296334 60.6814811 60.6814811 0 0 0 0-121.36296334z m218.45333334 0a60.6814811 60.6814811 0 1 0 0 121.36296334 60.6814811 60.6814811 0 0 0 0-121.36296334z m188.11259221-661.42814777H93.29777778v452.85376L379.47164445 367.83407446l324.76728888 235.68687331 226.46328889-165.61189888V131.17629668zM748.65777778 185.78963001a91.02222222 91.02222222 0 1 1 0 182.04444445 91.02222222 91.02222222 0 0 1 0-182.04444445z","p-id":"956"}}]})}},"4fba":function(t,e,a){},5300:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125679952",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1947",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M925.23990594 23.62695312H624.69589598c-41.4888165 0-75.13314093 33.6366936-75.13314093 75.13314094v150.26818956c0 41.49644732 33.64432443 75.14077176 75.13314093 75.14077177H925.23799823c41.49644732 0 75.13314093-33.64432443 75.13314094-75.14077177V98.76009406C1000.37304688 57.26364673 966.73635327 23.62695312 925.23990594 23.62695312zM399.29647319 23.62695312H98.76009406C57.27127756 23.62695312 23.62695312 57.26364673 23.62695312 98.76009406v450.79503016c0 41.50407816 33.64432443 75.14840258 75.13314094 75.14840259h300.53447142c41.50407816 0 75.13314093-33.64432443 75.13314093-75.14840259V98.76009406C474.42961412 57.26364673 440.79864364 23.62695312 399.29647319 23.62695312z m525.94343275 375.66952007H624.69589598c-41.4888165 0-75.13314093 33.62906277-75.13314093 75.12551011v450.81029182c0 41.49644732 33.64432443 75.14077176 75.13314093 75.14077176H925.23799823c41.49835503 0 75.13504864-33.64432443 75.13504864-75.14077176v-450.81029182c0-41.49644732-33.6366936-75.12551011-75.13314093-75.12551011zM399.29647319 699.83094461H98.76009406C57.27127756 699.83094461 23.62695312 733.46763822 23.62695312 774.96408555v150.26818957C23.62695312 966.72872244 57.27127756 1000.37304688 98.76009406 1000.37304688h300.53447142c41.50407816 0 75.13314093-33.64432443 75.13314093-75.14077176V774.96408555c0.00190771-41.49644732-33.62906277-75.13314093-75.13123322-75.13314094z","p-id":"1948"}}]})}},"546b":function(t,e,a){"use strict";a("70c1")},5711:function(t,e,a){"use strict";a("7029")},"61f9":function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124345884",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6476",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M454.27451 283.915166A170.359344 170.359344 0 1 0 624.889956 454.27451a170.154462 170.154462 0 0 0-170.615446-170.359344zM908.60024 0H113.555822A113.914366 113.914366 0 0 0 0 113.555822v795.044418a113.914366 113.914366 0 0 0 113.555822 113.555822h795.044418a113.914366 113.914366 0 0 0 113.555822-113.555822V113.555822A113.914366 113.914366 0 0 0 908.60024 0z m-80.057623 908.60024l-217.533413-217.482193a283.966387 283.966387 0 1 1 127.180472-236.792317 282.737095 282.737095 0 0 1-47.122849 156.171269l217.482193 218.045618z m0 0","p-id":"6477"}}]})}},"6a61":function(t,e,a){"use strict";a("b483")},7029:function(t,e,a){},"70c1":function(t,e,a){},7622:function(t,e,a){"use strict";a("27aa")},"7be3":function(t,e,a){},8341:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125456107",class:"icon",viewBox:"0 0 1280 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1947",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M1224.89765492 92.64843777L50.71328222 92.64843777C27.56507601 92.64843777 8.77812571 73.86148845 8.77812571 50.71328222 8.77812571 27.56507601 27.56507601 8.77812571 50.71328222 8.77812571L1224.89765492 8.77812571C1248.04586113 8.77812571 1266.83281143 27.56507601 1266.83281143 50.71328222 1266.83281143 73.86148845 1248.04586113 92.64843777 1224.89765492 92.64843777ZM92.64843777 344.25937491L1182.96249937 344.25937491C1229.25891181 344.25937491 1266.83281143 381.83327551 1266.83281143 428.12968794 1266.83281143 474.42610038 1229.25891181 512 1182.96249937 512L92.64843777 512C46.35202533 512 8.77812571 474.42610038 8.77812571 428.12968794 8.77812571 381.83327551 46.35202533 344.25937491 92.64843777 344.25937491ZM92.64843777 763.61093714L1182.96249937 763.61093714C1229.25891181 763.61093714 1266.83281143 801.18483676 1266.83281143 847.4812492L1266.83281143 931.35156223C1266.83281143 977.64797467 1229.25891181 1015.22187429 1182.96249937 1015.22187429L92.64843777 1015.22187429C46.35202533 1015.22187429 8.77812571 977.64797467 8.77812571 931.35156223L8.77812571 847.4812492C8.77812571 801.18483676 46.35202533 763.61093714 92.64843777 763.61093714Z","p-id":"1948"}}]})}},8477:function(t,e,a){(function(e,a){t.exports=a()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function a(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="112a")}({"008a":function(t,e,a){var s=a("f6b4");t.exports=function(t){return Object(s(t))}},"064e":function(t,e,a){var s=a("69b3"),n=a("db6b"),i=a("94b3"),o=Object.defineProperty;e.f=a("149f")?Object.defineProperty:function(t,e,a){if(s(t),e=i(e,!0),s(a),n)try{return o(t,e,a)}catch(r){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},"06a2":function(t,e,a){"use strict";var s=a("fc81")(!0);a("492d")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=s(e,a),this._i+=t.length,{value:t,done:!1})}))},"09b9":function(t,e,a){var s=a("224c"),n=a("f6b4");t.exports=function(t){return s(n(t))}},"0b53":function(t,e,a){"use strict";var s=a("e7ad"),n=a("e042"),i=a("149f"),o=a("e46b"),r=a("bf16"),c=a("f71f").KEY,l=a("238a"),u=a("6798"),d=a("399f"),p=a("ec45"),f=a("cb3d"),m=a("a08d"),v=a("4d34"),b=a("f091"),g=a("2346"),h=a("69b3"),y=a("fb68"),C=a("008a"),_=a("09b9"),k=a("94b3"),x=a("cc33"),I=a("e005"),w=a("9370"),S=a("dcb7"),L=a("2f77"),M=a("064e"),P=a("80a9"),E=S.f,O=M.f,T=w.f,$=s.Symbol,j=s.JSON,D=j&&j.stringify,A="prototype",N=f("_hidden"),H=f("toPrimitive"),z={}.propertyIsEnumerable,V=u("symbol-registry"),F=u("symbols"),R=u("op-symbols"),U=Object[A],B="function"==typeof $&&!!L.f,G=s.QObject,q=!G||!G[A]||!G[A].findChild,W=i&&l((function(){return 7!=I(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(t,e,a){var s=E(U,e);s&&delete U[e],O(t,e,a),s&&t!==U&&O(U,e,s)}:O,J=function(t){var e=F[t]=I($[A]);return e._k=t,e},K=B&&"symbol"==typeof $.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof $},Y=function(t,e,a){return t===U&&Y(R,e,a),h(t),e=k(e,!0),h(a),n(F,e)?(a.enumerable?(n(t,N)&&t[N][e]&&(t[N][e]=!1),a=I(a,{enumerable:x(0,!1)})):(n(t,N)||O(t,N,x(1,{})),t[N][e]=!0),W(t,e,a)):O(t,e,a)},Z=function(t,e){h(t);var a,s=b(e=_(e)),n=0,i=s.length;while(i>n)Y(t,a=s[n++],e[a]);return t},X=function(t,e){return void 0===e?I(t):Z(I(t),e)},Q=function(t){var e=z.call(this,t=k(t,!0));return!(this===U&&n(F,t)&&!n(R,t))&&(!(e||!n(this,t)||!n(F,t)||n(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=_(t),e=k(e,!0),t!==U||!n(F,e)||n(R,e)){var a=E(t,e);return!a||!n(F,e)||n(t,N)&&t[N][e]||(a.enumerable=!0),a}},et=function(t){var e,a=T(_(t)),s=[],i=0;while(a.length>i)n(F,e=a[i++])||e==N||e==c||s.push(e);return s},at=function(t){var e,a=t===U,s=T(a?R:_(t)),i=[],o=0;while(s.length>o)!n(F,e=s[o++])||a&&!n(U,e)||i.push(F[e]);return i};B||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(a){this===U&&e.call(R,a),n(this,N)&&n(this[N],t)&&(this[N][t]=!1),W(this,t,x(1,a))};return i&&q&&W(U,t,{configurable:!0,set:e}),J(t)},r($[A],"toString",(function(){return this._k})),S.f=tt,M.f=Y,a("2ea2").f=w.f=et,a("4f18").f=Q,L.f=at,i&&!a("550e")&&r(U,"propertyIsEnumerable",Q,!0),m.f=function(t){return J(f(t))}),o(o.G+o.W+o.F*!B,{Symbol:$});for(var st="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;st.length>nt;)f(st[nt++]);for(var it=P(f.store),ot=0;it.length>ot;)v(it[ot++]);o(o.S+o.F*!B,"Symbol",{for:function(t){return n(V,t+="")?V[t]:V[t]=$(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),o(o.S+o.F*!B,"Object",{create:X,defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:at});var rt=l((function(){L.f(1)}));o(o.S+o.F*rt,"Object",{getOwnPropertySymbols:function(t){return L.f(C(t))}}),j&&o(o.S+o.F*(!B||l((function(){var t=$();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){var e,a,s=[t],n=1;while(arguments.length>n)s.push(arguments[n++]);if(a=e=s[1],(y(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!K(e))return e}),s[1]=e,D.apply(j,s)}}),$[A][H]||a("86d4")($[A],H,$[A].valueOf),d($,"Symbol"),d(Math,"Math",!0),d(s.JSON,"JSON",!0)},"0dc8":function(t,e,a){var s=a("064e"),n=a("69b3"),i=a("80a9");t.exports=a("149f")?Object.defineProperties:function(t,e){n(t);var a,o=i(e),r=o.length,c=0;while(r>c)s.f(t,a=o[c++],e[a]);return t}},"0e8b":function(t,e,a){var s=a("cb3d")("unscopables"),n=Array.prototype;void 0==n[s]&&a("86d4")(n,s,{}),t.exports=function(t){n[s][t]=!0}},"112a":function(t,e,a){"use strict";var s;a.r(e),"undefined"!==typeof window&&(a("e67d"),(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])),a("cc57");var n,i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.closePanel,expression:"closePanel"}],ref:"colorPicker",staticClass:"m-colorPicker",on:{click:function(t){t.stopPropagation()}}},[a("div",{staticClass:"colorBtn",class:{disabled:t.disabled},style:"background-color: "+t.showColor,on:{click:t.openPanel}}),a("div",{staticClass:"box",class:{open:t.openStatus}},[a("div",{staticClass:"hd"},[a("div",{staticClass:"colorView",style:"background-color: "+t.showPanelColor}),a("div",{staticClass:"defaultColor",on:{click:t.handleDefaultColor,mouseover:function(e){t.hoveColor=t.defaultColor},mouseout:function(e){t.hoveColor=null}}},[t._v("默认颜色")])]),a("div",{staticClass:"bd"},[a("h3",[t._v("主题颜色")]),a("ul",{staticClass:"tColor"},t._l(t.tColor,(function(e,s){return a("li",{key:s,style:{backgroundColor:e},on:{mouseover:function(a){t.hoveColor=e},mouseout:function(e){t.hoveColor=null},click:function(a){return t.updataValue(e)}}})})),0),a("ul",{staticClass:"bColor"},t._l(t.colorPanel,(function(e,s){return a("li",{key:s},[a("ul",t._l(e,(function(e,s){return a("li",{key:s,style:{backgroundColor:e},on:{mouseover:function(a){t.hoveColor=e},mouseout:function(e){t.hoveColor=null},click:function(a){return t.updataValue(e)}}})})),0)])})),0),a("h3",[t._v("标准颜色")]),a("ul",{staticClass:"tColor"},t._l(t.bColor,(function(e,s){return a("li",{key:s,style:{backgroundColor:e},on:{mouseover:function(a){t.hoveColor=e},mouseout:function(e){t.hoveColor=null},click:function(a){return t.updataValue(e)}}})})),0),a("h3",{on:{click:t.triggerHtml5Color}},[t._v("更多颜色...")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.html5Color,expression:"html5Color"}],ref:"html5Color",attrs:{type:"color"},domProps:{value:t.html5Color},on:{change:function(e){return t.updataValue(t.html5Color)},input:function(e){e.target.composing||(t.html5Color=e.target.value)}}})])])])},o=[],r=(a("6d57"),a("309f"),a("0b53"),a("06a2"),a("ec25"),a("2b45"),[]),c="@@clickoutsideContext",l=0;function u(t,e,a){return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(a&&a.context&&s.target&&n.target)||t.contains(s.target)||t.contains(n.target)||t===s.target||a.context.popperElm&&(a.context.popperElm.contains(s.target)||a.context.popperElm.contains(n.target))||(e.expression&&t[c].methodName&&a.context[t[c].methodName]?a.context[t[c].methodName]():t[c].bindingFn&&t[c].bindingFn())}}document.addEventListener("mousedown",(function(t){return n=t})),document.addEventListener("mouseup",(function(t){r.forEach((function(e){return e[c].documentHandler(t,n)}))}));var d={bind:function(t,e,a){r.push(t);var s=l++;t[c]={id:s,documentHandler:u(t,e,a),methodName:e.expression,bindingFn:e.value}},update:function(t,e,a){t[c].documentHandler=u(t,e,a),t[c].methodName=e.expression,t[c].bindingFn=e.value},unbind:function(t){for(var e=r.length,a=0;a<e;a++)if(r[a][c].id===t[c].id){r.splice(a,1);break}delete t[c]}};function p(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=f(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,i=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw i}}}}function f(t,e){if(t){if("string"===typeof t)return m(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a<e;a++)s[a]=t[a];return s}var v={name:"colorPicker",directives:{clickoutside:d},props:{value:{type:String,required:!0},defaultColor:{type:String,default:"#000000"},disabled:{type:Boolean,default:!1}},data:function(){return{openStatus:!1,hoveColor:null,tColor:["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],colorConfig:[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],bColor:["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],html5Color:this.value}},computed:{showPanelColor:function(){return this.hoveColor?this.hoveColor:this.showColor},showColor:function(){return this.value?this.value:this.defaultColor},colorPanel:function(){var t,e=[],a=p(this.colorConfig);try{for(a.s();!(t=a.n()).done;){var s=t.value;e.push(this.gradient(s[1],s[0],5))}}catch(n){a.e(n)}finally{a.f()}return e}},methods:{openPanel:function(){this.openStatus=!this.disabled},closePanel:function(){this.openStatus=!1},triggerHtml5Color:function(){this.$refs.html5Color.click()},updataValue:function(t){this.$emit("input",t),this.$emit("change",t),this.openStatus=!1},handleDefaultColor:function(){this.updataValue(this.defaultColor)},parseColor:function(t){if(4!==t.length)return t;t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]},rgbToHex:function(t,e,a){var s=(t<<16|e<<8|a).toString(16);return"#"+new Array(Math.abs(s.length-7)).join("0")+s},hexToRgb:function(t){t=this.parseColor(t);for(var e=[],a=1;a<7;a+=2)e.push(parseInt("0x"+t.slice(a,a+2)));return e},gradient:function(t,e,a){for(var s=this.hexToRgb(t),n=this.hexToRgb(e),i=(n[0]-s[0])/a,o=(n[1]-s[1])/a,r=(n[2]-s[2])/a,c=[],l=0;l<a;l++)c.push(this.rgbToHex(parseInt(i*l+s[0]),parseInt(o*l+s[1]),parseInt(r*l+s[2])));return c}}},b=v;function g(t,e,a,s,n,i,o,r){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),s&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):n&&(c=r?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}a("e137");var h=g(b,i,o,!1,null,"29accc04",null),y=h.exports;y.install=function(t){t.component(y.name,y)};var C=y,_=[C],k=function t(e){t.installed||_.map((function(t){return e.component(t.name,t)}))};"undefined"!==typeof window&&window.Vue&&k(window.Vue);var x={install:k,colorPicker:C};e["default"]=x},"149f":function(t,e,a){t.exports=!a("238a")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"190b":function(t,e,a){a("149f")&&"g"!=/./g.flags&&a("064e").f(RegExp.prototype,"flags",{configurable:!0,get:a("f1fe")})},"1b07":function(t,e,a){var s=a("ca06");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var n=a("85cb").default;n("34f6f920",s,!0,{sourceMap:!1,shadowMode:!1})},"224c":function(t,e,a){var s=a("75c4");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)}},2285:function(t,e,a){var s=a("da6d"),n=a("cb3d")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||i[n]===t)}},2346:function(t,e,a){var s=a("75c4");t.exports=Array.isArray||function(t){return"Array"==s(t)}},"238a":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2b45":function(t,e,a){"use strict";a("190b");var s=a("69b3"),n=a("f1fe"),i=a("149f"),o="toString",r=/./[o],c=function(t){a("bf16")(RegExp.prototype,o,t,!0)};a("238a")((function(){return"/a/b"!=r.call({source:"a",flags:"b"})}))?c((function(){var t=s(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?n.call(t):void 0)})):r.name!=o&&c((function(){return r.call(this)}))},"2ea2":function(t,e,a){var s=a("c2f7"),n=a("ceac").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,n)}},"2f77":function(t,e){e.f=Object.getOwnPropertySymbols},"309f":function(t,e,a){a("4d34")("asyncIterator")},"32b9":function(t,e,a){"use strict";var s=a("e005"),n=a("cc33"),i=a("399f"),o={};a("86d4")(o,a("cb3d")("iterator"),(function(){return this})),t.exports=function(t,e,a){t.prototype=s(o,{next:n(1,a)}),i(t,e+" Iterator")}},"399f":function(t,e,a){var s=a("064e").f,n=a("e042"),i=a("cb3d")("toStringTag");t.exports=function(t,e,a){t&&!n(t=a?t:t.prototype,i)&&s(t,i,{configurable:!0,value:e})}},"475d":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"492d":function(t,e,a){"use strict";var s=a("550e"),n=a("e46b"),i=a("bf16"),o=a("86d4"),r=a("da6d"),c=a("32b9"),l=a("399f"),u=a("58cf"),d=a("cb3d")("iterator"),p=!([].keys&&"next"in[].keys()),f="@@iterator",m="keys",v="values",b=function(){return this};t.exports=function(t,e,a,g,h,y,C){c(a,e,g);var _,k,x,I=function(t){if(!p&&t in M)return M[t];switch(t){case m:return function(){return new a(this,t)};case v:return function(){return new a(this,t)}}return function(){return new a(this,t)}},w=e+" Iterator",S=h==v,L=!1,M=t.prototype,P=M[d]||M[f]||h&&M[h],E=P||I(h),O=h?S?I("entries"):E:void 0,T="Array"==e&&M.entries||P;if(T&&(x=u(T.call(new t)),x!==Object.prototype&&x.next&&(l(x,w,!0),s||"function"==typeof x[d]||o(x,d,b))),S&&P&&P.name!==v&&(L=!0,E=function(){return P.call(this)}),s&&!C||!p&&!L&&M[d]||o(M,d,E),r[e]=E,r[w]=b,h)if(_={values:S?E:I(v),keys:y?E:I(m),entries:O},C)for(k in _)k in M||i(M,k,_[k]);else n(n.P+n.F*(p||L),e,_);return _}},"4ce5":function(t,e,a){var s=a("5daa");t.exports=function(t,e,a){if(s(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,s){return t.call(e,a,s)};case 3:return function(a,s,n){return t.call(e,a,s,n)}}return function(){return t.apply(e,arguments)}}},"4d34":function(t,e,a){var s=a("e7ad"),n=a("7ddc"),i=a("550e"),o=a("a08d"),r=a("064e").f;t.exports=function(t){var e=n.Symbol||(n.Symbol=i?{}:s.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},"4f18":function(t,e){e.f={}.propertyIsEnumerable},"550e":function(t,e){t.exports=!1},"56f2":function(t,e,a){var s=a("6798")("keys"),n=a("ec45");t.exports=function(t){return s[t]||(s[t]=n(t))}},"58cf":function(t,e,a){var s=a("e042"),n=a("008a"),i=a("56f2")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),s(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"5daa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},6798:function(t,e,a){var s=a("7ddc"),n=a("e7ad"),i="__core-js_shared__",o=n[i]||(n[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:s.version,mode:a("550e")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"690e":function(t,e){function a(t,e){var a=t[1]||"",n=t[3];if(!n)return a;if(e&&"function"===typeof btoa){var i=s(n),o=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[a].concat(o).concat([i]).join("\n")}return[a].join("\n")}function s(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+a+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var s=a(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s})).join("")},e.i=function(t,a){"string"===typeof t&&(t=[[null,t,""]]);for(var s={},n=0;n<this.length;n++){var i=this[n][0];"number"===typeof i&&(s[i]=!0)}for(n=0;n<t.length;n++){var o=t[n];"number"===typeof o[0]&&s[o[0]]||(a&&!o[2]?o[2]=a:a&&(o[2]="("+o[2]+") and ("+a+")"),e.push(o))}},e}},"69b3":function(t,e,a){var s=a("fb68");t.exports=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t}},"6d57":function(t,e,a){for(var s=a("e44b"),n=a("80a9"),i=a("bf16"),o=a("e7ad"),r=a("86d4"),c=a("da6d"),l=a("cb3d"),u=l("iterator"),d=l("toStringTag"),p=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=n(f),v=0;v<m.length;v++){var b,g=m[v],h=f[g],y=o[g],C=y&&y.prototype;if(C&&(C[u]||r(C,u,p),C[d]||r(C,d,g),c[g]=p,h))for(b in s)C[b]||i(C,b,s[b],!0)}},"75c4":function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},"7ddc":function(t,e){var a=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=a)},"7e23":function(t,e,a){var s=a("75c4"),n=a("cb3d")("toStringTag"),i="Arguments"==s(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(a){}};t.exports=function(t){var e,a,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=o(e=Object(t),n))?a:i?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r}},"80a9":function(t,e,a){var s=a("c2f7"),n=a("ceac");t.exports=Object.keys||function(t){return s(t,n)}},"85cb":function(t,e,a){"use strict";function s(t,e){for(var a=[],s={},n=0;n<e.length;n++){var i=e[n],o=i[0],r=i[1],c=i[2],l=i[3],u={id:t+":"+n,css:r,media:c,sourceMap:l};s[o]?s[o].parts.push(u):a.push(s[o]={id:o,parts:[u]})}return a}a.r(e),a.d(e,"default",(function(){return m}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},o=n&&(document.head||document.getElementsByTagName("head")[0]),r=null,c=0,l=!1,u=function(){},d=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,a,n){l=a,d=n||{};var o=s(t,e);return v(o),function(e){for(var a=[],n=0;n<o.length;n++){var r=o[n],c=i[r.id];c.refs--,a.push(c)}for(e?(o=s(t,e),v(o)):o=[],n=0;n<a.length;n++)if(c=a[n],0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}function v(t){for(var e=0;e<t.length;e++){var a=t[e],s=i[a.id];if(s){s.refs++;for(var n=0;n<s.parts.length;n++)s.parts[n](a.parts[n]);for(;n<a.parts.length;n++)s.parts.push(g(a.parts[n]));s.parts.length>a.parts.length&&(s.parts.length=a.parts.length)}else{var o=[];for(n=0;n<a.parts.length;n++)o.push(g(a.parts[n]));i[a.id]={id:a.id,refs:1,parts:o}}}}function b(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function g(t){var e,a,s=document.querySelector("style["+p+'~="'+t.id+'"]');if(s){if(l)return u;s.parentNode.removeChild(s)}if(f){var n=c++;s=r||(r=b()),e=y.bind(null,s,n,!1),a=y.bind(null,s,n,!0)}else s=b(),e=C.bind(null,s),a=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else a()}}var h=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function y(t,e,a,s){var n=a?"":s.css;if(t.styleSheet)t.styleSheet.cssText=h(e,n);else{var i=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function C(t,e){var a=e.css,s=e.media,n=e.sourceMap;if(s&&t.setAttribute("media",s),d.ssrId&&t.setAttribute(p,e.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}},"86d4":function(t,e,a){var s=a("064e"),n=a("cc33");t.exports=a("149f")?function(t,e,a){return s.f(t,e,n(1,a))}:function(t,e,a){return t[e]=a,t}},"8df1":function(t,e,a){var s=a("e7ad").document;t.exports=s&&s.documentElement},9370:function(t,e,a){var s=a("09b9"),n=a("2ea2").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return n(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==i.call(t)?r(t):n(s(t))}},"94b3":function(t,e,a){var s=a("fb68");t.exports=function(t,e){if(!s(t))return t;var a,n;if(e&&"function"==typeof(a=t.toString)&&!s(n=a.call(t)))return n;if("function"==typeof(a=t.valueOf)&&!s(n=a.call(t)))return n;if(!e&&"function"==typeof(a=t.toString)&&!s(n=a.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},a08d:function(t,e,a){e.f=a("cb3d")},b3a6:function(t,e,a){var s=a("09b9"),n=a("eafa"),i=a("f58a");t.exports=function(t){return function(e,a,o){var r,c=s(e),l=n(c.length),u=i(o,l);if(t&&a!=a){while(l>u)if(r=c[u++],r!=r)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===a)return t||u||0;return!t&&-1}}},bf16:function(t,e,a){var s=a("e7ad"),n=a("86d4"),i=a("e042"),o=a("ec45")("src"),r=a("d07e"),c="toString",l=(""+r).split(c);a("7ddc").inspectSource=function(t){return r.call(t)},(t.exports=function(t,e,a,r){var c="function"==typeof a;c&&(i(a,"name")||n(a,"name",e)),t[e]!==a&&(c&&(i(a,o)||n(a,o,t[e]?""+t[e]:l.join(String(e)))),t===s?t[e]=a:r?t[e]?t[e]=a:n(t,e,a):(delete t[e],n(t,e,a)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[o]||r.call(this)}))},bfe7:function(t,e,a){var s=a("fb68"),n=a("e7ad").document,i=s(n)&&s(n.createElement);t.exports=function(t){return i?n.createElement(t):{}}},c2f7:function(t,e,a){var s=a("e042"),n=a("09b9"),i=a("b3a6")(!1),o=a("56f2")("IE_PROTO");t.exports=function(t,e){var a,r=n(t),c=0,l=[];for(a in r)a!=o&&s(r,a)&&l.push(a);while(e.length>c)s(r,a=e[c++])&&(~i(l,a)||l.push(a));return l}},ca06:function(t,e,a){e=t.exports=a("690e")(!1),e.push([t.i,".m-colorPicker[data-v-29accc04]{position:relative;text-align:left;font-size:14px;display:inline-block;outline:none}.m-colorPicker li[data-v-29accc04],.m-colorPicker ol[data-v-29accc04],.m-colorPicker ul[data-v-29accc04]{list-style:none;margin:0;padding:0}.m-colorPicker .colorBtn[data-v-29accc04]{width:15px;height:15px}.m-colorPicker .colorBtn.disabled[data-v-29accc04]{cursor:no-drop}.m-colorPicker .box[data-v-29accc04]{position:absolute;width:190px;background:#fff;border:1px solid #ddd;visibility:hidden;border-radius:2px;margin-top:2px;padding:10px;padding-bottom:5px;-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);box-shadow:0 0 5px rgba(0,0,0,.15);opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-box-sizing:content-box;box-sizing:content-box}.m-colorPicker .box h3[data-v-29accc04]{margin:0;font-size:14px;font-weight:400;margin-top:10px;margin-bottom:5px;line-height:1;color:#333}.m-colorPicker .box input[data-v-29accc04]{visibility:hidden;position:absolute;left:0;bottom:0}.m-colorPicker .box.open[data-v-29accc04]{visibility:visible;opacity:1;z-index:1}.m-colorPicker .hd[data-v-29accc04]{overflow:hidden;line-height:29px}.m-colorPicker .hd .colorView[data-v-29accc04]{width:100px;height:30px;float:left;-webkit-transition:background-color .3s ease;transition:background-color .3s ease}.m-colorPicker .hd .defaultColor[data-v-29accc04]{width:80px;float:right;text-align:center;border:1px solid #ddd;cursor:pointer;color:#333}.m-colorPicker .tColor li[data-v-29accc04]{width:15px;height:15px;display:inline-block;margin:0 2px;-webkit-transition:all .3s ease;transition:all .3s ease}.m-colorPicker .tColor li[data-v-29accc04]:hover{-webkit-box-shadow:0 0 5px rgba(0,0,0,.4);box-shadow:0 0 5px rgba(0,0,0,.4);-webkit-transform:scale(1.3);transform:scale(1.3)}.m-colorPicker .bColor li[data-v-29accc04]{width:15px;display:inline-block;margin:0 2px}.m-colorPicker .bColor li li[data-v-29accc04]{display:block;width:15px;height:15px;-webkit-transition:all .3s ease;transition:all .3s ease;margin:0}.m-colorPicker .bColor li li[data-v-29accc04]:hover{-webkit-box-shadow:0 0 5px rgba(0,0,0,.4);box-shadow:0 0 5px rgba(0,0,0,.4);-webkit-transform:scale(1.3);transform:scale(1.3)}",""])},cb3d:function(t,e,a){var s=a("6798")("wks"),n=a("ec45"),i=a("e7ad").Symbol,o="function"==typeof i,r=t.exports=function(t){return s[t]||(s[t]=o&&i[t]||(o?i:n)("Symbol."+t))};r.store=s},cc33:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},cc57:function(t,e,a){var s=a("064e").f,n=Function.prototype,i=/^\s*function ([^ (]*)/,o="name";o in n||a("149f")&&s(n,o,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},ceac:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},d07e:function(t,e,a){t.exports=a("6798")("native-function-to-string",Function.toString)},d0bc:function(t,e,a){var s=a("69b3");t.exports=function(t,e,a,n){try{return n?e(s(a)[0],a[1]):e(a)}catch(o){var i=t["return"];throw void 0!==i&&s(i.call(t)),o}}},d0c5:function(t,e,a){var s=a("cb3d")("iterator"),n=!1;try{var i=[7][s]();i["return"]=function(){n=!0},Array.from(i,(function(){throw 2}))}catch(o){}t.exports=function(t,e){if(!e&&!n)return!1;var a=!1;try{var i=[7],r=i[s]();r.next=function(){return{done:a=!0}},i[s]=function(){return r},t(i)}catch(o){}return a}},da6d:function(t,e){t.exports={}},db6b:function(t,e,a){t.exports=!a("149f")&&!a("238a")((function(){return 7!=Object.defineProperty(a("bfe7")("div"),"a",{get:function(){return 7}}).a}))},dcb7:function(t,e,a){var s=a("4f18"),n=a("cc33"),i=a("09b9"),o=a("94b3"),r=a("e042"),c=a("db6b"),l=Object.getOwnPropertyDescriptor;e.f=a("149f")?l:function(t,e){if(t=i(t),e=o(e,!0),c)try{return l(t,e)}catch(a){}if(r(t,e))return n(!s.f.call(t,e),t[e])}},e005:function(t,e,a){var s=a("69b3"),n=a("0dc8"),i=a("ceac"),o=a("56f2")("IE_PROTO"),r=function(){},c="prototype",l=function(){var t,e=a("bfe7")("iframe"),s=i.length,n="<",o=">";e.style.display="none",a("8df1").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(n+"script"+o+"document.F=Object"+n+"/script"+o),t.close(),l=t.F;while(s--)delete l[c][i[s]];return l()};t.exports=Object.create||function(t,e){var a;return null!==t?(r[c]=s(t),a=new r,r[c]=null,a[o]=t):a=l(),void 0===e?a:n(a,e)}},e042:function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},e137:function(t,e,a){"use strict";var s=a("1b07"),n=a.n(s);n.a},e44b:function(t,e,a){"use strict";var s=a("0e8b"),n=a("475d"),i=a("da6d"),o=a("09b9");t.exports=a("492d")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,a=this._i++;return!t||a>=t.length?(this._t=void 0,n(1)):n(0,"keys"==e?a:"values"==e?t[a]:[a,t[a]])}),"values"),i.Arguments=i.Array,s("keys"),s("values"),s("entries")},e46b:function(t,e,a){var s=a("e7ad"),n=a("7ddc"),i=a("86d4"),o=a("bf16"),r=a("4ce5"),c="prototype",l=function(t,e,a){var u,d,p,f,m=t&l.F,v=t&l.G,b=t&l.S,g=t&l.P,h=t&l.B,y=v?s:b?s[e]||(s[e]={}):(s[e]||{})[c],C=v?n:n[e]||(n[e]={}),_=C[c]||(C[c]={});for(u in v&&(a=e),a)d=!m&&y&&void 0!==y[u],p=(d?y:a)[u],f=h&&d?r(p,s):g&&"function"==typeof p?r(Function.call,p):p,y&&o(y,u,p,t&l.U),C[u]!=p&&i(C,u,f),g&&_[u]!=p&&(_[u]=p)};s.core=n,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},e67d:function(t,e){(function(t){var e="currentScript",a=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(s){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(s.stack)||[!1])[1];for(t in a)if(a[t].src==e||"interactive"==a[t].readyState)return a[t];return null}}})})(document)},e7ad:function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},eafa:function(t,e,a){var s=a("ee21"),n=Math.min;t.exports=function(t){return t>0?n(s(t),9007199254740991):0}},ebc3:function(t,e,a){"use strict";var s=a("064e"),n=a("cc33");t.exports=function(t,e,a){e in t?s.f(t,e,n(0,a)):t[e]=a}},ec25:function(t,e,a){"use strict";var s=a("4ce5"),n=a("e46b"),i=a("008a"),o=a("d0bc"),r=a("2285"),c=a("eafa"),l=a("ebc3"),u=a("f878");n(n.S+n.F*!a("d0c5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,a,n,d,p=i(t),f="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,g=0,h=u(p);if(b&&(v=s(v,m>2?arguments[2]:void 0,2)),void 0==h||f==Array&&r(h))for(e=c(p.length),a=new f(e);e>g;g++)l(a,g,b?v(p[g],g):p[g]);else for(d=h.call(p),a=new f;!(n=d.next()).done;g++)l(a,g,b?o(d,v,[n.value,g],!0):n.value);return a.length=g,a}})},ec45:function(t,e){var a=0,s=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+s).toString(36))}},ee21:function(t,e){var a=Math.ceil,s=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?s:a)(t)}},f091:function(t,e,a){var s=a("80a9"),n=a("2f77"),i=a("4f18");t.exports=function(t){var e=s(t),a=n.f;if(a){var o,r=a(t),c=i.f,l=0;while(r.length>l)c.call(t,o=r[l++])&&e.push(o)}return e}},f1fe:function(t,e,a){"use strict";var s=a("69b3");t.exports=function(){var t=s(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},f58a:function(t,e,a){var s=a("ee21"),n=Math.max,i=Math.min;t.exports=function(t,e){return t=s(t),t<0?n(t+e,0):i(t,e)}},f6b4:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},f71f:function(t,e,a){var s=a("ec45")("meta"),n=a("fb68"),i=a("e042"),o=a("064e").f,r=0,c=Object.isExtensible||function(){return!0},l=!a("238a")((function(){return c(Object.preventExtensions({}))})),u=function(t){o(t,s,{value:{i:"O"+ ++r,w:{}}})},d=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[s].i},p=function(t,e){if(!i(t,s)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[s].w},f=function(t){return l&&m.NEED&&c(t)&&!i(t,s)&&u(t),t},m=t.exports={KEY:s,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},f878:function(t,e,a){var s=a("7e23"),n=a("cb3d")("iterator"),i=a("da6d");t.exports=a("7ddc").getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||i[s(t)]}},fb68:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fc81:function(t,e,a){var s=a("ee21"),n=a("f6b4");t.exports=function(t){return function(e,a){var i,o,r=String(n(e)),c=s(a),l=r.length;return c<0||c>=l?t?"":void 0:(i=r.charCodeAt(c),i<55296||i>56319||c+1===l||(o=r.charCodeAt(c+1))<56320||o>57343?t?r.charAt(c):i:t?r.slice(c,c+2):o-56320+(i-55296<<10)+65536)}}}})}))},8565:function(t,e,a){},"85ee":function(t,e,a){(function(e){var a=1/0,s=9007199254740991,n="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",r="[object Symbol]",c="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,u=c||l||Function("return this")();function d(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}function p(t,e){var a=-1,s=t?t.length:0,n=Array(s);while(++a<s)n[a]=e(t[a],a,t);return n}function f(t,e){var a=-1,s=e.length,n=t.length;while(++a<s)t[n+a]=e[a];return t}var m=Object.prototype,v=m.hasOwnProperty,b=m.toString,g=u.Symbol,h=m.propertyIsEnumerable,y=g?g.isConcatSpreadable:void 0,C=Math.max;function _(t,e,a,s,n){var i=-1,o=t.length;a||(a=w),n||(n=[]);while(++i<o){var r=t[i];e>0&&a(r)?e>1?_(r,e-1,a,s,n):f(n,r):s||(n[n.length]=r)}return n}function k(t,e){return t=Object(t),x(t,e,(function(e,a){return a in t}))}function x(t,e,a){var s=-1,n=e.length,i={};while(++s<n){var o=e[s],r=t[o];a(r,o)&&(i[o]=r)}return i}function I(t,e){return e=C(void 0===e?t.length-1:e,0),function(){var a=arguments,s=-1,n=C(a.length-e,0),i=Array(n);while(++s<n)i[s]=a[e+s];s=-1;var o=Array(e+1);while(++s<e)o[s]=a[s];return o[e]=i,d(t,this,o)}}function w(t){return M(t)||L(t)||!!(y&&t&&t[y])}function S(t){if("string"==typeof t||D(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}function L(t){return E(t)&&v.call(t,"callee")&&(!h.call(t,"callee")||b.call(t)==n)}var M=Array.isArray;function P(t){return null!=t&&T(t.length)&&!O(t)}function E(t){return j(t)&&P(t)}function O(t){var e=$(t)?b.call(t):"";return e==i||e==o}function T(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function $(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){return!!t&&"object"==typeof t}function D(t){return"symbol"==typeof t||j(t)&&b.call(t)==r}var A=I((function(t,e){return null==t?{}:k(t,p(_(e,1),S))}));t.exports=A}).call(this,a("f20b"))},"8b63":function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124254166",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7112",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M788.551 292.895c-74.801 0-135.633-60.832-135.633-135.605V1.119H165.282c-45.595 0-82.548 36.982-82.548 82.549v856.719c0 45.567 36.955 82.493 82.548 82.493h693.46c45.571 0 82.523-36.926 82.523-82.493V292.894H788.551z m16.533 546.221H218.885v-55.301h586.199v55.301z m0-176.966H218.885v-55.301h586.199v55.301z m0-176.966H218.885v-55.301h586.199v55.301z","p-id":"7113"}},{tag:"path",attrsMap:{d:"M706.002 1.119V157.29c0 45.567 36.955 82.493 82.549 82.493h152.714L706.002 1.121z","p-id":"7114"}}]})}},"918c":function(t,e,a){"use strict";a("14b9")},b043:function(t,e,a){"use strict";a.r(e);a("aa8b");var s=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"card-title"},[t._v("分类页模板")]),e("a-spin",{attrs:{spinning:t.isLoading}},[e("div",{staticClass:"container clearfix"},[e("div",{staticClass:"preview fl-l"},[t.form.getFieldValue("style")?e("img",{attrs:{src:"static/img/category/".concat(t.form.getFieldValue("style"),".png")}}):t._e()]),e("div",{staticClass:"form-box fl-r"},[e("a-form",{attrs:{form:t.form},on:{submit:t.handleSubmit}},[e("a-form-item",{attrs:{label:"分类页样式",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["style",{initialValue:t.PageCategoryStyleEnum.TWO_LEVEL.value,rules:[{required:!0}]}],expression:"['style', { initialValue: PageCategoryStyleEnum.TWO_LEVEL.value, rules: [{required: true}] }]"}]},t._l(t.PageCategoryStyleEnum.data,(function(a,s){return e("a-radio",{key:s,attrs:{value:a.value}},[t._v(t._s(a.name))])})),1),e("div",{staticClass:"form-item-help"},[t.form.getFieldValue("style")==t.PageCategoryStyleEnum.ONE_LEVEL_BIG.value?e("p",{staticClass:"extra"},[t._v("分类图尺寸:宽750像素 高度不限")]):t._e(),t.form.getFieldValue("style")==t.PageCategoryStyleEnum.ONE_LEVEL_SMALL.value?e("p",{staticClass:"extra"},[t._v("分类图尺寸:宽188像素 高度不限")]):t._e(),t.form.getFieldValue("style")==t.PageCategoryStyleEnum.TWO_LEVEL.value?e("p",{staticClass:"extra"},[t._v("分类图尺寸:宽150像素 高150像素")]):t._e()])],1),e("a-form-item",{attrs:{label:"分享标题",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["shareTitle"],expression:"['shareTitle']"}]})],1),e("a-form-item",{attrs:{"wrapper-col":{span:t.wrapperCol.span,offset:t.labelCol.span}}},[e("a-button",{attrs:{type:"primary","html-type":"submit"}},[t._v("提交")])],1)],1)],1)])])],1)},n=[],i=(a("9f29"),a("9b73"),a("85ee")),o=a.n(i),r=a("f585"),c=a("5c06"),l=new c["a"]([{key:"DELIVERY",name:"配送设置",value:"delivery"},{key:"TRADE",name:"交易设置",value:"trade"},{key:"STORAGE",name:"上传设置",value:"storage"},{key:"FULL_FREE",name:"满额包邮设置",value:"full_free"},{key:"RECHARGE",name:"充值设置",value:"recharge"},{key:"POINTS",name:"积分设置",value:"points"},{key:"PAGE_CATEGORY_TEMPLATE",name:"分类页模板",value:"page_category_template"}]),u=new c["a"]([{key:"ONE_LEVEL_BIG",name:"一级分类[大图]",value:10},{key:"ONE_LEVEL_SMALL",name:"一级分类[小图]",value:11},{key:"TWO_LEVEL",name:"二级分类",value:20}]),d={components:{},data:function(){return{key:l.PAGE_CATEGORY_TEMPLATE.value,labelCol:{span:4},wrapperCol:{span:20},isLoading:!1,PageCategoryStyleEnum:u,form:this.$form.createForm(this),record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var t=this;this.isLoading=!0,r["a"](this.key).then((function(e){t.record=e.data.values,t.setFieldsValue()})).finally((function(e){t.isLoading=!1}))},setFieldsValue:function(){var t=this.record,e=this.form.setFieldsValue;this.$nextTick((function(){e(o()(t,["style","share_title"]))}))},handleSubmit:function(t){var e=this;t.preventDefault();var a=this.form.validateFields;a((function(t,a){!t&&e.onFormSubmit(a)}))},onFormSubmit:function(t){var e=this;this.isLoading=!0,r["b"](this.key,{form:t}).then((function(t){e.$message.success(t.message,1.5)})).finally((function(t){e.isLoading=!1}))}}},p=d,f=(a("546b"),a("829d")),m=Object(f["a"])(p,s,n,!1,null,"991b2eac",null);e["default"]=m.exports},b483:function(t,e,a){},bd2c:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125485152",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1947",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M511.76459952 340.77179268h-2.51707557c-1.13228947 12.64850194-3.61780295 24.79464083-7.51966458 36.49891067l-49.33678506 150.77861228h115.0976854l-49.05404147-149.64632281c-3.1456869-9.46993788-5.38001886-22.02506867-6.67011872-37.63120014z","p-id":"1948"}},{tag:"path",attrsMap:{d:"M7.03966189 6.99363386v1009.98643056h1009.98643055v-1009.98643056h-1009.98643055z m192.1985766 875.73451031c-28.91612193 0-52.35753875-23.44141683-52.35753875-52.35753875s23.44141683-52.35753875 52.35753875-52.35753875 52.35753875 23.44141683 52.35753876 52.35753875-23.44141683 52.35753875-52.35753876 52.35753875z m0-631.18234021c-28.91612193 0-52.35753875-23.44141683-52.35753875-52.35753875s23.44141683-52.35753875 52.35753875-52.35753876 52.35753875 23.44141683 52.35753876 52.35753876-23.44141683 52.35753875-52.35753876 52.35753875z m422.30715172 446.47712646l-32.31430543-98.92475165H432.34784099l-31.77906523 98.92475165h-99.74273546l157.9839712-431.66530724h108.14482309L721.8878051 698.02293042h-100.34241489z m199.93917574 184.70521375c-28.91612193 0-52.35753875-23.44141683-52.35753874-52.35753875s23.44141683-52.35753875 52.35753874-52.35753875 52.35753875 23.44141683 52.35753875 52.35753875-23.44141683 52.35753875-52.35753875 52.35753875z m0-631.18234021c-28.91612193 0-52.35753875-23.44141683-52.35753874-52.35753875s23.44141683-52.35753875 52.35753874-52.35753876 52.35753875 23.44141683 52.35753875 52.35753876-23.44141683 52.35753875-52.35753875 52.35753875z","p-id":"1949"}}]})}},bfcf:function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return r})),a.d(e,"g",(function(){return c})),a.d(e,"a",(function(){return l})),a.d(e,"e",(function(){return u})),a.d(e,"c",(function(){return d}));var s=a("b775"),n={list:"/page/list",defaultData:"/page/defaultData",detail:"/page/detail",add:"/page/add",edit:"/page/edit",delete:"/page/delete",setHome:"/page/setHome"};function i(t){return Object(s["b"])({url:n.list,method:"get",params:t})}function o(t){return Object(s["b"])({url:n.defaultData,method:"get",params:t})}function r(t){return Object(s["b"])({url:n.detail,method:"get",params:t})}function c(t){return Object(s["b"])({url:n.setHome,method:"post",data:t})}function l(t){return Object(s["b"])({url:n.add,method:"post",data:t})}function u(t){return Object(s["b"])({url:n.edit,method:"post",data:t})}function d(t){return Object(s["b"])({url:n.delete,method:"post",data:t})}},c207:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("a-spin",{attrs:{spinning:t.isLoading}},[e("div",{staticClass:"work-content"},[e("Components",{on:{handleClickItem:t.onAddItem}}),t.isLoading?t._e():e("Phone",{attrs:{data:t.data,selectedIndex:t.selectedIndex},on:{onEditer:t.onEditer,onDeleleItem:t.onDeleleItem}}),t.isLoading?t._e():e("Editor",{attrs:{defaultData:t.defaultData,data:t.data,selectedIndex:t.selectedIndex,curItem:t.curItem}})],1),e("div",{staticClass:"footer"},[e("div",{staticClass:"footer-content"},[e("a-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.onFormSubmit}},[t._v("保存")])],1)])])],1)},n=[],i=(a("9f29"),a("fa6d"),a("9b73"),a("a815"),a("a2bf"),a("7c98")),o=a.n(i),r=a("3335"),c=a.n(r),l=a("ca00"),u=a("bfcf"),d=a("2af9"),p=a("3eca"),f={components:{SelectImage:d["d"],draggable:c.a,Components:p["a"],Phone:p["c"],Editor:p["b"]},data:function(){return{isLoading:!1,defaultData:{},data:{page:{},items:[]},selectedIndex:"page",curItem:{},pageId:null}},created:function(){this.pageId=this.$route.query.pageId,this.initData()},methods:{initData:function(){var t=this;this.isLoading=!0,Promise.all([this.getDefaultData(),this.getPageData()]).then((function(){t.isLoading=!1}))},getDefaultData:function(){var t=this;return new Promise((function(e,a){u["b"]().then((function(a){t.defaultData=a.data,e()}))}))},getPageData:function(){var t=this,e=this.pageId;return new Promise((function(a,s){u["d"]({pageId:e}).then((function(e){t.data=e.data.detail.page_data,a()}))}))},onAddItem:function(t){if(!this.onCheckAddItem(t))return!1;var e=this.defaultData,a=this.data,s=o.a.cloneDeep(e.items[t]);a.items.push(s),this.onEditer(a.items.length-1)},onCheckAddItem:function(t){var e=this.data;if("xxx"===t){var a=e.items.map((function(t){return t.type}));if(Object(l["e"])(t,a))return this.$message.warning("该组件最多存在一个"),!1}return!0},onEditer:function(t){var e=this.data;this.selectedIndex=t,this.curItem="page"===t?e.page:e.items[t]},onDeleleItem:function(t){var e=this.data.items;e.splice(t,1),this.selectedIndex=-1},onEditorResetColor:function(t,e,a){t[e]=a},onFormSubmit:function(){var t=this;this.isLoading=!0;var e=this.pageId,a=this.data,s=this.$message;u["e"]({pageId:e,form:a}).then((function(e){s.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1200)})).finally((function(){setTimeout((function(){t.isLoading=!1}),1500)}))}}},m=f,v=(a("6a61"),a("829d")),b=Object(v["a"])(m,s,n,!1,null,"b6d0deb8",null);e["default"]=b.exports},c2b5:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125589521",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2075",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M938.666667 0h-853.333334C38.229333 0 0 38.229333 0 85.333333v853.333334c0 47.104 38.229333 85.333333 85.333333 85.333333h853.333334c47.104 0 85.333333-38.229333 85.333333-85.333333v-853.333334C1024 38.229333 985.770667 0 938.666667 0m-152.234667 530.432c-19.114667 133.802667-134.485333 237.568-274.432 237.568-139.264 0-254.634667-103.765333-274.432-237.568-26.624-8.192-45.738667-32.085333-45.738667-60.757333 0-35.498667 28.672-64.170667 64.170667-64.170667s64.170667 28.672 64.170667 64.170667c0 26.624-16.384 49.152-39.594667 59.392 18.432 111.274667 114.688 196.608 231.424 196.608s212.992-85.333333 231.424-196.608a63.6928 63.6928 0 0 1-39.594667-59.392c0-35.498667 28.672-64.170667 64.170667-64.170667s64.170667 28.672 64.170667 64.170667c0 28.672-19.797333 52.565333-45.738667 60.757333m173.397333-380.928c0 23.210667-19.114667 43.008-43.008 43.008H106.496c-23.210667 0-43.008-19.114667-43.008-43.008v-43.008c0-23.210667 19.114667-43.008 43.008-43.008h811.008c23.210667 0 43.008 19.114667 43.008 43.008v43.008z","p-id":"2076"}}]})}},c76f:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},children:[{tag:"title",children:[{text:"volume-fill"}]},{tag:"path",attrsMap:{d:"M16.432 4.362c0.592-0.355 1.347 0.070 1.347 0.762v21.75c0 0.691-0.755 1.117-1.347 0.762l-7.12-4.272c-0.275-0.166-0.592-0.253-0.915-0.253h-4.842c-0.982 0-1.779-0.794-1.779-1.779v-10.666c0-0.982 0.794-1.779 1.779-1.779h4.838c0.323 0 0.64-0.086 0.915-0.253l7.123-4.272zM22.026 9.088c1.846 1.846 2.864 4.301 2.864 6.915 0 2.611-1.018 5.066-2.864 6.912-0.166 0.166-0.394 0.262-0.63 0.262-0.227 0-0.454-0.086-0.627-0.262-0.346-0.346-0.346-0.909 0-1.258 1.514-1.51 2.342-3.517 2.342-5.654s-0.829-4.147-2.342-5.658c-0.346-0.346-0.346-0.909 0-1.258s0.909-0.349 1.258 0zM25.798 5.315c2.854 2.854 4.426 6.65 4.426 10.685s-1.571 7.83-4.426 10.685c-0.166 0.166-0.394 0.262-0.63 0.262-0.227 0-0.454-0.086-0.627-0.262-0.346-0.346-0.346-0.909 0-1.258 2.518-2.518 3.904-5.866 3.904-9.427s-1.386-6.909-3.904-9.43c-0.346-0.346-0.346-0.909 0-1.258 0.346-0.346 0.909-0.346 1.258 0.003z"}}]})}},d139:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124615799",class:"icon",viewBox:"0 0 1152 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1208",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M1109.333333 0H42.666667C17.066667 0 0 17.066667 0 42.666667v938.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h1066.666666c21.333333 0 42.666667-17.066667 42.666667-42.666667V42.666667c0-25.6-17.066667-42.666667-42.666667-42.666667z m-85.333333 896H128v-341.333333l170.666667-128 384 256 128-170.666667 213.333333 170.666667v213.333333zM896 384c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z","p-id":"1209"}}]})}},d182:function(t,e,a){},d2aa:function(t,e,a){"use strict";a("de5d")},d633:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124292684",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5589",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M953.27858574 1019.1309824H620.79151218c-34.9986395 0-64.03609941-28.35052771-64.03609941-63.33752434V626.19383011c0-34.92878222 29.10731833-69.10077269 64.03609941-69.10077269h332.48707356c34.92878222 0 65.50310912 34.13706297 65.50310912 69.10077269v329.61127083c0 34.98699662-30.52775538 63.33752434-65.50310912 63.33752434z m0-553.36504661H620.79151218c-34.9986395 0-64.03609941-30.50446962-64.03609941-65.50310912V69.17290439c0-34.92878222 29.10731833-66.21332707 64.03609941-66.21332708h332.48707356c34.92878222 0 65.50310912 31.24961621 65.50310912 66.21332708v331.10156516c0 34.9986395-30.52775538 65.50310912-65.50310912 65.50310912zM400.6354011 1019.1309824H66.70460473a63.32588146 63.32588146 0 0 1-63.33752434-63.33752434V626.19383011c0-34.92878222 28.35052771-69.10077269 63.33752434-69.10077269h333.93079637c34.92878222 0 64.03609941 34.13706297 64.03609941 69.10077269v329.61127083c0 34.98699662-29.10731833 63.33752434-64.03609941 63.33752434z m0-553.36504661H66.70460473c-34.98699662 0-63.33752434-30.50446962-63.33752434-65.50310912V69.17290439c0-34.92878222 28.35052771-66.21332707 63.33752434-66.21332708h333.93079637c34.92878222 0 64.03609941 31.24961621 64.03609941 66.21332708v331.10156516c0 34.9986395-29.10731833 65.50310912-64.03609941 65.50310912z m-5.04138752-392.93715229H72.47949597v323.11451762h323.11451761V72.8287835z","p-id":"5590"}}]})}},d918:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604124319609",class:"icon",viewBox:"0 0 1170 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6222",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M603.794 6.89L302.011 204.373H151.485A152.208 152.208 0 0 0 0.01 358.043v307.562a151.989 151.989 0 0 0 151.476 153.598h150.526l301.783 197.483c42.642 18.87 75.702-1.317 75.702-43.885V51.214c0.073-43.08-33.864-62.683-75.702-44.324zM858.109 254.987a37.156 37.156 0 0 0-53.32-1.829 38.985 38.985 0 0 0-1.83 54.345 224.911 224.911 0 0 1 31.378 50.395 351.08 351.08 0 0 1 33.938 154.036 351.08 351.08 0 0 1-33.864 154.11 224.984 224.984 0 0 1-31.378 50.395 38.911 38.911 0 0 0 1.828 54.344 37.23 37.23 0 0 0 53.394-1.828 293.006 293.006 0 0 0 43.885-68.973 429.05 429.05 0 0 0 41.618-188.048 428.977 428.977 0 0 0-41.252-188.12 295.2 295.2 0 0 0-43.885-68.827z","p-id":"6223"}},{tag:"path",attrsMap:{d:"M1089.675 207.372a469.79 469.79 0 0 0-82.942-108.69 37.23 37.23 0 0 0-53.32 3.22 38.911 38.911 0 0 0 3.144 54.27 254.46 254.46 0 0 1 20.188 21.943 472.057 472.057 0 0 1 47.98 68.607 523.257 523.257 0 0 1 70.217 265.505 523.037 523.037 0 0 1-70.655 265.285 477.982 477.982 0 0 1-47.981 68.607 254.168 254.168 0 0 1-20.187 21.943 39.058 39.058 0 0 0-3.072 54.27 37.302 37.302 0 0 0 53.32 3.146 468.108 468.108 0 0 0 83.235-108.835 600.567 600.567 0 0 0 80.968-304.709 599.763 599.763 0 0 0-80.895-304.562z","p-id":"6224"}}]})}},de5d:function(t,e,a){},e1de:function(t,e,a){},ead9f:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("a-spin",{attrs:{spinning:t.isLoading}},[e("div",{staticClass:"work-content"},[e("Components",{on:{handleClickItem:t.onAddItem}}),t.isLoading?t._e():e("Phone",{attrs:{data:t.data,selectedIndex:t.selectedIndex},on:{onEditer:t.onEditer,onDeleleItem:t.onDeleleItem}}),t.isLoading?t._e():e("Editor",{attrs:{defaultData:t.defaultData,data:t.data,selectedIndex:t.selectedIndex,curItem:t.curItem}})],1),e("div",{staticClass:"footer"},[e("div",{staticClass:"footer-content"},[e("a-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.onFormSubmit}},[t._v("保存")])],1)])])],1)},n=[],i=(a("9f29"),a("fa6d"),a("9b73"),a("a815"),a("a2bf"),a("7c98")),o=a.n(i),r=a("3335"),c=a.n(r),l=a("ca00"),u=a("bfcf"),d=a("2af9"),p=a("3eca"),f={components:{SelectImage:d["d"],draggable:c.a,Components:p["a"],Phone:p["c"],Editor:p["b"]},data:function(){return{isLoading:!1,defaultData:{},data:{page:{},items:[]},selectedIndex:"page",curItem:{}}},created:function(){this.initData()},methods:{initData:function(){var t=this;this.isLoading=!0,Promise.all([this.getDefaultData()]).then((function(){t.createNewData(),t.isLoading=!1}))},createNewData:function(){var t=this.defaultData,e=this.data;e.page=t.page,e.items=[]},getDefaultData:function(){var t=this;return new Promise((function(e,a){u["b"]().then((function(a){t.defaultData=a.data,e()}))}))},onAddItem:function(t){if(!this.onCheckAddItem(t))return!1;var e=this.defaultData,a=this.data,s=o.a.cloneDeep(e.items[t]);a.items.push(s),this.onEditer(a.items.length-1)},onCheckAddItem:function(t){var e=this.data;if("xxx"===t){var a=e.items.map((function(t){return t.type}));if(Object(l["e"])(t,a))return this.$message.warning("该组件最多存在一个"),!1}return!0},onEditer:function(t){var e=this.data;this.selectedIndex=t,this.curItem="page"===t?e.page:e.items[t]},onDeleleItem:function(t){var e=this.data.items;e.splice(t,1),this.selectedIndex=-1},onEditorResetColor:function(t,e,a){t[e]=a},onFormSubmit:function(){var t=this;this.isLoading=!0;var e=this.data,a=this.$message;u["a"]({form:e}).then((function(e){a.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).finally((function(){setTimeout((function(){t.isLoading=!1}),1500)}))}}},m=f,v=(a("5711"),a("829d")),b=Object(v["a"])(m,s,n,!1,null,"1b3648c4",null);e["default"]=b.exports},f484:function(t,e,a){var s=a("5e87");t.exports={__esModule:!0,default:s.svgComponent({tag:"svg",attrsMap:{t:"1604125417446",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"58858",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M598.4 0h-169.6c-25.6 0-44.8 19.2-44.8 41.6 0 22.4 19.2 41.6 41.6 41.6h169.6c22.4 0 41.6-19.2 41.6-41.6 3.2-22.4-16-41.6-38.4-41.6zM256 0H137.6C60.8 0 0 60.8 0 137.6V256c0 22.4 19.2 41.6 41.6 41.6S86.4 278.4 86.4 256V137.6c0-28.8 22.4-51.2 51.2-51.2H256c22.4 0 41.6-19.2 41.6-41.6C297.6 19.2 278.4 0 256 0zM41.6 640c22.4 0 41.6-19.2 41.6-41.6v-169.6c0-22.4-19.2-41.6-41.6-41.6S0 403.2 0 425.6v169.6c0 25.6 19.2 44.8 41.6 44.8zM256 937.6H137.6c-28.8 0-51.2-22.4-51.2-51.2V768c0-22.4-19.2-41.6-41.6-41.6S0 745.6 0 768v118.4C0 963.2 60.8 1024 137.6 1024H256c22.4 0 41.6-19.2 41.6-41.6 0-25.6-19.2-44.8-41.6-44.8zM598.4 937.6h-169.6c-22.4 0-41.6 19.2-41.6 41.6 0 22.4 19.2 41.6 41.6 41.6h169.6c22.4 0 41.6-19.2 41.6-41.6 0-22.4-19.2-41.6-41.6-41.6zM982.4 726.4c-22.4 0-41.6 19.2-41.6 41.6v118.4c0 28.8-22.4 51.2-51.2 51.2H768c-22.4 0-41.6 19.2-41.6 41.6 0 22.4 19.2 41.6 41.6 41.6h118.4c73.6 0 137.6-60.8 137.6-137.6V768c0-22.4-19.2-41.6-41.6-41.6zM982.4 384c-22.4 0-41.6 19.2-41.6 41.6v169.6c0 22.4 19.2 41.6 41.6 41.6 22.4 0 41.6-19.2 41.6-41.6v-169.6c0-22.4-19.2-41.6-41.6-41.6zM886.4 0H768c-22.4 0-41.6 19.2-41.6 41.6 0 22.4 19.2 41.6 41.6 41.6h118.4c28.8 0 51.2 22.4 51.2 51.2V256c0 22.4 19.2 41.6 41.6 41.6 25.6 0 44.8-19.2 44.8-41.6V137.6C1024 60.8 963.2 0 886.4 0z","p-id":"58859"}}]})}},f585:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return r}));var s=a("753f"),n=a("b775"),i={detail:"/setting/detail",update:"/setting/update"};function o(t){return Object(n["b"])({url:i.detail,method:"get",params:{key:t}})}function r(t,e){return Object(n["b"])({url:i.update,method:"post",data:Object(s["a"])({key:t},e)})}},f63e:function(t,e,a){},fc67:function(t,e,a){"use strict";a("e1de")}}]);