| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-09fb6fe5","chunk-8b960b50"],{"008b":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("0a6d"),i=s("a92d");let r=class extends l.e{constructor(){super(...arguments),this.goods=[]}handleConfirm(){this.$emit("input",this.goods)}};Object(a.a)([Object(l.c)({default:()=>({})})],r.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],r.prototype,"disabled",void 0),Object(a.a)([Object(l.c)()],r.prototype,"type",void 0),r=Object(a.a)([Object(l.a)({components:{LsDialog:o.a,Detail:i.a}})],r);var n=r,c=s("2877"),d=Object(c.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ls-dialog",{ref:"dialog",staticClass:"category-select",attrs:{title:"选择活动商品",width:"900px",top:"20vh",disabled:t.disabled},on:{confirm:t.handleConfirm}},[s("div",{staticClass:"category-select__trigger",attrs:{slot:"trigger"},slot:"trigger"},[t._t("trigger",(function(){return[s("el-button",{attrs:{disabled:t.disabled,size:"mini",type:"primary"}},[t._v("选择商品")])]}))],2),s("div",{staticClass:"p-l-20 p-r-20"},[s("detail",{ref:"detail",attrs:{type:t.type},model:{value:t.goods,callback:function(e){t.goods=e},expression:"goods"}})],1)])}),[],!1,null,"4c4d6820",null).exports,u=s("b76a"),b=s.n(u);let m=class extends l.e{get selectData(){return this.value}set selectData(t){const e=t.splice(0,this.limit);this.$emit("input",e),this.$emit("change",e)}handleDelete(t){this.selectData.splice(t,1)}};Object(a.a)([Object(l.c)({default:()=>[]})],m.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],m.prototype,"disabled",void 0),Object(a.a)([Object(l.c)()],m.prototype,"type",void 0),Object(a.a)([Object(l.c)({default:10})],m.prototype,"limit",void 0),m=Object(a.a)([Object(l.a)({components:{CDialog:d,Draggable:b.a}})],m);var p=m,g=(s("f1ae"),Object(c.a)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"select"},[s("div",{staticClass:"flex"},[s("c-dialog",{attrs:{disabled:t.disabled,type:t.type},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}},[t._t("trigger")],2),s("div",{staticClass:"m-r-20"},[s("span",{staticClass:"muted m-l-20"},[t._v("最多添加"+t._s(t.limit)+"件商品")])]),t.selectData.length?s("div",{staticClass:"clear"},[s("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){t.selectData=[]}}},[t._v("清空")])],1):t._e()],1),s("div",{staticClass:"goods-lists"},[s("draggable",{staticClass:"flex flex-wrap",attrs:{animation:"300"},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}},t._l(t.selectData,(function(e,a){return s("div",{key:a,staticClass:"goods-item ls-del-wrap"},[s("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"cover",src:e.image}}),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.handleDelete(a)}}})],1)})),0)],1)])}),[],!1,null,"6bca3959",null));e.a=g.exports},"01d1":function(t,e,s){},"035e":function(t,e,s){"use strict";s("ddf8")},"04d0":function(t,e,s){},"06ac":function(t,e,s){},"0920":function(t,e,s){"use strict";s("13cd")},"0b27":function(t,e,s){"use strict";s("726b")},"0cbf":function(t,e,s){"use strict";s.d(e,"a",(function(){return l})),s.d(e,"e",(function(){return o})),s.d(e,"g",(function(){return i})),s.d(e,"c",(function(){return r})),s.d(e,"h",(function(){return n})),s.d(e,"l",(function(){return c})),s.d(e,"k",(function(){return d})),s.d(e,"d",(function(){return u})),s.d(e,"f",(function(){return b})),s.d(e,"m",(function(){return m})),s.d(e,"i",(function(){return p})),s.d(e,"n",(function(){return g})),s.d(e,"j",(function(){return v})),s.d(e,"b",(function(){return f}));var a=s("f175");const l=t=>a.a.post("/marketing.coupon/add",t),o=t=>a.a.post("/marketing.coupon/edit",t),i=t=>a.a.get("/marketing.coupon/lists",{params:t}),r=t=>a.a.post("/marketing.coupon/delete",t),n=t=>a.a.post("/marketing.coupon/open",t),c=t=>a.a.post("/marketing.coupon/stop",t),d=t=>a.a.post("/marketing.coupon/sort",t),u=t=>a.a.get("/marketing.coupon/detail",{params:{id:t}}),b=t=>a.a.get("/marketing.coupon/info",{params:{id:t}}),m=()=>a.a.get("/marketing.coupon/survey"),p=t=>a.a.get("/marketing.coupon/record",{params:t}),g=t=>a.a.post("/marketing.coupon/void",t),v=t=>a.a.post("/marketing.coupon/send",t),f=t=>a.a.get("/marketing.coupon/commonLists",{params:t})},"0dc1":function(t,e,s){},"0ff6":function(t,e,s){},"101c":function(t,e,s){"use strict";s("2ee8")},1162:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABuCAMAAADxhdbJAAAB4FBMVEUAAAD////////+sJH+r47628/9tpr71sf9vqX64tj4+vr69fX+s5b57ej4+fr4+vr4+Pf4+fn4+Pf39vX39/b71MT4+vv18/H89PT64NX63tP4+Pj4+fn49/b59PL48/L69/f59vb57ur8yrb8yLT4+Pj49/b59vb49vX59vb49/X4+Pf49/f48e749/f70L/9war4/P74+fr39/n4+Pf49/b49vX73ND72Mr8zrz9v6b49/b4+fn49/f59/f4+Pj4+Pb4+Pb9wan/p4T49/f49/b59/f59vX39vb39/f++Pj////49PP80sL8w6772cz49/b4+Pf59fX49vT59vX69fX29vb////8z738zLn9spX59vb39/f64db73tL8xbD56OH59/b/on7/////o3///v3/n3r/oHv/nXf/nnj/oXz4/v/4/f7/nHb/pYD49vX/qoj4+fr4+/z/rIr49fP4/P3/qIX4+Pf/9PH/08L/m3T4+vv//Pr/4tb/zrv/9/T58vH/7OT/5tv/xK3/spP/18f/yrb/uJz/tZj/ro3/pYL/39L/28358e3/7+j/6eD65t7/wKj/vKL/s5X/+ff/0b//x7P/uZ7/8ez/sJD/mnP56uX/rIz/2cn/p4P/pIHzqTa8AAAAYnRSTlMAAgT+/vz+/f38+y3+/PXr6ePWhhr88hcT/fzs2LBPNzEp/v398KiSgGNKQCP+/Pz78/HKtLJv/fz8/N3c0b63jkT+/rqsoWdSHhAG/f39/ODGnXRaMx0K/Pz8dTv+/f37eYAbf38AAAmxSURBVGjerZpnWxNBEICDdBCkCCpgQ5ooKAiIoth7772FZXsujQRMQu9NpGP/q+4d4ImX7B6G+RLIs9n3ZnZ2bmZ3HLYkIcH42LV/36OrJ87k7sj2erN35J45cfXRvv27zBFbI9v0qXZXVzXm1XHu63S73R1CxEenj/O6vMaqC7t14LatYCXovMym1uwwZx3f0lPLlocSkzzBoD8pcWi5LDX9Wwfj4ezWpkydplZRbcWdTZfrWdj9LfX4Sw8MYQgRopQihCDEIeh5eTz1mzvM6i837dTHx6nZgcp6zqeL3iUB5CIU6OJcE6ALJS4EksqKpjmvrzwg1VBNO3KlkLtPnk6CGBnT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"},1248:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{constructor(){super(...arguments),this.active="content"}};Object(a.a)([Object(l.c)()],o.prototype,"title",void 0),o=Object(a.a)([Object(l.a)({components:{}})],o);var i=o,r=(s("fcda"),s("2877")),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"attribute-tabs"},[s("div",{staticClass:"flex attribute-header"},[s("div",{staticClass:"attribute-title lg weight-500 flex-1"},[t._v(t._s(t.title))]),t.$slots.default?t._e():s("div",{staticClass:"tabs-header flex"},[s("div",{staticClass:"tabs-header__item",class:{active:"content"==t.active},on:{click:function(e){t.active="content"}}},[s("span",[t._v("内容")])]),s("div",{staticClass:"tabs-header__item",class:{active:"styles"==t.active},on:{click:function(e){t.active="styles"}}},[s("span",[t._v("样式")])])])]),t.$slots.default?s("div",{staticClass:"attribute-content"},[t._t("default")],2):s("div",{staticClass:"tabs"},[s("div",{staticClass:"tabs-content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:"content"==t.active,expression:"active == 'content'"}]},[t._t("content")],2),s("div",{directives:[{name:"show",rawName:"v-show",value:"styles"==t.active,expression:"active == 'styles'"}]},[t._t("styles")],2)])])])}),[],!1,null,"5fc3ecec",null);e.a=n.exports},"125c":function(t,e,s){},"131b":function(t,e,s){"use strict";s.d(e,"g",(function(){return l})),s.d(e,"b",(function(){return o})),s.d(e,"e",(function(){return i})),s.d(e,"i",(function(){return r})),s.d(e,"d",(function(){return n})),s.d(e,"c",(function(){return c})),s.d(e,"a",(function(){return d})),s.d(e,"f",(function(){return u})),s.d(e,"h",(function(){return b}));var a=s("f175");const l=t=>a.a.get("/lucky_draw.lucky_draw/lists",{params:t}),o=t=>a.a.post("/lucky_draw.lucky_draw/delete",t),i=t=>a.a.post("/lucky_draw.lucky_draw/end",t),r=t=>a.a.post("/lucky_draw.lucky_draw/start",t),n=t=>a.a.post("lucky_draw.lucky_draw/edit",t),c=t=>a.a.get("/lucky_draw.lucky_draw/detail",{params:t}),d=t=>a.a.post("lucky_draw.lucky_draw/add",t),u=()=>a.a.get("lucky_draw.lucky_draw/getPrizeType"),b=t=>a.a.get("lucky_draw.lucky_draw/record",{params:t})},"13cd":function(t,e,s){},"14a1d":function(t,e,s){},"167a":function(t,e){t.exports="data:image/png;base64,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"},"17d0":function(t,e,s){"use strict";s("903c")},1824:function(t,e,s){"use strict";s("7013")},"18b3":function(t,e,s){"use strict";s("45b3")},"1a24":function(t,e,s){},"1a52":function(t,e,s){"use strict";s("eb8c")},"1ac6":function(t,e,s){"use strict";s("870f")},"1b20":function(t,e,s){},"1c02":function(t,e,s){},"1c67":function(t,e,s){},"1e31":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{};Object(a.a)([Object(l.c)({default:1})],o.prototype,"type",void 0),Object(a.a)([Object(l.c)({default:"left"})],o.prototype,"align",void 0),Object(a.a)([Object(l.c)({default:"#FF2C3C"})],o.prototype,"color",void 0),Object(a.a)([Object(l.c)({default:10})],o.prototype,"bottom",void 0),o=Object(a.a)([l.a],o);var i=o,r=(s("f4fd"),s("2877")),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"indicator",style:{bottom:t.bottom+"px"}},[1==t.type||2==t.type?s("div",{staticClass:"indicator-content",class:{fillet:1==t.type,circle:2==t.type},style:{"text-align":t.align}},[s("span",{staticClass:"indicator-item active",style:{"background-color":t.color}}),s("span",{staticClass:"indicator-item"}),s("span",{staticClass:"indicator-item"})]):t._e(),3==t.type?s("div",{style:{"text-align":t.align}},[s("span",{staticClass:"indicator-number"},[t._v("1/5")])]):t._e()])}),[],!1,null,"60a26eae",null);e.a=n.exports},"1ee0":function(t,e,s){"use strict";s("768b")},"218b":function(t,e,s){"use strict";s("1c67")},"22f6":function(t,e){t.exports="data:image/gif;base64,R0lGODlhEgASAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGOTZDRkFBNTVGNDcxMUVBOTdDOERBODgyMkI4NkVFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGOTZDRkFBNjVGNDcxMUVBOTdDOERBODgyMkI4NkVFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkY5NkNGQUEzNUY0NzExRUE5N0M4REE4ODIyQjg2RUU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkY5NkNGQUE0NUY0NzExRUE5N0M4REE4ODIyQjg2RUU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkECRQAAQAsAAAAABIAEgAAAiuMj4nA6sbAc3FW2N4NW+2efBk1gkuJSpjKpYfIwq+7zjHd3rrN137em0wKACH5BAkUAAEALAAAAAASABIAAAIqjI+py+0AXYJAItqw0Yv7uIHBV4XlKJKHaq7pe7JoDLv0beftPuu9tSgAACH5BAkUAAEALAAAAAASABIAAAIojI+py+0PI5hngmYrZdn08IUbOIqXV6YnuZpaq74yCtcze7t0PkZIAQAh+QQJFAABACwAAAAAEgASAAACKYyPqcvtCuJDEcxTr8mMBw9Jm7h4Jnlao/qhLptirwzPK43felv3mlIAACH5BAkUAAEALAAAAAASABIAAAIqjI+pCL3fwFtxqmqZywfz4HnXBpKhiUrGqZYt26XxK6+1O+c2zev4pygAACH5BAkUAAEALAAAAAASABIAAAIpjI+py+0K4kMRzFOxZNn08IUbOIqWV6YnuZpaq74yCtcze7t0Hu+XUgAAIfkECRQAAQAsAAAAABIAEgAAAiqMj6nL7R+AhEeCOo3FV+f4bV4HkmLJpaOKrm4Ln3JImzU72zp+vyeFKAAAIfkECRQAAQAsAAAAABIAEgAAAiqMj6l74LwcaI9JOm0NV2e+KR34jeZ2luiqtthrpDA5yzFb47e75x/EKAAAIfkEBRQAAQAsAAAAABIAEgAAAiuMj4nA6sbAc3FW2N4NW+2efBk1gkuJSpjKpYfIwq+7zjHd3rrN137em0wKADsvL1NESTFSa1V0TlVVMFJ6RXRUMGhOV2s4dFZVWXhRa1l0VFVWTlRVaz1bRVdFSVNIT1BdIENvcHlyaWdodChDKSAyMDE3IFBob25peG5lc3QgSW5jLg=="},"234f":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("e648");let i=class extends l.e{get selectData(){return this.value}set selectData(t){this.$emit("input",t),this.$emit("change",t)}handleDelete(){this.selectData.name="",this.selectData.id=""}};Object(a.a)([Object(l.c)({default:()=>[]})],i.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],i.prototype,"disabled",void 0),Object(a.a)([Object(l.c)()],i.prototype,"level",void 0),i=Object(a.a)([Object(l.a)({components:{CDialog:o.a}})],i);var r=i,n=s("2877"),c=Object(n.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"select"},[s("c-dialog",{attrs:{disabled:t.disabled,level:t.level},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}},[t._t("trigger")],2),s("div",{staticClass:"m-t-20"},[t.value.name?s("el-form-item",{attrs:{label:"分类名称"}},[s("div",{staticClass:"ls-del-wrap"},[s("el-input",{staticStyle:{width:"220px"},attrs:{readonly:""},model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}}),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:t.handleDelete}})],1)]):t._e()],1)],1)}),[],!1,null,"86aea474",null);e.a=c.exports},"24d7":function(t,e,s){"use strict";s("db8b")},"25f8":function(t,e,s){},27423:function(t,e,s){"use strict";s("9c36")},"27ba":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAgVBMVEUAAAAvOv8zMzMwMDA9dPowMDBMfv8pKSAvLy89dPovLy9Ihv8tLS0zMzMvLy8wMDAuLi4wMDAvLy8vLy8qKiowMDA+cvo+dPo9c/o9cP8+c/owMDAuLi4xMTEvLy85cf89dPo9dPo9c/s8dPo9cvo6dPs6cPtEd/8wMDAwMDA+dPrUfSOGAAAAKXRSTlMAAQr19vkKBvj5kQY5GY3sztzZYR6vke3PGY3w0l5dCdzZr2FdOTkesBmdmJEAAAHWSURBVFjD7Vdrc4IwEEyQh4DUNw9bxbeF//8DezCxwKJdZ+wnxx0Z5TbZHDG3N6hXgza4xyCPQ9gNCcllGej6vs8AD/NHwWQ8HAiG40kwkggwBsibUcoKhkULw8BSGhnkO/O/C8dpePm99CSMDPKNQFCPcgY1nHrEh4SRAb6ZP6rWmK0jq0a0nlWryHMig/yvwEfhFNOFCcjXYlrUSyCDvDLwvkRxrjxt4Km5BCYeMsg3W/gp+xq1nymSnR9bChnk9VVgUBQDc9uJAAP8W+At8F8C5ChzAVJMXICVMy2mrqFsroayuRoGL+cmhVuWRg2liXjLm6aKuWGG1NYxN8iQNxbMDTPE1uYZmNZFGwsR4K2NPwJK4wJsExuBsAMjwHujmX+O08RuIUnjs1GgvVEuN7bLHuzYFYr3xmr+vvR9nC+RfSgk741axfV8327BrxVWMo72Rq1O1eq7Y+a2kB13VRYnoZmhaLUq/XJ7wWK6bEuTArO0MJW1DirUHYTqIOE0VFwgT2THs76hZPLPJPkDpuraIuD2BEz8LfBiAneOMj9IpJjYUeblTIuJ9UZWzqw3VszqL0OhvVE+IbE0YuvEVFljobb++Gtf7raQN/yzL57Pv/o+jx9QV4jEEnZc9wAAAABJRU5ErkJggg=="},2841:function(t,e,s){},"294c":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("f50c"),i=s("234f"),r=s("d6d3");let n=class extends l.e{};Object(a.a)([Object(l.c)()],n.prototype,"content",void 0),n=Object(a.a)([Object(l.a)({components:{GoodsSelect:o.a,CategorySelect:i.a,Slider:r.a}})],n);var c=n,d=s("2877"),u=Object(d.a)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-form-item",{attrs:{label:"添加商品"}},[s("el-radio-group",{model:{value:t.content.goods_type,callback:function(e){t.$set(t.content,"goods_type",e)},expression:"content.goods_type"}},[s("el-radio",{attrs:{label:1}},[t._v("手动选择")]),s("el-radio",{attrs:{label:2}},[t._v("选择分类")])],1)],1),s("div",{staticClass:"p-10 bg-white"},[s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.content.goods_type,expression:"content.goods_type == 1"}]},[s("goods-select",{attrs:{"show-virtual-goods":!0},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.content.goods_type,expression:"content.goods_type == 2"}]},[s("category-select",{model:{value:t.content.category,callback:function(e){t.$set(t.content,"category",e)},expression:"content.category"}}),s("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"显示件数"}},[s("slider",{attrs:{min:1,max:50},model:{value:t.content.category.num,callback:function(e){t.$set(t.content.category,"num",e)},expression:"content.category.num"}}),s("div",{staticClass:"muted"},[t._v("最多显示50个")])],1)],1)])],1)}),[],!1,null,null,null);e.a=u.exports},"2b1d":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("0a6d"),i=(s("14d9"),s("0643"),s("fffc"),s("4e3e"),s("dcb0")),r=s("a92d"),n=s("b6c4");let c=class extends l.e{constructor(){super(...arguments),this.linkList=[]}get link(){return this.value}set link(t){this.$emit("input",t)}getLists(){("mobile"==this.client?Object(n.d)({type:this.type}):Object(n.g)({type:this.type})).then(t=>{this.linkList=t})}created(){this.getLists()}};Object(a.a)([Object(l.c)()],c.prototype,"value",void 0),Object(a.a)([Object(l.c)()],c.prototype,"type",void 0),Object(a.a)([Object(l.c)({default:"mobile"})],c.prototype,"client",void 0),c=Object(a.a)([Object(l.a)({components:{}})],c);var d=c,u=(s("ba96"),s("2877")),b=Object(u.a)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"shop"},[s("div",{staticClass:"link-list flex flex-wrap"},t._l(t.linkList,(function(e,a){return s("div",{key:a,staticClass:"link-item",class:{active:t.link.path==e.path},on:{click:function(s){t.link=e}}},[t._v(" "+t._s(e.name)+" ")])})),0)])}),[],!1,null,"662f455f",null).exports,m=s("14c6");let p=class extends l.e{constructor(){super(...arguments),this.lists=[]}get params(){return this.value}getLists(){Object(m.n)({pager_type:1}).then(t=>{this.lists=null==t?void 0:t.lists})}onSelect(){const t=this.$refs.cascader.getCheckedNodes();this.$emit("input",t[0].data)}created(){this.getLists()}};Object(a.a)([Object(l.c)()],p.prototype,"value",void 0),p=Object(a.a)([Object(l.a)({components:{}})],p);var g=p,v=Object(u.a)(g,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"category flex"},[e("div",{staticClass:"m-r-20"},[this._v("选择分类")]),e("el-cascader",{ref:"cascader",attrs:{value:this.params.id,options:this.lists,props:{checkStrictly:!0,label:"name",value:"id",children:"sons",emitPath:!1},clearable:"",filterable:"",size:"small"},on:{change:this.onSelect}})],1)}),[],!1,null,"3870515c",null).exports,f=s("3c50"),h=s("6ddb"),y=s("db85");let _=class extends l.e{constructor(){super(...arguments),this.name="",this.pager=new h.a}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}getList(t){t&&(this.pager.page=t),this.pager.request({callback:y.t,params:{type:1,name:this.name}}).then(t=>{})}onSelect(t,e){this.selectData=t?e:{}}created(){this.getList()}};Object(a.a)([Object(l.c)()],_.prototype,"value",void 0),_=Object(a.a)([Object(l.a)({components:{LsPagination:f.a}})],_);var x=_,A=Object(u.a)(x,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail"},[s("div",{staticClass:"flex m-b-20"},[s("div",{staticClass:"m-r-10"},[t._v("页面搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入页面名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"}},[s("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-checkbox",{attrs:{value:t.selectData.id==e.row.id},on:{change:function(s){return t.onSelect(s,e.row)}}})]}}])}),s("el-table-column",{attrs:{prop:"name",label:"页面名称"}}),s("el-table-column",{attrs:{prop:"create_time",label:"创建时间"}})],1),s("div",{staticClass:"flex row-right m-t-10"},[s("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)}),[],!1,null,"41b84f60",null).exports;let w=class extends l.e{get params(){return this.value}set params(t){this.$emit("input",t)}};Object(a.a)([Object(l.c)()],w.prototype,"value",void 0),w=Object(a.a)([Object(l.a)({components:{}})],w);var C=w,k=Object(u.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"custom"},[s("el-form",{attrs:{size:"small","label-width":"100px"}},[s("el-form-item",{attrs:{label:"跳转链接",required:""}},[s("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"请输入跳转链接"},model:{value:t.params,callback:function(e){t.params=e},expression:"params"}})],1),s("el-form-item",{attrs:{label:""}},[s("div",{staticClass:"muted",staticStyle:{"line-height":"1.3"}},[t._v(" 请填写完整的带有“https://”或“http://”的链接地址 "),s("br"),t._v(" 小程序中跳转,链接的域名必须在微信公众平台设置业务域名 ")])])],1)],1)}),[],!1,null,"e2dcbba4",null).exports,O=s("131b");let j=class extends l.e{constructor(){super(...arguments),this.name="",this.pager=new h.a}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}getList(t){t&&(this.pager.page=t),this.pager.request({callback:O.g,params:{name:this.name}}).then(t=>{})}onSelect(t,e){this.selectData=t?e:{}}created(){this.getList()}};Object(a.a)([Object(l.c)()],j.prototype,"value",void 0),j=Object(a.a)([Object(l.a)({components:{LsPagination:f.a}})],j);var F=j,S=Object(u.a)(F,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail"},[s("div",{staticClass:"flex m-b-20"},[s("div",{staticClass:"m-r-10"},[t._v("活动搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入活动名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"}},[s("el-table-column",{attrs:{width:"45",label:""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-checkbox",{attrs:{value:e.row.id==t.selectData.id},on:{change:function(s){return t.onSelect(s,e.row)}}})]}}])}),s("el-table-column",{attrs:{label:"活动名称",prop:"name"}}),s("el-table-column",{attrs:{label:"活动状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?s("el-tag",{attrs:{size:"medium",type:"success"}},[t._v(t._s(e.row.status_desc))]):s("el-tag",{attrs:{size:"medium",type:"info"}},[t._v(t._s(e.row.status_desc))])]}}])}),s("el-table-column",{attrs:{label:"活动时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.start_time_desc)+" ~ "+t._s(e.row.end_time_desc)+" ")]}}])})],1),s("div",{staticClass:"flex row-right m-t-20"},[s("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)}),[],!1,null,"57a59e98",null).exports;const z=[{name:"商城页面",key:"shop",children:[{name:"基础页面",type:"shop",link:{path:"",name:"",params:{},type:"shop"}},{name:"微页面",type:"page",link:{path:"/pages/page/page",name:"微页面",params:{},type:"page"}}]},{name:"商品",key:"goods",children:[{name:"普通商品",type:"goods",link:{path:"/pages/goods_detail/goods_detail",name:"普通商品",params:{},type:"goods"}},{name:"秒杀商品",type:"seckill",link:{path:"/bundle/pages/seckill_detail/seckill_detail",name:"秒杀商品",params:{},type:"seckill"}},{name:"拼团商品",type:"team",link:{path:"/bundle/pages/goods_team_detail/goods_team_detail",name:"拼团商品",params:{},type:"team"}},{name:"预售商品",type:"presell",link:{path:"/bundle/pages/presell_detail/presell_detail",name:"预售商品",params:{},type:"presell"}},{name:"商品分类",type:"category",link:{path:"/pages/goods_search/goods_search",name:"商品分类",params:{},type:"category"}}]},{name:"营销活动",key:"marking",children:[{name:"营销活动页面",type:"marking",link:{path:"",name:"",params:{},type:"marking"}},{name:"积分抽奖",type:"draw",link:{path:"/bundle/pages/luck_draw/luck_draw",name:"积分抽奖",params:{},type:"draw"}}]},{name:"其他",key:"other",children:[{name:"自定义链接",type:"custom",link:{path:"/pages/webview/webview",name:"自定义链接",params:{url:""},type:"custom"}}]}],M=[{name:"商城页面",key:"shop",children:[{name:"基础页面",type:"shop",link:{path:"",name:"",params:{},type:"shop"}}]},{name:"商品",key:"goods",children:[{name:"普通商品",type:"goods",link:{path:"/goods_details",name:"普通商品",params:{},type:"goods"}},{name:"秒杀商品",type:"seckill",link:{path:"/goods_details_seckill",name:"秒杀商品",params:{},type:"seckill"}},{name:"商品分类",type:"category",link:{path:"/category",name:"商品分类",params:{},type:"category"}}]},{name:"营销活动",key:"marking",children:[{name:"营销活动页面",type:"marking",link:{path:"",name:"",params:{},type:"marking"}}]},{name:"其他",key:"other",children:[{name:"自定义链接",type:"custom",link:{params:{},path:"",name:"自定义链接",type:"custom"}}]}];let L=class extends l.e{constructor(){super(...arguments),this.activeName=[],this.linkType="shop",this.lists="mobile"==this.client?Object(h.c)(z):Object(h.c)(M)}get link(){var t;let e={};return this.lists.forEach(t=>{const s=t.children.find(t=>t.type==this.linkType);s&&(e=s)}),null===(t=e)||void 0===t?void 0:t.link}set link(t){this.lists.forEach(e=>{e.children.forEach(s=>{s.type==this.linkType&&(t&&(s.link=t),this.activeName.includes(e.key)||this.activeName.push(e.key))})})}valueChange(t){t&&(this.linkType=t.type||"shop",this.link=t)}linkChange(t){this.$emit("input",t)}setLinkParams(t){if(!t.id)return this.link.params={};this.link&&(this.link={...this.link,params:{id:"presell"==this.linkType?t.goods_id:t.id,name:t.name}})}};Object(a.a)([Object(l.c)()],L.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:"mobile"})],L.prototype,"client",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0})],L.prototype,"valueChange",null),Object(a.a)([Object(l.f)("link",{deep:!0})],L.prototype,"linkChange",null),L=Object(a.a)([Object(l.a)({components:{Goods:i.a,Activity:r.a,Shop:b,Category:v,Page:A,Custom:k,Draw:S}})],L);var E=L,D=(s("f8e8"),Object(u.a)(E,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"detail"},[s("div",{staticClass:"content flex"},[s("div",{staticClass:"left m-r-10"},[s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"100%"}},[s("el-collapse",{staticClass:"p-t-20",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.lists,(function(e,a){return s("el-collapse-item",{key:a,attrs:{title:e.name,name:e.key}},[s("div",{staticClass:"nav-list"},t._l(e.children,(function(e,a){return s("div",{key:a,staticClass:"nav-item",class:{active:t.linkType==e.type},on:{click:function(s){t.linkType=e.type}}},[s("div",[t._v(t._s(e.name))])])})),0)])})),1)],1)],1),s("div",{staticClass:"right flex-1"},[s("div",{staticClass:"right-content"},["shop"==t.linkType||"marking"==t.linkType?s("shop",{key:t.linkType,attrs:{type:t.linkType,client:t.client},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}}):t._e(),"goods"==t.linkType?s("goods",{attrs:{value:t.link.params,"show-virtual-goods":!0},on:{input:t.setLinkParams}}):t._e(),"seckill"==t.linkType||"team"==t.linkType||"bargain"==t.linkType||"presell"==t.linkType?s("activity",{key:t.linkType,attrs:{single:!0,type:t.linkType},on:{input:t.setLinkParams},model:{value:t.link.params,callback:function(e){t.$set(t.link,"params",e)},expression:"link.params"}}):t._e(),"category"==t.linkType?s("category",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"draw"==t.linkType?s("draw",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"page"==t.linkType?s("page",{attrs:{value:t.link.params},on:{input:t.setLinkParams}}):t._e(),"custom"==t.linkType&&"mobile"==t.client?s("custom",{model:{value:t.link.params.url,callback:function(e){t.$set(t.link.params,"url",e)},expression:"link.params.url"}}):t._e(),"custom"==t.linkType&&"pc"==t.client?s("custom",{model:{value:t.link.path,callback:function(e){t.$set(t.link,"path",e)},expression:"link.path"}}):t._e()],1)])])])}),[],!1,null,"864695fa",null).exports);let I=class extends l.e{constructor(){super(...arguments),this.link={}}get linkName(){const{type:t,name:e,params:s,path:a}=this.value;if(!e)return"";switch(t){case"custom":return s.url||a;default:return`${e}${s&&s.name?"("+s.name+")":""}`}}valueChange(t){this.link=JSON.parse(JSON.stringify(t))}onConfirm(){const{type:t,params:e,path:s}=this.link;switch(t){case"shop":if(!s)return void this.$message.warning("请选择商城页面");break;case"goods":if(!e.name)return void this.$message.warning("请选择商品");break;case"seckill":if(!e.name)return void this.$message.warning("请选择秒杀商品");break;case"team":if(!e.name)return void this.$message.warning("请选择拼团商品");break;case"marking":if(!s)return void this.$message.warning("请选择营销页面");break;case"draw":if(!e.name)return void this.$message.warning("请选择积分抽奖");break;case"category":if(!e.name)return void this.$message.warning("请选择分类");break;case"custom":if(!e.url&&!s)return void this.$message.warning("请输入自定义链接");break;case"page":if(!e.name)return void this.$message.warning("请选择微页面")}this.$refs.dialog.close(),this.$emit("input",this.link)}handleClear(){this.disabled||this.$emit("input",{})}};Object(a.a)([Object(l.c)({default:()=>({})})],I.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],I.prototype,"disabled",void 0),Object(a.a)([Object(l.c)({default:"mobile"})],I.prototype,"client",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0})],I.prototype,"valueChange",null),I=Object(a.a)([Object(l.a)({components:{LsDialog:o.a,Detail:D}})],I);var $=I,B=(s("24d7"),Object(u.a)($,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ls-dialog",{ref:"dialog",staticClass:"link-select",attrs:{title:"选择跳转链接",width:"1050px",top:"20vh",disabled:t.disabled,async:!0},on:{confirm:t.onConfirm}},[s("div",{staticClass:"link-select__trigger",attrs:{slot:"trigger"},slot:"trigger"},[s("el-input",{staticStyle:{width:"100%"},attrs:{value:t.linkName,placeholder:"请选择跳转链接",size:"small",readonly:"",disabled:t.disabled}},[t.linkName?s("i",{staticClass:"el-icon-close el-input__icon",attrs:{slot:"suffix"},on:{click:function(e){return e.stopPropagation(),t.handleClear.apply(null,arguments)}},slot:"suffix"}):s("i",{staticClass:"el-icon-arrow-right el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})])],1),s("detail",{attrs:{client:t.client},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}})],1)}),[],!1,null,"83bbe5bc",null));e.a=B.exports},"2d62":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAdVBMVEUAAAAtLS0zMzMwMDAwMDBNgP89dPouLi4wMDAwMDAzMzMvLy8vLy8tLS0uLi4vLy8vLy8vLy8vLy8vLy8wMDAtLS0uLi4tLS0wMDAvLy8vLy8uLi4vLy8wMDA+dPo+dPowMDAoKCgrKysuLi4uLi4wMDA+dPqLRKXJAAAAJXRSTlMAAgn2+gr2BRD0DOzeOceKG9nUraUWwnxbho9/ZR/06+MmOzdq6tM+7QAAAe9JREFUWMPtV+2SgjAMbAAtioKeiojfeuX9H/E2ZTQnN9y0xZ+uMiNMd0nabRrVBx+8F+SFv+SA9/2+wRV5gSxL+PM6z+JJ7AYMzPJ6/lQgFdWx8UZcR6Bavl6ZJPHlg7HSrICrtvzYC1ahYAHkz2//qtJoGrkBA6fVF2eBecCnMIlZbvDDA6Q2S9B2NoQcWpXS5AWtKtByfmuUIZZUeSPFPGQRC8QQsCvil8OUeU+BaUdgBPzL1y2vL4LReTw+9yuwBxffyWsErwGMm2bcLwDvbi8GmPRGcGqa06iff82tkSQCs4eCawSkjjOm43qsAm7yqyLXFHTJ/Nn2nkbWBxNj2IsLRU4CWm35jWvx7ny3ZMVSO0WABC4QWCti7z58veYYtko7CRwM4l/IYJZS6/YhOaRgx+5bvqS1mOHpwUlA80a+d5yr7Z5eOcwBYdLt5qPO4xsXFT1AII2tMSkwBREImURJIXAZZRI9jISxbCTvZRQrr2DlrpGOinw20/6GzdSxcsh27t9MzgVFtnNYSZOC4lTSpKg6l7Twsu53sCivg0UEwo+2lhd8uJIcrqHH+wG0klhqN6zBQIsT+7c4qbQ4+BahTRYCGNbmcfztihRQ9FYotCJpdYsyS9xb3SQrizl4g5ttQUi7P/APxwdvxA+WDVeB8HJcYwAAAABJRU5ErkJggg=="},"2ee8":function(t,e,s){},3392:function(t,e,s){},"362a":function(t,e,s){"use strict";s("06ac")},3865:function(t,e,s){},3869:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAnFBMVEUAAAA/P0AwMDAwMDAyMzQvNkUvLy8vLSsuLi4tLS09dPowMDBJcvQ+dPotLS0uLzAuLi4vLy8wMDAvLy9Dd/8wMDAwMDA+cvo1NTU9dPo9dPo9c/o9cvs+cv8+c/ouLi4vLy8sLCw0NDQvLy88dPo+cvowMDBEd/83SVsvLy89c/suLi4vLy8vLy8uLi4wMDAuLi49cvswMDA+dPpwyzVCAAAAMnRSTlMAAvz1CgX4CG5x+vAE+CO1MtLGoAnrWpES79vPORiNNeguDqdhXlAeDsevelHawFs9sDLdVREAAAJmSURBVFjD7VWJcpswENUiJIHBJzi+HWzncOLmKPz/v/VxDNBZixnSzrST8bON4Yld7UqrfeKG7wuiP7Gl5uaLc5MyRtHX4iBBE388DYLp2J/gob/96CTTCjoaCeprfxekjnZgXfwFd4L62XswdPCT0invPEG95ndyq5l/OB4P/iy/d+oYwuKfws78EX8qPVM+G0/iMajWAZcwjmFOHQ5OqU7lk1CKAKXEDw0PUWWyXWxWq81i22F/jxmRtKKKUMIHIe8FiHgxzAoMF3HHCup0ZohqhswMFFyK+Gc2GGQArq/WZRhjPl+ohihDGMP3orAfDgsPe8s6qCl27tAeJDHBTk6V2Obxrx93u8d1nsVWhNcycIM0lcffHSxRloEr9tkgWz8LZPe8zooQejkwYoN5HzAtvg+43YT9UqB4hbh3JbdDNqu45yJyB722ET55CvZC8q8UkmURuYcI7+tWKT+VpWzZxh6HicSeFVLncfYmy+XEax/n8JWVcq+Gwg6T3cOHbLc0+VHZEzXHmchqDohRVDdVmTdVoFaIMKxftCqCIfV5eX/T+u398qmoVgcy57NrjHs+Gyo4uyLoJJEaPV0mia7UYXQ5vSRaFtDzkiOLInDoKJpzDslZFaENUMW14Zli8A1sI2cAXGQFtsFMEYxbw6CcXlIHn/FoaVpcU2KsiBnKgk6anJlicEVo0FaHqxxXhDa4OnCOtZIGTB3IyvFmBvDGZud4OwW4Olg5EqZp6BxVc58bQRaOhIsH6docNOOc+38czLWeWx3wce7UBYQFbJw56A8eFQGd7wOWqP4NmqhuuOFv4RdFaWWthK+ungAAAABJRU5ErkJggg=="},"389c":function(t,e,s){"use strict";s("e4d0")},"3b58":function(t,e,s){window,t.exports=function(t){function e(a){if(s[a])return s[a].exports;var l=s[a]={i:a,l:!1,exports:{}};return t[a].call(l.exports,l,l.exports,e),l.l=!0,l.exports}var s={};return e.m=t,e.c=s,e.d=function(t,s,a){e.o(t,s)||Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:a})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var s=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(s,"a",s),s},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=25)}([function(t,e,s){var a=s(11);"string"==typeof a&&(a=[[t.i,a,""]]);var l={transform:void 0};s(3)(a,l),a.locals&&(t.exports=a.locals)},function(t,e,s){"use strict";function a(t,e,s,a,l,o,i,r){var n,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=s,c._compiled=!0),a&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(n=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),l&&l.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=n):l&&(n=r?function(){l.call(this,this.$root.$options.shadowRoot)}:l),n)if(c.functional){c._injectStyles=n;var d=c.render;c.render=function(t,e){return n.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,n):[n]}return{exports:t,options:c}}s.d(e,"a",(function(){return a}))},function(t,e,s){"use strict";function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s<e;s++)a[s]=t[s];return a}var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"vdr",class:(t.active||t.isActive?"active":"inactive")+" "+(t.contentClass?t.contentClass:""),style:t.positionStyle,on:{mousedown:function(e){t.bodyDown(e)},touchstart:function(e){t.bodyDown(e)},touchend:function(e){t.up(e)}}},[s("div",{ref:"container",staticClass:"content-container",style:t.sizeStyle},[t._t("default")],2),t._v(" "),t._l(t.sticks,(function(e){return s("div",{staticClass:"vdr-stick",class:["vdr-stick-"+e,t.isResizable?"":"not-resizable"],style:t.vdrStick(e),on:{mousedown:function(s){s.stopPropagation(),s.preventDefault(),t.stickDown(e,s)},touchstart:function(s){s.stopPropagation(),s.preventDefault(),t.stickDown(e,s)}}})}))],2)};o._withStripped=!0;var i={t:"top",m:"marginTop",b:"bottom"},r={l:"left",m:"marginLeft",r:"right"},n={name:"vue-drag-resize",emits:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"],props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator:function(t){return t>=0}},gridY:{type:Number,default:50,validator:function(t){return t>=0}},parentW:{type:Number,default:0,validator:function(t){return t>=0}},parentH:{type:Number,default:0,validator:function(t){return t>=0}},w:{type:[String,Number],default:200,validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},h:{type:[String,Number],default:200,validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},minw:{type:Number,default:50,validator:function(t){return t>=0}},minh:{type:Number,default:50,validator:function(t){return t>=0}},x:{type:Number,default:0,validator:function(t){return"number"==typeof t}},y:{type:Number,default:0,validator:function(t){return"number"==typeof t}},z:{type:[String,Number],default:"auto",validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator:function(t){return-1!==["x","y","both","none"].indexOf(t)}},contentClass:{type:String,required:!1,default:""}},data:function(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate:function(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted:function(){var t=this;this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-("auto"===this.w?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-("auto"===this.h?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),function(t){t.forEach((function(t,e){document.documentElement.addEventListener(e,t)}))}(this.domEvents),this.dragHandle&&a(this.$el.querySelectorAll(this.dragHandle)).forEach((function(e){e.setAttribute("data-drag-handle",t._uid)})),this.dragCancel&&a(this.$el.querySelectorAll(this.dragCancel)).forEach((function(e){e.setAttribute("data-drag-cancel",t._uid)}))},beforeDestroy:function(){!function(t){t.forEach((function(t,e){document.documentElement.removeEventListener(e,t)}))}(this.domEvents)},methods:{deselect:function(){this.preventActiveBehavior||(this.active=!1)},move:function(t){if(this.stickDrag||this.bodyDrag){t.stopPropagation();var e=void 0!==t.pageX?t.pageX:t.touches[0].pageX,s=void 0!==t.pageY?t.pageY:t.touches[0].pageY,a=this.dimensionsBeforeMove,l={x:(a.pointerX-e)/this.parentScaleX,y:(a.pointerY-s)/this.parentScaleY};if(this.stickDrag&&this.stickMove(l),this.bodyDrag){if("x"===this.axis)l.y=0;else if("y"===this.axis)l.x=0;else if("none"===this.axis)return;this.bodyMove(l)}}},up:function(t){this.stickDrag?this.stickUp(t):this.bodyDrag&&this.bodyUp(t)},bodyDown:function(t){var e=t.target,s=t.button;if(this.preventActiveBehavior||(this.active=!0),(!s||0===s)&&(this.$emit("clicked",t),this.active&&!(this.dragHandle&&e.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&e.getAttribute("data-drag-cancel")===this._uid.toString()))){void 0!==t.stopPropagation&&t.stopPropagation(),void 0!==t.preventDefault&&t.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);var a=void 0!==t.pageX?t.pageX:t.touches[0].pageX,l=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:l}),this.parentLimitation&&(this.limits=this.calcDragLimitation())}},bodyMove:function(t){var e=this.dimensionsBeforeMove,s=this.parentWidth,a=this.parentHeight,l=this.gridX,o=this.gridY,i=this.width,r=this.height,n=e.top-t.y,c=e.bottom+t.y,d=e.left-t.x,u=e.right+t.x;if(this.snapToGrid){var b=!0,m=!0,p=n-Math.floor(n/o)*o,g=a-c-Math.floor((a-c)/o)*o,v=d-Math.floor(d/l)*l,f=s-u-Math.floor((s-u)/l)*l;p>o/2&&(p-=o),g>o/2&&(g-=o),v>l/2&&(v-=l),f>l/2&&(f-=l),Math.abs(g)<Math.abs(p)&&(b=!1),Math.abs(f)<Math.abs(v)&&(m=!1),c=a-r-(n-=b?p:g),u=s-i-(d-=m?v:f)}var h=this.rectCorrectionByLimit({newLeft:d,newRight:u,newTop:n,newBottom:c});this.left=h.newLeft,this.right=h.newRight,this.top=h.newTop,this.bottom=h.newBottom,this.$emit("dragging",this.rect)},bodyUp:function(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}},stickDown:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isResizable&&this.active||s){this.stickDrag=!0;var a=void 0!==e.pageX?e.pageX:e.touches[0].pageX,l=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:l}),this.currentStick=t,this.limits=this.calcResizeLimits()}},saveDimensionsBeforeMove:function(t){var e=t.pointerX,s=t.pointerY;this.dimensionsBeforeMove.pointerX=e,this.dimensionsBeforeMove.pointerY=s,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove:function(t){var e=this.currentStick,s=this.dimensionsBeforeMove,a=this.gridY,l=this.gridX,o=this.snapToGrid,i=this.parentHeight,r=this.parentWidth,n=s.top,c=s.bottom,d=s.left,u=s.right;switch(e[0]){case"b":c=s.bottom+t.y,o&&(c=i-Math.round((i-c)/a)*a);break;case"t":n=s.top-t.y,o&&(n=Math.round(n/a)*a)}switch(e[1]){case"r":u=s.right+t.x,o&&(u=r-Math.round((r-u)/l)*l);break;case"l":d=s.left-t.x,o&&(d=Math.round(d/l)*l)}var b=this.rectCorrectionByLimit({newLeft:d,newRight:u,newTop:n,newBottom:c});if(d=b.newLeft,u=b.newRight,n=b.newTop,c=b.newBottom,this.aspectRatio){var m=this.rectCorrectionByAspectRatio({newLeft:d,newRight:u,newTop:n,newBottom:c});d=m.newLeft,u=m.newRight,n=m.newTop,c=m.newBottom}this.left=d,this.right=u,this.top=n,this.bottom=c,this.$emit("resizing",this.rect)},stickUp:function(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation:function(){var t=this.parentWidth,e=this.parentHeight;return{left:{min:0,max:t-this.width},right:{min:0,max:t-this.width},top:{min:0,max:e-this.height},bottom:{min:0,max:e-this.height}}},calcResizeLimits:function(){var t=this.aspectFactor,e=this.width,s=this.height,a=this.bottom,l=this.top,o=this.left,i=this.right,r=this.minh,n=this.minw,c=this.parentLimitation?0:null;this.aspectRatio&&(n/r>t?r=n/t:n=t*r);var d={left:{min:c,max:o+(e-n)},right:{min:c,max:i+(e-n)},top:{min:c,max:l+(s-r)},bottom:{min:c,max:a+(s-r)}};if(this.aspectRatio){var u={left:{min:o-Math.min(l,a)*t*2,max:o+(s-r)/2*t*2},right:{min:i-Math.min(l,a)*t*2,max:i+(s-r)/2*t*2},top:{min:l-Math.min(o,i)/t*2,max:l+(e-n)/2/t*2},bottom:{min:a-Math.min(o,i)/t*2,max:a+(e-n)/2/t*2}};"m"===this.currentStick[0]?(d.left={min:Math.max(d.left.min,u.left.min),max:Math.min(d.left.max,u.left.max)},d.right={min:Math.max(d.right.min,u.right.min),max:Math.min(d.right.max,u.right.max)}):"m"===this.currentStick[1]&&(d.top={min:Math.max(d.top.min,u.top.min),max:Math.min(d.top.max,u.top.max)},d.bottom={min:Math.max(d.bottom.min,u.bottom.min),max:Math.min(d.bottom.max,u.bottom.max)})}return d},sideCorrectionByLimit:function(t,e){var s=e;return null!==t.min&&e<t.min?s=t.min:null!==t.max&&t.max<e&&(s=t.max),s},rectCorrectionByLimit:function(t){var e=this.limits,s=t.newRight,a=t.newLeft,l=t.newBottom,o=t.newTop;return{newLeft:a=this.sideCorrectionByLimit(e.left,a),newRight:s=this.sideCorrectionByLimit(e.right,s),newTop:o=this.sideCorrectionByLimit(e.top,o),newBottom:l=this.sideCorrectionByLimit(e.bottom,l)}},rectCorrectionByAspectRatio:function(t){var e=t.newLeft,s=t.newRight,a=t.newTop,l=t.newBottom,o=this.parentWidth,i=this.parentHeight,r=this.currentStick,n=this.aspectFactor,c=this.dimensionsBeforeMove,d=o-e-s,u=i-a-l;if("m"===r[1]){var b=u-c.height;e-=b*n/2,s-=b*n/2}else if("m"===r[0]){var m=d-c.width;a-=m/n/2,l-=m/n/2}else d/u>n?(d=n*u,"l"===r[1]?e=o-s-d:s=o-e-d):(u=d/n,"t"===r[0]?a=i-l-u:l=i-a-u);return{newLeft:e,newRight:s,newTop:a,newBottom:l}}},computed:{positionStyle:function(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle:function(){return{width:"auto"==this.w?"auto":this.width+"px",height:"auto"==this.h?"auto":this.height+"px"}},vdrStick:function(){var t=this;return function(e){var s={width:"".concat(t.stickSize/t.parentScaleX,"px"),height:"".concat(t.stickSize/t.parentScaleY,"px")};return s[i[e[0]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),s[r[e[1]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),s}},width:function(){return this.parentWidth-this.left-this.right},height:function(){return this.parentHeight-this.top-this.bottom},rect:function(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{active:function(t){t?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler:function(t){this.active=t}},z:{immediate:!0,handler:function(t){(t>=0||"auto"===t)&&(this.zIndex=t)}},x:{handler:function(t,e){var s=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.left){var a=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:a,y:0}),this.$nextTick((function(){s.bodyUp()}))}}},y:{handler:function(t,e){var s=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.top){var a=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:a}),this.$nextTick((function(){s.bodyUp()}))}}},w:{handler:function(t,e){var s=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.width){var a=e-t;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:a,y:0}),this.$nextTick((function(){s.stickUp()}))}}},h:{handler:function(t,e){var s=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.height){var a=e-t;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:a}),this.$nextTick((function(){s.stickUp()}))}}},parentW:function(t){this.right=t-this.width-this.left,this.parentWidth=t},parentH:function(t){this.bottom=t-this.height-this.top,this.parentHeight=t}}},c=(s(12),s(1)),d=Object(c.a)(n,o,[],!1,null,null,null);d.options.__file="src/components/vue-drag-resize.vue",e.a=d.exports},function(t,e,s){function a(t,e){for(var s=0;s<t.length;s++){var a=t[s],l=p[a.id];if(l){l.refs++;for(var o=0;o<l.parts.length;o++)l.parts[o](a.parts[o]);for(;o<a.parts.length;o++)l.parts.push(d(a.parts[o],e))}else{var i=[];for(o=0;o<a.parts.length;o++)i.push(d(a.parts[o],e));p[a.id]={id:a.id,refs:1,parts:i}}}}function l(t,e){for(var s=[],a={},l=0;l<t.length;l++){var o=t[l],i=e.base?o[0]+e.base:o[0],r={css:o[1],media:o[2],sourceMap:o[3]};a[i]?a[i].parts.push(r):s.push(a[i]={id:i,parts:[r]})}return s}function o(t,e){var s=v(t.insertInto);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var a=y[y.length-1];if("top"===t.insertAt)a?a.nextSibling?s.insertBefore(e,a.nextSibling):s.appendChild(e):s.insertBefore(e,s.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");s.appendChild(e)}}function i(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function r(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function n(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach((function(s){t.setAttribute(s,e[s])}))}function d(t,e){var s,a,l,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=h++;s=f||(f=r(e)),a=u.bind(null,s,c,!1),l=u.bind(null,s,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=n(e),a=m.bind(null,s,e),l=function(){i(s),s.href&&URL.revokeObjectURL(s.href)}):(s=r(e),a=b.bind(null,s),l=function(){i(s)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else l()}}function u(t,e,s,a){var l=s?"":a.css;if(t.styleSheet)t.styleSheet.cssText=x(e,l);else{var o=document.createTextNode(l),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(o,i[e]):t.appendChild(o)}}function b(t,e){var s=e.css,a=e.media;if(a&&t.setAttribute("media",a),t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}function m(t,e,s){var a=s.css,l=s.sourceMap,o=void 0===e.convertToAbsoluteUrls&&l;(e.convertToAbsoluteUrls||o)&&(a=_(a)),l&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */");var i=new Blob([a],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}var p={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),v=function(t){var e={};return function(s){return void 0===e[s]&&(e[s]=t.call(this,s)),e[s]}}((function(t){return document.querySelector(t)})),f=null,h=0,y=[],_=s(10);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=l(t,e);return a(s,e),function(t){for(var o=[],i=0;i<s.length;i++){var r=s[i];(n=p[r.id]).refs--,o.push(n)}for(t&&a(l(t,e),e),i=0;i<o.length;i++){var n;if(0===(n=o[i]).refs){for(var c=0;c<n.parts.length;c++)n.parts[c]();delete p[n.id]}}}};var x=function(){var t=[];return function(e,s){return t[e]=s,t.filter(Boolean).join("\n")}}()},function(t,e){function s(t,e){var s=t[1]||"",a=t[3];if(!a)return s;if(e&&"function"==typeof btoa){var l=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(a);return[s].concat(a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}))).concat([l]).join("\n")}return[s].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=s(e,t);return e[2]?"@media "+e[2]+"{"+a+"}":a})).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},l=0;l<this.length;l++){var o=this[l][0];"number"==typeof o&&(a[o]=!0)}for(l=0;l<t.length;l++){var i=t[l];"number"==typeof i[0]&&a[i[0]]||(s&&!i[2]?i[2]=s:s&&(i[2]="("+i[2]+") and ("+s+")"),e.push(i))}},e}},function(t,e){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(s=window)}t.exports=s},,,,,function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,a=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var l,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(l=0===o.indexOf("//")?o:0===o.indexOf("/")?s+o:a+o.replace(/^\.\//,""),"url("+JSON.stringify(l)+")")}))}},function(t,e,s){(t.exports=s(4)(!1)).push([t.i,'\n.vdr,.vdr.active:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box\n}\n.vdr.active:before{content:"";width:100%;height:100%;top:0;left:0;outline:1px dashed #d6d6d6\n}\n.vdr-stick{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;font-size:1px;background:#fff;border:1px solid #6c6c6c;-webkit-box-shadow:0 0 2px #bbb;box-shadow:0 0 2px #bbb\n}\n.inactive .vdr-stick{display:none\n}\n.vdr-stick-br,.vdr-stick-tl{cursor:nwse-resize\n}\n.vdr-stick-bm,.vdr-stick-tm{left:50%;cursor:ns-resize\n}\n.vdr-stick-bl,.vdr-stick-tr{cursor:nesw-resize\n}\n.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize\n}\n.vdr-stick.not-resizable{display:none\n}\n.content-container{display:block;position:relative\n}',""])},function(t,e,s){"use strict";var a=s(0);s.n(a).a},,,,,,,,,,,,,function(t,e,s){"use strict";s.r(e),function(t){function a(t){a.installed||(a.installed=!0,t.component("vue-drag-resize",l.a))}s.d(e,"install",(function(){return a}));var l=s(2),o={install:a},i=null;"undefined"!=typeof window?i=window.Vue:void 0!==t&&(i=t.Vue),i&&i.use(o),e.default=l.a}.call(this,s(5))}])},"3dfa":function(t,e,s){},"3f3e":function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),l=s("1b40"),o=s("f77e"),i=s("9588"),r=s("e699");let n=class extends l.e{async getPages(){this.id&&this.$store.dispatch("getPages",{id:this.id})}created(){this.id=this.$route.query.id,this.getPages()}};n=Object(a.a)([Object(l.a)({components:{DecorateWidget:o.a,DecoratePhone:i.a,DecorateAttr:r.a}})],n);var c=n,d=(s("fc8d"),s("2877")),u=Object(d.a)(c,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"decorate-index flex"},[e("decorate-widget"),e("decorate-phone"),e("decorate-attr")],1)}),[],!1,null,"5396c9ce",null);e.default=u.exports},"3fa8":function(t,e,s){},"414d":function(t,e,s){"use strict";s("0dc1")},4167:function(t,e,s){},4466:function(t,e,s){"use strict";s("14d9"),s("0643"),s("fffc");var a=s("9ab4"),l=s("1b40"),o=s("1248"),i=s("ea05"),r=s("6ae0"),n=s("d6d3"),c=s("66bb"),d=s("fe7b");let u=class extends l.e{constructor(){super(...arguments),this.imageCongig={},this.styleData=[{name:"单张图片",value:1,num:1},{name:"双列图片",value:2,num:2},{name:"三列图片",value:3,num:3},{name:"四列图片",value:4,num:4}]}styleChange(t){var e;switch(t){case 1:this.imageCongig={width:"1180px"};break;case 2:this.imageCongig={width:"585px"};break;case 3:this.imageCongig={width:"386px"};break;case 4:this.imageCongig={width:"287px"};break;default:this.imageCongig={width:"1180px"}}const s=(null===(e=this.styleData.find(e=>e.value==t))||void 0===e?void 0:e.num)||1;this.imageCongig.limit=s,this.content.data=this.handleArray(s)}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}handleArray(t){const e=JSON.parse(JSON.stringify(this.content.data)),s=[];for(let a=0;a<t;a++)e[a]?s.push(e[a]):s.push({url:"",link:{}});return s}};Object(a.a)([Object(l.f)("content.style",{immediate:!0})],u.prototype,"styleChange",null),u=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,BannerList:d.a}})],u);var b=u,m=s("2877"),p=Object(m.a)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"广告位"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"展示样式"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1),s("attribute-item",{attrs:{title:"图片设置",desc:"建议图片尺寸:"+t.imageCongig.width+"*180px"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("banner-list",{attrs:{"close-delete":!0,client:"pc",limit:t.imageCongig.limit},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1)],1)])],1)}),[],!1,null,"0d5b910a",null).exports,g=s("1e31"),v=s("977d");let f=class extends l.e{};Object(a.a)([Object(l.c)()],f.prototype,"content",void 0),Object(a.a)([Object(l.c)()],f.prototype,"styles",void 0),f=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],f);var h=f,y=(s("8b09"),Object(m.a)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"adv"},[s("div",{staticClass:"adv-content flex"},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"adv-image"},[s("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.$getImageUri(e.url),fit:"cover"}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)})),0)])}),[],!1,null,"88b4daa6",null).exports),_=s("7e85");let x=class extends l.e{};Object(a.a)([Object(l.c)()],x.prototype,"content",void 0),Object(a.a)([Object(l.c)()],x.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],x.prototype,"index",void 0),Object(a.a)([Object(l.c)()],x.prototype,"operate",void 0),x=Object(a.a)([Object(l.a)({components:{Contents:y,WidgetPackage:_.a}})],x);var A=x,w={attribute:p,contents:y,widget:Object(m.a)(A,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},C=s("4539"),k=s("b3ad");let O=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};O=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,NavList:C.a,MaterialSelect:k.a}})],O);var j=O,F=Object(m.a)(j,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"头部设置"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"导航菜单",desc:"最多可添加9个"}},[s("nav-list",{attrs:{client:"pc","has-img":!1,limit:9},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1)])],1)}),[],!1,null,"27acd808",null).exports,S=s("14c6");let z=class extends l.e{constructor(){super(...arguments),this.category=[],this.cateTwo=[],this.showCateFloat=!1,this.selectIndex=-1}getCategoryLists(){Object(S.n)({page_type:1}).then(t=>{this.category=t.lists})}enterCate(t){this.cateTwo=this.category[t].sons||[],this.showCateFloat=!0,this.selectIndex=t}leaveCate(){this.selectIndex=-1,this.showCateFloat=!1}created(){this.getCategoryLists()}};z=Object(a.a)([Object(l.a)({})],z);var M=z,L=(s("cfa9"),Object(m.a)(M,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"category",on:{mouseleave:t.leaveCate}},[s("el-button",{staticClass:"title",attrs:{type:"primary"}},[s("div",{staticClass:"flex lg"},[s("i",{staticClass:"el-icon-s-fold"}),s("div",{staticClass:"m-l-8"},[t._v("全部商品分类")])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.category.length,expression:"category.length"}],staticClass:"category-con bg-white"},[s("ul",{staticClass:"category-one"},[t._l(t.category,(function(e,a){return s("li",{key:a,class:{active:a===t.selectIndex},on:{mouseenter:function(e){return t.enterCate(a)}}},[s("div",{staticClass:"flex row-between"},[s("span",{staticClass:"line-1"},[t._v(t._s(e.name))]),e.sons?s("i",{staticClass:"el-icon-arrow-right"}):t._e()])])})),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showCateFloat&&t.cateTwo.length,expression:"showCateFloat && cateTwo.length"}],staticClass:"category-float bg-white"},[s("div",{staticClass:"float-con"},t._l(t.cateTwo,(function(e,a){return s("div",{key:a,staticClass:"m-t-16"},[s("div",{staticClass:"category-two weight-500 m-b-15"},[s("span",[t._v(t._s(e.name))])]),s("div",{staticClass:"category-three flex flex-wrap"},t._l(e.sons,(function(e,a){return s("div",{key:a,staticClass:"item"},[s("div",{staticClass:"flex"},[s("el-image",{staticStyle:{width:"48px",height:"48px"},attrs:{src:e.image,fit:"contain"}}),s("span",{staticClass:"m-l-8"},[t._v(t._s(e.name))])],1)])})),0)])})),0)])],2)])],1)}),[],!1,null,"36d03a02",null).exports);let E=class extends l.e{get logo(){return this.$store.getters.config.logo}};Object(a.a)([Object(l.c)()],E.prototype,"content",void 0),Object(a.a)([Object(l.c)()],E.prototype,"styles",void 0),E=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a,Category:L}})],E);var D=E,I=(s("91cd"),Object(m.a)(D,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"header bg-white"},[t._m(0),s("div",{staticClass:"header-main"},[s("div",{staticClass:"search-wrap flex row-between"},[s("img",{staticClass:"logo",attrs:{src:t.logo,alt:"logo"}}),s("div",{staticClass:"flex"},[s("div",{staticClass:"search flex"},[s("input",{attrs:{type:"text",placeholder:"请输入要搜索的商品名称"}}),s("el-button",{staticClass:"search-btn",attrs:{type:"primary"}},[t._v(" 搜索 ")])],1),s("el-button",{staticClass:"cart",attrs:{type:"primary",plain:""}},[s("i",{staticClass:"el-icon-shopping-cart-2 xxl"}),t._v(" 我的购物车(0) ")])],1)])]),s("div",{staticClass:"header-nav bg-white"},[s("div",{staticClass:"nav-wrap flex"},[s("category"),s("ul",{staticClass:"nav flex"},t._l(t.content.data,(function(e,a){return s("li",{key:a,staticClass:"item"},[s("a",{class:{active:0==a}},[t._v(t._s(e.name))])])})),0)],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header-top flex row-between"},[e("div",{staticClass:"notice"},[this._v("xxxx")]),e("ul",{staticClass:"user flex flex-none"},[e("li",[e("span",[this._v("登录")]),this._v(" | "),e("span",[this._v("注册")])]),e("li",[e("span",[this._v("我的订单")])]),e("li",[e("span",[this._v("我的收藏")])]),e("li",[e("span",[this._v("手机端")]),e("i",{staticClass:"el-icon-arrow-down m-l-2"})])])])}],!1,null,"3c0e0d05",null).exports);let $=class extends l.e{};Object(a.a)([Object(l.c)()],$.prototype,"content",void 0),Object(a.a)([Object(l.c)()],$.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],$.prototype,"index",void 0),Object(a.a)([Object(l.c)()],$.prototype,"operate",void 0),$=Object(a.a)([Object(l.a)({components:{Contents:I,WidgetPackage:_.a}})],$);var B=$,R={attribute:F,contents:I,widget:Object(m.a)(B,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},P=s("b76a"),U=s.n(P);let T=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};T=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,MaterialSelect:k.a,Draggable:U.a}})],T);var N=T,Y=(s("ac98"),Object(m.a)(N,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"底部设置"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"底部图标"}},[s("draggable",{attrs:{animation:"300"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"item"},[s("el-form-item",{attrs:{label:"图标"}},[s("material-select",{ref:"materialSelect",refInFor:!0,staticClass:"m-r-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}},[s("i",{staticClass:"el-icon-plus lg"})])],1),s("el-form-item",{attrs:{label:"名称"}},[s("el-input",{staticStyle:{width:"200px"},attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入标题名称"},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1)],1)})),0)],1)],1)],1)])],1)}),[],!1,null,"7696ff25",null).exports);let W=class extends l.e{};Object(a.a)([Object(l.c)()],W.prototype,"content",void 0),Object(a.a)([Object(l.c)()],W.prototype,"styles",void 0),W=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],W);var Q=W,J=(s("27423"),Object(m.a)(Q,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"footer"},[s("div",{staticClass:"footer-tags flex"},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"tags-item flex flex-1 row-center"},[s("img",{staticClass:"tags-img",attrs:{src:t.$getImageUri(e.url),alt:""}}),s("div",{staticClass:"m-l-10 xxl"},[t._v(t._s(e.name))])])})),0),s("div",{staticClass:"copy-right xs"},[t._v("Copyright © 2019-2021 xxxx xxxx")])])}),[],!1,null,"366f4e82",null).exports);let V=class extends l.e{};Object(a.a)([Object(l.c)()],V.prototype,"content",void 0),Object(a.a)([Object(l.c)()],V.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],V.prototype,"index",void 0),Object(a.a)([Object(l.c)()],V.prototype,"operate",void 0),V=Object(a.a)([Object(l.a)({components:{Contents:J,WidgetPackage:_.a}})],V);var G=V,H=(s("ae8d"),{attribute:Y,contents:J,widget:Object(m.a)(G,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"widget-footer"},[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,"142a7196",null).exports}),K=s("2b1d");let X=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"图片+文字",value:1},{name:"图片",value:2}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}onAdd(t){const e={icon:"",select_icon:"",name:"",type:t,link:{}};if(this.content.data.length>5)return this.$message.warning("最多五个导航");this.content.data.push(e)}onDelete(t){const{data:e}=this.content;if(e.length<=1)return this.$message.warning("最少保留一个导航");this.content.data.splice(t,1)}};X=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,LinkSelect:K.a,MaterialSelect:k.a,Draggable:U.a}})],X);var Z=X,q=(s("17d0"),Object(m.a)(Z,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"悬浮设置"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"展示样式"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1),s("attribute-item",{attrs:{title:"悬浮菜单"}},[s("div",{staticClass:"nav-list"},[s("draggable",{attrs:{animation:"300"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"nav-item ls-del-wrap item"},[s("div",[s("div",{staticClass:"flex m-b-10"},[s("material-select",{ref:"materialSelect",refInFor:!0,staticClass:"m-r-10",attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:e.icon,callback:function(s){t.$set(e,"icon",s)},expression:"item.icon"}},[s("div",{staticClass:"text-center"},[s("i",{staticClass:"el-icon-plus"}),s("div",[t._v("未选中")])])]),s("material-select",{ref:"materialSelect",refInFor:!0,attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:e.select_icon,callback:function(s){t.$set(e,"select_icon",s)},expression:"item.select_icon"}},[s("div",{staticClass:"text-center"},[s("i",{staticClass:"el-icon-plus"}),s("div",[t._v("选中")])])])],1),s("div",[1==t.content.style?s("el-form-item",{attrs:{label:"名称","label-width":"40px"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入名称"},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1):t._e(),"nav"==e.type?s("el-form-item",{attrs:{label:"链接","label-width":"40px"}},[s("link-select",{attrs:{client:"pc"},model:{value:e.link,callback:function(s){t.$set(e,"link",s)},expression:"item.link"}})],1):t._e()],1)]),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.onDelete(a)}}})])})),0)],1),t.content.data.length<5?s("el-form-item",{attrs:{"label-width":"0"}},[s("el-button",{staticClass:"add-nav",attrs:{size:"small"},on:{click:function(e){return t.onAdd("nav")}}},[t._v("+ 添加导航")]),s("el-button",{staticClass:"add-server",attrs:{size:"small"},on:{click:function(e){return t.onAdd("server")}}},[t._v("+ 添加客服")])],1):t._e()],1)],1)],1)])],1)}),[],!1,null,"500321a7",null).exports);let tt=class extends l.e{};Object(a.a)([Object(l.c)()],tt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],tt.prototype,"styles",void 0),tt=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],tt);var et=tt,st=(s("d133"),Object(m.a)(et,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"fixed"},[s("div",{staticClass:"float-nav bg-white"},[s("div",{staticClass:"nav-list"},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"item flex-col col-center lighter"},[s("img",{staticClass:"icon-img",attrs:{src:t.$getImageUri(e.icon)}}),1==t.content.style?s("div",{staticClass:"xs m-t-5"},[t._v(" "+t._s(e.name)+" ")]):t._e()])})),0),t.content.data.length?t._e():s("div",[t._v("悬浮菜单")])])])}),[],!1,null,"7032b2ba",null).exports);let at=class extends l.e{};Object(a.a)([Object(l.c)()],at.prototype,"content",void 0),Object(a.a)([Object(l.c)()],at.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],at.prototype,"index",void 0),Object(a.a)([Object(l.c)()],at.prototype,"operate",void 0),at=Object(a.a)([Object(l.a)({components:{Contents:st,WidgetPackage:_.a}})],at);var lt=at,ot=(s("f757"),{attribute:q,contents:st,widget:Object(m.a)(lt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"widget-fixed"},[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,"92ab23d8",null).exports});let it=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};it=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,BannerList:d.a}})],it);var rt=it,nt=Object(m.a)(rt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"轮播图"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"图片设置",desc:"最多可添加10张,建议图片尺寸:1020px*440px"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("banner-list",{attrs:{client:"pc",limit:10},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1)],1)])],1)}),[],!1,null,"06cd0aeb",null).exports;let ct=class extends l.e{};Object(a.a)([Object(l.c)()],ct.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ct.prototype,"styles",void 0),ct=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],ct);var dt=ct,ut=(s("18b3"),Object(m.a)(dt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banner"},[s("el-carousel",{attrs:{height:"440px",autoplay:"",arrow:"always"}},t._l(t.content.data,(function(e,a){return s("el-carousel-item",{key:a,staticClass:"swiper-item"},[s("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.$getImageUri(e.url),fit:"cover"}})],1)})),1)],1)}),[],!1,null,"13018a1d",null).exports);let bt=class extends l.e{};Object(a.a)([Object(l.c)()],bt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],bt.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],bt.prototype,"index",void 0),Object(a.a)([Object(l.c)()],bt.prototype,"operate",void 0),bt=Object(a.a)([Object(l.a)({components:{Contents:ut,WidgetPackage:_.a}})],bt);var mt=bt,pt={attribute:nt,contents:ut,widget:Object(m.a)(mt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},gt=s("294c");let vt=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};vt=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,NavList:C.a,MaterialSelect:k.a,LinkSelect:K.a,GSelect:gt.a}})],vt);var ft=vt,ht=Object(m.a)(ft,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"商品组"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"标题设置"}},[s("el-form-item",{attrs:{label:"标题名称"}},[s("el-input",{attrs:{placeholder:"请输入标题名称",maxlength:"20","show-word-limit":""},model:{value:t.content.title,callback:function(e){t.$set(t.content,"title",e)},expression:"content.title"}})],1),s("el-form-item",{attrs:{label:"副标题名称"}},[s("el-input",{attrs:{placeholder:"请输入副标题名称",maxlength:"50","show-word-limit":""},model:{value:t.content.subtitle,callback:function(e){t.$set(t.content,"subtitle",e)},expression:"content.subtitle"}})],1),s("el-form-item",{attrs:{label:"更多按钮"}},[s("el-radio-group",{model:{value:t.content.show_more,callback:function(e){t.$set(t.content,"show_more",e)},expression:"content.show_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1)],1),s("attribute-item",{attrs:{title:"广告设置"}},[s("el-form-item",{attrs:{label:"是否显示"}},[s("el-radio-group",{model:{value:t.content.show_adv,callback:function(e){t.$set(t.content,"show_adv",e)},expression:"content.show_adv"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"广告图片"}},[s("material-select",{ref:"materialSelect",attrs:{size:80,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.adv_url,callback:function(e){t.$set(t.content,"adv_url",e)},expression:"content.adv_url"}}),s("div",{staticClass:"muted"},[t._v("建议尺寸:1140px*200px")])],1),s("el-form-item",{attrs:{label:"链接地址"}},[s("link-select",{attrs:{client:"pc"},model:{value:t.content.adv_link,callback:function(e){t.$set(t.content,"adv_link",e)},expression:"content.adv_link"}})],1)],1),s("attribute-item",{attrs:{title:"选择商品"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"p-20",staticStyle:{background:"#f9f9f9"}},[s("g-select",{attrs:{content:t.content}})],1)])],1)],1)],1)])],1)}),[],!1,null,"1f559568",null).exports;s("a573");let yt=class extends l.e{get goods(){const{data:t,goods_type:e,category:s}=this.content;return 2==e?[...Array(s.num).keys()].map(()=>({})):t.length?t:[{},{},{},{},{}]}};Object(a.a)([Object(l.c)()],yt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],yt.prototype,"styles",void 0),yt=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],yt);var _t=yt,xt=(s("773d"),Object(m.a)(_t,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"goods bg-white"},[a("div",{staticClass:"goods-header flex row-between"},[a("div",{staticClass:"title"},[t._v(" "+t._s(t.content.title)+" "),a("span",{staticClass:"nr muted line-1"},[t._v(t._s(t.content.subtitle))])]),t.content.show_more?a("div",{staticClass:"more lighter"},[t._v("更多 "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),1==t.content.show_adv?a("div",{staticClass:"banner m-b-16"},[a("el-image",{staticStyle:{width:"100%",height:"200px"},attrs:{src:t.$getImageUri(t.content.adv_url),fit:"cover"}},[a("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture font-size-40"})])])],1):t._e(),a("div",{staticClass:"goods-lists"},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-item"},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-name line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")]),a("div",{staticClass:"goods-price flex-1 flex col-baseline"},[a("div",{staticClass:"price weight-500 m-r-5 xl"},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.sell_price)||"0")+" ")]),a("div",{staticClass:"muted line-through xs"},[t._v("¥"+t._s(parseFloat(e.lineation_price)||"0"))]),a("div",{staticClass:"flex-1"}),a("div",{staticClass:"muted xs"},[t._v("0人购买")])])])})),0)])}),[],!1,null,"6b4d91d1",null).exports);let At=class extends l.e{};Object(a.a)([Object(l.c)()],At.prototype,"content",void 0),Object(a.a)([Object(l.c)()],At.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],At.prototype,"index",void 0),Object(a.a)([Object(l.c)()],At.prototype,"operate",void 0),At=Object(a.a)([Object(l.a)({components:{Contents:xt,WidgetPackage:_.a}})],At);var wt=At,Ct={attribute:ht,contents:xt,widget:Object(m.a)(wt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},kt=s("008b");let Ot=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};Ot=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:n.a,AttributeItem:c.a,NavList:C.a,MaterialSelect:k.a,LinkSelect:K.a,ActivitySelect:kt.a}})],Ot);var jt=Ot,Ft=Object(m.a)(jt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"商品组"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"秒杀设置"}},[s("el-form-item",{attrs:{label:"标题名称"}},[s("el-input",{attrs:{placeholder:"请输入标题名称"},model:{value:t.content.title,callback:function(e){t.$set(t.content,"title",e)},expression:"content.title"}})],1),s("el-form-item",{attrs:{label:"更多按钮"}},[s("el-radio-group",{model:{value:t.content.show_more,callback:function(e){t.$set(t.content,"show_more",e)},expression:"content.show_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1)],1),s("attribute-item",{attrs:{title:"选择秒杀商品"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("el-radio-group",{model:{value:t.content.data_type,callback:function(e){t.$set(t.content,"data_type",e)},expression:"content.data_type"}},[s("el-radio",{attrs:{label:1}},[t._v("自动获取")]),s("el-radio",{attrs:{label:2}},[t._v("手动添加")])],1)],1),1==t.content.data_type?s("el-form-item",{attrs:{label:"显示数量"}},[s("slider",{attrs:{min:1,max:10},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1):s("el-form-item",{attrs:{"label-width":"0"}},[s("activity-select",{attrs:{type:"seckill"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1)],1)])],1)}),[],!1,null,"f17fed34",null).exports;let St=class extends l.e{get goods(){const{data:t,data_type:e,num:s}=this.content;return 1==e?[...Array(s).keys()].map(()=>({})):t.length?t:[{},{},{},{},{}]}};Object(a.a)([Object(l.c)()],St.prototype,"content",void 0),Object(a.a)([Object(l.c)()],St.prototype,"styles",void 0),St=Object(a.a)([Object(l.a)({components:{Indicator:g.a,WidgetRoot:v.a}})],St);var zt=St,Mt=(s("72b5"),Object(m.a)(zt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"seckill bg-white"},[a("div",{staticClass:"seckill-header flex row-between"},[a("div",{staticClass:"title flex"},[a("i",{staticClass:"el-icon-alarm-clock icon-seckill font-size-24"}),a("span",{staticClass:"m-l-10"},[t._v(t._s(t.content.title))])]),t.content.show_more?a("div",{staticClass:"more lighter"},[t._v("更多 "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),a("div",{staticClass:"goods-lists"},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-item"},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-name line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")]),a("div",{staticClass:"goods-price flex-1 flex col-baseline"},[a("span",{},[t._v("秒杀价")]),a("div",{staticClass:"price weight-500 m-r-5 xl flex-1"},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.min_activity_price)||"0")+" ")]),a("div",{staticClass:"btn"},[t._v("立即抢购")])])])})),0),t._m(0)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-carousel__indicators--outside"},[e("li",{staticClass:"el-carousel__indicator el-carousel__indicator--horizontal is-active"},[e("button",{staticClass:"el-carousel__button",staticStyle:{"background-color":"#ff2c3c"}})])])}],!1,null,"0f1bd802",null).exports);let Lt=class extends l.e{};Object(a.a)([Object(l.c)()],Lt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Lt.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Lt.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Lt.prototype,"operate",void 0),Lt=Object(a.a)([Object(l.a)({components:{Contents:Mt,WidgetPackage:_.a}})],Lt);var Et=Lt,Dt={attribute:Ft,contents:Mt,widget:Object(m.a)(Et,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};e.a={header:R,adv:w,footer:H,fixed:ot,banner:pt,goodsgroup:Ct,seckill:Dt}},4539:function(t,e,s){"use strict";s("14d9");var a=s("9ab4"),l=s("1b40"),o=s("2b1d"),i=s("b3ad"),r=s("b76a"),n=s.n(r);let c=class extends l.e{get nav(){return this.value}set nav(t){this.$emit("input",t)}onAdd(){if(-1!=this.limit&&this.nav.length>=this.limit)return this.$message.error(`最多添加${this.limit}个`);this.nav.push({url:"",name:"导航",link:{}})}onDelete(t){this.nav.splice(t,1)}};Object(a.a)([Object(l.c)()],c.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:-1})],c.prototype,"limit",void 0),Object(a.a)([Object(l.c)()],c.prototype,"client",void 0),Object(a.a)([Object(l.c)({default:!0})],c.prototype,"hasImg",void 0),c=Object(a.a)([Object(l.a)({components:{MaterialSelect:i.a,LinkSelect:o.a,Draggable:n.a}})],c);var d=c,u=(s("e560"),s("2877")),b=Object(u.a)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"nav-content"},[s("div",{staticClass:"nav-list"},[s("draggable",{attrs:{animation:"300"},model:{value:t.nav,callback:function(e){t.nav=e},expression:"nav"}},t._l(t.nav,(function(e,a){return s("div",{key:a,staticClass:"nav-item ls-del-wrap"},[s("div",{staticClass:"flex"},[t.hasImg?s("material-select",{ref:"materialSelect",refInFor:!0,staticClass:"m-r-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}},[s("i",{staticClass:"el-icon-plus lg"})]):t._e(),s("div",[s("el-form-item",{attrs:{label:"标题","label-width":"40px"}},[s("el-input",{staticStyle:{width:"200px"},attrs:{maxlength:"6","show-word-limit":"",placeholder:"请输入标题"},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),s("el-form-item",{attrs:{label:"链接","label-width":"40px"}},[s("link-select",{attrs:{client:t.client},model:{value:e.link,callback:function(s){t.$set(e,"link",s)},expression:"item.link"}})],1)],1)],1),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.onDelete(a)}}})])})),0)],1),-1==this.limit||-1!=this.limit&&this.nav.length<this.limit?s("el-form-item",{attrs:{"label-width":"0"}},[s("el-button",{staticClass:"add-nav",attrs:{size:"small"},on:{click:t.onAdd}},[t._v("+ 添加导航")])],1):t._e()],1)}),[],!1,null,"fcb2e41a",null);e.a=b.exports},"45b3":function(t,e,s){},"46b2":function(t,e,s){},"4be9":function(t,e,s){},"4cee":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("0a6d"),i=(s("14d9"),s("0643"),s("76d6"),s("4e3e"),s("a573"),s("9a9a"),s("3c50")),r=s("6ddb"),n=s("0cbf");let c=class extends l.e{constructor(){super(...arguments),this.name="",this.pager=new r.a,this.get_type=2}visibleChange(t){t.val&&this.getList()}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}get selectItem(){return t=>this.selectData.some(e=>e.id==t.id)}get selectAll(){const{pager:{lists:t}}=this,e=this.selectData.map(t=>t.id);return!!t.length&&t.every(t=>e.includes(t.id))}set selectAll(t){const{pager:{lists:e}}=this;if(t)for(let t=0;t<e.length;t++){const s=e[t];if(!this.selectData.map(t=>t.id).includes(s.id)){if(this.checkLength())return;this.selectData.push(s)}}else e.forEach(t=>{this.setSelectData(t)})}handleSelect(t,e){if(t){if(this.checkLength())return;this.selectData.push(e)}else this.setSelectData(e)}setSelectData(t){const e=this.selectData.findIndex(e=>e.id==t.id);-1!=e&&this.selectData.splice(e,1)}checkLength(){return this.selectData.length>=this.limit&&(this.$message({message:`最多选择${this.limit}张优惠券`,type:"warning"}),!0)}getList(t){t&&(this.pager.page=t),this.pager.request({callback:n.b,params:{name:this.name,get_type:this.get_type}}).then(t=>{})}};Object(a.a)([Object(l.b)("visible")],c.prototype,"visible",void 0),Object(a.a)([Object(l.c)()],c.prototype,"value",void 0),Object(a.a)([Object(l.c)()],c.prototype,"limit",void 0),Object(a.a)([Object(l.f)("visible",{deep:!0,immediate:!0})],c.prototype,"visibleChange",null),c=Object(a.a)([Object(l.a)({components:{LsPagination:i.a}})],c);var d=c,u=s("2877"),b=Object(u.a)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail"},[s("div",{staticClass:"flex row m-b-10 m-l-10"},[s("div",{staticClass:"flex-1"},[s("el-checkbox",{model:{value:t.selectAll,callback:function(e){t.selectAll=e},expression:"selectAll"}},[t._v("全选")])],1),s("div",{staticClass:"flex"},[s("div",{staticClass:"m-r-10"},[t._v("推广方式")]),s("el-select",{staticClass:"m-r-10",model:{value:t.get_type,callback:function(e){t.get_type=e},expression:"get_type"}},[s("el-option",{attrs:{label:"全部",value:1}}),s("el-option",{attrs:{label:"卖家发放",value:2}})],1),s("div",{staticClass:"m-r-10"},[t._v("优惠券搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入优惠券名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)]),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini","row-key":"id"}},[s("el-table-column",{attrs:{width:"45"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("el-checkbox",{attrs:{value:t.selectItem(a)},on:{change:function(e){return t.handleSelect(e,a)}}})]}}])}),s("el-table-column",{attrs:{label:"优惠券名称","min-width":"180",prop:"name"}}),s("el-table-column",{attrs:{label:"优惠门槛","min-width":"180",prop:"discount_content"}}),s("el-table-column",{attrs:{label:"剩余",width:"100",prop:"surplus_number"}}),s("el-table-column",{attrs:{label:"优惠券状态",prop:"status_desc"}})],1),s("div",{staticClass:"flex row-right m-t-20"},[s("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)}),[],!1,null,"188fdf28",null).exports;let m=class extends l.e{constructor(){super(...arguments),this.coupon=[]}valueChange(t){this.coupon=JSON.parse(JSON.stringify(t))}handleConfirm(){this.$emit("input",this.coupon)}};Object(a.a)([Object(l.c)({default:()=>[]})],m.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],m.prototype,"disabled",void 0),Object(a.a)([Object(l.c)({default:10})],m.prototype,"limit",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0,deep:!0})],m.prototype,"valueChange",null),m=Object(a.a)([Object(l.a)({components:{LsDialog:o.a,Detail:b}})],m);var p=m,g=Object(u.a)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ls-dialog",{ref:"dialog",staticClass:"coupon-select",attrs:{title:"选择优惠券",width:"900px",top:"20vh",disabled:t.disabled},on:{confirm:t.handleConfirm}},[s("div",{staticClass:"coupon-select__trigger",attrs:{slot:"trigger"},slot:"trigger"},[t._t("trigger",(function(){return[s("el-button",{attrs:{disabled:t.disabled,size:"mini",type:"primary"}},[t._v("选择优惠券")])]}))],2),s("div",{staticClass:"p-l-20 p-r-20"},[s("detail",{ref:"detail",attrs:{limit:t.limit},model:{value:t.coupon,callback:function(e){t.coupon=e},expression:"coupon"}})],1)])}),[],!1,null,"486e7714",null).exports,v=s("b76a"),f=s.n(v);let h=class extends l.e{get selectData(){return this.value}set selectData(t){this.$emit("input",t),this.$emit("change",t)}handleDelete(t){this.selectData.splice(t,1)}};Object(a.a)([Object(l.c)({default:()=>[]})],h.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],h.prototype,"disabled",void 0),Object(a.a)([Object(l.c)({default:10})],h.prototype,"limit",void 0),h=Object(a.a)([Object(l.a)({components:{CDialog:g,Draggable:f.a}})],h);var y=h,_=(s("5a19"),Object(u.a)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"select"},[s("c-dialog",{attrs:{limit:t.limit,disabled:t.disabled},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}},[t._t("trigger")],2),s("div",{staticClass:"m-t-20"},[s("div",{staticClass:"select-list"},[s("draggable",{attrs:{animation:"300"},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}},t._l(t.selectData,(function(e,a){return s("div",{key:a,staticClass:"select-item ls-del-wrap"},[s("div",{staticClass:"flex m-b-16"},[s("div",{staticClass:"lighter label"},[t._v("名称")]),s("div",[t._v(t._s(e.name))])]),s("div",{staticClass:"flex"},[s("div",{staticClass:"lighter label"},[t._v("门槛")]),s("div",[t._v(t._s(e.discount_content))])]),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.handleDelete(a)}}})])})),0)],1)])],1)}),[],!1,null,"8776978c",null));e.a=_.exports},"4fc6":function(t,e,s){"use strict";s("1b20")},5057:function(t,e,s){"use strict";s("3fa8")},"51f0":function(t,e,s){"use strict";s("6bb6")},5203:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEUAAAAwMDAyMjJNgP89dPouLi4+dPowMDA+dPovLy8vLy8vLy8vLy8wMDA2NjYvLy8zMzMwMDA+dPooa0fBAAAAEXRSTlMA9QoK9Qf49Ovn5uKinyYjFKuU/v0AAAClSURBVFjD7ZaxDoQgEEQPcFUQUe//P/YwNyFoNclamX3V7CsmgYLlY7wJ8UBo11NyciDlQrvGthwdy8Y7sB6u6RpX2gFJ5wxqTEK7P95Vv4uvyH5mTzsUTBhQNnnetcH5PpPOCqzACqzgjQXKR1X/rEu8LoworNOvNv1yBSVHB2IurNN+MAzjRrhBOxDmcegY50A7FAzfC0Mgnb5AfQT1JRrGU/wALPsyTYZ2gE8AAAAASUVORK5CYII="},5264:function(t,e,s){},"529f":function(t,e,s){"use strict";s("0ff6")},5571:function(t,e,s){},"569c":function(t,e,s){"use strict";s("9177")},"582d":function(t,e,s){t.exports=s.p+"img/coupon2.6de467b2.png"},"5a19":function(t,e,s){"use strict";s("684b")},"601f":function(t,e,s){"use strict";s("e15d")},"603e":function(t,e,s){},6052:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA21BMVEUAAABGSE0ZG0cwMDAwMDAuLi4uLi4vLy8uLi4vLy8wMDA9dPouLi4vLy8uLi4vLy9Bd/8+c/kvLy8vLy8vLy8wMDAvLy8yMjIvLy88c/ktLS0qKiozMzMxMTEvLy89c/swMDAuLi4uLi0uLi4vLy8sLCwrKys+dPo9dPovLy8uLi4uLi4uLi4tLS0uLi4uLiovLy8vLy8vMDAvLy8vLy8vLy8wMDAuKyIvLy8uLi4/ev4wMDAwLis3UZQ+dPo9dPo9c/o/dvcvLy8wMDA8cvlBcvowMDA+dPs0R3eJGsFlAAAARnRSTlMAAwH8+QZE885SCf23nXoWCfzp48OuXBPUTTgmIRjfsaSRhIA9Mi349Ne8uot1bk3s2rOnmVkd/shkRxD79c/Ms6dzalUvbbMDQgAAAsdJREFUWMPtVmlzokAQnQa5FCGiovFaNYmJGs+oufY+hvz/X7RvxqK2rHUGo1/ywa4SkO73+nXPBTvbhzbDICLjaDRZJB9wN45Ab69hK9zSvJODAArj4qgyLNcro+K6LV69p3RmeL7D/9l87BEoDpdvj4EyczlToOUtN7YPLYNYvifQXHBEnUiyiEsvz+ggfHvETQBM98puNDfNhn3lmvKN34Y3G99ccBOA6g1LFRvspiooeH2QxYDYtivwrm2BLDU4bFcyQEMGPr8UeL+223NCYb5wVAkx2gLuRdjKkh3fHRmrKFz3jLT4G9TKx3vaDUbLhy/XYKSbQFWOQjeM9rKHQ3gftAJsjiQeI4V7xmGYUOoWFpHCh1qVQl9KIPUQlJFhpgyABAgchow0FfByXlNirQ4GW01wBYVFzUBbssaAkcrdhXvNSCPhmZvqFCQH0dMSeCCoKntIFbivGeknGndJRWA9YcE0TiBg2QquQVBRBVjogZPRgzVSPCjdcpCetQQ/QbBSj8IE7qV2sSyRYsqUTRhgJ3VqeFDhW2WuXdDWEBJ+adZCDAFPeWTQzeU6JKgWWwcJeohTEgzmYJgoIiw2Bd5pgkm3JSLkWrEjNRzQ6zZFUIcRGDotRvs62BG+TcauGstTocWs/3bllgs8j1O8po9gKNuAUMqBR0zisnD0M/CIFZsC+tCvyU8Uadita30H+Me3Hxf4kyHhdYVQk0fTQT5t/2Aq0z++lZJPF8zI1BBsj3On0gviOA56FUce95+/JEkp+Q4NmQzeQiJS2/ItZi93hVLhMA2vwVzAcjkUgyueo6DG2OVtoYAqMjWIkyWcjCKeWuQHIROjcnmXHKQBwfg1vUm/2+32A6+Zvko1HPalt1PVNqXUcFsqvOglpCA5BeQtDZcakuTuDwiONGj49vX30Xip4QI9PO0TXuBPZDjb2T6i/QWvqlvzzBkC3AAAAABJRU5ErkJggg=="},6081:function(t,e,s){},"61ba":function(t,e,s){"use strict";s("3865")},6250:function(t,e,s){"use strict";s("bba2")},6351:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("0a6d");let i=class extends l.e{constructor(){super(...arguments),this.select=0}valueChange(t){this.select=t}onConfirm(){this.$emit("input",this.select)}};Object(a.a)([Object(l.c)()],i.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:"选择风格"})],i.prototype,"title",void 0),Object(a.a)([Object(l.c)()],i.prototype,"data",void 0),Object(a.a)([Object(l.c)({default:"33.3%"})],i.prototype,"itemWidth",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0})],i.prototype,"valueChange",null),i=Object(a.a)([Object(l.a)({components:{LsDialog:o.a}})],i);var r=i,n=(s("e674"),s("2877")),c=Object(n.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("ls-dialog",{attrs:{title:t.title,width:"900px",top:"20vh"},on:{confirm:t.onConfirm}},[s("div",{attrs:{slot:"trigger"},slot:"trigger"},[t._t("trigger")],2),s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"500px"}},[s("div",{staticClass:"style-select"},[s("el-radio-group",{model:{value:t.select,callback:function(e){t.select=e},expression:"select"}},[s("div",{staticClass:"flex flex-wrap",staticStyle:{"align-items":"stretch"}},t._l(t.data,(function(e,a){return s("div",{key:a,staticClass:"flex item flex-col",style:{width:t.itemWidth}},[s("div",{staticClass:"item-img flex col-center m-b-20 flex-1",class:{select:t.select==e.value},on:{click:function(s){t.select=e.value}}},[s("img",{staticStyle:{width:"100%"},attrs:{src:e.img,alt:""}})]),s("el-radio",{attrs:{label:e.value}},[t._v(t._s(e.text))])],1)})),0)])],1)])],1)],1)}),[],!1,null,"69757d98",null);e.a=c.exports},"647d":function(t,e,s){"use strict";s("9540")},"65c7":function(t,e,s){},"66bb":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{};Object(a.a)([Object(l.c)()],o.prototype,"title",void 0),Object(a.a)([Object(l.c)()],o.prototype,"desc",void 0),o=Object(a.a)([l.a],o);var i=o,r=(s("9059"),s("2877")),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"attribute-item"},[t.title?s("div",{staticClass:"title flex nr"},[t._v(" "+t._s(t.title)+" "),s("span",{staticClass:"muted xs flex-1 m-l-8"},[t._v(t._s(t.desc))]),t._t("right")],2):t._e(),s("div",{staticClass:"content"},[t._t("default")],2),s("div",{staticClass:"footer"})])}),[],!1,null,"a332dc1a",null);e.a=n.exports},"66e1":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA4VBMVEUAAAAzMzMzMzNeXslAc/ozMzM2NjZAf/8zMzM/cvpBc/ozMzMxMTEyMjIzMzMyMjIyMjIyMjJBev8yMjIyMjI/cvo/c/pAcvoyMjIzMzNAcvkzMzMyMjIxMTEuLi4yMjJAcvoyMjIyMjJAc/lBdPtBcvpAcvcvLy80NDQzMzMyMjIyMjI/c/o/cvkyMjI0NDRAcvk/c/o/c/oyMjI/cvtAcvoyMjIyMjIyMjJBcvs/c/pAcvlBcvtAcfsxMTE0NDQwMDBEcvY9bflHcf8/cvlAcvkzMzM/cvozMzMzMzNAc/o/LZ1lAAAASXRSTlMACvUC/PsEBPjNM9sYkezwsTkIzo3278pmHoZzXSse59HJYVlGLiEaDeHTvp2IVUnm3dm6saill31ycVxSQz4iIB4VErm4qZ03Mn0hnQAAAnpJREFUWMPNl4lymzAQhhcWBA2XMT7AV27bSRO7bdpcbZP0rvT+D9SVyjg+Ah7EZJJ/xjM26/30ayXEAutChGIhbNNDVkZAGGVQIgYpN68NYEVh1jftFLCY73vc5vt/geGTYeOKwt4EsBCQnXDb5m6fPWGCgX8ho55fZmG+K//D3w43TDAYJjK2Oy+vpP+by7+Z/bVKMJiHMnA6LM+n4GxhAnHpeurKyxcTxS1HTC7t/yYY4ALb4pyoV6u+ChdrsFoJBtNLdeE6N7UdkTVUJaKUUQqD+0T9muWOtgopLQ3VmI17wsVqcU/uSu2zdfhDg8tphynMTE7an2wMs1Z9Zixryoy+SQTKjLi04rOpsSy2dmfFrSQyl+Waoc0fFUXuSjRMgnhp+Glg8iLZRQE3MCCX0eC2yyvKtXmD5QYCVXHXrCBXrXNLFQ/u5OjewDcqyB940kWsljbgLvcyglUQQuZxN7dwSqwDQlUSgwO5O2SWEZEXHyprRDMPDQmgJTSN6gCV98wAdBysA0CUH30AwrfDL98JoQlAOH4vxN5XcFB3Cp9E2xLivEkILYCzJ4SwLNE9JoIWoCssRWjfAjqoAXhD6R1JEB/HZEIPcHSmTLw7dMDRAuzAZ2XCOvsBjh4Axj+FRYgPR4BaAAeaN21looeAGgBEB3a6qhI9PQAgmejRd9FpAtYG1JrCOaBeEW9rFRHGvxbLWGcj/aGN9CJbuSPE4mbSv51vgPJf4EDRPtL0D1X9Y13/wVL/0fZKns71Gox6LU6iGtaWbLJGVZusUd5kESqu1ebVbjTrt7qKEJTlb2+2SXGQhBXmoNr9jReObSp94WAIFYUMlP4BwunDw+y4+9kAAAAASUVORK5CYII="},"67b7":function(t,e,s){},"684b":function(t,e,s){},"69ce":function(t,e,s){t.exports=s.p+"img/sort_three2.49341171.png"},"6a3a":function(t,e,s){"use strict";s("ea4b")},"6ae0":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{get select(){return this.value}set select(t){this.$emit("input",t)}};Object(a.a)([Object(l.c)({default:()=>[]})],o.prototype,"data",void 0),Object(a.a)([Object(l.c)()],o.prototype,"value",void 0),o=Object(a.a)([l.a],o);var i=o,r=(s("b5b0"),s("2877")),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"style-chose"},[s("div",{staticClass:"chose-list flex flex-wrap"},t._l(t.data,(function(e,a){return s("div",{key:a,staticClass:"chose-item",class:{active:t.select==e.value},on:{click:function(s){t.select=e.value}}},[s("div",{staticClass:"chose-content"},[s("span",{style:{"padding-left":e.icon?"8px":"0"}},[t._v(t._s(e.name))])])])})),0)])}),[],!1,null,"7e8c0595",null);e.a=n.exports},"6b1a":function(t,e,s){"use strict";s("a790")},"6bb6":function(t,e,s){},"6e32":function(t,e,s){"use strict";s("89f2")},7013:function(t,e,s){},"705e":function(t,e,s){t.exports=s.p+"img/sort_one3.ed870012.png"},7114:function(t,e,s){},7150:function(t,e,s){"use strict";s("d934")},"726b":function(t,e,s){},"72b5":function(t,e,s){"use strict";s("5571")},"72de":function(t,e,s){"use strict";s("14a1d")},"768b":function(t,e,s){},"76e7":function(t,e,s){},"773d":function(t,e,s){"use strict";s("46b2")},7925:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAAIVBMVEUAAADm5ub////m5uZNgP89dPrm5ubm5uY+dPrm5uY+dPpyyzdoAAAACXRSTlMACgH1Cvb46+vZtGYSAAAAVklEQVRIx2MYBUQDJTyAOBME8QCgNBNjmTFOkC6gAFRgORMnmDx0FOD3JqGAojyyhg9wwQNA8iytoThBhANIQdQqnGApYQUErSDoyOEDRsuH0fJhpAEAKLA9OM1ECSMAAAAASUVORK5CYII="},"7b90":function(t,e,s){},"7cd4":function(t,e,s){"use strict";s("3dfa")},"7e85":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{get enabledBtn(){return t=>this.operate.includes(t)}get isUp(){return this.enabledBtn("moveup")&&0!==this.index&&!this.forbid(-1)}get isDown(){return this.enabledBtn("movedown")&&this.index!==this.pagesData.length-1&&!this.forbid(1)}get selectIndex(){return this.$store.state.decorate.selectIndex}set selectIndex(t){this.$store.commit("setSelectIndex",t)}get pagesData(){return this.$store.state.decorate.pagesData}set pagesData(t){this.$store.commit("setPagesData",t)}get hidden(){const{pagesData:t,index:e}=this;return!t[e].show}forbid(t){const e=this.pagesData[this.selectIndex+t];return e&&e.forbid}setSelect(){this.selectIndex=this.index}onHidden(){if(!this.enabledBtn("hidden"))return;const{pagesData:t,selectIndex:e}=this;t[e].show=t[e].show?0:1}onDelete(){this.enabledBtn("delete")&&(this.pagesData.splice(this.index,1),this.pagesData.length==this.selectIndex&&this.selectIndex--)}onCopy(){if(!this.enabledBtn("copy"))return;const{index:t}=this,e=JSON.parse(JSON.stringify(this.pagesData[t]));this.pagesData.splice(t,0,e)}onMove(t){const{index:e,isUp:s,isDown:a}=this;t<0&&!s||t>0&&!a||(this.pagesData[e]=this.pagesData.splice(e+t,1,this.pagesData[e]).pop(),this.selectIndex=e+t)}};Object(a.a)([Object(l.c)()],o.prototype,"index",void 0),Object(a.a)([Object(l.c)({default:()=>["hidden","delete","copy","moveup","movedown"]})],o.prototype,"operate",void 0),o=Object(a.a)([Object(l.a)({})],o);var i=o,r=(s("035e"),s("2877")),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"widget-package",on:{click:function(e){return e.stopPropagation(),t.setSelect.apply(null,arguments)}}},[s("div",{staticClass:"widget-suspension"},[s("div",{staticClass:"widget-mask",attrs:{"data-index":t.index,"data-type":"widget"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.selectIndex==t.index,expression:"selectIndex == index"}],staticClass:"mask",attrs:{"data-index":t.index,"data-type":"widget"}},[s("div",{staticClass:"widget-btns"},[s("el-tooltip",{attrs:{effect:"dark",content:t.hidden?"显示":"隐藏",placement:"right"}},[s("div",{staticClass:"widget-btns__item",class:{disable:!t.enabledBtn("hidden")},on:{click:function(e){return e.stopPropagation(),t.onHidden.apply(null,arguments)}}},[s("i",{staticClass:"iconfont",class:[t.hidden?"icon_show":"icon_hide"]})])]),s("el-tooltip",{attrs:{effect:"dark",content:"删除组件",placement:"right"}},[s("div",{staticClass:"widget-btns__item",class:{disable:!t.enabledBtn("delete")},on:{click:function(e){return e.stopPropagation(),t.onDelete.apply(null,arguments)}}},[s("i",{staticClass:"el-icon-delete"})])]),s("el-tooltip",{attrs:{effect:"dark",content:"复制组件",placement:"right"}},[s("div",{staticClass:"widget-btns__item",class:{disable:!t.enabledBtn("copy")},on:{click:function(e){return e.stopPropagation(),t.onCopy.apply(null,arguments)}}},[s("i",{staticClass:"el-icon-document-copy"})])]),s("el-tooltip",{attrs:{effect:"dark",content:"上移组件",placement:"right"}},[s("div",{staticClass:"widget-btns__item",class:{disable:!t.isUp},on:{click:function(e){return e.stopPropagation(),t.onMove(-1)}}},[s("i",{staticClass:"el-icon-arrow-up"})])]),s("el-tooltip",{attrs:{effect:"dark",content:"下移组件",placement:"right"}},[s("div",{staticClass:"widget-btns__item",class:{disable:!t.isDown},on:{click:function(e){return e.stopPropagation(),t.onMove(1)}}},[s("i",{staticClass:"el-icon-arrow-down"})])])],1)])]),s("div",{staticClass:"widget-content"},[t._t("default")],2),t.hidden?s("div",{staticClass:"widget-hidden white flex row-center"},[t._v("已隐藏")]):t._e()])])}),[],!1,null,"d640c988",null);e.a=n.exports},"7f2c":function(t,e,s){t.exports=s.p+"img/reviews.c365510c.png"},8477:function(t,e,s){},"85bb":function(t,e,s){"use strict";s("3392")},"86dd":function(t,e,s){t.exports=s.p+"img/notice_icon.f1ac9c9a.png"},"870f":function(t,e,s){},8842:function(t,e,s){},"89f2":function(t,e,s){},"8b09":function(t,e,s){"use strict";s("65c7")},"903c":function(t,e,s){},9059:function(t,e,s){"use strict";s("4167")},9177:function(t,e,s){},"91cd":function(t,e,s){"use strict";s("f5b6")},"92da":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAflBMVEUAAAATExMwMDAyMjIwMDAwMDAwMDA6Ojpqav8vLy80NDRKfP8vLy89dPovLy8vLy8vLy8wMDAnJycuLi4wMDAvLy8vLy8wMDAuLi4wMDAvLy8sLCwrKysqKio+dPovLy89dfouLy8wMDA/c/k9dPlDa/8+dPk9c/swMDA+dPrkCnP9AAAAKHRSTlMAAvYK+x/gCALjFgnc9eyUiBoGyvTUmpBeWzY0Kgz2x9SysYqFE+blYx6eTQAAAXBJREFUWMPtlsuSgjAQRbsxGGEYXo5vxbdm/v8HJxBDkoLqKSouXHBcSO7tvlWEkAAjI+9jZqE1tCA01Q6dkSkwo45m+LLQGp+0cEJr2m/P6vtF9bw1ETyPgp+gRv5FOe/VFDO4/jpcYYaQCyZamMgB+zTVfz+5Aac7QLxwixdxr4Y6oDLt1aAA71vQk/gwk/gYMImej9F/Ifku5Q8EHYa4yicUyjVD5BMLjkqlXdOP22yeBhbpPNtKmXbbfuArJjqwFUekXd1/uAjG3KJGuBwAafcVkElBioEFE7WWAdKu6t8xwUSyLuyVXqwTIeUd0C42Acu6IgR3pUNY1yyBdtUcHeX1Bkp0KGEj5SOWc8ItAeWvSIRI94DggLBPhUjieEq4RRMQypJp2Clp9KgoIsIN/w+IYyJgOgaMAe8J8F/K/i+T9+vsu6F4b2m+m6re1s/9G/f5AEi7+mAijg7S9T3afA9Xz+N9+AfGp38gjXjwByIXbL8hHqBzAAAAAElFTkSuQmCC"},9361:function(t,e,s){},"94a8":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAnFBMVEUAAAAaGhoHBwcAAABIav8+dPo9dPsICAhBc/cICAgHBwcHBwcFBQUICAgHBwcHBwc9dPo9dPoHBwcGBgYHBwcJCQkGBgY+cvpGcv8ICAg+c/o8c/pCcfgHBwdAc/8ICAgICAg+c/o+cfoGBgYJCQkHBwcICAg9dPo9dPk+c/oGBgYHBwdCcvs6cPs9dPk9cvkGBgYHBwcHBwc+dPpc0f2yAAAAMnRSTlMACfUEA/zh+x78bvcy/fBx8tXSxrVaEqYT65VKIyIKoaBua1AtJfnbycanczo5eXlRJtGmHEsAAAGtSURBVFjD7VfJdoMwDBTGNAGzJEBok2Zttjbdxf//WwU9ONAGePJ7pYcMcAFpLFvCHsEVNdiGRnbxWI2wmxn8KI1DcRlqGqeRf3H4xUlgB6jVAuzf/CchBmrQ5j5QAYYTzaD9Pfro0iMaQRYuDeKRQ338AN0Ak2iXWQ3IfC/BwMXgRwyfIbooPAtaYXmCTMN9LYATDlBswW6tBLL4GJDxuurvF6xe10KKimh9sCsrqDCxoCOsBFVtuJSCetZvWkMg87TyKqb87aAzfMpkbJ/HFCKKrDtBRiU7tc4JBBF0WwJt/wcEkm6zCOQSJJuAXO/HowcJkh2BfMqd/PYOJIuA3IY3uePk4xeQkk9A12hDDHyC3NHT4BGU03gFySPIj+/lQpTZYBHcDOePBUMxDR7BHJYzp5zGECQrgqKgRjmtxgzAlMB8Cn0s4vHtO40bSmMvhaRLubefSf/O5hsKf0vrbVMlNG/r/+xkYh+u5se7ucAwlzhaZEVskUVYU1CHjjJve6jLPMLeTGhqqev5PKmrxbbLENumcl83HCvFbzh0yzNVjJaH13Tx274rqvgC4LpnpjW9Tm0AAAAASUVORK5CYII="},"94ae":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA51BMVEUAAAAyMzMwMDBtccc9dPpIafw9dPowMDAwMDAwMDAwLi0vLy8+dPszLy8+cvowMDA+dPovLy8vLy9Hdv89dfw9cfIvLy8uLi4tLS0zMzMvLy9CcfovLy8vLy9AdPpBcfw9c/o9c/pAcfo9dPo+dPowMDA+c/o9c/w8c/s9cvsqKipBb/o9dPo9dPsvLy89c/o+dPo9c/o+c/o+c/s9cvk9cvo/dfswMjYuLi4+cvs+dPw9c/0xMTEuLi5CcfY2VZg9cfEuLi48cPA9c/o9buw9bOs9c/g7cvs8Ys4wMDA+dPoxMzgxMz0ZJrtOAAAASXRSTlMACvUC/AP6/Aj5/vjkBZLs9u6RB/7+2885GY0hYV0wCrqmNfDfr4BUTDgeFezn49XMw4xwaVsm/Oeul4VZWRsV6uLYvZZ9R0EvEyGm9QAAApdJREFUWMPtlnt3mkAQxUcHECM+Ij7jOxqNMW18p0napO+WTb7/5+llUyDnKAuV/ukVheOZ+2N2dmGHjjpqV8zJIhiHmVLIRISS0CjXi7l0qHLFermhsKfKOSdSuXIq1H/hZLIZpVsGXORDxl92MrBn0wplHTfmjHifv5F1Mk6t00wp1OzUEJRtEO8BnDlZp3ZFEdN0VUPY3hTydbDblFdPf57aCKvvizJPUeFmiN1mHCTVxEwVzX1zkHacdCrs9rqO37A401QDmGbLxWI5Iw7ifB/U+XD6iTgcwNS6EZomblrEAYClzxv7F5NUgIIwNM0QhbcA6Xtv+n+ohmCPhNTIpt34aACTbQkpyyY+AAANXocwIMbn6Z8BOnWHAhp2iZnp+8tJTADr7A1i2res/hR+ncbV25gABLNP0Fst3T3RulJ9jgdg4u4j6cGTwK5/UooL0Kl3XxpdkpcDhOvzoYgHYAwbq0+ULkEKmC1LaLEASHY1FIZhvCUwPc7B1H6cRk0j41Z3AvMuEH99DsKrv9d3n4iHfNQ6gP+n5fqNfgmEd11JYHaXExZT5EpE9R4EVp6wNrTSBM7IwfUvXWi/Fwmg7UJo8H/bwjfGpcyBaeXmP59RJGBzLdzijRku90HWZA40QVbCagGqBjzdy/RHv1AKuZgKMofttOQVVAk4SX+t4I5iMPNKr//NwfIXhRrwXK0g/XWwhzOzJLjfNdkUAyDmsmaevBwMMSamOIBCz/cHOaCsBeYYgJfPk50WRM6FuLOJKRpw+xvxe16Kk03P8x/0TmSZRwIA6ShLCMDbIPzNValgc/V9ULtY/EgcbO8qBds7S5+3uR7UYMD3P1scmUKiJgvKx27zkjaaCVvd5M124nb/qKN29AfgfbQ6cLavZwAAAABJRU5ErkJggg=="},9540:function(t,e,s){},9588:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{};o=Object(a.a)([l.a],o);var i=o,r=(s("72de"),s("2877")),n=Object(r.a)(i,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mouse-cover flex row-center col-center"},[e("span",[this._v("释放鼠标将组建添加到此处")])])}],!1,null,"1bbc8333",null).exports,c=s("b76a"),d=s.n(c),u=s("ac05"),b=s("4466");let m=class extends l.e{constructor(){super(...arguments),this.widgets="mobile"==this.client?u.a:b.a}get dragTarget(){return this.$store.state.decorate.dragTarget}get pagesInfo(){return this.$store.state.decorate.pagesInfo}get pagesData(){return this.$store.state.decorate.pagesData}set pagesData(t){this.$store.commit("setPagesData",t)}get dragIndex(){return this.$store.state.decorate.dragIndex}set dragIndex(t){this.$store.commit("setDragIndex",t)}get widgetData(){return this.$store.state.decorate.widgetData}set widgetData(t){this.$store.commit("setWidgetData",t)}get dragPosition(){return this.$store.state.decorate.dragPosition}set dragPosition(t){this.$store.commit("setDragPosition",t)}get selectIndex(){return this.$store.state.decorate.selectIndex}set selectIndex(t){this.$store.commit("setSelectIndex",t)}get showMouseCover(){return(t,e)=>!this.forbid&&!(this.dragIndex!==t||!this.widgetData||e!=this.dragPosition)}get bodyStyle(){const{background_color:t,background_image:e,background_type:s}=this.pagesInfo.common;switch(s){case"0":return{};case"1":return{"background-color":t};case"2":return{"background-image":`url(${e})`}}}get forbid(){return this.pagesData[this.dragIndex]&&this.pagesData[this.dragIndex].forbid}draggableEnd(t){const{newIndex:e,oldIndex:s}=t;this.dragIndex=-2,s!=this.selectIndex?s>this.selectIndex&&this.selectIndex>=e?this.selectIndex++:s<this.selectIndex&&this.selectIndex<=e&&this.selectIndex--:this.selectIndex=e}drop(){"widget"===this.dragTarget&&(this.forbid||this.$store.dispatch("addWidget"))}dragover(t){const e=parseInt(t.target.dataset.index);if("NaN"!==String(e)){if(this.dragIndex=e,"widget"==t.target.dataset.type){const e=parseFloat(t.offsetY),s=parseFloat(String(t.target.offsetHeight/2));this.dragPosition=e<=s?"top":"bottom"}-1==e&&(this.dragPosition="bottom")}}onMove(t){return!t.relatedContext.element.forbid}};Object(a.a)([Object(l.c)({default:!1})],m.prototype,"immersive",void 0),Object(a.a)([Object(l.c)({default:!1})],m.prototype,"disabledDrag",void 0),Object(a.a)([Object(l.c)({default:"mobile"})],m.prototype,"client",void 0),m=Object(a.a)([Object(l.a)({components:{MouseCover:n,Draggable:d.a}})],m);var p=m,g=(s("218b"),Object(r.a)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"decorate-center flex-1"},[s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"100%"}},[s("div",{staticClass:"decorate-phone",class:{immersive:t.immersive,pc:"pc"==t.client}},["mobile"==t.client?s("div",{staticClass:"phone-header",on:{click:function(e){t.selectIndex=-1}}},[s("div",{staticClass:"phone-title nr weight-500"},[t._v(" "+t._s(t.pagesInfo.common.title)+" ")])]):t._e(),"pc"==t.client?[s("div",{staticClass:"page-top"}),s("div",{staticClass:"page-header"}),s("div",{staticClass:"page-footer"})]:t._e(),s("div",{staticClass:"phone-body",style:[t.bodyStyle],attrs:{"data-index":-1},on:{dragover:function(e){return e.preventDefault(),t.dragover.apply(null,arguments)},drop:t.drop}},[t._t("header"),s("div",{staticClass:"decorate-index"},[s("draggable",{attrs:{animation:"300",filter:".forbid",disabled:t.disabledDrag,move:t.onMove},on:{end:t.draggableEnd},model:{value:t.pagesData,callback:function(e){t.pagesData=e},expression:"pagesData"}},t._l(t.pagesData,(function(e,a){return s("div",{key:a,class:{forbid:e.forbid},attrs:{"data-type":"pages"}},[t.showMouseCover(a,"top")?s("mouse-cover"):t._e(),s(t.widgets[e.name].widget,{tag:"component",attrs:{styles:e.styles,content:e.content,index:a,operate:e.operate}}),t.showMouseCover(a,"bottom")?s("mouse-cover"):t._e()],1)})),0),s("div",{staticClass:"empty-pages",attrs:{"data-index":-1}},[t.showMouseCover(-1,"bottom")?s("mouse-cover"):t._e()],1)],1),t._t("footer")],2)],2)])],1)}),[],!1,null,"22ab09f4",null));e.a=g.exports},"96e2":function(t,e,s){},"977d":function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{};Object(a.a)([Object(l.c)()],o.prototype,"styles",void 0),o=Object(a.a)([l.a],o);var i=o,r=s("2877"),n=Object(r.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"widget-root",style:{padding:this.styles.padding_top+"px "+this.styles.padding_horizontal+"px "+this.styles.padding_bottom+"px","background-color":this.styles.root_bg_color}},[this._t("default")],2)}),[],!1,null,"47b8c1f9",null);e.a=n.exports},"9c36":function(t,e,s){},"9c89":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAdVBMVEUAAAAzMzMwMDAvLy9Cev8wMDA9dPozMzMvLy9Fev8+dPo9dPowMDAuLi4+cvktLS0zMzM+cvk9c/lCcvowMDAwMDAvLy89c/o+c/o9cvkwMDA+cvovLy8qKipFdf8+dPoxMTEvLy8/c/o+dfhDcPcwMDA+dPqQnH7SAAAAJXRSTlMACvX4BPz7BY8J9+/sz245GXJXMv7c2dHGta+hYR4S4l5dNSUiO4ajhAAAAXlJREFUWMPtl+uOgjAQhQstlbZcRQVE8dp5/0fcqTGpuLvZWfvHzXISlMucr9MGyIHNei8twksXEUnf2cs0z3j8o3iWp+UX9ijlliyeRp/8W5vwhGZ3hdvneaQ2QTuPCeLW1abTRS35KrGbYxURVB03NlnxEm2PDXC73jOi9mvLn1rIbWJ3iCTeBTsszx+rowznXzGyKm5tFj0CYmvjiOT19TPgzQEK9exRKCpAHaQ249Q/Gi0PiggQLYBspoBGArSCOoUeJNRM+OuC1XiqJ05BsAI0dGqyAh2eKpggAs7at+Ab0GciADVgvVwy4Qzud4mHMPziPrgYN2Kh7v0XriNzoQNwSEALdEUzjk3R3Q6wIQrAryNIiZvW8rbnV5AEcD0YAGd2EADjxicBPOE6aLhLD1fnJwK8mrpvjWn7unntaRRuU+r29xLA28Tfe6HMgP8KCAgY4REnPGT5mHeixbyTj3nhQdM3ERB1A8J2QNwP/eAI/+SZ9Vb6ANVpSTVuGfYhAAAAAElFTkSuQmCC"},"9cec":function(t,e,s){t.exports=s.p+"img/sort_two.6db6fbb4.png"},"9d0c":function(t,e,s){"use strict";s("8477")},"9f22":function(t,e,s){"use strict";s("9361")},a0b0:function(t,e,s){},a332:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA4VBMVEUAAABQUFAwMDAuLi4tLS1mZv8zMzMvLy8wMDBFef8+dPowMDAvLy8yMjI+dPpAf/8+dPoxMTE9dPovLy8vLy8sLCw9dPouLi4+cvouLi4+c/kuLi4uLi5Bc/oqKio+dPouLi4vLy89cvkvLy8uLi4vLy8xMTEvLy8uLi4+c/ovLy8+c/ovLy8uLi4uLi4+cvouLi49c/srKysqKiotLS1Fdf8vLy8vLy8wMDAwMDA+dPk+cfk8c/kuLi5DcPc9dPs9dPo9dPowMDA/cvouLi4wMDA+dfhAcfhAeP8wMDA+dPoqRy3HAAAASXRSTlMAA/zNMwIK9f4J/PnyB/sE9xru7NM59Lhy3m9qVDEr0srDtZeRiiPk2MavoKB6dG5INjEoFhIS5oZiWlpQRCLl4cWpmk1KJSQQlN32YAAAAopJREFUWMPtltlS6kAQhicj2RMgJIisgqwi4AKiHo9n33re/4FOZ1LWZKPKGby0r0hR/5c/3T3dQz5CIrSjtJrPCcr6oDUfN4/QDyKgYD4RTVF/EwKlLphNoinpuy7qAT2slOT+BOWWNXIBPENBv2+hnsLaWAC4A3n9Nortez3iDwFohWiy6ZvH+jZmzz+RBmiv6WsFqNOkAaiZ8s8f+/hbHqCR3RJQTjexFQGQ6z4KYS/RC4B+8Iuz+pcw1kcD/s6cA13XyxEiyJPJ07fnCgFAsV1DdQkheDxJRWRZ2H0Tnr4swP56fnHW14meP68nQCEVlgtuN/6jADhljNWvvuRzMQY3C4DwJZEXAdW6wxrPWYIRooSmwlvNuL4IaKADp8rYdYZgmABu867yGnd7YT9XhX/9ziVzHOZ8ShMMD8A0ystaLKPdOWX4FX+QIBxwQKqO+RCNpNdq5HOVVdlVEVAexUaqkTO0UL8luhoAXdiXrM46ygASW6iyC0JUATrpYyXPa0cA7uuMNWyivyfAkwLcOoVP8BSSqArQif29WEZPvpGUAKKVf6JeASAO098ioHiWioD7/nVynJ+zxznvgDPkBoqZGihbTRDKRxofJyL8h+xIg2UgRsqbhuokO1QtaPdI+VD9dmCsR5AGUGrBcsZNFBaLfmCxTMVaGbb5Wg7FYpBcbcR49LiJ1oAjFJYrqYzAik2sfU4QgLdfzjZoAhM7bOKTDEAY2ib3M3NqqNxQ+Gu7DxwR/cZHtUvW7AfPhLXaSQKEiV5S0XlvFwK4Myl5YiIYA8SZWFDsTp8QBcTNgpuwXFgTTYlgTClW1IURP+9KiOYQLBgF8lphYjP5xdtBHXFk8CP2EYfiP75ZeOAjz5eCAAAAAElFTkSuQmCC"},a405:function(t,e,s){},a4c3:function(t,e,s){t.exports=s.p+"img/sort_one4.975aa4b1.png"},a4ce:function(t,e,s){},a682:function(t,e,s){t.exports=s.p+"img/coupon1.d3fd1594.png"},a790:function(t,e,s){},a897:function(t,e,s){"use strict";s("0643"),s("4e3e");var a=s("9ab4"),l=s("1b40"),o=s("6fad"),i=s.n(o),r=s("b3ad"),n=s("6ddb"),c=s("d70b");let d=class extends l.e{constructor(){super(...arguments),this.firstData=!0,this.identify=""}get editStyle(){return this.width?{width:this.width+"px"}:{}}valueChange(t){(this.firstData||this.decorate)&&(this.firstData=!1,this.editor.txt.html(t))}handeleChange(t){t.forEach(t=>{this.editor.cmd.do("insertHTML",`<img src="${t}" style="max-width:100%;"/>`)})}created(){this.identify="editor-"+Object(n.g)(3)}handleDecorate(t){this.editor.txt.html(t)}mounted(){this.editor=new i.a("#"+this.identify),this.editor.config.height=this.height,this.editor.config.menus=this.menu,this.editor.config.menuTooltipPosition="down",this.editor.config.showFullScreen=!1,this.editor.config.showLinkImg=!1,this.editor.config.uploadImgShowBase64=!0,this.editor.config.zIndex=1,this.editor.config.uploadImgFromMedia=()=>{this.$refs.materialSelect.showDialog()},this.editor.config.onchange=t=>{this.$emit("input",t)},this.editor.config.uploadVideoServer=c.a.baseURL+"/adminapi/upload/video",this.editor.config.uploadVideoHeaders={token:this.$store.getters.token,version:c.a.version},this.editor.config.uploadVideoName="file",this.editor.config.uploadVideoHooks={fail:(t,e,s)=>{this.$message.error("上传视频失败")},timeout:t=>{this.$message.error("上传视频超时")},customInsert:(t,e)=>{1==e.code?t(e.data.uri):this.$message.error(e.msg)}},this.editor.create(),this.firstData&&this.decorate&&(this.firstData=!1,this.editor.txt.html(this.value))}beforeDestroy(){this.editor.destroy()}};Object(a.a)([Object(l.c)()],d.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:()=>["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","link","list","justify","quote","emoticon","image","video","undo","redo"]})],d.prototype,"menu",void 0),Object(a.a)([Object(l.c)({default:600})],d.prototype,"height",void 0),Object(a.a)([Object(l.c)({default:!1})],d.prototype,"decorate",void 0),Object(a.a)([Object(l.c)()],d.prototype,"width",void 0),Object(a.a)([Object(l.f)("value")],d.prototype,"valueChange",null),d=Object(a.a)([Object(l.a)({components:{MaterialSelect:r.a}})],d);var u=d,b=(s("6b1a"),s("2877")),m=Object(b.a)(u,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ls-editor"},[e("div",{staticClass:"editor",style:[this.editStyle],attrs:{id:this.identify}}),e("material-select",{ref:"materialSelect",attrs:{limit:null,"hidden-trigger":!0},on:{change:this.handeleChange}})],1)}),[],!1,null,"892d2c26",null);e.a=m.exports},a8bf:function(t,e,s){},a8e5:function(t,e,s){},a92d:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("3c50"),i=s("6ddb"),r=s("b99a");let n=class extends l.e{constructor(){super(...arguments),this.name="",this.goodsName="",this.activeId="",this.pager=new i.a,this.showGoods=!1,this.goodsLists=[]}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}visibleChange(t){t.val?this.getList():(this.showGoods=!1,this.name="",this.goodsLists=[])}getList(t){t&&(this.pager.page=t),this.pager.request({callback:r.d,params:{keyword:this.name,type:this.type}}).then(t=>{})}getGoodsList(){Object(r.e)({keyword:this.goodsName,type:this.type,activity_id:this.activeId}).then(t=>{this.goodsLists=t})}handleCellClick(t){this.goodsName="",this.showGoods=!0,this.goodsLists=[],this.activeId=t.id,this.getGoodsList()}handleSelect(t){this.selectData=t}selectChange(t,e){this.selectData=t?e:{}}};Object(a.a)([Object(l.b)("visible")],n.prototype,"visible",void 0),Object(a.a)([Object(l.c)()],n.prototype,"value",void 0),Object(a.a)([Object(l.c)()],n.prototype,"type",void 0),Object(a.a)([Object(l.c)({default:!1})],n.prototype,"single",void 0),Object(a.a)([Object(l.f)("visible",{deep:!0,immediate:!0})],n.prototype,"visibleChange",null),n=Object(a.a)([Object(l.a)({components:{LsPagination:o.a}})],n);var c=n,d=(s("cf9b"),s("2877")),u=Object(d.a)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail",staticStyle:{height:"475px"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.showGoods,expression:"!showGoods"}],staticClass:"activity-lists"},[s("div",{staticClass:"flex m-b-20"},[s("div",{staticClass:"m-r-10"},[t._v("活动搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入活动名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"},on:{"cell-click":t.handleCellClick}},[s("el-table-column",{attrs:{label:"活动名称",prop:"name"}}),s("el-table-column",{attrs:{label:"活动状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?s("el-tag",{attrs:{size:"medium",type:"presell"==t.type?"success":"danger"}},[t._v(t._s(e.row.status_text))]):2==e.row.status?s("el-tag",{attrs:{size:"medium",type:"presell"==t.type?"danger":"success"}},[t._v(t._s(e.row.status_text))]):s("el-tag",{attrs:{size:"medium",type:"info"}},[t._v(t._s(e.row.status_text))])]}}])}),s("el-table-column",{attrs:{label:"商品数量",prop:"goods_num"}}),s("el-table-column",{attrs:{label:"活动时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.start_time)+" ~ "+t._s(e.row.end_time)+" ")]}}])})],1),s("div",{staticClass:"flex row-right m-t-20"},[s("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showGoods,expression:"showGoods"}],staticClass:"goods-list"},[s("div",{staticClass:"flex m-b-20"},[s("el-button",{attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:function(e){t.showGoods=!1}}},[t._v("返回")]),s("div",{staticClass:"m-r-10 m-l-20"},[t._v("商品搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入商品名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getGoodsList.apply(null,arguments)}},model:{value:t.goodsName,callback:function(e){t.goodsName=e},expression:"goodsName"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.getGoodsList},slot:"append"})],1)],1),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.goodsLists,height:"420px",size:"mini"},on:{"selection-change":t.handleSelect}},[t.single?s("el-table-column",{attrs:{width:"45",label:""},scopedSlots:t._u([{key:"default",fn:function(e){return["presell"!=t.type?s("el-checkbox",{attrs:{value:e.row.id==t.value.id},on:{change:function(s){return t.selectChange(s,e.row)}}}):t._e(),"presell"==t.type?s("el-checkbox",{attrs:{value:e.row.goods_id==t.value.id},on:{change:function(s){return t.selectChange(s,e.row)}}}):t._e()]}}],null,!1,4017092039)}):s("el-table-column",{attrs:{width:"45",type:"selection"}}),s("el-table-column",{attrs:{label:"商品信息","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"flex"},[s("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{src:e.row.image,fit:"cover"}}),s("div",{staticClass:"goods-info m-l-8"},[s("div",{staticClass:"line-2"},[t._v(t._s(e.row.name))])])],1)]}}])}),s("el-table-column",{attrs:{label:"商品价格"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" ¥"+t._s(e.row.min_activity_price)+" "),e.row.min_activity_price!=e.row.max_activity_price?s("span",[t._v(" ~ "+t._s(e.row.max_activity_price))]):t._e()]}}])}),s("el-table-column",{attrs:{label:"商品库存",prop:"total_stock"}})],1)],1)])}),[],!1,null,"6f38880e",null);e.a=u.exports},abe7:function(t,e,s){"use strict";s("1c02")},ac05:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("1248"),i=s("ea05"),r=s("6ae0"),n=s("66bb"),c=s("d6d3");let d=class extends l.e{constructor(){super(...arguments),this.borderData=[{name:"直角",value:1},{name:"圆角",value:2}],this.alignData=[{name:"居左",value:"left"},{name:"居中",value:"center"}],this.resetColor=""}get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}};d=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a}})],d);var u=d,b=s("2877"),m=Object(b.a)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"搜索框"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",[s("el-form-item",{attrs:{label:"提示文字"}},[s("el-input",{attrs:{maxlength:"12","show-word-limit":"",placeholder:"请输入关键字搜索"},model:{value:t.content.text,callback:function(e){t.$set(t.content,"text",e)},expression:"content.text"}})],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"搜索框设置"}},[s("el-form-item",{attrs:{label:"框体圆角"}},[s("slider",{model:{value:t.styles.border_radius,callback:function(e){t.$set(t.styles,"border_radius",e)},expression:"styles.border_radius"}})],1),s("el-form-item",{attrs:{label:"文本位置"}},[s("style-chose",{attrs:{data:t.alignData},model:{value:t.styles.text_align,callback:function(e){t.$set(t.styles,"text_align",e)},expression:"styles.text_align"}})],1)],1),s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#F5F5F5"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1),s("el-form-item",{attrs:{label:"图标颜色"}},[s("color-select",{attrs:{"reset-color":"#999999"},model:{value:t.styles.icon_color,callback:function(e){t.$set(t.styles,"icon_color",e)},expression:"styles.icon_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#999999"},model:{value:t.styles.color,callback:function(e){t.$set(t.styles,"color",e)},expression:"styles.color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1)],1)],1)])],1)}),[],!1,null,null,null).exports,p=s("977d");let g=class extends l.e{};Object(a.a)([Object(l.c)()],g.prototype,"content",void 0),Object(a.a)([Object(l.c)()],g.prototype,"styles",void 0),g=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],g);var v=g,f=(s("7150"),Object(b.a)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"search"},[s("div",{staticClass:"search-content",style:{"background-color":t.styles.bg_color,"text-align":t.styles.text_align,"border-radius":t.styles.border_radius+"px"}},[s("i",{staticClass:"el-icon-search",style:{color:t.styles.icon_color}}),s("span",{staticClass:"search-text",style:{color:t.styles.color}},[t._v(t._s(t.content.text))])])])])}),[],!1,null,"3a366412",null).exports),h=s("7e85");let y=class extends l.e{};Object(a.a)([Object(l.c)()],y.prototype,"content",void 0),Object(a.a)([Object(l.c)()],y.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],y.prototype,"index",void 0),Object(a.a)([Object(l.c)()],y.prototype,"operate",void 0),y=Object(a.a)([Object(l.a)({components:{Contents:f,WidgetPackage:h.a}})],y);var _=y,x={attribute:m,contents:f,widget:Object(b.a)(_,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},A=s("2b1d"),w=s("6351");let C=class extends l.e{constructor(){super(...arguments),this.styleData=[{value:1,img:s("ffda"),text:"风格1"},{value:2,img:s("f88e"),text:"风格2"}],this.alignData=[{name:"左对齐",value:"left"},{name:"居中",value:"center"}],this.resetColor=""}get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}};C=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,LinkSelect:A.a,StyleSelect:w.a}})],C);var k=C,O=(s("bd89"),Object(b.a)(k,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"标题栏"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"风格选择"}},[s("style-select",{attrs:{slot:"right",data:t.styleData},slot:"right",model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}},[s("el-button",{attrs:{slot:"trigger",size:"mini",type:"text"},slot:"trigger"},[t._v("切换风格")])],1),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"style-chose flex col-center"},[t._l(t.styleData,(function(e,a){return[e.value==t.content.style?s("img",{key:a,attrs:{src:e.img,alt:""}}):t._e()]}))],2)])],1),s("attribute-item",{attrs:{title:"主标题"}},[s("el-form-item",{attrs:{label:"主标题标题"}},[s("el-input",{attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.title,callback:function(e){t.$set(t.content,"title",e)},expression:"content.title"}})],1),s("el-form-item",{attrs:{label:"字体颜色"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1),s("el-form-item",{attrs:{label:"字体大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.title_font_size,callback:function(e){t.$set(t.styles,"title_font_size",e)},expression:"styles.title_font_size"}})],1)],1),s("attribute-item",{attrs:{title:"副标题"}},[s("el-form-item",{attrs:{label:"副标题标题"}},[s("el-input",{staticStyle:{width:"220px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入副标题"},model:{value:t.content.subtitle,callback:function(e){t.$set(t.content,"subtitle",e)},expression:"content.subtitle"}}),s("el-checkbox",{staticClass:"m-l-10",attrs:{"true-label":1,"false-label":0},model:{value:t.content.hidden_subtitle,callback:function(e){t.$set(t.content,"hidden_subtitle",e)},expression:"content.hidden_subtitle"}},[t._v("隐藏")])],1),s("el-form-item",{attrs:{label:"字体颜色"}},[s("color-select",{attrs:{"reset-color":"#999999"},model:{value:t.styles.subtitle_color,callback:function(e){t.$set(t.styles,"subtitle_color",e)},expression:"styles.subtitle_color"}})],1),s("el-form-item",{attrs:{label:"字体大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.subtitle_font_size,callback:function(e){t.$set(t.styles,"subtitle_font_size",e)},expression:"styles.subtitle_font_size"}})],1)],1),2==t.content.style?s("attribute-item",{attrs:{title:"右侧按钮"}},[s("el-form-item",{attrs:{label:"是否显示"}},[s("el-radio-group",{model:{value:t.content.show_more,callback:function(e){t.$set(t.content,"show_more",e)},expression:"content.show_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),t.content.show_more?[s("el-form-item",{attrs:{label:"文字内容"}},[s("el-input",{attrs:{maxlength:"6","show-word-limit":"",placeholder:"请输入文字内容"},model:{value:t.content.more_title,callback:function(e){t.$set(t.content,"more_title",e)},expression:"content.more_title"}})],1),s("el-form-item",{attrs:{label:"按钮颜色"}},[s("color-select",{attrs:{"reset-color":"#999999"},model:{value:t.styles.more_color,callback:function(e){t.$set(t.styles,"more_color",e)},expression:"styles.more_color"}})],1),s("el-form-item",{attrs:{label:"链接地址"}},[s("link-select",{model:{value:t.content.link,callback:function(e){t.$set(t.content,"link",e)},expression:"content.link"}})],1)]:t._e()],2):t._e()],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部颜色"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件颜色"}},[s("color-select",{attrs:{"reset-color":"#F5F5F5"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"73541a44",null).exports);let j=class extends l.e{};Object(a.a)([Object(l.c)()],j.prototype,"content",void 0),Object(a.a)([Object(l.c)()],j.prototype,"styles",void 0),j=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],j);var F=j,S=(s("c13e"),Object(b.a)(F,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"title",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[1==t.content.style?s("div",{staticClass:"title-style1 flex-col col-center"},[s("div",{staticClass:"title-content",style:{color:t.styles.title_color,"font-size":t.styles.title_font_size+"px"}},[t._v(" "+t._s(t.content.title)+" ")]),t.content.hidden_subtitle?t._e():s("div",{staticClass:"title-subtitle",style:{color:t.styles.subtitle_color,"font-size":t.styles.subtitle_font_size+"px"}},[t._v(" "+t._s(t.content.subtitle)+" ")])]):t._e(),2==t.content.style?s("div",{staticClass:"title-style2 flex"},[s("div",{staticClass:"title-content m-r-10",style:{color:t.styles.title_color,"font-size":t.styles.title_font_size+"px"}},[t._v(" "+t._s(t.content.title)+" ")]),s("div",{staticClass:"flex-1"},[t.content.hidden_subtitle?t._e():s("div",{staticClass:"title-subtitleline-1",style:{color:t.styles.subtitle_color,"font-size":t.styles.subtitle_font_size+"px"}},[t._v(" "+t._s(t.content.subtitle)+" ")])]),t.content.show_more?s("div",{staticClass:"title-more",style:{color:t.styles.more_color}},[t._v(" "+t._s(t.content.more_title)),s("i",{staticClass:"el-icon-arrow-right"})]):t._e()]):t._e()])])}),[],!1,null,"0bad9c5c",null).exports);let z=class extends l.e{};Object(a.a)([Object(l.c)()],z.prototype,"content",void 0),Object(a.a)([Object(l.c)()],z.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],z.prototype,"index",void 0),Object(a.a)([Object(l.c)()],z.prototype,"operate",void 0),z=Object(a.a)([Object(l.a)({components:{Contents:S,WidgetPackage:h.a}})],z);var M=z,L={attribute:O,contents:S,widget:Object(b.a)(M,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},E=s("fe7b");let D=class extends l.e{constructor(){super(...arguments),this.indicatorData=[{name:"圆角",value:1},{name:"圆形",value:2},{name:"数字",value:3}],this.alignData=[{name:"居左",value:"left"},{name:"居中",value:"center"},{name:"居右",value:"right"}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};D=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,BannerList:E.a}})],D);var I=D,$=Object(b.a)(I,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"轮播图"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"图片设置",desc:"最多可添加10张,建议图片尺寸:750px*340px"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("banner-list",{attrs:{limit:10},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"指示器设置"}},[s("el-form-item",{attrs:{label:"选中颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.indicator_color,callback:function(e){t.$set(t.styles,"indicator_color",e)},expression:"styles.indicator_color"}})],1),s("div",{staticClass:"lighter xs m-b-20"},[t._v("指示器样式")]),s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.indicatorData},model:{value:t.styles.indicator_style,callback:function(e){t.$set(t.styles,"indicator_style",e)},expression:"styles.indicator_style"}})],1),s("div",{staticClass:"lighter xs m-b-20"},[t._v("指示器位置")]),s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.alignData},model:{value:t.styles.indicator_align,callback:function(e){t.$set(t.styles,"indicator_align",e)},expression:"styles.indicator_align"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"圆角"}},[s("slider",{model:{value:t.styles.border_radius,callback:function(e){t.$set(t.styles,"border_radius",e)},expression:"styles.border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"2864ae60",null).exports,B=s("1e31");let R=class extends l.e{get getImage(){const{data:t}=this.content;return Array.isArray(t)&&t[0]?this.$getImageUri(t[0].url):""}};Object(a.a)([Object(l.c)()],R.prototype,"content",void 0),Object(a.a)([Object(l.c)()],R.prototype,"styles",void 0),R=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a}})],R);var P=R,U=(s("0b27"),Object(b.a)(P,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-root",{attrs:{styles:this.styles}},[e("div",{staticClass:"banner"},[e("div",{staticClass:"banner-content",style:{"padding-top":340/750*100+"%","border-radius":this.styles.border_radius+"px"}},[e("div",{staticClass:"banner-image"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:this.getImage,fit:"cover"}},[e("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[e("i",{staticClass:"el-icon-picture font-size-40"})])])],1),e("indicator",{attrs:{type:this.styles.indicator_style,align:this.styles.indicator_align,color:this.styles.indicator_color}})],1)])])}),[],!1,null,"6ab24014",null).exports);let T=class extends l.e{};Object(a.a)([Object(l.c)()],T.prototype,"content",void 0),Object(a.a)([Object(l.c)()],T.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],T.prototype,"index",void 0),Object(a.a)([Object(l.c)()],T.prototype,"operate",void 0),T=Object(a.a)([Object(l.a)({components:{Contents:U,WidgetPackage:h.a}})],T);var N=T,Y={attribute:$,contents:U,widget:Object(b.a)(N,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},W=s("b3ad"),Q=s("4539");let J=class extends l.e{constructor(){super(...arguments),this.index=-1,this.styleData=[{name:"图文",value:1},{name:"文字",value:2}],this.indicatorData=[{name:"圆角",value:1},{name:"圆形",value:2}],this.resetColor=""}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};J=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,NavList:Q.a,LinkSelect:A.a}})],J);var V=J,G=Object(b.a)(V,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"菜单导航"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"导航样式"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"展示样式"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("el-radio-group",{model:{value:t.styles.nav_style,callback:function(e){t.$set(t.styles,"nav_style",e)},expression:"styles.nav_style"}},[s("el-radio",{attrs:{label:1}},[t._v("固定显示")]),s("el-radio",{attrs:{label:2}},[t._v("分页滑动")])],1)],1),s("el-form-item",{attrs:{label:"每行数量"}},[s("el-select",{model:{value:t.styles.nav_line_num,callback:function(e){t.$set(t.styles,"nav_line_num",e)},expression:"styles.nav_line_num"}},[s("el-option",{attrs:{label:"3个",value:3}}),s("el-option",{attrs:{label:"4个",value:4}}),s("el-option",{attrs:{label:"5个",value:5}})],1)],1),s("el-form-item",{attrs:{label:"显示行数"}},[s("el-select",{model:{value:t.styles.nav_line,callback:function(e){t.$set(t.styles,"nav_line",e)},expression:"styles.nav_line"}},[s("el-option",{attrs:{label:"1行",value:1}}),s("el-option",{attrs:{label:"2行",value:2}}),s("el-option",{attrs:{label:"3行",value:3}}),s("el-option",{attrs:{label:"4行",value:4}})],1)],1)],1),s("attribute-item",{attrs:{title:"导航设置"}},[s("nav-list",{model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[2==t.styles.nav_style?s("attribute-item",{attrs:{title:"指示器设置"}},[s("el-form-item",{attrs:{label:"选中颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.indicator_color,callback:function(e){t.$set(t.styles,"indicator_color",e)},expression:"styles.indicator_color"}})],1),s("div",{staticClass:"lighter xs m-b-20"},[t._v("指示器样式")]),s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.indicatorData},model:{value:t.styles.indicator_style,callback:function(e){t.$set(t.styles,"indicator_style",e)},expression:"styles.indicator_style"}})],1)],1):t._e(),s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:t.styles.color,callback:function(e){t.$set(t.styles,"color",e)},expression:"styles.color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"图片圆角"}},[s("slider",{model:{value:t.styles.img_border_radius,callback:function(e){t.$set(t.styles,"img_border_radius",e)},expression:"styles.img_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"2f6feb18",null).exports;let H=class extends l.e{get navList(){const{content:{data:t},styles:{nav_line:e,nav_line_num:s}}=this;return Array.isArray(t)?t.slice(0,e*s):[]}};Object(a.a)([Object(l.c)()],H.prototype,"content",void 0),Object(a.a)([Object(l.c)()],H.prototype,"styles",void 0),H=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a}})],H);var K=H,X=(s("fc7a"),Object(b.a)(K,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"navigation",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[s("div",{staticClass:"navigation-content flex flex-wrap p-t-16"},t._l(t.navList,(function(e,a){return s("div",{key:a,staticClass:"flex-col col-center m-b-16",style:{width:100/t.styles.nav_line_num+"%"}},[1==t.content.style?s("el-image",{staticClass:"m-b-8",staticStyle:{width:"40px",height:"40px"},style:{"border-radius":t.styles.img_border_radius+"px"},attrs:{src:t.$getImageUri(e.url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]):t._e(),s("div",{staticClass:"xs",style:{color:t.styles.color}},[t._v(" "+t._s(e.name)+" ")])],1)})),0),2==t.styles.nav_style?s("div",{staticClass:"navigation-indicator"},[s("indicator",{attrs:{type:t.styles.indicator_style,align:"center",color:t.styles.indicator_color,bottom:6}})],1):t._e()])])}),[],!1,null,"cdc9457c",null).exports);let Z=class extends l.e{};Object(a.a)([Object(l.c)()],Z.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Z.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Z.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Z.prototype,"operate",void 0),Z=Object(a.a)([Object(l.a)({components:{Contents:X,WidgetPackage:h.a}})],Z);var q=Z,tt={attribute:G,contents:X,widget:Object(b.a)(q,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},et=s("294c");let st=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"大图模式",value:1},{name:"一行2个",value:2},{name:"横向滑动",value:3},{name:"列表模式",value:4}]}};Object(a.a)([Object(l.c)()],st.prototype,"content",void 0),Object(a.a)([Object(l.c)()],st.prototype,"styles",void 0),st=Object(a.a)([Object(l.a)({components:{ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a}})],st);var at=st,lt=Object(b.a)(at,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-item",{attrs:{title:"商品风格"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"显示内容"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_title,callback:function(e){t.$set(t.content,"show_title",e)},expression:"content.show_title"}},[t._v("商品标题")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#101010"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_price,callback:function(e){t.$set(t.content,"show_price",e)},expression:"content.show_price"}},[t._v("商品价格")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.price_color,callback:function(e){t.$set(t.styles,"price_color",e)},expression:"styles.price_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_scribing_price,callback:function(e){t.$set(t.content,"show_scribing_price",e)},expression:"content.show_scribing_price"}},[t._v("划线原价")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.scribing_price_color,callback:function(e){t.$set(t.styles,"scribing_price_color",e)},expression:"styles.scribing_price_color"}})],1)])],1),1==t.content.style||4==t.content.style?s("attribute-item",{attrs:{title:"购买按钮"}},[s("el-form-item",{attrs:{label:"是否显示"}},[s("el-radio-group",{model:{value:t.content.show_btn,callback:function(e){t.$set(t.content,"show_btn",e)},expression:"content.show_btn"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),1==t.content.show_btn?[s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{attrs:{maxlength:"4","show-word-limit":"",placeholder:"请输入按钮文字"},model:{value:t.content.btn_text,callback:function(e){t.$set(t.content,"btn_text",e)},expression:"content.btn_text"}})],1),s("el-form-item",{attrs:{label:"按钮背景"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.btn_bg_color,callback:function(e){t.$set(t.styles,"btn_bg_color",e)},expression:"styles.btn_bg_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.btn_color,callback:function(e){t.$set(t.styles,"btn_color",e)},expression:"styles.btn_color"}})],1),s("el-form-item",{attrs:{label:"按钮圆角"}},[s("slider",{model:{value:t.styles.btn_border_radius,callback:function(e){t.$set(t.styles,"btn_border_radius",e)},expression:"styles.btn_border_radius"}})],1),s("el-form-item",{attrs:{label:"边框颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.btn_border_color,callback:function(e){t.$set(t.styles,"btn_border_color",e)},expression:"styles.btn_border_color"}})],1)]:t._e()],2):t._e()],1)}),[],!1,null,null,null).exports;let ot=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};ot=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,GSelect:et.a,GAttr:lt}})],ot);var it=ot,rt=Object(b.a)(it,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"商品组"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择商品"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"p-20",staticStyle:{background:"#f9f9f9"}},[s("g-select",{attrs:{content:t.content}})],1)])],1),s("g-attr",{attrs:{content:t.content,styles:t.styles}})],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.content_bg_color,callback:function(e){t.$set(t.styles,"content_bg_color",e)},expression:"styles.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"组件边距"}},[s("slider",{model:{value:t.styles.padding,callback:function(e){t.$set(t.styles,"padding",e)},expression:"styles.padding"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:t.styles.goods_border_radius,callback:function(e){t.$set(t.styles,"goods_border_radius",e)},expression:"styles.goods_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"3eec47c4",null).exports;s("a573");let nt=class extends l.e{get goods(){const{data:t,goods_type:e,category:s}=this.content;return 2==e?[...Array(s.num).keys()].map(()=>({})):t.length?t:[{},{},{},{}]}get btnStyle(){const{btn_bg_color:t,btn_color:e,btn_border_radius:s,btn_border_color:a}=this.styles;return{"background-color":t,color:e,"border-radius":s+"px","border-color":a}}};Object(a.a)([Object(l.c)()],nt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],nt.prototype,"styles",void 0),nt=Object(a.a)([l.a],nt);var ct=nt,dt=(s("6250"),Object(b.a)(ct,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"goods-group",style:{margin:"-"+t.styles.margin/2+"px","background-color":t.styles.content_bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px",padding:t.styles.padding/2+"px"}},[a("div",{staticClass:"goods-lists",class:{larger:1==t.content.style,perline:2==t.content.style,swiper:3==t.content.style,lists:4==t.content.style}},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-wrap"},[a("div",{staticClass:"goods-item",style:{"background-color":t.styles.bg_color,margin:t.styles.margin/2+"px","border-radius":t.styles.goods_border_radius+"px"}},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-info p-5"},[t.content.show_title?a("div",{staticClass:"m-b-4 name",style:{color:t.styles.title_color}},[a("div",{class:3==t.content.style?"line-1":"line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")])]):t._e(),a("div",{staticClass:"flex price-btn flex-wrap"},[a("div",{staticClass:"flex-1 flex col-baseline"},[t.content.show_price?a("div",{staticClass:"price weight-500 m-r-5 xl",style:{color:t.styles.price_color}},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.sell_price)||"0")+" ")]):t._e(),t.content.show_scribing_price?a("div",{staticClass:"muted line-through xs"},[t._v(" ¥"+t._s(parseFloat(e.lineation_price)||"0")+" ")]):t._e()]),!t.content.show_btn||1!=t.content.style&&4!=t.content.style?t._e():a("div",{staticClass:"buy-btn xs",style:[t.btnStyle]},[t._v(" "+t._s(t.content.btn_text)+" ")])])])])])})),0)])}),[],!1,null,"6b4c482b",null).exports);let ut=class extends l.e{};Object(a.a)([Object(l.c)()],ut.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ut.prototype,"styles",void 0),ut=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a,Goods:dt}})],ut);var bt=ut,mt=Object(b.a)(bt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"widget-root",style:{padding:this.styles.padding_top+"px "+this.styles.padding_horizontal+"px "+this.styles.padding_bottom+"px","background-color":this.styles.root_bg_color}},[e("goods",{attrs:{content:this.content,styles:this.styles}})],1)}),[],!1,null,"66b75562",null).exports;let pt=class extends l.e{};Object(a.a)([Object(l.c)()],pt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],pt.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],pt.prototype,"index",void 0),Object(a.a)([Object(l.c)()],pt.prototype,"operate",void 0),pt=Object(a.a)([Object(l.a)({components:{Contents:mt,WidgetPackage:h.a}})],pt);var gt=pt,vt={attribute:rt,contents:mt,widget:Object(b.a)(gt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let ft=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};ft=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,GSelect:et.a,GAttr:lt}})],ft);var ht=ft,yt=Object(b.a)(ht,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"为您推荐"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"标题"}},[s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.header_title,callback:function(e){t.$set(t.content,"header_title",e)},expression:"content.header_title"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:t.styles.header_title_color,callback:function(e){t.$set(t.styles,"header_title_color",e)},expression:"styles.header_title_color"}})],1),s("el-form-item",{attrs:{label:"文字大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.header_title_size,callback:function(e){t.$set(t.styles,"header_title_size",e)},expression:"styles.header_title_size"}})],1)],1),s("attribute-item",{attrs:{title:"选择商品"}},[s("div",{staticClass:"m-b-20 lighter"},[s("el-alert",{attrs:{title:t.content.tips,type:"info","show-icon":"",closable:!1}})],1)]),s("g-attr",{attrs:{content:t.content,styles:t.styles}})],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1),s("el-form-item",{attrs:{label:"上间距"}},[s("slider",{model:{value:t.styles.margin_top,callback:function(e){t.$set(t.styles,"margin_top",e)},expression:"styles.margin_top"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"60ef22aa",null).exports;let _t=class extends l.e{get goods(){const{data:t,goods_type:e,category:s}=this.content;return 2==e?[...Array(s.num).keys()].map(()=>({})):t.length?t:[{}]}get btnStyle(){const{btn_bg_color:t,btn_color:e,btn_border_radius:s,btn_border_color:a}=this.styles,{btn_bg_type:l}=this.content,o={"background-color":t,color:e,"border-radius":s+"px","border-color":a};return 2==l&&delete o["background-color"],o}};Object(a.a)([Object(l.c)()],_t.prototype,"content",void 0),Object(a.a)([Object(l.c)()],_t.prototype,"styles",void 0),_t=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a,Goods:dt}})],_t);var xt=_t,At=(s("389c"),Object(b.a)(xt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{style:{"margin-top":t.styles.margin_top+"px"},attrs:{styles:t.styles}},[s("div",{staticClass:"title"},[s("div",{staticClass:"title-content",style:{color:t.styles.header_title_color,"font-size":t.styles.header_title_size+"px"}},[t._v(" "+t._s(t.content.header_title)+" ")])]),s("goods",{attrs:{content:t.content,styles:t.styles}})],1)}),[],!1,null,"6535aa56",null).exports);let wt=class extends l.e{};Object(a.a)([Object(l.c)()],wt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],wt.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],wt.prototype,"index",void 0),Object(a.a)([Object(l.c)()],wt.prototype,"operate",void 0),wt=Object(a.a)([Object(l.a)({components:{Contents:At,WidgetPackage:h.a}})],wt);var Ct=wt,kt={attribute:yt,contents:At,widget:Object(b.a)(Ct,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let Ot=class extends l.e{constructor(){super(...arguments),this.showSelect=!1,this.category=1}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}selectStyle(t){this.content.style=t,this.showSelect=!1}};Ot=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a}})],Ot);var jt=Ot,Ft=(s("569c"),Object(b.a)(jt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("attribute-tabs",{attrs:{title:"商品评价"}},[e("div",[e("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[e("attribute-item",{attrs:{title:"商品评价"}},[e("el-alert",{attrs:{closable:!1,type:"info","show-icon":""}},[e("span",{attrs:{slot:"title"},slot:"title"},[this._v("该组件只能控制显示、隐藏。")])])],1)],1)],1)])],1)}),[],!1,null,"6aa856da",null).exports),St=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"reviews m-t-10"},[e("img",{staticClass:"block",staticStyle:{width:"100%"},attrs:{src:s("7f2c"),alt:""}})])}];let zt=class extends l.e{};Object(a.a)([Object(l.c)()],zt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],zt.prototype,"styles",void 0),zt=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],zt);var Mt=zt,Lt=Object(b.a)(Mt,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),St,!1,null,"6eb4d1f4",null).exports;let Et=class extends l.e{};Object(a.a)([Object(l.c)()],Et.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Et.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Et.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Et.prototype,"operate",void 0),Et=Object(a.a)([Object(l.a)({components:{Contents:Lt,WidgetPackage:h.a}})],Et);var Dt=Et,It={attribute:Ft,contents:Lt,widget:Object(b.a)(Dt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},$t=(s("14d9"),s("f50c")),Bt=s("234f"),Rt=s("b76a"),Pt=s.n(Rt);let Ut=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}draggableEnd(t){const{newIndex:e,oldIndex:s}=t;s!=this.content.active?s>this.content.active&&this.content.active>=e?this.content.active++:s<this.content.active&&this.content.active<=e&&this.content.active--:this.content.active=e}onAdd(){this.content.data.push({name:"选项卡",style:1,goods_type:1,show_title:1,show_price:1,show_scribing_price:1,show_btn:1,btn_text:"购买",btn_bg_type:1,category:{id:"",name:"",number:1},data:[],title_color:"#101010",scribing_price_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#FF2C3C",btn_color:"#FFFFFF",btn_border_radius:30,btn_border_color:"",root_bg_color:"",bg_color:"#FFFFFF",margin:10,padding_top:10,padding_horizontal:10,padding_bottom:10,border_radius_top:4,border_radius_bottom:4})}onDelete(t){if(this.content.data.length<=1)return this.$message.warning("最少保留一个");this.content.data.splice(t,1),this.content.active=0}};Ut=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,GoodsSelect:$t.a,CategorySelect:Bt.a,GSelect:et.a,GAttr:lt,Draggable:Pt.a}})],Ut);var Tt=Ut,Nt=(s("c461"),Object(b.a)(Tt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"选项卡"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选项卡设置"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"tabs-list"},[s("draggable",{attrs:{animation:"300"},on:{end:t.draggableEnd},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"tabs-item",class:{active:t.content.active==a},on:{click:function(e){t.content.active=a}}},[s("div",{staticClass:"flex row-between"},[s("span",[t._v(t._s(e.name))]),s("div",{staticClass:"del-btn"},[s("el-button",{attrs:{type:"text"},on:{click:function(e){return e.stopPropagation(),t.onDelete(a)}}},[t._v("删除")])],1)])])})),0)],1),s("el-button",{staticStyle:{width:"100%"},attrs:{size:"small"},on:{click:t.onAdd}},[t._v("+ 添加选项卡")])],1)],1),t._l(t.content.data,(function(e,a){return[t.content.active==a?s("div",{key:a},[s("attribute-item",{attrs:{title:"选项卡内容"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"p-20",staticStyle:{background:"#f9f9f9"}},[s("el-form-item",{attrs:{label:"选项名称"}},[s("el-input",{staticStyle:{width:"200px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"请输入选项名称"},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),s("g-select",{attrs:{content:e}})],1)])],1),s("g-attr",{attrs:{content:e,styles:e}})],1):t._e()]}))],2)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"背景设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"选项卡样式"}},[s("el-form-item",{attrs:{label:"选项卡背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1),s("el-form-item",{attrs:{label:"未选中标题"}},[s("color-select",{attrs:{"reset-color":"#101010"},model:{value:t.styles.color,callback:function(e){t.$set(t.styles,"color",e)},expression:"styles.color"}})],1),s("el-form-item",{attrs:{label:"已选中标题"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.active_color,callback:function(e){t.$set(t.styles,"active_color",e)},expression:"styles.active_color"}})],1),s("el-form-item",{attrs:{label:"选项条"}},[s("el-radio-group",{model:{value:t.content.show_line,callback:function(e){t.$set(t.content,"show_line",e)},expression:"content.show_line"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),1==t.content.show_line?s("el-form-item",{attrs:{label:"选项条颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.line_color,callback:function(e){t.$set(t.styles,"line_color",e)},expression:"styles.line_color"}})],1):t._e(),s("el-form-item",{attrs:{label:"选中背景"}},[s("el-radio-group",{model:{value:t.content.has_active_bg,callback:function(e){t.$set(t.content,"has_active_bg",e)},expression:"content.has_active_bg"}},[s("el-radio",{attrs:{label:0}},[t._v("无")]),s("el-radio",{attrs:{label:1}},[t._v("背景色")])],1)],1),t.content.has_active_bg?s("el-form-item",{attrs:{label:""}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.active_bg_color,callback:function(e){t.$set(t.styles,"active_bg_color",e)},expression:"styles.active_bg_color"}})],1):t._e(),s("el-form-item",{attrs:{label:"间距"}},[s("slider",{attrs:{min:10},model:{value:t.styles.padding,callback:function(e){t.$set(t.styles,"padding",e)},expression:"styles.padding"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1),s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1),t._l(t.content.data,(function(e,a){return[t.content.active==a?s("attribute-item",{key:a,attrs:{title:"商品样式"}},[s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:e.bg_color,callback:function(s){t.$set(e,"bg_color",s)},expression:"item.bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:e.content_bg_color,callback:function(s){t.$set(e,"content_bg_color",s)},expression:"item.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:e.margin,callback:function(s){t.$set(e,"margin",s)},expression:"item.margin"}})],1),s("el-form-item",{attrs:{label:"组件边距"}},[s("slider",{model:{value:e.padding,callback:function(s){t.$set(e,"padding",s)},expression:"item.padding"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:e.padding_top,callback:function(s){t.$set(e,"padding_top",s)},expression:"item.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:e.padding_bottom,callback:function(s){t.$set(e,"padding_bottom",s)},expression:"item.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:e.padding_horizontal,callback:function(s){t.$set(e,"padding_horizontal",s)},expression:"item.padding_horizontal"}})],1),s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:e.border_radius_top,callback:function(s){t.$set(e,"border_radius_top",s)},expression:"item.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:e.border_radius_bottom,callback:function(s){t.$set(e,"border_radius_bottom",s)},expression:"item.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:e.goods_border_radius,callback:function(s){t.$set(e,"goods_border_radius",s)},expression:"item.goods_border_radius"}})],1)],1):t._e()]}))],2)],1)])],1)}),[],!1,null,"0d5b989a",null).exports);let Yt=class extends l.e{get itemStyle(){return t=>{const{styles:{padding:e,color:s,active_color:a,active_bg_color:l},content:{active:o,has_active_bg:i}}=this,r={padding:`0 ${e}px`,color:s};return o==t&&(r["background-color"]=i?l:"",r.color=a,r["font-weight"]=500),r}}};Object(a.a)([Object(l.c)()],Yt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Yt.prototype,"styles",void 0),Yt=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a,Goods:mt}})],Yt);var Wt=Yt,Qt=(s("b48d"),Object(b.a)(Wt,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tabs",style:{"background-color":t.styles.root_bg_color}},[s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"tabs-header flex",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"tabs-header-item",style:[t.itemStyle(a)]},[s("span",[t._v(t._s(e.name))]),1==t.content.show_line&&t.content.active==a?s("span",{staticClass:"tabs-line",style:{background:t.styles.line_color}}):t._e()])})),0)]),s("div",{staticClass:"tabs-content"},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"tabs-content-item"},[t.content.active==a?s("div",[s("goods",{attrs:{styles:e,content:e}})],1):t._e()])})),0)],1)}),[],!1,null,"662e4380",null).exports);let Jt=class extends l.e{};Object(a.a)([Object(l.c)()],Jt.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Jt.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Jt.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Jt.prototype,"operate",void 0),Jt=Object(a.a)([Object(l.a)({components:{Contents:Qt,WidgetPackage:h.a}})],Jt);var Vt=Jt,Gt={attribute:Nt,contents:Qt,widget:Object(b.a)(Vt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},Ht=s("0a6d");let Kt=class extends l.e{constructor(){super(...arguments),this.category=1,this.currentStyle=0}valueChange(t){switch(t){case 1:case 2:case 3:case 4:this.category=1;break;case 5:case 6:this.category=2;break;case 7:case 8:this.category=3}this.currentStyle=t}selectStyle(t){this.currentStyle=t}onConfirm(){this.$emit("input",this.currentStyle)}};Object(a.a)([Object(l.c)()],Kt.prototype,"value",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0})],Kt.prototype,"valueChange",null),Kt=Object(a.a)([Object(l.a)({components:{LsDialog:Ht.a}})],Kt);var Xt=Kt,Zt=(s("ed0c"),Object(b.a)(Xt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("ls-dialog",{attrs:{title:"选择分类样式",width:"1100px",top:"15vh"},on:{confirm:t.onConfirm}},[a("div",{attrs:{slot:"trigger"},slot:"trigger"},[t._t("trigger")],2),a("div",{staticClass:"category-select"},[a("div",[a("el-radio-group",{model:{value:t.category,callback:function(e){t.category=e},expression:"category"}},[a("el-radio",{attrs:{label:1}},[t._v("一级分类")]),a("el-radio",{attrs:{label:2}},[t._v("二级分类")]),a("el-radio",{attrs:{label:3}},[t._v("三级分类")])],1)],1),a("div",[1==t.category?[a("div",{staticClass:"img-wrap",class:{active:1==t.currentStyle},on:{click:function(e){return t.selectStyle(1)}}},[a("img",{attrs:{src:s("db5c")}})]),a("div",{staticClass:"img-wrap",class:{active:2==t.currentStyle},on:{click:function(e){return t.selectStyle(2)}}},[a("img",{attrs:{src:s("f886")}})]),a("div",{staticClass:"img-wrap",class:{active:3==t.currentStyle},on:{click:function(e){return t.selectStyle(3)}}},[a("img",{attrs:{src:s("705e")}})]),a("div",{staticClass:"img-wrap",class:{active:4==t.currentStyle},on:{click:function(e){return t.selectStyle(4)}}},[a("img",{attrs:{src:s("a4c3")}})])]:t._e(),2==t.category?[a("div",{staticClass:"img-wrap",class:{active:5==t.currentStyle},on:{click:function(e){return t.selectStyle(5)}}},[a("img",{attrs:{src:s("9cec")}})]),a("div",{staticClass:"img-wrap",class:{active:6==t.currentStyle},on:{click:function(e){return t.selectStyle(6)}}},[a("img",{attrs:{src:s("c20a")}})])]:t._e(),3==t.category?[a("div",{staticClass:"img-wrap",class:{active:7==t.currentStyle},on:{click:function(e){return t.selectStyle(7)}}},[a("img",{attrs:{src:s("d364")}})]),a("div",{staticClass:"img-wrap",class:{active:8==t.currentStyle},on:{click:function(e){return t.selectStyle(8)}}},[a("img",{attrs:{src:s("69ce")}})])]:t._e()],2)])])],1)}),[],!1,null,"7f2a1a2c",null).exports);let qt=class extends l.e{};Object(a.a)([Object(l.c)()],qt.prototype,"content",void 0),qt=Object(a.a)([l.a],qt);var te=qt,ee=(s("b78d"),Object(b.a)(te,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"style-list flex row-center"},[1==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("db5c")}}):t._e(),2==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("f886")}}):t._e(),3==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("705e")}}):t._e(),4==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("a4c3")}}):t._e(),5==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("9cec")}}):t._e(),6==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("c20a")}}):t._e(),7==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("d364")}}):t._e(),8==t.content.style?a("img",{staticStyle:{width:"375px"},attrs:{src:s("69ce")}}):t._e()])}),[],!1,null,"6104c472",null).exports),se=s("e648");let ae=class extends l.e{constructor(){super(...arguments),this.showSelect=!1,this.category=1}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}handleAdd(){Array.isArray(this.content.data)||(this.content.data=[]),this.content.data.push({url:"",link:{},category:{}})}handleDelete(t){this.content.data.splice(t,1)}selectStyle(t){this.content.style=t,this.showSelect=!1}};ae=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,CategoryStyle:Zt,StyleList:ee,MaterialSelect:W.a,LinkSelect:A.a,CategorySelect:se.a}})],ae);var le=ae,oe=(s("647d"),Object(b.a)(le,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"商品分类"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"风格选择"}},[s("category-style",{attrs:{slot:"right"},slot:"right",model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}},[s("el-button",{attrs:{slot:"trigger",size:"mini",type:"text"},slot:"trigger"},[t._v("切换风格")])],1),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"style-chose"},[s("style-list",{attrs:{content:t.content}})],1)])],1),s("attribute-item",{attrs:{title:"广告图片",desc:"建议图片尺寸:750px*340px"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("el-alert",{attrs:{closable:!1,type:"info"}},[s("span",{attrs:{slot:"title"},slot:"title"},[t._v("请前往移动端查看效果")])])],1),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"banner"},[s("div",{staticClass:"banner-list"},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"banner-item ls-del-wrap m-b-20"},[s("material-select",{attrs:{"enable-domain":!1,"enable-delete":!1},scopedSlots:t._u([{key:"preview",fn:function(t){var e=t.item;return[s("div",{staticClass:"banner-iamge muted"},[s("el-image",{attrs:{src:e}})],1)]}}],null,!0),model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}},[s("div",{staticClass:"banner-iamge muted",attrs:{slot:"upload"},slot:"upload"},[s("div",{staticClass:"add-image flex-col row-center col-center"},[s("i",{staticClass:"el-icon-plus font-size-30"}),t._v(" 添加图片 ")])])]),s("div",{staticClass:"flex m-t-10"},[s("div",{staticClass:"m-r-10 lighter"},[t._v("所属分类")]),s("category-select",{attrs:{level:1},model:{value:e.category,callback:function(s){t.$set(e,"category",s)},expression:"item.category"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{slot:"trigger",value:e.category&&e.category.name,placeholder:"请选择分类",size:"small",readonly:""},slot:"trigger"},[e.category&&e.category.name?s("i",{staticClass:"el-icon-close el-input__icon",attrs:{slot:"suffix"},on:{click:function(e){return e.stopPropagation(),t.handleDelete.apply(null,arguments)}},slot:"suffix"}):s("i",{staticClass:"el-icon-arrow-right el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})])],1)],1),s("div",{staticClass:"flex m-t-10"},[s("div",{staticClass:"m-r-10 lighter"},[t._v("链接地址")]),s("link-select",{model:{value:e.link,callback:function(s){t.$set(e,"link",s)},expression:"item.link"}})],1),s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.handleDelete(a)}}})],1)})),0),s("el-button",{staticClass:"add-banner",attrs:{size:"small"},on:{click:t.handleAdd}},[t._v("+ 添加")])],1)])],1)],1)],1)])],1)}),[],!1,null,"0cb591e6",null).exports);let ie=class extends l.e{};Object(a.a)([Object(l.c)()],ie.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ie.prototype,"styles",void 0),ie=Object(a.a)([Object(l.a)({components:{StyleList:ee}})],ie);var re=ie,ne=(s("6e32"),Object(b.a)(re,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"category"},[e("style-list",{attrs:{content:this.content}})],1)}),[],!1,null,"71800a9f",null).exports);let ce=class extends l.e{};Object(a.a)([Object(l.c)()],ce.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ce.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],ce.prototype,"index",void 0),Object(a.a)([Object(l.c)()],ce.prototype,"operate",void 0),ce=Object(a.a)([Object(l.a)({components:{Contents:ne,WidgetPackage:h.a}})],ce);var de=ce,ue={attribute:oe,contents:ne,widget:Object(b.a)(de,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let be=class extends l.e{constructor(){super(...arguments),this.assetsOptions=[{name:"余额",value:1},{name:"积分",value:2},{name:"优惠券",value:3},{name:"收藏",value:4}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};be=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a}})],be);var me=be,pe=(s("7cd4"),Object(b.a)(me,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"会员信息"}},[s("div",[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"背景设置"}},[s("el-form-item",{attrs:{label:"背景图片"}},[s("el-radio-group",{model:{value:t.content.background_type,callback:function(e){t.$set(t.content,"background_type",e)},expression:"content.background_type"}},[s("el-radio",{attrs:{label:1}},[t._v("系统默认")]),s("el-radio",{attrs:{label:2}},[t._v("自定义")])],1)],1),s("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2==t.content.background_type,expression:"content.background_type == 2"}]},[s("material-select",{attrs:{size:60,"upload-bg":"#fff","enable-domain":!1,"enable-delete":!1},scopedSlots:t._u([{key:"preview",fn:function(t){var e=t.item;return[s("div",{staticClass:"image-select"},[s("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e}})],1)]}}]),model:{value:t.content.background_image,callback:function(e){t.$set(t.content,"background_image",e)},expression:"content.background_image"}},[s("div",{staticClass:"image-select flex-col row-center col-center",attrs:{slot:"upload"},slot:"upload"},[s("i",{staticClass:"el-icon-plus lg"}),s("div",[t._v("添加图片")])])]),s("div",{staticClass:"muted"},[t._v("建议图片尺寸:750px*340px")])],1)],1),s("attribute-item",{attrs:{title:"会员信息"}},[s("el-form-item",{attrs:{label:"默认头像"}},[s("el-radio-group",{model:{value:t.content.avatar_type,callback:function(e){t.$set(t.content,"avatar_type",e)},expression:"content.avatar_type"}},[s("el-radio",{attrs:{label:1}},[t._v("系统默认")]),s("el-radio",{attrs:{label:2}},[t._v("自定义")])],1)],1),s("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2==t.content.avatar_type,expression:"content.avatar_type == 2"}]},[s("material-select",{attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.avatar,callback:function(e){t.$set(t.content,"avatar",e)},expression:"content.avatar"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:100*100")])],1),s("el-form-item",{attrs:{label:"会员编号"}},[s("el-radio-group",{model:{value:t.content.show_user_sn,callback:function(e){t.$set(t.content,"show_user_sn",e)},expression:"content.show_user_sn"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"资产内容"}},[s("el-checkbox-group",{model:{value:t.content.assets,callback:function(e){t.$set(t.content,"assets",e)},expression:"content.assets"}},t._l(t.assetsOptions,(function(e,a){return s("el-checkbox",{key:a,attrs:{label:e.value}},[t._v(t._s(e.name))])})),1)],1),s("el-form-item",{attrs:{label:"等级入口"}},[s("el-radio-group",{model:{value:t.content.show_member,callback:function(e){t.$set(t.content,"show_member",e)},expression:"content.show_member"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1)],1)],1)],1)])],1)}),[],!1,null,"123c2e54",null).exports);let ge=class extends l.e{get infoStyle(){const{background_image:t,background_type:e}=this.content;return t&&1!=e?{"background-image":`url(${this.$getImageUri(this.content.background_image)})`}:{}}get showAssets(){return t=>this.content.assets.includes(t)}};Object(a.a)([Object(l.c)()],ge.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ge.prototype,"styles",void 0),ge=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a}})],ge);var ve=ge,fe=(s("9d0c"),Object(b.a)(ve,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user-info flex-col",style:[t.infoStyle]},[a("div",{staticClass:"user-top flex-1 col-top"},[a("div",{staticClass:"flex"},[a("img",{staticClass:"icon-avatar",attrs:{src:2==t.content.avatar_type&&t.content.avatar?t.$getImageUri(t.content.avatar):s("1162"),mode:""}}),a("div",{staticClass:"m-l-15 flex-1"},[a("div",{staticClass:"xxl white"},[t._v("会员昵称")]),t.content.show_user_sn?a("div",{staticClass:"flex user-id m-t-4"},[a("div",{staticClass:"xs m-r-6 white"},[t._v("会员ID: 00000000")]),a("div",{staticClass:"xs copy-btn"},[t._v("复制")])]):t._e()])])]),a("div",{staticClass:"assets-nav flex"},[t.showAssets(1)?a("div",{staticClass:"assets-item flex-col col-center"},[a("div",{staticClass:"number"},[t._v("0")]),a("div",[t._v("余额")])]):t._e(),t.showAssets(2)?a("div",{staticClass:"assets-item flex-col col-center"},[a("div",{staticClass:"number"},[t._v("0")]),a("div",[t._v("积分")])]):t._e(),t.showAssets(3)?a("div",{staticClass:"assets-item flex-col col-center"},[a("div",{staticClass:"number"},[t._v("0")]),a("div",[t._v("优惠券")])]):t._e(),t.showAssets(4)?a("div",{staticClass:"assets-item flex-col col-center"},[a("div",{staticClass:"number"},[t._v("0")]),a("div",[t._v("收藏")])]):t._e()]),t.content.show_member?a("div",{staticClass:"user-grade flex row-between"},[t._m(0),t._m(1)]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"sm"},[e("span",{staticClass:"lg m-r-6 weight-500",staticStyle:{"font-style":"italic"}},[this._v("V")]),this._v("登录查看会员权益")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"xs"},[this._v("了解会员 "),e("i",{staticClass:"el-icon-arrow-right"})])}],!1,null,"65ee144c",null).exports);let he=class extends l.e{};Object(a.a)([Object(l.c)()],he.prototype,"content",void 0),Object(a.a)([Object(l.c)()],he.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],he.prototype,"index",void 0),Object(a.a)([Object(l.c)()],he.prototype,"operate",void 0),he=Object(a.a)([Object(l.a)({components:{Contents:fe,WidgetPackage:h.a}})],he);var ye=he,_e={attribute:pe,contents:fe,widget:Object(b.a)(ye,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let xe=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};xe=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a}})],xe);var Ae=xe,we=(s("0920"),Object(b.a)(Ae,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"我的订单"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:""}},[s("el-form-item",{attrs:{label:"标题名称"}},[s("el-input",{attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入标题名称"},model:{value:t.content.text,callback:function(e){t.$set(t.content,"text",e)},expression:"content.text"}})],1)],1),s("attribute-item",{attrs:{title:"图片设置"}},[s("div",{staticClass:"nav-list"},[s("div",{staticClass:"nav-item flex"},[s("material-select",{attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.pay_icon,callback:function(e){t.$set(t.content,"pay_icon",e)},expression:"content.pay_icon"}},[s("i",{staticClass:"el-icon-plus"})]),s("div",{staticClass:"flex"},[s("span",{staticClass:"flex-none m-r-10 xs lighter m-l-20"},[t._v("名称")]),s("el-input",{attrs:{maxlength:"6",size:"small","show-word-limit":"",placeholder:"请输入名称"},model:{value:t.content.pay_name,callback:function(e){t.$set(t.content,"pay_name",e)},expression:"content.pay_name"}})],1)],1),s("div",{staticClass:"nav-item flex"},[s("material-select",{attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.delivery_icon,callback:function(e){t.$set(t.content,"delivery_icon",e)},expression:"content.delivery_icon"}},[s("i",{staticClass:"el-icon-plus"})]),s("div",{staticClass:"flex"},[s("span",{staticClass:"flex-none m-r-10 xs lighter m-l-20"},[t._v("名称")]),s("el-input",{attrs:{maxlength:"6",size:"small","show-word-limit":"",placeholder:"请输入名称"},model:{value:t.content.delivery_name,callback:function(e){t.$set(t.content,"delivery_name",e)},expression:"content.delivery_name"}})],1)],1),s("div",{staticClass:"nav-item flex"},[s("material-select",{attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.take_icon,callback:function(e){t.$set(t.content,"take_icon",e)},expression:"content.take_icon"}},[s("i",{staticClass:"el-icon-plus"})]),s("div",{staticClass:"flex"},[s("span",{staticClass:"flex-none m-r-10 xs lighter m-l-20"},[t._v("名称")]),s("el-input",{attrs:{maxlength:"6",size:"small","show-word-limit":"",placeholder:"请输入名称"},model:{value:t.content.take_name,callback:function(e){t.$set(t.content,"take_name",e)},expression:"content.take_name"}})],1)],1),s("div",{staticClass:"nav-item flex"},[s("material-select",{attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.comment_icon,callback:function(e){t.$set(t.content,"comment_icon",e)},expression:"content.comment_icon"}},[s("i",{staticClass:"el-icon-plus"})]),s("div",{staticClass:"flex"},[s("span",{staticClass:"flex-none m-r-10 xs lighter m-l-20"},[t._v("名称")]),s("el-input",{attrs:{maxlength:"6",size:"small","show-word-limit":"",placeholder:"请输入名称"},model:{value:t.content.comment_name,callback:function(e){t.$set(t.content,"comment_name",e)},expression:"content.comment_name"}})],1)],1),s("div",{staticClass:"nav-item flex"},[s("material-select",{attrs:{size:48,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.sale_icon,callback:function(e){t.$set(t.content,"sale_icon",e)},expression:"content.sale_icon"}},[s("i",{staticClass:"el-icon-plus"})]),s("div",{staticClass:"flex"},[s("span",{staticClass:"flex-none m-r-10 xs lighter m-l-20"},[t._v("名称")]),s("el-input",{attrs:{maxlength:"6",size:"small","show-word-limit":"",placeholder:"请输入名称"},model:{value:t.content.sale_name,callback:function(e){t.$set(t.content,"sale_name",e)},expression:"content.sale_name"}})],1)],1)])])],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"2641a944",null).exports);let Ce=class extends l.e{};Object(a.a)([Object(l.c)()],Ce.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ce.prototype,"styles",void 0),Ce=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a}})],Ce);var ke=Ce,Oe=(s("1824"),Object(b.a)(ke,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"user-order",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[s("div",{staticClass:"order-title flex row-between"},[s("div",{staticClass:"weight-500"},[t._v(t._s(t.content.text))]),s("div",{staticClass:"sm muted"},[t._v("全部订单 "),s("i",{staticClass:"el-icon-arrow-right"})])]),s("div",{staticClass:"order-nav flex"},[s("div",{staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(t.content.pay_icon)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(t.content.pay_name))])],1),s("div",{staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(t.content.delivery_icon)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(t.content.delivery_name))])],1),s("div",{staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(t.content.take_icon)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(t.content.take_name))])],1),s("div",{staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(t.content.comment_icon)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(t.content.comment_name))])],1),s("div",{staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(t.content.sale_icon)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(t.content.sale_name))])],1)])])])}),[],!1,null,"7b3953b6",null).exports);let je=class extends l.e{};Object(a.a)([Object(l.c)()],je.prototype,"content",void 0),Object(a.a)([Object(l.c)()],je.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],je.prototype,"index",void 0),Object(a.a)([Object(l.c)()],je.prototype,"operate",void 0),je=Object(a.a)([Object(l.a)({components:{Contents:Oe,WidgetPackage:h.a}})],je);var Fe=je,Se={attribute:we,contents:Oe,widget:Object(b.a)(Fe,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let ze=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};ze=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,NavList:Q.a}})],ze);var Me=ze,Le=Object(b.a)(Me,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"我的订单"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:""}},[s("el-form-item",{attrs:{label:"标题名称"}},[s("el-input",{attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入标题名称"},model:{value:t.content.text,callback:function(e){t.$set(t.content,"text",e)},expression:"content.text"}})],1)],1),s("attribute-item",{attrs:{title:"导航内容"}},[s("nav-list",{model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"2e67d758",null).exports;let Ee=class extends l.e{get infoStyle(){const{background_image:t,background_type:e}=this.content;return t&&1!=e?{"background-image":`url(${this.content.background_image})`}:{}}};Object(a.a)([Object(l.c)()],Ee.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ee.prototype,"styles",void 0),Ee=Object(a.a)([Object(l.a)({components:{Indicator:B.a,WidgetRoot:p.a}})],Ee);var De=Ee,Ie=(s("1ac6"),Object(b.a)(De,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"user-serve",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[s("div",{staticClass:"serve-title"},[s("div",{staticClass:"weight-500"},[t._v(t._s(t.content.text))])]),s("div",{staticClass:"serve-nav flex flex-wrap"},[t._l(t.content.data,(function(e,a){return[e.hidden?t._e():s("div",{key:a,staticClass:"nav-item flex-col col-center"},[s("el-image",{staticClass:"nav-icon",attrs:{src:t.$getImageUri(e.url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-20"})])]),s("div",{staticClass:"xs"},[t._v(t._s(e.name))])],1)]}))],2)])])}),[],!1,null,"5adc6a04",null).exports);let $e=class extends l.e{};Object(a.a)([Object(l.c)()],$e.prototype,"content",void 0),Object(a.a)([Object(l.c)()],$e.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],$e.prototype,"index",void 0),Object(a.a)([Object(l.c)()],$e.prototype,"operate",void 0),$e=Object(a.a)([Object(l.a)({components:{Contents:Ie,WidgetPackage:h.a}})],$e);var Be=$e,Re={attribute:Le,contents:Ie,widget:Object(b.a)(Be,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let Pe=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}clearCategory(){this.content.category.name="",this.content.category.id=""}};Pe=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a}})],Pe);var Ue=Pe,Te=Object(b.a)(Ue,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"公告"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"公告图标"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("el-radio-group",{model:{value:t.content.icon_type,callback:function(e){t.$set(t.content,"icon_type",e)},expression:"content.icon_type"}},[s("el-radio",{attrs:{label:1}},[t._v("系统默认")]),s("el-radio",{attrs:{label:2}},[t._v("自定义")])],1),2==t.content.icon_type?s("div",{staticClass:"m-t-12"},[s("material-select",{ref:"materialSelect",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.icon,callback:function(e){t.$set(t.content,"icon",e)},expression:"content.icon"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("span",{staticClass:"muted xs"},[t._v("建议尺寸: 60*20")])],1):t._e()],1)],1),s("attribute-item",{attrs:{title:"数据显示"}},[s("el-form-item",{attrs:{label:"显示条数"}},[s("slider",{attrs:{min:1,max:5},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1)],1),s("attribute-item",{attrs:{title:"最新标签"}},[s("el-radio-group",{model:{value:t.content.show_tag,callback:function(e){t.$set(t.content,"show_tag",e)},expression:"content.show_tag"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":"rgba(0,0,0,0)"},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1),s("el-form-item",{attrs:{label:"线条颜色"}},[s("color-select",{attrs:{"reset-color":"#E5E5E5"},model:{value:t.styles.line_color,callback:function(e){t.$set(t.styles,"line_color",e)},expression:"styles.line_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:t.styles.color,callback:function(e){t.$set(t.styles,"color",e)},expression:"styles.color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"圆角"}},[s("slider",{model:{value:t.styles.border_radius,callback:function(e){t.$set(t.styles,"border_radius",e)},expression:"styles.border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"75f75879",null).exports;let Ne=class extends l.e{};Object(a.a)([Object(l.c)()],Ne.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ne.prototype,"styles",void 0),Ne=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Ne);var Ye=Ne,We=(s("ad40"),Object(b.a)(Ye,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"notice",style:{"background-color":t.styles.bg_color,"border-radius":t.styles.border_radius+"px"}},[a("div",{staticClass:"flex"},[a("img",{staticClass:"flex-none",staticStyle:{height:"17px"},attrs:{src:1==t.content.icon_type?s("86dd"):t.$getImageUri(t.content.icon)}}),a("div",{staticClass:"flex left-line flex-1",style:{"border-color":t.styles.line_color}},[t.content.show_tag?a("div",{staticClass:"new-tag flex-none"},[t._v("最新")]):t._e(),a("div",{staticClass:"xs line-1",style:{color:t.styles.color}},[t._v("公告标题")])]),a("i",{staticClass:"el-icon-arrow-right"})])])])}),[],!1,null,"3b38988a",null).exports);let Qe=class extends l.e{};Object(a.a)([Object(l.c)()],Qe.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Qe.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Qe.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Qe.prototype,"operate",void 0),Qe=Object(a.a)([Object(l.a)({components:{Contents:We,WidgetPackage:h.a}})],Qe);var Je=Qe,Ve={attribute:Te,contents:We,widget:Object(b.a)(Je,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)}),[],!1,null,null,null).exports};let Ge=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};Ge=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,Slider:c.a,AttributeItem:n.a}})],Ge);var He=Ge,Ke=Object(b.a)(He,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"空白间距"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"空白间距高度"}},[[s("el-form-item",{attrs:{label:"高度"}},[s("slider",{attrs:{max:100},model:{value:t.styles.height,callback:function(e){t.$set(t.styles,"height",e)},expression:"styles.height"}})],1)]],2)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1)],1)],1)])],1)}),[],!1,null,"a9008d8a",null).exports;let Xe=class extends l.e{};Object(a.a)([Object(l.c)()],Xe.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Xe.prototype,"styles",void 0),Xe=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Xe);var Ze=Xe,qe=(s("601f"),Object(b.a)(Ze,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-root",{attrs:{styles:this.styles}},[e("div",{staticClass:"blank",style:{height:this.styles.height+"px","background-color":this.styles.bg_color}})])}),[],!1,null,"6a05afac",null).exports);let ts=class extends l.e{};Object(a.a)([Object(l.c)()],ts.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ts.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],ts.prototype,"index",void 0),Object(a.a)([Object(l.c)()],ts.prototype,"operate",void 0),ts=Object(a.a)([Object(l.a)({components:{Contents:qe,WidgetPackage:h.a}})],ts);var es=ts,ss={attribute:Ke,contents:qe,widget:Object(b.a)(es,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)}),[],!1,null,null,null).exports};let as=class extends l.e{get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};as=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,Slider:c.a,AttributeItem:n.a}})],as);var ls=as,os=Object(b.a)(ls,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"辅助线"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择样式"}},[[s("el-radio",{attrs:{label:"solid"},model:{value:t.content.separate,callback:function(e){t.$set(t.content,"separate",e)},expression:"content.separate"}},[t._v("实线")]),s("el-radio",{attrs:{label:"dashed"},model:{value:t.content.separate,callback:function(e){t.$set(t.content,"separate",e)},expression:"content.separate"}},[t._v("虚线")]),s("el-radio",{attrs:{label:"dotted"},model:{value:t.content.separate,callback:function(e){t.$set(t.content,"separate",e)},expression:"content.separate"}},[t._v("点状")])]],2)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":"rgba(0,0,0,0)"},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"线条颜色"}},[s("color-select",{attrs:{"reset-color":"#E5E5E5"},model:{value:t.styles.line_color,callback:function(e){t.$set(t.styles,"line_color",e)},expression:"styles.line_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1)],1)],1)])],1)}),[],!1,null,"0aafb844",null).exports;let is=class extends l.e{};Object(a.a)([Object(l.c)()],is.prototype,"content",void 0),Object(a.a)([Object(l.c)()],is.prototype,"styles",void 0),is=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],is);var rs=is,ns=(s("c2ca"),Object(b.a)(rs,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-root",{attrs:{styles:this.styles}},[e("div",{staticClass:"separate"},[e("div",{style:{"border-color":this.styles.line_color,"border-style":this.content.separate}})])])}),[],!1,null,"5adb5290",null).exports);let cs=class extends l.e{};Object(a.a)([Object(l.c)()],cs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],cs.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],cs.prototype,"index",void 0),Object(a.a)([Object(l.c)()],cs.prototype,"operate",void 0),cs=Object(a.a)([Object(l.a)({components:{Contents:ns,WidgetPackage:h.a}})],cs);var ds=cs,us={attribute:os,contents:ns,widget:Object(b.a)(ds,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)}),[],!1,null,null,null).exports};s("0643"),s("fffc");let bs=class extends l.e{constructor(){super(...arguments),this.current=0}get imgLists(){return this.value}set imgLists(t){this.$emit("input",t)}changeCurrent(t){this.current=t,this.$emit("change",t)}};Object(a.a)([Object(l.c)()],bs.prototype,"value",void 0),Object(a.a)([Object(l.c)()],bs.prototype,"facade",void 0),bs=Object(a.a)([Object(l.a)({})],bs);var ms=bs,ps=(s("e45a"),Object(b.a)(ms,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"cube-layout"},[1==t.facade?s("div",{staticClass:"layout-item1"},[s("div",{staticClass:"item-image",class:{active:0==t.current}},[t.imgLists[0]&&t.imgLists[0].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[0].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("750x不限高度")])])],1)]):t._e(),2==t.facade?s("div",{staticClass:"layout-item2"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image",class:{active:t.current==a},on:{click:function(e){return t.changeCurrent(a)}}},[e&&e.url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(e.url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x不限高度")])])],1)})),0):t._e(),3==t.facade?s("div",{staticClass:"layout-item3"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image",class:{active:t.current==a},on:{click:function(e){return t.changeCurrent(a)}}},[e&&e.url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(e.url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("250x不限高度")])])],1)})),0):t._e(),4==t.facade?s("div",{staticClass:"layout-item4"},[s("div",{staticClass:"item-image",class:{active:0==t.current},style:{width:"180px",height:"180px",top:0,left:0},on:{click:function(e){return t.changeCurrent(0)}}},[t.imgLists[0]&&t.imgLists[0].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[0].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x375")])])],1),s("div",{staticClass:"item-image",class:{active:1==t.current},style:{width:"180px",height:"90px",top:0,left:"180px"},on:{click:function(e){return t.changeCurrent(1)}}},[t.imgLists[1]&&t.imgLists[1].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[1].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x188")])])],1),s("div",{staticClass:"item-image",class:{active:2==t.current},style:{width:"180px",height:"90px",top:"90px",left:"180px"},on:{click:function(e){return t.changeCurrent(2)}}},[t.imgLists[2]&&t.imgLists[2].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[2].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x188")])])],1)]):t._e(),5==t.facade?s("div",{staticClass:"layout-item5"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image",class:{active:t.current==a},on:{click:function(e){return t.changeCurrent(a)}}},[e&&e.url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(e.url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("188x188")])])],1)})),0):t._e(),6==t.facade?s("div",{staticClass:"layout-item6"},[s("div",{staticClass:"item-image",class:{active:0==t.current},style:{width:"360px",height:"90px",top:0,left:0},on:{click:function(e){return t.changeCurrent(0)}}},[t.imgLists[0]&&t.imgLists[0].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[0].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("750x188")])])],1),s("div",{staticClass:"item-image",class:{active:1==t.current},style:{width:"180px",height:"90px",top:"90px",left:0},on:{click:function(e){return t.changeCurrent(1)}}},[t.imgLists[1]&&t.imgLists[1].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[1].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x188")])])],1),s("div",{staticClass:"item-image",class:{active:2==t.current},style:{width:"180px",height:"90px",top:"90px",left:"180px"},on:{click:function(e){return t.changeCurrent(2)}}},[t.imgLists[2]&&t.imgLists[2].url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[2].url)}}):s("div",{staticClass:"item-tips muted"},[s("span",[t._v("375x188")])])],1)]):t._e()])}),[],!1,null,"e1ad595a",null).exports);let gs=class extends l.e{constructor(){super(...arguments),this.current=0,this.styleData=[{name:"一行1个",value:1,num:1},{name:"一行2个",value:2,num:2},{name:"一行3个",value:3,num:3},{name:"左1右2",value:4,num:3},{name:"左2右2",value:5,num:4},{name:"上1下2",value:6,num:3}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}get currentData(){const t=this.current;if(this.content.data.length>0)return this.content.data[t]}styleChange(t){var e;this.current=0;const s=(null===(e=this.styleData.find(e=>e.value==t))||void 0===e?void 0:e.num)||1;this.content.data=this.handleArray(s)}currentChange(t){this.current=t}handleArray(t){const e=JSON.parse(JSON.stringify(this.content.data)),s=[];for(let a=0;a<t;a++)e[a]?s.push(e[a]):s.push({url:"",link:{}});return s}};Object(a.a)([Object(l.f)("content.style",{immediate:!0})],gs.prototype,"styleChange",null),gs=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,Slider:c.a,Draggable:Pt.a,AttributeItem:n.a,MaterialSelect:W.a,LinkSelect:A.a,StyleChose:r.a,CubeLayout:ps}})],gs);var vs=gs,fs=(s("c4618"),Object(b.a)(vs,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"图片魔方"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"风格选择"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"魔方布局"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("cube-layout",{attrs:{facade:t.content.style},on:{change:t.currentChange},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1),s("attribute-item",{attrs:{title:"图片设置"}},[s("div",{staticClass:"p-20",staticStyle:{background:"#f9f9f9"}},[s("div",{staticClass:"flex m-b-8"},[s("div",{staticClass:"lighter m-r-20"},[t._v("图片")]),s("material-select",{ref:"materialSelect",staticClass:"m-r-10",attrs:{size:50,"upload-bg":"#fff","enable-domain":!1},model:{value:t.currentData.url,callback:function(e){t.$set(t.currentData,"url",e)},expression:"currentData.url"}},[s("i",{staticClass:"el-icon-plus lg"})])],1),s("div",{staticClass:"flex"},[s("div",{staticClass:"lighter m-r-20"},[t._v("链接")]),s("link-select",{staticClass:"flex-1",model:{value:t.currentData.link,callback:function(e){t.$set(t.currentData,"link",e)},expression:"currentData.link"}})],1)])])],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"图片间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1)],1)],1)])],1)}),[],!1,null,"533beb5e",null).exports);let hs=class extends l.e{get imgLists(){return this.content.data}};Object(a.a)([Object(l.c)()],hs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],hs.prototype,"styles",void 0),hs=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],hs);var ys=hs,_s=(s("1ee0"),Object(b.a)(ys,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"rubik",style:{margin:"-"+t.styles.margin/2+"px"}},[1==t.content.style?s("div",{staticClass:"rubik-item1"},[t.imgLists[0]&&t.imgLists[0].url?s("div",{staticClass:"item-image",style:{margin:t.styles.margin/2+"px"}},[s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.imgLists[0].url)}})],1):s("el-image",{staticStyle:{height:"375px",width:"100%"}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1):t._e(),2==t.content.style?s("div",{staticClass:"rubik-item2"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image",style:{margin:t.styles.margin/2+"px"}},[e&&e.url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(e.url)}}):s("el-image",{staticStyle:{height:"188px",width:"100%"}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)})),0):t._e(),3==t.content.style?s("div",{staticClass:"rubik-item3"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image",style:{margin:t.styles.margin/2+"px"}},[e&&e.url?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(e.url)}}):s("el-image",{staticStyle:{height:"125px",width:"100%"}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)})),0):t._e(),4==t.content.style?s("div",{staticClass:"rubik-item4"},[s("div",{staticClass:"item-image",style:{width:"50%",height:"188px",top:0,left:0}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[0]&&t.$getImageUri(t.imgLists[0].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1),s("div",{staticClass:"item-image",style:{width:"50%",height:"94px",top:0,left:"50%"}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[1]&&t.$getImageUri(t.imgLists[1].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1),s("div",{staticClass:"item-image",style:{width:"50%",height:"94px",top:"94px",left:"50%"}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[2]&&t.$getImageUri(t.imgLists[2].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)]):t._e(),5==t.content.style?s("div",{staticClass:"rubik-item5"},t._l(t.imgLists,(function(e,a){return s("div",{key:a,staticClass:"item-image"},[s("el-image",{attrs:{fit:"cover",src:e&&t.$getImageUri(e.url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)})),0):t._e(),6==t.content.style?s("div",{staticClass:"rubik-item6"},[s("div",{staticClass:"item-image",style:{width:"100%",height:"94px",top:0,left:0}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[0]&&t.$getImageUri(t.imgLists[0].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1),s("div",{staticClass:"item-image",style:{width:"50%",height:"94px",top:"94px",left:0}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[1]&&t.$getImageUri(t.imgLists[1].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1),s("div",{staticClass:"item-image",style:{width:"50%",height:"94px",top:"94px",left:"50%"}},[s("el-image",{attrs:{fit:"cover",src:t.imgLists[2]&&t.$getImageUri(t.imgLists[2].url)}},[s("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[s("i",{staticClass:"el-icon-picture font-size-40"})])])],1)]):t._e()])])}),[],!1,null,"7aa485d6",null).exports);let xs=class extends l.e{};Object(a.a)([Object(l.c)()],xs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],xs.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],xs.prototype,"index",void 0),Object(a.a)([Object(l.c)()],xs.prototype,"operate",void 0),xs=Object(a.a)([Object(l.a)({components:{Contents:_s,WidgetPackage:h.a}})],xs);var As=xs,ws={attribute:fs,contents:_s,widget:Object(b.a)(As,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)}),[],!1,null,null,null).exports},Cs=s("4cee");let ks=class extends l.e{constructor(){super(...arguments),this.styleData=[{value:1,img:s("a682"),text:"风格1"},{value:2,img:s("582d"),text:"风格2"},{value:3,img:s("c81f"),text:"风格3"}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}styleChange(t){switch(t){case 1:case 2:this.styles.root_bg_color="#FFFFFF",this.styles.bg_color="#FCE7E7";break;case 3:this.styles.root_bg_color="",this.styles.bg_color="#FFFFFF"}}};Object(a.a)([Object(l.f)("content.style")],ks.prototype,"styleChange",null),ks=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,StyleSelect:w.a,CouponSelect:Cs.a,MaterialSelect:W.a}})],ks);var Os=ks,js=(s("85bb"),Object(b.a)(Os,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"优惠券"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"风格选择"}},[s("style-select",{attrs:{slot:"right",data:t.styleData},slot:"right",model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}},[s("el-button",{attrs:{slot:"trigger",size:"mini",type:"text"},slot:"trigger"},[t._v("切换风格")])],1),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"style-chose flex col-center"},[t._l(t.styleData,(function(e,a){return[e.value==t.content.style?s("img",{key:a,attrs:{src:e.img,alt:""}}):t._e()]}))],2)]),3==t.content.style?[s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{attrs:{maxlength:"12","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.title,callback:function(e){t.$set(t.content,"title",e)},expression:"content.title"}})],1),s("el-form-item",{attrs:{label:"标题颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1)]:t._e()],2),s("attribute-item",{attrs:{title:"添加优惠券",desc:"最多可添加10张"}},[s("coupon-select",{attrs:{limit:10},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"优惠券设置"}},[s("el-form-item",{attrs:{label:"背景颜色"}},[s("color-select",{attrs:{"reset-color":"#FCE7E7"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1),3==t.content.style?[s("el-form-item",{attrs:{label:"金额颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.money_color,callback:function(e){t.$set(t.styles,"money_color",e)},expression:"styles.money_color"}})],1),s("el-form-item",{attrs:{label:"条件颜色"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:t.styles.condition_color,callback:function(e){t.$set(t.styles,"condition_color",e)},expression:"styles.condition_color"}})],1),s("el-form-item",{attrs:{label:"场景颜色"}},[s("color-select",{attrs:{"reset-color":"#999999"},model:{value:t.styles.scene_color,callback:function(e){t.$set(t.styles,"scene_color",e)},expression:"styles.scene_color"}})],1)]:t._e(),3!=t.content.style?s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.text_color,callback:function(e){t.$set(t.styles,"text_color",e)},expression:"styles.text_color"}})],1):t._e(),2!=t.content.style?[s("el-form-item",{attrs:{label:"按钮背景"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.btn_bg_color,callback:function(e){t.$set(t.styles,"btn_bg_color",e)},expression:"styles.btn_bg_color"}})],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.btn_text_color,callback:function(e){t.$set(t.styles,"btn_text_color",e)},expression:"styles.btn_text_color"}})],1)]:t._e()],2),s("attribute-item",{attrs:{title:"背景设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),3==t.content.style?[s("el-form-item",{attrs:{label:"背景图片"}},[s("el-radio-group",{model:{value:t.content.bg_type,callback:function(e){t.$set(t.content,"bg_type",e)},expression:"content.bg_type"}},[s("el-radio",{attrs:{label:1}},[t._v("系统默认")]),s("el-radio",{attrs:{label:2}},[t._v("自定义")])],1)],1),2==t.content.bg_type?s("el-form-item",{attrs:{label:""}},[s("material-select",{ref:"materialSelect",staticClass:"m-r-10",attrs:{size:60,"upload-bg":"#fff"},model:{value:t.styles.bg_image,callback:function(e){t.$set(t.styles,"bg_image",e)},expression:"styles.bg_image"}},[s("i",{staticClass:"el-icon-plus lg"})])],1):t._e()]:t._e()],2),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1)],1)],1)])],1)}),[],!1,null,"1a0047a9",null).exports);let Fs=class extends l.e{get list(){return this.content.data.length?this.content.data:[{},{},{}]}};Object(a.a)([Object(l.c)()],Fs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Fs.prototype,"styles",void 0),Fs=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Fs);var Ss=Fs,zs=(s("362a"),Object(b.a)(Ss,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"coupon",style:{"--bgcolor":t.styles.root_bg_color||"#ffffff"}},[1==t.content.style?s("div",{staticClass:"coupon-style1"},t._l(t.list,(function(e,a){return s("div",{key:a,staticClass:"coupon-item"},[s("div",{staticClass:"coupon-con flex",style:{"background-color":t.styles.bg_color,color:t.styles.text_color}},[s("div",{staticClass:"coupon-price flex-col col-center row-center flex-none"},[s("div",{staticClass:"font-size-20 weight-500"},[t._v(" ¥"),s("span",{staticClass:"font-size-30 money"},[t._v(t._s(parseFloat(e.money)||"10"))])]),s("div",{staticClass:"xs"},[t._v(" "+t._s(e.condition||"满100可用")+" ")])]),s("div",{staticClass:"coupon-line",style:{"background-image":"repeating-linear-gradient("+t.styles.text_color+", "+t.styles.text_color+" 4px, transparent 4px,transparent 8px)"}}),s("div",{staticClass:"coupon-info flex flex-1"},[s("div",{staticClass:"flex-1"},[s("div",{staticClass:"lg weight-500 line-1",staticStyle:{"max-width":"130px"}},[t._v(" "+t._s(e.name||"优惠券名称")+" ")]),s("div",{staticClass:"xs m-t-5"},[t._v(" "+t._s(e.use_type||"全场通用")+" ")])]),s("div",{staticClass:"coupon-btn xs flex-none",style:{"background-color":t.styles.btn_bg_color,color:t.styles.btn_text_color}},[t._v(" 领取 ")])])])])})),0):t._e(),2==t.content.style?s("div",{staticClass:"coupon-style2 flex"},t._l(t.list,(function(e,a){return s("div",{key:a,staticClass:"coupon-item flex-none"},[s("div",{staticClass:"coupon-con flex",style:{"background-color":t.styles.bg_color,color:t.styles.text_color}},[s("div",{staticClass:"coupon-price flex-col col-center row-center flex-none"},[s("div",{staticClass:"font-size-20 weight-500"},[t._v(" ¥"),s("span",{staticClass:"font-size-30 money"},[t._v(t._s(parseFloat(e.money)||"10"))])]),s("div",{staticClass:"xs"},[t._v(" "+t._s(e.condition||"满100可用")+" ")])]),s("div",{staticClass:"coupon-line",style:{"background-image":"repeating-linear-gradient("+t.styles.text_color+" 0px, "+t.styles.text_color+" 4px, transparent 4px,transparent 8px)"}}),s("div",{staticClass:"coupon-btn"},[t._v("立即领取")])])])})),0):t._e(),3==t.content.style?s("div",{staticClass:"coupon-style3",style:[2==t.content.bg_type?{"background-image":"url("+t.styles.bg_image+")"}:{}]},[s("div",{staticClass:"title xxl",style:{color:t.styles.title_color}},[t._v(t._s(t.content.title))]),s("div",{staticClass:"coupon-list flex"},t._l(t.list,(function(e,a){return s("div",{key:a,staticClass:"coupon-item flex-none"},[s("div",{staticClass:"coupon-con flex-col col-center row-center",style:{"background-color":t.styles.bg_color}},[s("div",{staticClass:"coupon-price"},[s("div",{staticClass:"font-size-20 weight-500",style:{color:t.styles.money_color}},[t._v(" ¥"),s("span",{staticClass:"font-size-30 money"},[t._v(t._s(parseFloat(e.money)||"10"))])])]),s("div",{staticClass:"xs",style:{color:t.styles.condition_color}},[t._v(" "+t._s(e.condition||"满100可用")+" ")]),s("div",{staticClass:"xs m-t-2",style:{color:t.styles.scene_color}},[t._v(" "+t._s(e.use_type||"全场通用")+" ")]),s("div",{staticClass:"coupon-btn xs flex-none",style:{"background-color":t.styles.btn_bg_color,color:t.styles.btn_text_color}},[t._v(" 立即领取 ")])])])})),0)]):t._e()])])}),[],!1,null,"1a5a02e9",null).exports);let Ms=class extends l.e{};Object(a.a)([Object(l.c)()],Ms.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ms.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Ms.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Ms.prototype,"operate",void 0),Ms=Object(a.a)([Object(l.a)({components:{Contents:zs,WidgetPackage:h.a}})],Ms);var Ls=Ms,Es={attribute:js,contents:zs,widget:Object(b.a)(Ls,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},Ds=s("008b");let Is=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"列表模式",value:1},{name:"横向滑动",value:2}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};Is=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,ActivitySelect:Ds.a}})],Is);var $s=Is,Bs=Object(b.a)($s,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"限时秒杀"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择秒杀商品"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("el-radio-group",{model:{value:t.content.data_type,callback:function(e){t.$set(t.content,"data_type",e)},expression:"content.data_type"}},[s("el-radio",{attrs:{label:1}},[t._v("自动获取")]),s("el-radio",{attrs:{label:2}},[t._v("手动添加")])],1)],1),1==t.content.data_type?s("el-form-item",{attrs:{label:"显示数量"}},[s("slider",{attrs:{min:1,max:10},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1):s("el-form-item",{attrs:{"label-width":"0"}},[s("activity-select",{attrs:{type:"seckill"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1),s("attribute-item",{attrs:{title:"商品排列方式"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"头部设置"}},[s("el-form-item",{attrs:{label:"头部背景"}},[s("el-radio-group",{model:{value:t.content.header_bg_type,callback:function(e){t.$set(t.content,"header_bg_type",e)},expression:"content.header_bg_type"}},[s("el-radio",{attrs:{label:1}},[t._v("背景颜色")]),s("el-radio",{attrs:{label:2}},[t._v("背景图片")])],1),1==t.content.header_bg_type?s("color-select",{staticClass:"m-t-10",attrs:{"reset-color":"#FF5F4E"},model:{value:t.styles.header_bg_color,callback:function(e){t.$set(t.styles,"header_bg_color",e)},expression:"styles.header_bg_color"}}):[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_bg_image,callback:function(e){t.$set(t.content,"header_bg_image",e)},expression:"content.header_bg_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])]],2),s("el-form-item",{attrs:{label:"左侧图标"}},[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_icon_image,callback:function(e){t.$set(t.content,"header_icon_image",e)},expression:"content.header_icon_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])],1),s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.header_title,callback:function(e){t.$set(t.content,"header_title",e)},expression:"content.header_title"}})],1),s("el-form-item",{attrs:{label:"标题颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_title_color,callback:function(e){t.$set(t.styles,"header_title_color",e)},expression:"styles.header_title_color"}})],1),s("el-form-item",{attrs:{label:"标题大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.header_title_size,callback:function(e){t.$set(t.styles,"header_title_size",e)},expression:"styles.header_title_size"}})],1)],1),s("attribute-item",{attrs:{title:"更多按钮"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_haeder_more,callback:function(e){t.$set(t.content,"show_haeder_more",e)},expression:"content.show_haeder_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.header_more_text,callback:function(e){t.$set(t.content,"header_more_text",e)},expression:"content.header_more_text"}})],1),s("el-form-item",{attrs:{label:"按钮颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_more_color,callback:function(e){t.$set(t.styles,"header_more_color",e)},expression:"styles.header_more_color"}})],1)],1),s("attribute-item",{attrs:{title:"显示内容"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_title,callback:function(e){t.$set(t.content,"show_title",e)},expression:"content.show_title"}},[t._v("商品标题")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#101010"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_price,callback:function(e){t.$set(t.content,"show_price",e)},expression:"content.show_price"}},[t._v("商品价格")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.price_color,callback:function(e){t.$set(t.styles,"price_color",e)},expression:"styles.price_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_scribing_price,callback:function(e){t.$set(t.content,"show_scribing_price",e)},expression:"content.show_scribing_price"}},[t._v("划线原价")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.scribing_price_color,callback:function(e){t.$set(t.styles,"scribing_price_color",e)},expression:"styles.scribing_price_color"}})],1)]),1==t.content.style?s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_sell,callback:function(e){t.$set(t.content,"show_sell",e)},expression:"content.show_sell"}},[t._v("秒杀销量")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.sell_color,callback:function(e){t.$set(t.styles,"sell_color",e)},expression:"styles.sell_color"}})],1)]):t._e()],1),1==t.content.style?s("attribute-item",{attrs:{title:"按钮设置"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_btn,callback:function(e){t.$set(t.content,"show_btn",e)},expression:"content.show_btn"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.btn_text,callback:function(e){t.$set(t.content,"btn_text",e)},expression:"content.btn_text"}})],1),s("el-form-item",{attrs:{label:"按钮背景"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.btn_bg_color,callback:function(e){t.$set(t.styles,"btn_bg_color",e)},expression:"styles.btn_bg_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.btn_color,callback:function(e){t.$set(t.styles,"btn_color",e)},expression:"styles.btn_color"}})],1)],1):t._e()],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.content_bg_color,callback:function(e){t.$set(t.styles,"content_bg_color",e)},expression:"styles.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#F8F8F8"},model:{value:t.styles.goods_bg_color,callback:function(e){t.$set(t.styles,"goods_bg_color",e)},expression:"styles.goods_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:t.styles.goods_border_radius,callback:function(e){t.$set(t.styles,"goods_border_radius",e)},expression:"styles.goods_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"19157e6c",null).exports;let Rs=class extends l.e{get goods(){const{data:t,data_type:e,num:s}=this.content;return 1==e?[...Array(s).keys()].map(()=>({})):t.length?t:[{},{},{},{}]}get headerStyle(){const{header_bg_type:t,header_bg_image:e}=this.content,{header_bg_color:s}=this.styles;return 1==t?{"background-color":s}:{"background-image":`url(${this.$getImageUri(e)})`}}};Object(a.a)([Object(l.c)()],Rs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Rs.prototype,"styles",void 0),Rs=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Rs);var Ps=Rs,Us=(s("51f0"),Object(b.a)(Ps,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"seckill",style:{"background-color":t.styles.content_bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[a("div",{staticClass:"seckill-header flex",style:[t.headerStyle]},[a("div",{staticClass:"flex-1 flex"},[t.content.header_icon_image?a("img",{staticClass:"flex-none m-r-5",staticStyle:{height:"22px"},attrs:{src:t.$getImageUri(t.content.header_icon_image)}}):t._e(),a("div",{staticClass:"line-1",style:{"max-width":"200px",color:t.styles.header_title_color,"font-size":t.styles.header_title_size+"px"}},[t._v(" "+t._s(t.content.header_title)+" ")])]),t.content.show_haeder_more?a("div",{staticClass:"more flex-none xs",style:{color:t.styles.header_more_color}},[t._v(" "+t._s(t.content.header_more_text)+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),a("div",{staticClass:"seckill-goods",style:{margin:"-"+t.styles.margin/2+"px",padding:"10px"}},[a("div",{staticClass:"goods-lists",class:{lists:1==t.content.style,swiper:2==t.content.style}},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-wrap"},[a("div",{staticClass:"goods-item",style:{"background-color":t.styles.goods_bg_color,margin:t.styles.margin/2+"px","border-radius":t.styles.goods_border_radius+"px"}},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-info p-5"},[t.content.show_title?a("div",{staticClass:"m-b-4 name",style:{color:t.styles.title_color}},[a("div",{class:2==t.content.style?"line-1":"line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")])]):t._e(),1==t.content.style&&t.content.show_sell?a("div",{staticClass:"muted xs",style:{color:t.styles.sell_color}},[t._v(" 已抢0件 ")]):t._e(),a("div",{staticClass:"flex price-btn flex-wrap"},[a("div",{staticClass:"flex-1 flex col-baseline"},[t.content.show_price?a("div",{staticClass:"price weight-500 m-r-5 xl",style:{color:t.styles.price_color}},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.min_activity_price)||"0")+" ")]):t._e(),t.content.show_scribing_price?a("div",{staticClass:"muted line-through xs",style:{color:t.styles.scribing_price_color}},[t._v(" ¥"+t._s(parseFloat(e.min_price)||"0")+" ")]):t._e()]),1==t.content.style&&t.content.show_btn?a("div",{staticClass:"buy-btn xs",style:{"background-color":t.styles.btn_bg_color,color:t.styles.btn_color}},[t._v(" "+t._s(t.content.btn_text)+" ")]):t._e()])])])])})),0)])])])}),[],!1,null,"432cd35b",null).exports);let Ts=class extends l.e{};Object(a.a)([Object(l.c)()],Ts.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ts.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Ts.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Ts.prototype,"operate",void 0),Ts=Object(a.a)([Object(l.a)({components:{Contents:Us,WidgetPackage:h.a}})],Ts);var Ns=Ts,Ys={attribute:Bs,contents:Us,widget:Object(b.a)(Ns,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let Ws=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"列表模式",value:1},{name:"横向滑动",value:2}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};Ws=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,ActivitySelect:Ds.a}})],Ws);var Qs=Ws,Js=Object(b.a)(Qs,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"拼团活动"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择拼团商品"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("el-radio-group",{model:{value:t.content.data_type,callback:function(e){t.$set(t.content,"data_type",e)},expression:"content.data_type"}},[s("el-radio",{attrs:{label:1}},[t._v("自动获取")]),s("el-radio",{attrs:{label:2}},[t._v("手动添加")])],1)],1),1==t.content.data_type?s("el-form-item",{attrs:{label:"显示数量"}},[s("slider",{attrs:{min:1,max:10},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1):s("el-form-item",{attrs:{"label-width":"0"}},[s("activity-select",{attrs:{type:"team"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1),s("attribute-item",{attrs:{title:"商品排列方式"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"头部设置"}},[s("el-form-item",{attrs:{label:"头部背景"}},[s("el-radio-group",{model:{value:t.content.header_bg_type,callback:function(e){t.$set(t.content,"header_bg_type",e)},expression:"content.header_bg_type"}},[s("el-radio",{attrs:{label:1}},[t._v("背景颜色")]),s("el-radio",{attrs:{label:2}},[t._v("背景图片")])],1),1==t.content.header_bg_type?s("color-select",{staticClass:"m-t-10",attrs:{"reset-color":"#FF5F4E"},model:{value:t.styles.header_bg_color,callback:function(e){t.$set(t.styles,"header_bg_color",e)},expression:"styles.header_bg_color"}}):[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_bg_image,callback:function(e){t.$set(t.content,"header_bg_image",e)},expression:"content.header_bg_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])]],2),s("el-form-item",{attrs:{label:"左侧图标"}},[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_icon_image,callback:function(e){t.$set(t.content,"header_icon_image",e)},expression:"content.header_icon_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])],1),s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.header_title,callback:function(e){t.$set(t.content,"header_title",e)},expression:"content.header_title"}})],1),s("el-form-item",{attrs:{label:"标题颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_title_color,callback:function(e){t.$set(t.styles,"header_title_color",e)},expression:"styles.header_title_color"}})],1),s("el-form-item",{attrs:{label:"标题大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.header_title_size,callback:function(e){t.$set(t.styles,"header_title_size",e)},expression:"styles.header_title_size"}})],1)],1),s("attribute-item",{attrs:{title:"更多按钮"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_haeder_more,callback:function(e){t.$set(t.content,"show_haeder_more",e)},expression:"content.show_haeder_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.header_more_text,callback:function(e){t.$set(t.content,"header_more_text",e)},expression:"content.header_more_text"}})],1),s("el-form-item",{attrs:{label:"按钮颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_more_color,callback:function(e){t.$set(t.styles,"header_more_color",e)},expression:"styles.header_more_color"}})],1)],1),s("attribute-item",{attrs:{title:"显示内容"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_title,callback:function(e){t.$set(t.content,"show_title",e)},expression:"content.show_title"}},[t._v("商品标题")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#101010"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_price,callback:function(e){t.$set(t.content,"show_price",e)},expression:"content.show_price"}},[t._v("商品价格")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.price_color,callback:function(e){t.$set(t.styles,"price_color",e)},expression:"styles.price_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_scribing_price,callback:function(e){t.$set(t.content,"show_scribing_price",e)},expression:"content.show_scribing_price"}},[t._v("划线原价")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.scribing_price_color,callback:function(e){t.$set(t.styles,"scribing_price_color",e)},expression:"styles.scribing_price_color"}})],1)]),1==t.content.style?s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_sell,callback:function(e){t.$set(t.content,"show_sell",e)},expression:"content.show_sell"}},[t._v("拼团销量")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.sell_color,callback:function(e){t.$set(t.styles,"sell_color",e)},expression:"styles.sell_color"}})],1)]):t._e(),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_group_num,callback:function(e){t.$set(t.content,"show_group_num",e)},expression:"content.show_group_num"}},[t._v("参团人数")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.group_num_color,callback:function(e){t.$set(t.styles,"group_num_color",e)},expression:"styles.group_num_color"}})],1)])],1),1==t.content.style?s("attribute-item",{attrs:{title:"按钮设置"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_btn,callback:function(e){t.$set(t.content,"show_btn",e)},expression:"content.show_btn"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.btn_text,callback:function(e){t.$set(t.content,"btn_text",e)},expression:"content.btn_text"}})],1),s("el-form-item",{attrs:{label:"按钮背景"}},[s("color-select",{attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.btn_bg_color,callback:function(e){t.$set(t.styles,"btn_bg_color",e)},expression:"styles.btn_bg_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.btn_color,callback:function(e){t.$set(t.styles,"btn_color",e)},expression:"styles.btn_color"}})],1)],1):t._e()],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.content_bg_color,callback:function(e){t.$set(t.styles,"content_bg_color",e)},expression:"styles.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#F8F8F8"},model:{value:t.styles.goods_bg_color,callback:function(e){t.$set(t.styles,"goods_bg_color",e)},expression:"styles.goods_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:t.styles.goods_border_radius,callback:function(e){t.$set(t.styles,"goods_border_radius",e)},expression:"styles.goods_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"1b7193cd",null).exports;let Vs=class extends l.e{get goods(){const{data:t,data_type:e,num:s}=this.content;return 1==e?[...Array(s).keys()].map(()=>({})):t.length?t:[{},{},{},{}]}get headerStyle(){const{header_bg_type:t,header_bg_image:e}=this.content,{header_bg_color:s}=this.styles;return 1==t?{"background-color":s}:{"background-image":`url(${this.$getImageUri(e)})`}}};Object(a.a)([Object(l.c)()],Vs.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Vs.prototype,"styles",void 0),Vs=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Vs);var Gs=Vs,Hs=(s("529f"),Object(b.a)(Gs,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"spellgroup",style:{"background-color":t.styles.content_bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[a("div",{staticClass:"spellgroup-header flex",style:[t.headerStyle]},[a("div",{staticClass:"flex-1 flex"},[t.content.header_icon_image?a("img",{staticClass:"flex-none m-r-5",staticStyle:{height:"22px"},attrs:{src:t.$getImageUri(t.content.header_icon_image)}}):t._e(),a("div",{staticClass:"line-1",style:{"max-width":"200px",color:t.styles.header_title_color,"font-size":t.styles.header_title_size+"px"}},[t._v(" "+t._s(t.content.header_title)+" ")])]),t.content.show_haeder_more?a("div",{staticClass:"more flex-none xs",style:{color:t.styles.header_more_color}},[t._v(" "+t._s(t.content.header_more_text)+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),a("div",{staticClass:"spellgroup-goods",style:{margin:"-"+t.styles.margin/2+"px",padding:"10px"}},[a("div",{staticClass:"goods-lists",class:{lists:1==t.content.style,swiper:2==t.content.style}},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-wrap"},[a("div",{staticClass:"goods-item",style:{"background-color":t.styles.goods_bg_color,margin:t.styles.margin/2+"px","border-radius":t.styles.goods_border_radius+"px"}},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-info p-5"},[t.content.show_title?a("div",{staticClass:"m-b-4 name",style:{color:t.styles.title_color}},[a("div",{class:2==t.content.style?"line-1":"line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")])]):t._e(),a("div",{staticClass:"flex"},[t.content.show_group_num?a("div",{staticClass:"spell-num xxs m-r-6",style:{color:t.styles.group_num_color}},[t._v(" 3人团 ")]):t._e(),1==t.content.style&&t.content.show_sell?a("div",{staticClass:"muted xs",style:{color:t.styles.sell_color}},[t._v(" 已拼0件 ")]):t._e()]),a("div",{staticClass:"flex price-btn flex-wrap"},[a("div",{staticClass:"flex-1 flex col-baseline"},[t.content.show_price?a("div",{staticClass:"price weight-500 m-r-5 xl",style:{color:t.styles.price_color}},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.min_activity_price)||"0")+" ")]):t._e(),t.content.show_scribing_price?a("div",{staticClass:"muted line-through xs",style:{color:t.styles.scribing_price_color}},[t._v(" ¥"+t._s(parseFloat(e.min_price)||"0")+" ")]):t._e()]),1==t.content.style&&t.content.show_btn?a("div",{staticClass:"buy-btn xs",style:{"background-color":t.styles.btn_bg_color,color:t.styles.btn_color}},[t._v(" "+t._s(t.content.btn_text)+" ")]):t._e()])])])])})),0)])])])}),[],!1,null,"27be105f",null).exports);let Ks=class extends l.e{};Object(a.a)([Object(l.c)()],Ks.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ks.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Ks.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Ks.prototype,"operate",void 0),Ks=Object(a.a)([Object(l.a)({components:{Contents:Hs,WidgetPackage:h.a}})],Ks);var Xs=Ks,Zs={attribute:Js,contents:Hs,widget:Object(b.a)(Xs,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let qs=class extends l.e{get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}};qs=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a}})],qs);var ta=qs,ea=Object(b.a)(ta,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"视频"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择视频"}},[s("el-form-item",{attrs:{label:"视频类型"}},[s("el-radio-group",{model:{value:t.content.video_type,callback:function(e){t.$set(t.content,"video_type",e)},expression:"content.video_type"}},[s("el-radio",{attrs:{label:1}},[t._v("手动上传")]),s("el-radio",{attrs:{label:2}},[t._v("视频链接")])],1)],1),s("el-form-item",{attrs:{"label-width":"0"}},[1==t.content.video_type?s("material-select",{attrs:{type:"video",size:60,"enable-domain":!1},model:{value:t.content.url,callback:function(e){t.$set(t.content,"url",e)},expression:"content.url"}},[s("i",{staticClass:"el-icon-plus lg"})]):s("el-input",{attrs:{placeholder:"请输入视频链接"},model:{value:t.content.url,callback:function(e){t.$set(t.content,"url",e)},expression:"content.url"}})],1)],1),s("attribute-item",{attrs:{title:"视频封面"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("material-select",{attrs:{size:60,"enable-domain":!1},model:{value:t.content.poster,callback:function(e){t.$set(t.content,"poster",e)},expression:"content.poster"}},[s("i",{staticClass:"el-icon-plus lg"})])],1)],1),s("attribute-item",{attrs:{title:"比例"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("el-radio-group",{model:{value:t.content.proportion,callback:function(e){t.$set(t.content,"proportion",e)},expression:"content.proportion"}},[s("el-radio",{attrs:{label:1}},[t._v("16:9")]),s("el-radio",{attrs:{label:2}},[t._v("4:3")]),s("el-radio",{attrs:{label:3}},[t._v("1:1")])],1)],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,null,null).exports;let sa=class extends l.e{get videoStyle(){const{content:t}=this;return t.poster?{"background-image":`url(${this.$getImageUri(t.poster)})`}:{}}};Object(a.a)([Object(l.c)()],sa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],sa.prototype,"styles",void 0),sa=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],sa);var aa=sa,la=(s("c9b9"),Object(b.a)(aa,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("widget-root",{attrs:{styles:t.styles}},[s("div",{staticClass:"video",class:{style1:1==t.content.proportion,style2:2==t.content.proportion,style3:3==t.content.proportion},style:[{"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"},t.videoStyle]})])}),[],!1,null,"67e49b48",null).exports);let oa=class extends l.e{};Object(a.a)([Object(l.c)()],oa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],oa.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],oa.prototype,"index",void 0),Object(a.a)([Object(l.c)()],oa.prototype,"operate",void 0),oa=Object(a.a)([Object(l.a)({components:{Contents:la,WidgetPackage:h.a}})],oa);var ia=oa,ra={attribute:ea,contents:la,widget:Object(b.a)(ia,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let na=class extends l.e{constructor(){super(...arguments),this.limit=10}get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}handleAdd(){this.content.data.length<this.limit?this.content.data.push({url:"",title:"标题名称",title_color:"#333333",subtitle:"副标题名称",subtitle_color:"#666666",link:{},bg_color:"#FFFFFF"}):this.$message.warning(`最多添加${this.limit}条`)}handleDelete(t){this.content.data.length<=1||this.content.data.splice(t,1)}};na=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,LinkSelect:A.a,Draggable:Pt.a}})],na);var ca=na,da=(s("61ba"),Object(b.a)(ca,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"图文"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"图片设置",desc:"最多可添加"+t.limit+"条,图片建议尺寸:280*280"}},[s("div",{staticClass:"graphic-list"},[s("draggable",{attrs:{animation:"300"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}},t._l(t.content.data,(function(e,a){return s("div",{key:a,staticClass:"graphic-item ls-del-wrap"},[s("el-form-item",{attrs:{label:"图片","label-width":"60px"}},[s("material-select",{attrs:{size:50,"enable-domain":!1,"upload-bg":"#fff"},model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}},[s("i",{staticClass:"el-icon-plus lg"})])],1),s("el-form-item",{attrs:{label:"主标题","label-width":"60px"}},[s("el-input",{staticStyle:{width:"260px"},attrs:{"show-word-limit":"",placeholder:"请输入标题"},model:{value:e.title,callback:function(s){t.$set(e,"title",s)},expression:"item.title"}})],1),s("el-form-item",{attrs:{label:"颜色","label-width":"60px"}},[s("color-select",{attrs:{"reset-color":"#333333"},model:{value:e.title_color,callback:function(s){t.$set(e,"title_color",s)},expression:"item.title_color"}})],1),s("el-form-item",{attrs:{label:"主标题","label-width":"60px"}},[s("el-input",{staticStyle:{width:"260px"},attrs:{"show-word-limit":"",placeholder:"请输入标题"},model:{value:e.subtitle,callback:function(s){t.$set(e,"subtitle",s)},expression:"item.subtitle"}})],1),s("el-form-item",{attrs:{label:"颜色","label-width":"60px"}},[s("color-select",{attrs:{"reset-color":"#666666"},model:{value:e.subtitle_color,callback:function(s){t.$set(e,"subtitle_color",s)},expression:"item.subtitle_color"}})],1),s("el-form-item",{attrs:{label:"链接","label-width":"60px"}},[s("link-select",{model:{value:e.link,callback:function(s){t.$set(e,"link",s)},expression:"item.link"}})],1),s("el-form-item",{attrs:{label:"背景色","label-width":"60px"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:e.bg_color,callback:function(s){t.$set(e,"bg_color",s)},expression:"item.bg_color"}})],1),t.content.data.length>1?s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.handleDelete(a)}}}):t._e()],1)})),0),s("el-form-item",{attrs:{"label-width":"0"}},[t.content.data.length<t.limit?s("el-button",{staticClass:"add-btn",attrs:{size:"small"},on:{click:t.handleAdd}},[t._v("+ 添加")]):t._e()],1)],1)])],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"a562f6e4",null).exports);let ua=class extends l.e{};Object(a.a)([Object(l.c)()],ua.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ua.prototype,"styles",void 0),ua=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],ua);var ba=ua,ma=(s("101c"),Object(b.a)(ba,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"graphic"},[a("div",{staticClass:"graphic-list"},t._l(t.content.data,(function(e,l){return a("div",{key:l,staticClass:"graphic-item flex-col",style:{"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[a("el-image",{staticStyle:{width:"100%",height:"140px"},attrs:{src:t.$getImageUri(e.url),fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})]),a("div",{staticClass:"info",style:{"background-color":e.bg_color}},[a("div",{staticClass:"title line-1",style:{color:e.title_color}},[t._v(" "+t._s(e.title)+" ")]),a("div",{staticClass:"subtitle line-1",style:{color:e.subtitle_color}},[t._v(" "+t._s(e.subtitle)+" ")])])],1)})),0)])])}),[],!1,null,"5a540c56",null).exports);let pa=class extends l.e{};Object(a.a)([Object(l.c)()],pa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],pa.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],pa.prototype,"index",void 0),Object(a.a)([Object(l.c)()],pa.prototype,"operate",void 0),pa=Object(a.a)([Object(l.a)({components:{Contents:ma,WidgetPackage:h.a}})],pa);var ga=pa,va={attribute:da,contents:ma,widget:Object(b.a)(ga,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let fa=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"大图模式",value:1},{name:"一行2个",value:2},{name:"列表模式",value:3}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};fa=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,ActivitySelect:Ds.a}})],fa);var ha=fa,ya=Object(b.a)(ha,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"小程序插件"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择直播间"}},[s("el-form-item",{attrs:{label:"直播间数量"}},[s("slider",{attrs:{min:1,max:10},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1)],1),s("attribute-item",{attrs:{title:"直播间列表样式"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"头部设置"}},[s("el-form-item",{attrs:{label:"头部背景"}},[s("el-radio-group",{model:{value:t.content.header_bg_type,callback:function(e){t.$set(t.content,"header_bg_type",e)},expression:"content.header_bg_type"}},[s("el-radio",{attrs:{label:1}},[t._v("背景颜色")]),s("el-radio",{attrs:{label:2}},[t._v("背景图片")])],1),1==t.content.header_bg_type?s("color-select",{staticClass:"m-t-10",attrs:{"reset-color":"#FF5F4E"},model:{value:t.styles.header_bg_color,callback:function(e){t.$set(t.styles,"header_bg_color",e)},expression:"styles.header_bg_color"}}):[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_bg_image,callback:function(e){t.$set(t.content,"header_bg_image",e)},expression:"content.header_bg_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])]],2),s("el-form-item",{attrs:{label:"左侧图标"}},[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_icon_image,callback:function(e){t.$set(t.content,"header_icon_image",e)},expression:"content.header_icon_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])],1),s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.header_title,callback:function(e){t.$set(t.content,"header_title",e)},expression:"content.header_title"}})],1),s("el-form-item",{attrs:{label:"标题颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_title_color,callback:function(e){t.$set(t.styles,"header_title_color",e)},expression:"styles.header_title_color"}})],1),s("el-form-item",{attrs:{label:"标题大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.header_title_size,callback:function(e){t.$set(t.styles,"header_title_size",e)},expression:"styles.header_title_size"}})],1)],1),s("attribute-item",{attrs:{title:"更多按钮"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_haeder_more,callback:function(e){t.$set(t.content,"show_haeder_more",e)},expression:"content.show_haeder_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.header_more_text,callback:function(e){t.$set(t.content,"header_more_text",e)},expression:"content.header_more_text"}})],1),s("el-form-item",{attrs:{label:"按钮颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_more_color,callback:function(e){t.$set(t.styles,"header_more_color",e)},expression:"styles.header_more_color"}})],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.content_bg_color,callback:function(e){t.$set(t.styles,"content_bg_color",e)},expression:"styles.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"直播背景"}},[s("color-select",{attrs:{"reset-color":"#F8F8F8"},model:{value:t.styles.bg_color,callback:function(e){t.$set(t.styles,"bg_color",e)},expression:"styles.bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"直播间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:t.styles.goods_border_radius,callback:function(e){t.$set(t.styles,"goods_border_radius",e)},expression:"styles.goods_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"04e9aed8",null).exports;let _a=class extends l.e{get lists(){const{num:t}=this.content;return[...Array(t).keys()].map(()=>({}))}get headerStyle(){const{header_bg_type:t,header_bg_image:e}=this.content,{header_bg_color:s}=this.styles;return 1==t?{"background-color":s}:{"background-image":`url(${this.$getImageUri(e)})`}}};Object(a.a)([Object(l.c)()],_a.prototype,"content",void 0),Object(a.a)([Object(l.c)()],_a.prototype,"styles",void 0),_a=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],_a);var xa=_a,Aa=(s("4fc6"),Object(b.a)(xa,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"mnplive",style:{"background-color":t.styles.content_bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[a("div",{staticClass:"mnplive-header flex",style:[t.headerStyle]},[a("div",{staticClass:"flex-1 flex"},[t.content.header_icon_image?a("img",{staticClass:"flex-none m-r-5",staticStyle:{height:"22px"},attrs:{src:t.$getImageUri(t.content.header_icon_image)}}):t._e(),a("div",{staticClass:"line-1",style:{"max-width":"200px",color:t.styles.header_title_color,"font-size":t.styles.header_title_size+"px"}},[t._v(" "+t._s(t.content.header_title)+" ")])]),t.content.show_haeder_more?a("div",{staticClass:"more flex-none xs",style:{color:t.styles.header_more_color}},[t._v(" "+t._s(t.content.header_more_text)+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),a("div",{staticClass:"mnplive-wrap",style:{margin:"-"+t.styles.margin/2+"px"}},[a("div",{staticClass:"mnplive-lists",class:{larger:1==t.content.style,perline:2==t.content.style,lists:3==t.content.style}},t._l(t.lists,(function(e,l){return a("div",{key:l,staticClass:"mnplive-item-wrap"},[a("div",{staticClass:"mnplive-item",style:{"background-color":t.styles.bg_color,margin:t.styles.margin/2+"px","border-radius":t.styles.goods_border_radius+"px"}},[a("div",{staticClass:"item-image"},[a("div",{staticClass:"status flex"},[a("img",{staticClass:"live-img",attrs:{src:s("22f6"),alt:""}}),a("span",{staticClass:"m-l-10 xs"},[t._v("直播中")])]),a("div",{staticClass:"name"},[t._v("直播间名称")]),a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"info"},[a("div",[a("span",{staticClass:"lg weight-500"},[t._v("主播:主播名")]),1==t.content.style?a("span",{staticClass:"sm"},[t._v(" | 直播商品:10件 ")]):a("div",{staticClass:"sm m-t-10"},[t._v("直播商品:10件")])]),a("div",{staticClass:"xs muted m-t-10"},[t._v("开播时间:2021-10-12 15:00")])])])])})),0)])])])}),[],!1,null,"26fc0100",null).exports);let wa=class extends l.e{};Object(a.a)([Object(l.c)()],wa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],wa.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],wa.prototype,"index",void 0),Object(a.a)([Object(l.c)()],wa.prototype,"operate",void 0),wa=Object(a.a)([Object(l.a)({components:{Contents:Aa,WidgetPackage:h.a}})],wa);var Ca=wa,ka={attribute:ya,contents:Aa,widget:Object(b.a)(Ca,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},Oa=(s("9a9a"),s("3b58")),ja=s.n(Oa),Fa=s("5c96"),Sa=s("6ddb");let za=class extends l.e{constructor(){super(...arguments),this.areaLists=[],this.activeIndex=-1}valueChange(t){this.areaLists=Object(Sa.c)(this.value)}handleDragging(t){const e=this.activeIndex;this.areaLists[e].areaX=t.left,this.areaLists[e].areaY=t.top}handleResizing(t){const e=this.activeIndex;this.areaLists[e].areaHeight=t.height,this.areaLists[e].areaWidth=t.width}handleAddarea(){if(this.areaLists.length>=20)return Object(Fa.Message)({type:"error",message:"最多允许创建20个热区"});this.areaLists.push({areaX:0,areaY:0,areaWidth:100,areaHeight:100,url:""})}handleClick(t){this.activeIndex=t}handleAreaSelct(t){this.activeIndex=t}handleDel(t){this.areaLists.splice(t,1)}onConfirm(){let t=!1;if(t=this.areaLists.some(t=>""==t.url),t)return Object(Fa.Message)({type:"error",message:"请完善热区信息"});this.$emit("input",this.areaLists),this.activeIndex=-1,this.$refs.dialog.close()}};Object(a.a)([Object(l.c)({default:""})],za.prototype,"imgSrc",void 0),Object(a.a)([Object(l.c)({default:""})],za.prototype,"imgUrl",void 0),Object(a.a)([Object(l.c)({default:()=>[]})],za.prototype,"value",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0,deep:!0})],za.prototype,"valueChange",null),za=Object(a.a)([Object(l.a)({components:{LsDialog:Ht.a,LinkSelect:A.a,VueDragResize:ja.a}})],za);var Ma=za,La=(s("6a3a"),Object(b.a)(Ma,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ls-dialog",{ref:"dialog",staticClass:"link-select",attrs:{title:"热区选择器",width:"1250px",top:"10vh",disabled:""==t.imgUrl,clickModalClose:!1,async:!0},on:{confirm:t.onConfirm}},[s("div",{attrs:{slot:"trigger"},slot:"trigger"},[s("el-button",{staticClass:"add-banner",attrs:{size:"small",disabled:""==t.imgUrl}},[t._v("+ 添加热区")]),""==t.imgUrl?s("div",{staticClass:"area-tip"},[t._v("请先选择图片")]):s("div",{staticClass:"area-tip"},[t._v("当前创建了"+t._s(t.areaLists.length)+"/20个热区")])],1),s("el-scrollbar",{staticClass:"area-scrollbar ls-scrollbar"},[s("div",{staticClass:"container"},[s("div",{staticClass:"image"},[s("img",{staticClass:"image",attrs:{src:t.imgSrc}}),t._l(t.areaLists,(function(e,a){return s("VueDragResize",{key:a,staticClass:"area-select",attrs:{isActive:t.activeIndex==a,w:e.areaWidth,h:e.areaHeight,parentLimitation:"",minw:50,minh:50,x:e.areaX,y:e.areaY},on:{dragging:t.handleDragging,resizing:t.handleResizing,clicked:function(e){return t.handleClick(a)}}},[s("div",{staticClass:"text-tip"},[s("div",[t._v(" "+t._s(e.url.name)+" ")])])])}))],2),s("div",{staticClass:"area"},[s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"310px"}},t._l(t.areaLists,(function(e,a){return s("div",{key:a,staticClass:"link",class:{"active-area":t.activeIndex==a},on:{click:function(e){return t.handleAreaSelct(a)}}},[s("link-select",{model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}}),s("i",{staticClass:"el-icon-close del",on:{click:function(e){return t.handleDel(a)}}})],1)})),0),s("div",{staticStyle:{margin:"10px 20px"}},[t._v("当前创建了"+t._s(t.areaLists.length)+"/20个热区")]),s("div",{staticClass:"btn"},[s("el-button",{attrs:{size:"small"},on:{click:t.handleAddarea}},[t._v("添加热区")])],1)],1)])])],1)}),[],!1,null,null,null).exports);let Ea=class extends l.e{get areaLists(){return this.$store.getters.content}get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}handlechange(){return this.$store.getters.content.data.areaLists=[]}};Ea=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,LinkSelect:A.a,Draggable:Pt.a,HotareaSelect:La}})],Ea);var Da=Ea,Ia=(s("b6c54"),Object(b.a)(Da,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"热区"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("div",{staticClass:"hotarea"},[s("div",{staticClass:"hotarea-tip"},[t._v("建议图片宽度750px,高度200px-2000px。")]),s("div",{staticClass:"image"},[t.content.data.imgurl?s("el-image",{attrs:{fit:"cover",src:t.$getImageUri(t.content.data.imgurl)}}):s("div",{staticStyle:{height:"180px","line-height":"180px"}},[t._v("750x高度不限")]),t._l(t.content.data.areaLists,(function(e,a){return t.content.data.imgurl?s("div",{key:a,staticClass:"area",style:{top:e.areaY+"px",left:e.areaX+"px",height:e.areaHeight+"px",width:e.areaWidth+"px"}},[t._v(" "+t._s(e.url.name)+" ")]):t._e()}))],2),s("div",{staticClass:"p-20",staticStyle:{background:"#f9f9f9","margin-top":"10px"}},[s("div",{staticClass:"flex m-b-8"},[s("div",{staticClass:"lighter m-r-20"},[t._v("图片")]),s("material-select",{ref:"materialSelect",staticClass:"m-r-10",attrs:{size:50,"upload-bg":"#fff","enable-domain":!1},on:{change:t.handlechange},model:{value:t.content.data.imgurl,callback:function(e){t.$set(t.content.data,"imgurl",e)},expression:"content.data.imgurl"}},[s("i",{staticClass:"el-icon-plus lg"})])],1)]),s("HotareaSelect",{attrs:{imgSrc:t.$getImageUri(t.content.data.imgurl),imgUrl:t.content.data.imgurl},model:{value:t.content.data.areaLists,callback:function(e){t.$set(t.content.data,"areaLists",e)},expression:"content.data.areaLists"}})],1)]),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"60cee0eb",null).exports);let $a=class extends l.e{};Object(a.a)([Object(l.c)()],$a.prototype,"content",void 0),Object(a.a)([Object(l.c)()],$a.prototype,"styles",void 0),$a=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],$a);var Ba=$a,Ra=(s("414d"),Object(b.a)(Ba,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-root",{attrs:{styles:this.styles}},[e("div",{},[e("div",{staticClass:"1"},[this.content.data.imgurl?e("div",{staticClass:"item-image"},[e("el-image",{staticStyle:{overflow:"visible"},attrs:{fit:"cover",src:this.$getImageUri(this.content.data.imgurl)}})],1):e("el-image",{staticStyle:{height:"375px",width:"100%"}},[e("div",{staticClass:"image-error muted flex row-center",attrs:{slot:"error"},slot:"error"},[e("i",{staticClass:"el-icon-picture font-size-40"})])])],1)])])}),[],!1,null,"1fa1c062",null).exports);let Pa=class extends l.e{};Object(a.a)([Object(l.c)()],Pa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Pa.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Pa.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Pa.prototype,"operate",void 0),Pa=Object(a.a)([Object(l.a)({components:{Contents:Ra,WidgetPackage:h.a}})],Pa);var Ua=Pa,Ta={attribute:Ia,contents:Ra,widget:Object(b.a)(Ua,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};let Na=class extends l.e{constructor(){super(...arguments),this.styleData=[{name:"列表模式",value:1},{name:"横向滑动",value:2}]}get content(){return this.$store.getters.content}set content(t){const e={key:"content",value:t};this.$store.commit("setAttribute",e)}get styles(){return this.$store.getters.styles}};Na=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,MaterialSelect:W.a,ActivitySelect:Ds.a}})],Na);var Ya=Na,Wa=Object(b.a)(Ya,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"预售活动"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"选择预售商品"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("el-radio-group",{model:{value:t.content.data_type,callback:function(e){t.$set(t.content,"data_type",e)},expression:"content.data_type"}},[s("el-radio",{attrs:{label:1}},[t._v("自动获取")]),s("el-radio",{attrs:{label:2}},[t._v("手动添加")])],1)],1),1==t.content.data_type?s("el-form-item",{attrs:{label:"显示数量"}},[s("slider",{attrs:{min:1,max:10},model:{value:t.content.num,callback:function(e){t.$set(t.content,"num",e)},expression:"content.num"}})],1):s("el-form-item",{attrs:{"label-width":"0"}},[s("activity-select",{attrs:{type:"presell"},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)],1),s("attribute-item",{attrs:{title:"商品排列方式"}},[s("el-form-item",{attrs:{label:"","label-width":"0"}},[s("style-chose",{attrs:{data:t.styleData},model:{value:t.content.style,callback:function(e){t.$set(t.content,"style",e)},expression:"content.style"}})],1)],1),s("attribute-item",{attrs:{title:"头部设置"}},[s("el-form-item",{attrs:{label:"头部背景"}},[s("el-radio-group",{model:{value:t.content.header_bg_type,callback:function(e){t.$set(t.content,"header_bg_type",e)},expression:"content.header_bg_type"}},[s("el-radio",{attrs:{label:1}},[t._v("背景颜色")]),s("el-radio",{attrs:{label:2}},[t._v("背景图片")])],1),1==t.content.header_bg_type?s("color-select",{staticClass:"m-t-10",attrs:{"reset-color":"#A411D1"},model:{value:t.styles.header_bg_color,callback:function(e){t.$set(t.styles,"header_bg_color",e)},expression:"styles.header_bg_color"}}):[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_bg_image,callback:function(e){t.$set(t.content,"header_bg_image",e)},expression:"content.header_bg_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])]],2),s("el-form-item",{attrs:{label:"左侧图标"}},[s("material-select",{ref:"materialSelect",staticClass:"m-t-10",attrs:{size:60,"upload-bg":"#fff","enable-domain":!1},model:{value:t.content.header_icon_image,callback:function(e){t.$set(t.content,"header_icon_image",e)},expression:"content.header_icon_image"}},[s("i",{staticClass:"el-icon-plus lg"})]),s("div",{staticClass:"muted"},[t._v("建议尺寸:750*100像素")])],1),s("el-form-item",{attrs:{label:"标题文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"10","show-word-limit":"",placeholder:"请输入标题"},model:{value:t.content.header_title,callback:function(e){t.$set(t.content,"header_title",e)},expression:"content.header_title"}})],1),s("el-form-item",{attrs:{label:"标题颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_title_color,callback:function(e){t.$set(t.styles,"header_title_color",e)},expression:"styles.header_title_color"}})],1),s("el-form-item",{attrs:{label:"标题大小"}},[s("slider",{attrs:{min:12},model:{value:t.styles.header_title_size,callback:function(e){t.$set(t.styles,"header_title_size",e)},expression:"styles.header_title_size"}})],1)],1),s("attribute-item",{attrs:{title:"更多按钮"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_haeder_more,callback:function(e){t.$set(t.content,"show_haeder_more",e)},expression:"content.show_haeder_more"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮文字"}},[s("el-input",{staticStyle:{width:"280px"},attrs:{maxlength:"5","show-word-limit":"",placeholder:"按钮文字"},model:{value:t.content.header_more_text,callback:function(e){t.$set(t.content,"header_more_text",e)},expression:"content.header_more_text"}})],1),s("el-form-item",{attrs:{label:"按钮颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.header_more_color,callback:function(e){t.$set(t.styles,"header_more_color",e)},expression:"styles.header_more_color"}})],1)],1),s("attribute-item",{attrs:{title:"显示内容"}},[s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_title,callback:function(e){t.$set(t.content,"show_title",e)},expression:"content.show_title"}},[t._v("商品标题")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#101010"},model:{value:t.styles.title_color,callback:function(e){t.$set(t.styles,"title_color",e)},expression:"styles.title_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_price,callback:function(e){t.$set(t.content,"show_price",e)},expression:"content.show_price"}},[t._v("预定人数")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#FF2C3C"},model:{value:t.styles.price_color,callback:function(e){t.$set(t.styles,"price_color",e)},expression:"styles.price_color"}})],1)]),s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_scribing_price,callback:function(e){t.$set(t.content,"show_scribing_price",e)},expression:"content.show_scribing_price"}},[t._v("预售价格")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.scribing_price_color,callback:function(e){t.$set(t.styles,"scribing_price_color",e)},expression:"styles.scribing_price_color"}})],1)]),1==t.content.style?s("el-form-item",{attrs:{"label-width":"0"}},[s("div",{staticClass:"flex"},[s("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.content.show_sell,callback:function(e){t.$set(t.content,"show_sell",e)},expression:"content.show_sell"}},[t._v("划线原价")]),s("color-select",{staticClass:"m-l-10",attrs:{"reset-color":"#999999"},model:{value:t.styles.sell_color,callback:function(e){t.$set(t.styles,"sell_color",e)},expression:"styles.sell_color"}})],1)]):t._e()],1),s("attribute-item",{attrs:{title:"按钮设置"}},[s("el-form-item",{attrs:{label:"按钮显示"}},[s("el-radio-group",{model:{value:t.content.show_btn,callback:function(e){t.$set(t.content,"show_btn",e)},expression:"content.show_btn"}},[s("el-radio",{attrs:{label:1}},[t._v("显示")]),s("el-radio",{attrs:{label:0}},[t._v("隐藏")])],1)],1),s("el-form-item",{attrs:{label:"按钮背景"}},[s("color-select",{attrs:{"reset-color":"#A411D1"},model:{value:t.styles.btn_bg_color,callback:function(e){t.$set(t.styles,"btn_bg_color",e)},expression:"styles.btn_bg_color"}})],1),s("el-form-item",{attrs:{label:"文字颜色"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.btn_color,callback:function(e){t.$set(t.styles,"btn_color",e)},expression:"styles.btn_color"}})],1)],1)],1)],1),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"颜色设置"}},[s("el-form-item",{attrs:{label:"底部背景"}},[s("color-select",{attrs:{"reset-color":""},model:{value:t.styles.root_bg_color,callback:function(e){t.$set(t.styles,"root_bg_color",e)},expression:"styles.root_bg_color"}})],1),s("el-form-item",{attrs:{label:"组件背景"}},[s("color-select",{attrs:{"reset-color":"#FFFFFF"},model:{value:t.styles.content_bg_color,callback:function(e){t.$set(t.styles,"content_bg_color",e)},expression:"styles.content_bg_color"}})],1),s("el-form-item",{attrs:{label:"商品背景"}},[s("color-select",{attrs:{"reset-color":"#F8F8F8"},model:{value:t.styles.goods_bg_color,callback:function(e){t.$set(t.styles,"goods_bg_color",e)},expression:"styles.goods_bg_color"}})],1)],1),s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"商品间距"}},[s("slider",{model:{value:t.styles.margin,callback:function(e){t.$set(t.styles,"margin",e)},expression:"styles.margin"}})],1),s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1),s("el-form-item",{attrs:{label:"商品圆角"}},[s("slider",{model:{value:t.styles.goods_border_radius,callback:function(e){t.$set(t.styles,"goods_border_radius",e)},expression:"styles.goods_border_radius"}})],1)],1)],1)],1)])],1)}),[],!1,null,"89e51f46",null).exports;let Qa=class extends l.e{get goods(){const{data:t,data_type:e,num:s}=this.content;return 1==e?[...Array(s).keys()].map(()=>({})):t.length?t:[{},{},{},{}]}get headerStyle(){const{header_bg_type:t,header_bg_image:e}=this.content,{header_bg_color:s}=this.styles;return 1==t?{"background-color":s}:{"background-image":`url(${this.$getImageUri(e)})`}}};Object(a.a)([Object(l.c)()],Qa.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Qa.prototype,"styles",void 0),Qa=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],Qa);var Ja=Qa,Va=(s("aff0"),Object(b.a)(Ja,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("widget-root",{attrs:{styles:t.styles}},[a("div",{staticClass:"seckill",style:{"background-color":t.styles.content_bg_color,"border-radius":t.styles.border_radius_top+"px "+t.styles.border_radius_top+"px "+t.styles.border_radius_bottom+"px "+t.styles.border_radius_bottom+"px"}},[a("div",{staticClass:"seckill-header flex",style:[t.headerStyle]},[a("div",{staticClass:"flex-1 flex"},[t.content.header_icon_image?a("img",{staticClass:"flex-none m-r-5",staticStyle:{height:"22px"},attrs:{src:t.$getImageUri(t.content.header_icon_image)}}):t._e(),a("div",{staticClass:"line-1",style:{"max-width":"200px",color:t.styles.header_title_color,"font-size":t.styles.header_title_size+"px"}},[t._v(" "+t._s(t.content.header_title)+" ")])]),t.content.show_haeder_more?a("div",{staticClass:"more flex-none xs",style:{color:t.styles.header_more_color}},[t._v(" "+t._s(t.content.header_more_text)+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()]),a("div",{staticClass:"seckill-goods",style:{margin:"-"+t.styles.margin/2+"px",padding:"10px"}},[a("div",{staticClass:"goods-lists",class:{lists:1==t.content.style,swiper:2==t.content.style}},t._l(t.goods,(function(e,l){return a("div",{key:l,staticClass:"goods-wrap"},[a("div",{staticClass:"goods-item",style:{"background-color":t.styles.goods_bg_color,margin:t.styles.margin/2+"px","border-radius":t.styles.goods_border_radius+"px"}},[a("div",{staticClass:"goods-image"},[a("el-image",{attrs:{src:e.image,fit:"cover"}},[a("img",{staticClass:"image-error",attrs:{slot:"error",src:s("eccb"),alt:""},slot:"error"})])],1),a("div",{staticClass:"goods-info p-5"},[t.content.show_title?a("div",{staticClass:"m-b-4 name",style:{color:t.styles.title_color}},[a("div",{class:2==t.content.style?"line-1":"line-2"},[t._v(" "+t._s(e.name||"这里是商品标题")+" ")])]):t._e(),1==t.content.style&&t.content.show_sell?a("div",{staticClass:"muted xs",style:{color:t.styles.sell_color}},[t._v(" 已预定0件 ")]):t._e(),1==t.content.style?a("div",{staticClass:"flex price-btn flex-wrap"},[a("div",{staticClass:"flex-1 flex col-baseline"},[t.content.show_price?a("div",{staticClass:"price weight-500 m-r-5 xl",style:{color:t.styles.price_color}},[a("span",{staticClass:"xs"},[t._v("¥")]),t._v(t._s(parseFloat(e.min_activity_price)||"0")+" ")]):t._e(),t.content.show_scribing_price?a("div",{staticClass:"muted line-through xs",style:{color:t.styles.scribing_price_color}},[t._v(" ¥"+t._s(parseFloat(e.min_price)||"0")+" ")]):t._e()]),1==t.content.style&&t.content.show_btn?a("div",{staticClass:"buy-btn xs",style:{"background-color":t.styles.btn_bg_color,color:t.styles.btn_color}},[t._v(" "+t._s(t.content.btn_text)+" ")]):t._e()]):a("div",{staticClass:"flex presell-price",style:{backgroundColor:t.styles.btn_bg_color,color:t.styles.btn_color}},[t._v(" 预售价 "),t.content.show_price?a("div",{staticClass:"weight-500 m-r-5 xl"},[a("span",{staticClass:"xs"},[t._v("¥")]),a("span",{staticClass:"xs"},[t._v(t._s(parseFloat(e.min_activity_price)||"0"))])]):t._e()])])])])})),0)])])])}),[],!1,null,"f5aa4498",null).exports);let Ga=class extends l.e{};Object(a.a)([Object(l.c)()],Ga.prototype,"content",void 0),Object(a.a)([Object(l.c)()],Ga.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],Ga.prototype,"index",void 0),Object(a.a)([Object(l.c)()],Ga.prototype,"operate",void 0),Ga=Object(a.a)([Object(l.a)({components:{Contents:Va,WidgetPackage:h.a}})],Ga);var Ha=Ga,Ka={attribute:Wa,contents:Va,widget:Object(b.a)(Ha,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports},Xa=s("a897");let Za=class extends l.e{constructor(){super(...arguments),this.Data=""}get areaLists(){return this.$store.getters.content}get content(){return this.$store.getters.content}get styles(){return this.$store.getters.styles}created(){}};Za=Object(a.a)([Object(l.a)({components:{AttributeTabs:o.a,ColorSelect:i.a,StyleChose:r.a,Slider:c.a,AttributeItem:n.a,Editor:Xa.a}})],Za);var qa=Za,tl=(s("9f22"),Object(b.a)(qa,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("attribute-tabs",{attrs:{title:"富文本"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("div",{staticStyle:{padding:"10px"}},[s("editor",{ref:"Editor",attrs:{decorate:!0,width:"375",menu:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","link","list","justify","quote","emoticon","image","undo","redo"]},model:{value:t.content.data,callback:function(e){t.$set(t.content,"data",e)},expression:"content.data"}})],1)]),s("div",{attrs:{slot:"styles"},slot:"styles"},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small","label-position":"left"}},[s("attribute-item",{attrs:{title:"边距设置"}},[s("el-form-item",{attrs:{label:"上边距"}},[s("slider",{model:{value:t.styles.padding_top,callback:function(e){t.$set(t.styles,"padding_top",e)},expression:"styles.padding_top"}})],1),s("el-form-item",{attrs:{label:"下边距"}},[s("slider",{model:{value:t.styles.padding_bottom,callback:function(e){t.$set(t.styles,"padding_bottom",e)},expression:"styles.padding_bottom"}})],1),s("el-form-item",{attrs:{label:"左右边距"}},[s("slider",{model:{value:t.styles.padding_horizontal,callback:function(e){t.$set(t.styles,"padding_horizontal",e)},expression:"styles.padding_horizontal"}})],1)],1),s("attribute-item",{attrs:{title:"圆角设置"}},[s("el-form-item",{attrs:{label:"上圆角"}},[s("slider",{model:{value:t.styles.border_radius_top,callback:function(e){t.$set(t.styles,"border_radius_top",e)},expression:"styles.border_radius_top"}})],1),s("el-form-item",{attrs:{label:"下圆角"}},[s("slider",{model:{value:t.styles.border_radius_bottom,callback:function(e){t.$set(t.styles,"border_radius_bottom",e)},expression:"styles.border_radius_bottom"}})],1)],1)],1)],1)])],1)}),[],!1,null,"f038b700",null).exports);let el=class extends l.e{};Object(a.a)([Object(l.c)()],el.prototype,"content",void 0),Object(a.a)([Object(l.c)()],el.prototype,"styles",void 0),el=Object(a.a)([Object(l.a)({components:{WidgetRoot:p.a}})],el);var sl=el,al=(s("5057"),Object(b.a)(sl,(function(){var t=this.$createElement,e=this._self._c||t;return e("widget-root",{attrs:{styles:this.styles}},[e("div",{staticClass:"preview flex-none",style:{"border-radius":this.styles.border_radius_top+"px "+this.styles.border_radius_top+"px "+this.styles.border_radius_bottom+"px "+this.styles.border_radius_bottom+"px"}},[e("div",{staticClass:"flex-1",staticStyle:{"min-height":"0"}},[e("div",{staticClass:"p-l-10 p-r-10",domProps:{innerHTML:this._s(this.content.data)}})])])])}),[],!1,null,"1cd46610",null).exports);let ll=class extends l.e{};Object(a.a)([Object(l.c)()],ll.prototype,"content",void 0),Object(a.a)([Object(l.c)()],ll.prototype,"styles",void 0),Object(a.a)([Object(l.c)()],ll.prototype,"index",void 0),Object(a.a)([Object(l.c)()],ll.prototype,"operate",void 0),ll=Object(a.a)([Object(l.a)({components:{Contents:al,WidgetPackage:h.a}})],ll);var ol=ll,il={attribute:tl,contents:al,widget:Object(b.a)(ol,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("widget-package",{attrs:{index:this.index,operate:this.operate}},[e("contents",{attrs:{content:this.content,styles:this.styles}})],1)],1)}),[],!1,null,null,null).exports};e.a={search:x,title:L,banner:Y,navigation:tt,category:ue,userinfo:_e,userorder:Se,userserve:Re,goodsgroup:vt,reviews:It,goodsrecom:kt,tabs:Gt,notice:Ve,blank:ss,separate:us,rubik:ws,coupon:Es,seckill:Ys,spellgroup:Zs,video:ra,graphic:va,mnplive:ka,hotarea:Ta,presell:Ka,edit:il}},ac98:function(t,e,s){"use strict";s("96e2")},ad40:function(t,e,s){"use strict";s("b060")},ae8d:function(t,e,s){"use strict";s("8842")},af3c:function(t,e,s){},afde:function(t,e,s){"use strict";s("a8e5")},aff0:function(t,e,s){"use strict";s("01d1")},b060:function(t,e,s){},b48d:function(t,e,s){"use strict";s("67b7")},b5b0:function(t,e,s){"use strict";s("7114")},b6c54:function(t,e,s){"use strict";s("a8bf")},b78d:function(t,e,s){"use strict";s("a0b0")},b87c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAYFBMVEUAAAATI/8zMzMwMDBMf/89dPowMDBJbf88dPk/cP8+dPovLy8zMzMvLy8vLy8vLy8tLS0zMzMvLy8+dPowMDAvLy8+cvsqKiowMDAwMDA+dPs9dPkuLi4wMDAwMDA+dPoiS9IzAAAAHnRSTlMAAQr1Cvb5B+Af+fgFkdtfORmN8ezNKh6v8OTj0LABWCnpAAABKklEQVRYw+2X646DIBBGGS9st4LWorbb3cX3f8v9quliai9jpmnThJOYjAQOA/xgUJFHQyyuD14wz6VGfAkLGnrPx29s2xTpXYqmtZuZgVRiC8+msImis/G/XmvPBD33ZmpAbIfxOmWgB8N2KsD6j7OXVZ0wqKvSw4F9mAi2Xvtyh4ABqV3pz1IwP3BWyhALoyp0b810C7+wszUCFqRqnFiDgwiC1Ps0YQlC/yi4Kfi4AleQrb5Xc9CYsQSksry/SJ4pepLArfP1SA/GCE2OJQD0eaLLMW/3/0sLjjEs5pj40mOkkZMg/EsziIIoeFuB63v32gwOzh2WCwLUAXrpxULgTa42QYEhKnHkRZa8zAspiApNxGYvKHUFxbak3Jc+OKRPHtmjK/Jg/gCNGEVtZ2YfywAAAABJRU5ErkJggg=="},b99a:function(t,e,s){"use strict";s.d(e,"f",(function(){return l})),s.d(e,"a",(function(){return o})),s.d(e,"d",(function(){return i})),s.d(e,"e",(function(){return r})),s.d(e,"c",(function(){return n})),s.d(e,"b",(function(){return c}));var a=s("f175");const l=()=>a.a.get("/config/getMarketingModule"),o=()=>a.a.get("/config/getAppModule"),i=t=>a.a.get("/common/activity",{params:t}),r=t=>a.a.get("/common/activityGoods",{params:t}),n=t=>a.a.post("award_integral/setConfig",t),c=()=>a.a.get("award_integral/getConfig")},ba96:function(t,e,s){"use strict";s("c091")},bba2:function(t,e,s){},bd89:function(t,e,s){"use strict";s("76e7")},c091:function(t,e,s){},c13e:function(t,e,s){"use strict";s("a405")},c20a:function(t,e,s){t.exports=s.p+"img/sort_two2.21f98bcc.png"},c2ca:function(t,e,s){"use strict";s("4be9")},c352:function(t,e){t.exports="data:image/png;base64,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"},c461:function(t,e,s){"use strict";s("603e")},c4618:function(t,e,s){"use strict";s("25f8")},c81f:function(t,e,s){t.exports=s.p+"img/coupon3.e2042ced.png"},c9b9:function(t,e,s){"use strict";s("6081")},cc5c:function(t,e,s){},cf9b:function(t,e,s){"use strict";s("04d0")},cfa9:function(t,e,s){"use strict";s("f2ac")},d133:function(t,e,s){"use strict";s("7b90")},d364:function(t,e,s){t.exports=s.p+"img/sort_three.4ae63002.png"},d6d3:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{get size(){return this.setOpacity?Number(this.value):this.value}set size(t){this.setOpacity?this.$emit("input",Number(t)):this.$emit("input",t)}};Object(a.a)([Object(l.c)()],o.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:0})],o.prototype,"min",void 0),Object(a.a)([Object(l.c)({default:40})],o.prototype,"max",void 0),Object(a.a)([Object(l.c)({default:!1})],o.prototype,"setOpacity",void 0),o=Object(a.a)([l.a],o);var i=o,r=s("2877"),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"slider flex"},[s("el-slider",{staticClass:"flex-1 m-r-10",attrs:{min:t.min,max:t.max},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}}),t.setOpacity?s("el-input",{staticStyle:{width:"100px"},attrs:{min:t.min,max:t.max,oninput:"value = (value.trim() === '') ? '0' : value.replace(/[^0-9]/g, '')"},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[s("template",{slot:"append"},[t._v("%")])],2):s("el-input-number",{staticStyle:{width:"90px"},attrs:{"controls-position":"right",min:t.min,max:t.max},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}})],1)}),[],!1,null,"57ecc5d6",null);e.a=n.exports},d8662:function(t,e,s){},d934:function(t,e,s){},db5c:function(t,e,s){t.exports=s.p+"img/sort_one.9580639b.png"},db8b:function(t,e,s){},ddf8:function(t,e,s){},df61:function(t,e){t.exports="data:image/png;base64,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"},e15d:function(t,e,s){},e38f:function(t,e){t.exports="data:image/png;base64,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"},e45a:function(t,e,s){"use strict";s("e9ff")},e4d0:function(t,e,s){},e560:function(t,e,s){"use strict";s("2841")},e648:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("0a6d"),i=s("3c50"),r=s("6ddb"),n=s("14c6");let c=class extends l.e{constructor(){super(...arguments),this.name="",this.pager=new r.a}get selectData(){return this.value}set selectData(t){this.$emit("input",t)}visibleChange(t){t.val&&this.getList()}getList(t){t&&(this.pager.page=t),this.pager.request({callback:n.j,params:{name:this.name,level:this.level}}).then(t=>{})}handleSelect(t,e){this.selectData=t?{name:e.name,id:e.id}:{}}};Object(a.a)([Object(l.b)("visible")],c.prototype,"visible",void 0),Object(a.a)([Object(l.c)()],c.prototype,"value",void 0),Object(a.a)([Object(l.c)()],c.prototype,"level",void 0),Object(a.a)([Object(l.f)("visible",{deep:!0,immediate:!0})],c.prototype,"visibleChange",null),c=Object(a.a)([Object(l.a)({components:{LsPagination:i.a}})],c);var d=c,u=s("2877"),b=Object(u.a)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticClass:"detail"},[s("div",{staticClass:"flex m-b-20"},[s("div",{staticClass:"m-r-10"},[t._v("分类搜索")]),s("el-input",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请输入分类名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,height:"370px",size:"mini"}},[s("el-table-column",{attrs:{label:"分类名称",prop:"name"}}),s("el-table-column",{attrs:{label:"商品数量",prop:"num"}}),s("el-table-column",{attrs:{label:"分类级别"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[1==a.level?s("div",[t._v("一级分类")]):t._e(),2==a.level?s("div",[t._v("二级分类")]):t._e(),3==a.level?s("div",[t._v("三级分类")]):t._e()]}}])}),s("el-table-column",{attrs:{label:"选择",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("el-checkbox",{attrs:{value:t.selectData.id==a.id},on:{change:function(e){return t.handleSelect(e,a)}}})]}}])})],1),s("div",{staticClass:"flex row-right m-t-20"},[s("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)}),[],!1,null,"2103d4fc",null).exports;let m=class extends l.e{constructor(){super(...arguments),this.category={}}valueChange(t){this.category=JSON.parse(JSON.stringify(t))}handleConfirm(){this.$emit("input",this.category)}};Object(a.a)([Object(l.c)({default:()=>({})})],m.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:!1})],m.prototype,"disabled",void 0),Object(a.a)([Object(l.c)()],m.prototype,"level",void 0),Object(a.a)([Object(l.f)("value",{immediate:!0,deep:!0})],m.prototype,"valueChange",null),m=Object(a.a)([Object(l.a)({components:{LsDialog:o.a,Detail:b}})],m);var p=m,g=Object(u.a)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ls-dialog",{ref:"dialog",staticClass:"category-select",attrs:{title:"选择分类",width:"900px",top:"20vh",disabled:t.disabled},on:{confirm:t.handleConfirm}},[s("div",{staticClass:"category-select__trigger",attrs:{slot:"trigger"},slot:"trigger"},[t._t("trigger",(function(){return[s("el-button",{attrs:{disabled:t.disabled,size:"mini",type:"primary"}},[t._v("选择分类")])]}))],2),s("div",{staticClass:"p-l-20 p-r-20"},[s("detail",{ref:"detail",attrs:{level:t.level},model:{value:t.category,callback:function(e){t.category=e},expression:"category"}})],1)])}),[],!1,null,"676a2c89",null);e.a=g.exports},e674:function(t,e,s){"use strict";s("125c")},e699:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40"),o=s("ac05"),i=s("4bb5"),r=s("1248"),n=s("ea05"),c=s("b3ad"),d=s("66bb");let u=class extends l.e{constructor(){super(...arguments),this.defaultConfig={setTitle:!0,setBg:!0}}get pagesInfo(){const{pagesInfo:t}=this.$store.state.decorate;return t}set pagesInfo(t){this.$store.commit("setPagesInfo",t)}get configs(){return Object.assign({},this.defaultConfig,this.config)}handleChange(t){this.pagesInfo.common.title=t.trim()}};Object(a.a)([Object(l.c)({default:()=>({})})],u.prototype,"config",void 0),u=Object(a.a)([Object(l.a)({components:{AttributeTabs:r.a,ColorSelect:n.a,MaterialSelect:c.a,AttributeItem:d.a}})],u);var b=u,m=s("2877"),p=Object(m.a)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-info"},[s("attribute-tabs",{attrs:{title:"页面设置"}},[s("el-form",{ref:"form",attrs:{"label-width":"80px",size:"small"}},[s("attribute-item",[t.configs.setTitle?s("el-form-item",{attrs:{label:"页面标题"}},[s("el-input",{attrs:{maxlength:"8","show-word-limit":"",placeholder:"请输入页面标题"},on:{change:t.handleChange},model:{value:t.pagesInfo.common.title,callback:function(e){t.$set(t.pagesInfo.common,"title",e)},expression:"pagesInfo.common.title"}})],1):t._e(),t.configs.setBg?s("el-form-item",{attrs:{label:"页面背景"}},[s("el-radio-group",{model:{value:t.pagesInfo.common.background_type,callback:function(e){t.$set(t.pagesInfo.common,"background_type",e)},expression:"pagesInfo.common.background_type"}},[s("el-radio",{attrs:{label:"1"}},[t._v("背景颜色")]),s("el-radio",{attrs:{label:"2"}},[t._v("背景图片")])],1)],1):t._e(),1==t.pagesInfo.common.background_type?s("el-form-item",[s("color-select",{attrs:{"reset-color":"#F5F5F5"},model:{value:t.pagesInfo.common.background_color,callback:function(e){t.$set(t.pagesInfo.common,"background_color",e)},expression:"pagesInfo.common.background_color"}})],1):t._e(),2==t.pagesInfo.common.background_type?s("el-form-item",[s("material-select",{attrs:{limit:1,size:60},model:{value:t.pagesInfo.common.background_image,callback:function(e){t.$set(t.pagesInfo.common,"background_image",e)},expression:"pagesInfo.common.background_image"}})],1):t._e(),t.configs.setBg?s("el-form-item",{attrs:{label:"文字颜色"}},[s("el-radio-group",{model:{value:t.pagesInfo.common.title_color,callback:function(e){t.$set(t.pagesInfo.common,"title_color",e)},expression:"pagesInfo.common.title_color"}},[s("el-radio",{attrs:{label:"1"}},[t._v("白色")]),s("el-radio",{attrs:{label:"2"}},[t._v("黑色")])],1)],1):t._e()],1)],1)],1)],1)}),[],!1,null,null,null).exports,g=s("4466");let v=class extends l.e{constructor(){super(...arguments),this.widgets="mobile"==this.client?o.a:g.a}get selectIndex(){return this.$store.state.decorate.selectIndex}set selectIndex(t){this.$store.commit("setSelectIndex",t)}};Object(a.a)([Object(l.c)({default:"mobile"})],v.prototype,"client",void 0),Object(a.a)([Object(l.c)()],v.prototype,"config",void 0),Object(a.a)([Object(i.b)("widgetName")],v.prototype,"widgetName",void 0),v=Object(a.a)([Object(l.a)({components:{PageInfo:p}})],v);var f=v,h=(s("afde"),Object(m.a)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"decorate-right"},[s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"100%"}},[s("div",{staticClass:"decorate-attr"},[t.selectIndex>=0?s("div",[t.widgets[t.widgetName]?s(t.widgets[t.widgetName].attribute,{tag:"component"}):t._e()],1):t._e(),-1==t.selectIndex?s("div",[s("page-info",{attrs:{config:t.config}})],1):t._e()])]),"mobile"==t.client?s("div",{staticClass:"btns"},[s("el-button",{attrs:{size:"small",type:"promary"},on:{click:function(e){t.selectIndex=-1}}},[t._v("页面设置")])],1):t._e()],1)}),[],!1,null,"333f4c94",null));e.a=h.exports},e9ff:function(t,e,s){},ea05:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");let o=class extends l.e{constructor(){super(...arguments),this.predefineColors=["#FF2C3C","#f7971e","#fa444d","#e0a356","#2f80ed","#2ec840"]}get color(){return this.value}set color(t){this.$emit("input",t)}reset(){this.color=this.resetColor}};Object(a.a)([Object(l.c)()],o.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:""})],o.prototype,"resetColor",void 0),o=Object(a.a)([l.a],o);var i=o,r=s("2877"),n=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"color-select flex flex-1"},[s("el-color-picker",{attrs:{predefine:t.predefineColors},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),s("el-input",{staticClass:"m-l-10 m-r-10 flex-1",attrs:{type:"text",readonly:""},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),s("el-button",{attrs:{type:"text"},on:{click:t.reset}},[t._v("重置")])],1)}),[],!1,null,"b03bb76e",null);e.a=n.exports},ea4b:function(t,e,s){t.exports={primary:"#4073fa",white:"#fff",asideMenuWidth:"150px",headerHeight:"64px"}},eb8c:function(t,e,s){},eccb:function(t,e,s){t.exports=s.p+"img/goods_image.0e6b7d88.png"},ed0c:function(t,e,s){"use strict";s("5264")},ee48:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAWlBMVEUAAAAwMDAvLy8zMzM9dPpMfv8nJycvLy8tLS0zMzNJcf8vLy8wMDAuLi4vLy89dPowMDAwMDAvLy8wMDAqKiouLi45OTk8c/o9c/suLi48cfo+c/owMDA+dPrpgovNAAAAHHRSTlMA8/cK9goGkTkZBo3sztnt3LBhXR4LCVvl02LiTaJFiwAAAOxJREFUWMPtldsOgyAMhkvZAM/uvDn2/q+5qosm6kWxJlsWvgtDv5A/DYEKkUhkW66auK61zhY5KoV5Yd0Kqy36AbQ61OqDx8HS6mACrfWtQkV0C59BkHWKVuUp0URyKlvtyCLPKteF1mf4cK772IxrLbQ5RzC9M3CksgB4cG0JSN0lMJBQnRujuFaBp48epVZU01au9V3AZZSXYSvPelEH/xTw1UOUXiSEWniVxY9J/pwhWxgSQdbMx1SAlQ5V4VgX/lgiv0S6n5CG2ea5m1DdAG53tt29ZtzTtOLaSh7QLDbbVFwrPsRIJLIRb797TwoIzVM4AAAAAElFTkSuQmCC"},f1ae:function(t,e,s){"use strict";s("f2ad")},f2ac:function(t,e,s){},f2ad:function(t,e,s){},f473:function(t,e){t.exports="data:image/png;base64,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"},f4fd:function(t,e,s){"use strict";s("a4ce")},f5b6:function(t,e,s){},f757:function(t,e,s){"use strict";s("1a24")},f77e:function(t,e,s){"use strict";var a=s("9ab4"),l=s("1b40");const o=s("6052"),i=s("b87c"),r=s("94ae"),n=s("ee48"),c=s("27ba"),d=s("92da"),u=s("a332"),b=s("6052"),m=s("7925"),p=s("9c89"),g=s("2d62"),v=s("e38f"),f=s("3869"),h=s("94a8"),y=s("5203"),_=s("66e1"),x=s("f473"),A=s("c352"),w=s("167a"),C=[{title:"常用组件",name:"basics",children:[{title:"搜索框",name:"search",icon:o,show:1,content:{text:"请输入关键字搜索"},styles:{text_align:"left",border_radius:0,root_bg_color:"",bg_color:"#FFFFFF",icon_color:"#999999",color:"#999999",padding_top:12,padding_horizontal:15,padding_bottom:12}},{title:"标题",name:"title",icon:i,show:1,content:{style:1,title:"主标题",subtitle:"副标题",hidden_subtitle:0,show_more:1,more_title:"更多",link:{}},styles:{root_bg_color:"",bg_color:"#F5F5F5",title_color:"#333333",title_font_size:14,subtitle_color:"#999999",subtitle_font_size:12,more_color:"#999999",padding_top:0,padding_horizontal:0,padding_bottom:0,border_radius_top:0,border_radius_bottom:0}},{title:"轮播图",name:"banner",icon:r,show:1,content:{data:[{url:"",link:{}}]},styles:{root_bg_color:"rgba(0,0,0,0)",border_radius:0,indicator_style:1,indicator_align:"left",indicator_color:"#FF2C3C",padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"菜单导航",name:"navigation",icon:n,show:1,content:{style:1,data:[{url:"",name:"导航",link:{}},{url:"",name:"导航",link:{}},{url:"",name:"导航",link:{}},{url:"",name:"导航",link:{}}]},styles:{nav_style:1,nav_line:2,nav_line_num:4,indicator_style:1,indicator_color:"#FF2C3C",bg_color:"#FFFFFF",root_bg_color:"",color:"#333333",padding_top:0,padding_horizontal:0,padding_bottom:0,border_radius_top:0,border_radius_bottom:0,img_border_radius:0}},{title:"图片魔方",name:"rubik",icon:c,show:1,content:{style:1,data:[{url:"",link:{}}]},styles:{border_radius:0,root_bg_color:"",line_color:"#e5e5e5",font_color:"#333",padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"公告",name:"notice",icon:u,show:1,content:{icon:"",icon_type:1,show_tag:1,num:1,data:[]},styles:{root_bg_color:"",bg_color:"#FFFFFF",border_radius:7,line_color:"#E5E5E5",color:"#333333",padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"视频",name:"video",icon:h,show:1,content:{url:"",video_type:1,poster:"",proportion:1},styles:{root_bg_color:"",border_radius_top:0,border_radius_bottom:0,padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"图文",name:"graphic",icon:y,show:1,content:{data:[{url:"",title:"标题名称",title_color:"#333333",subtitle:"副标题名称",subtitle_color:"#666666",link:{},bg_color:"#FFFFFF"}]},styles:{root_bg_color:"",border_radius_top:0,border_radius_bottom:0,padding_top:10,padding_horizontal:10,padding_bottom:0}},{title:"热区",name:"hotarea",icon:A,show:1,content:{data:{imgurl:"",areaLists:[]}},styles:{root_bg_color:"",border_radius_top:0,border_radius_bottom:0,padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"富文本",name:"edit",icon:s("df61"),show:1,content:{data:'<p><font face="微软雅黑">点击右侧编辑「富文本」👉</font></p><p><font face="微软雅黑">您可以对文字进行<b>加粗</b>、<i>斜体</i>、<u>下划线</u>、<strike>删除线</strike>、<font color="#46acc8">文字颜色</font>、以及字号<font size="5">大</font>小等简单排版操作。</font></p><p><font face="微软雅黑">也可以在这里插入图片,方便用户查看。</font></p>'},styles:{root_bg_color:"",border_radius_top:6,border_radius_bottom:6,padding_top:10,padding_horizontal:10,padding_bottom:0}}]},{title:"商品组件",name:"goods",children:[{title:"商品组",name:"goodsgroup",icon:p,show:1,content:{style:1,goods_type:1,show_title:1,show_price:1,show_scribing_price:1,show_btn:1,btn_text:"购买",category:{id:"",name:"",num:1},data:[]},styles:{title_color:"#333333",scribing_price_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#FF2C3C",content_bg_color:"",btn_color:"#FFFFFF",btn_border_radius:30,btn_border_color:"",root_bg_color:"",bg_color:"#FFFFFF",margin:10,padding:10,padding_top:10,padding_horizontal:10,padding_bottom:10,border_radius_top:0,border_radius_bottom:0,goods_border_radius:4}},{title:"选项卡",name:"tabs",icon:d,show:1,content:{active:0,show_line:1,has_active_bg:0,data:[{name:"选项卡",style:1,goods_type:1,show_title:1,show_price:1,show_scribing_price:1,show_btn:1,btn_text:"购买",category:{id:"",name:"",num:1},title_color:"#333333",scribing_price_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#FF2C3C",btn_color:"#FFFFFF",btn_border_radius:30,btn_border_color:"",root_bg_color:"",content_bg_color:"",bg_color:"#FFFFFF",padding:0,margin:10,padding_top:10,padding_horizontal:10,padding_bottom:10,goods_border_radius:4,data:[]}]},styles:{root_bg_color:"",bg_color:"#FFFFFF",color:"#333333",active_color:"#FF2C3C",line_color:"#FF2C3C",active_bg_color:"",padding:10,padding_top:0,padding_horizontal:0,padding_bottom:0,border_radius_top:0,border_radius_bottom:0}}]},{title:"营销组件",name:"marketing",children:[{title:"优惠券",name:"coupon",icon:g,show:1,content:{style:1,title:"超值优惠券",bg_type:1,data:[]},styles:{root_bg_color:"#FFFFFF",bg_color:"#FCE7E7",title_color:"#FFFFFF",bg_image:"",text_color:"#FF2C3C",btn_bg_color:"#FF2C3C",btn_text_color:"#FFFFFF",padding_top:10,padding_horizontal:10,padding_bottom:10,money_color:"#FF2C3C",condition_color:"#333333",scene_color:"#999999"}},{title:"限时秒杀",name:"seckill",icon:v,show:1,content:{style:1,data_type:1,num:1,data:[],header_bg_type:1,header_bg_image:"",header_icon_image:"",header_title:"超值秒杀",show_haeder_more:1,header_more_text:"更多",show_title:1,show_price:1,show_scribing_price:1,show_sell:1,show_btn:1,btn_text:"马上抢"},styles:{root_bg_color:"",content_bg_color:"#FFFFFF",goods_bg_color:"#F8F8F8",header_title_color:"#FFFFFF",header_more_color:"#FFFFFF",header_bg_color:"#FF624B",title_color:"#333333",scribing_price_color:"#999999",sell_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#FF2C3C",btn_color:"#FFFFFF",header_title_size:20,padding_top:10,margin:10,padding_horizontal:10,padding_bottom:10,goods_border_radius:4,border_radius_top:4,border_radius_bottom:4}},{title:"预售活动",name:"presell",icon:w,show:1,content:{style:1,data_type:1,num:1,data:[],header_bg_type:1,header_bg_image:"",header_icon_image:"",header_title:"预售精选",show_haeder_more:1,header_more_text:"更多",show_title:1,show_price:1,show_scribing_price:1,show_sell:1,show_btn:1,btn_text:"预定"},styles:{root_bg_color:"",content_bg_color:"#FFFFFF",goods_bg_color:"#F8F8F8",header_title_color:"#FFFFFF",header_more_color:"#FFFFFF",header_bg_color:"#B54BD5",title_color:"#333333",scribing_price_color:"#999999",sell_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#A411D1",btn_color:"#FFFFFF",header_title_size:20,padding_top:10,margin:10,padding_horizontal:10,padding_bottom:10,goods_border_radius:4,border_radius_top:4,border_radius_bottom:4}},{title:"拼团活动",name:"spellgroup",icon:f,show:1,content:{data:[],style:1,data_type:1,num:1,header_bg_type:1,header_bg_image:"",header_icon_image:"",header_title:"今日必拼",show_haeder_more:1,header_more_text:"更多",show_title:1,show_price:1,show_scribing_price:1,show_sell:1,show_btn:1,btn_text:"去拼团",show_group_num:1},styles:{root_bg_color:"",content_bg_color:"#FFFFFF",goods_bg_color:"#F8F8F8",header_title_color:"#FFFFFF",header_more_color:"#FFFFFF",header_bg_color:"#FF5382",title_color:"#333333",scribing_price_color:"#999999",sell_color:"#999999",price_color:"#FF2C3C",btn_bg_color:"#FF2C3C",btn_color:"#FFFFFF",group_num_color:"#FF2C3C",header_title_size:20,padding_top:10,margin:10,padding_horizontal:10,padding_bottom:10,goods_border_radius:4,border_radius_top:4,border_radius_bottom:4}},{title:"小程序直播",name:"mnplive",icon:_,show:1,content:{style:1,num:1,data:[],header_bg_type:1,header_bg_image:"",header_icon_image:"",header_title:"直播间",show_haeder_more:1,header_more_text:"更多"},styles:{root_bg_color:"",content_bg_color:"",bg_color:"#FFFFFF",header_title_color:"#333333",header_more_color:"#999999",header_bg_color:"",title_color:"#333333",header_title_size:18,padding_top:0,margin:20,padding_horizontal:10,padding_bottom:0,goods_border_radius:4,border_radius_top:4,border_radius_bottom:4}}]},{title:"辅助类",name:"auxiliary",children:[{title:"空白间距",name:"blank",show:1,icon:b,styles:{height:10,bg_color:"#FFFFFF",root_bg_color:"",border_radius_bottom:0,padding_top:0,padding_horizontal:0,padding_bottom:0}},{title:"分割线",show:1,name:"separate",icon:m,content:{separate:"solid"},styles:{root_bg_color:"",line_color:"#e5e5e5",padding_top:10,padding_horizontal:0,padding_bottom:10}}]}],k=[{title:"广告位",name:"adv",icon:x,show:1,content:{data:[{url:"",link:{}}],style:1},styles:{}},{title:"商品组",name:"goodsgroup",icon:p,show:1,content:{data:[],title:"主标题",subtitle:"副标题",show_more:1,show_adv:1,adv_url:"",adv_link:{},goods_type:1,category:{id:"",name:"",num:1}},styles:{}},{title:"限时秒杀",name:"seckill",icon:v,show:1,content:{data:[],title:"限时秒杀",show_more:1,data_type:1,num:1},styles:{}}];var O=s("4bb5");let j=class extends l.e{constructor(){super(...arguments),this.leftMenu="pc"==this.client?k:C}get dragTarget(){return this.$store.state.decorate.dragTarget}set dragTarget(t){this.$store.commit("setDragTarget",t)}get dragIndex(){return this.$store.state.decorate.dragIndex}set dragIndex(t){this.$store.commit("setDragIndex",t)}get widgetData(){return this.$store.state.decorate.widgetData}set widgetData(t){this.$store.commit("setWidgetData",t)}dragStart(t){this.dragTarget="widget",this.widgetData=t}dragEnd(){this.dragTarget="",this.widgetData=null,this.dragIndex=-2}};Object(a.a)([Object(l.c)({default:"mobile"})],j.prototype,"client",void 0),Object(a.a)([Object(O.b)("widgetName")],j.prototype,"widgetName",void 0),j=Object(a.a)([l.a],j);var F=j,S=(s("abe7"),s("2877")),z=Object(S.a)(F,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"decorate-left",class:{pc:"pc"==t.client}},[s("el-scrollbar",{staticClass:"ls-scrollbar",staticStyle:{height:"100%"}},["pc"==t.client?s("ul",{staticClass:"widget-list flex flex-wrap"},t._l(t.leftMenu,(function(e,a){return s("li",{key:a,staticClass:"widget-item flex-col row-center col-center",attrs:{draggable:!0},on:{dragstart:function(s){return t.dragStart(e)},dragend:t.dragEnd}},[s("img",{staticClass:"item-icon",attrs:{draggable:!1,src:e.icon,mode:""}}),s("div",{staticClass:"m-t-5"},[t._v(t._s(e.title))])])})),0):s("div",{staticClass:"p-16"},[s("el-collapse",{attrs:{value:["basics","goods","marketing","auxiliary"]}},t._l(t.leftMenu,(function(e,a){return s("el-collapse-item",{key:a,attrs:{name:e.name}},[s("template",{slot:"title"},[s("span",{staticClass:"sm"},[t._v(t._s(e.title)+"("+t._s(e.children.length)+")")])]),s("ul",{staticClass:"widget-list flex flex-wrap"},t._l(e.children,(function(e,a){return s("li",{key:a,staticClass:"widget-item flex-col row-center col-center",attrs:{draggable:!0},on:{dragstart:function(s){return t.dragStart(e)},dragend:t.dragEnd}},[s("img",{staticClass:"item-icon",attrs:{draggable:!1,src:e.icon,mode:""}}),s("div",{staticClass:"m-t-5"},[t._v(t._s(e.title))])])})),0)],2)})),1)],1)])],1)}),[],!1,null,"46e22768",null);e.a=z.exports},f886:function(t,e,s){t.exports=s.p+"img/sort_one2.6d9536a1.png"},f88e:function(t,e,s){t.exports=s.p+"img/title_style2.df5a4858.png"},f8e8:function(t,e,s){"use strict";s("af3c")},fc06:function(t,e,s){},fc7a:function(t,e,s){"use strict";s("fc06")},fc8d:function(t,e,s){"use strict";s("d8662")},fcda:function(t,e,s){"use strict";s("cc5c")},fe7b:function(t,e,s){"use strict";s("14d9");var a=s("9ab4"),l=s("1b40"),o=s("2b1d"),i=s("b3ad"),r=s("b76a"),n=s.n(r);let c=class extends l.e{constructor(){super(...arguments),this.index=-1}get banner(){return this.value}set banner(t){this.$emit("input",t)}handleAdd(){this.banner.length<this.limit?this.banner.push({url:"",link:{}}):this.$message.error(`最多添加${this.limit}张图片`)}handleDelete(t){if(this.banner.length<=1)return this.$message.error("最少保留一张图片");this.banner.splice(t,1)}};Object(a.a)([Object(l.c)()],c.prototype,"value",void 0),Object(a.a)([Object(l.c)({default:9999})],c.prototype,"limit",void 0),Object(a.a)([Object(l.c)()],c.prototype,"client",void 0),Object(a.a)([Object(l.c)({default:!1})],c.prototype,"closeDelete",void 0),c=Object(a.a)([Object(l.a)({components:{MaterialSelect:i.a,LinkSelect:o.a,Draggable:n.a}})],c);var d=c,u=(s("1a52"),s("2877")),b=Object(u.a)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banner"},[s("div",[s("div",{staticClass:"banner-list"},[s("draggable",{attrs:{animation:"300"},model:{value:t.banner,callback:function(e){t.banner=e},expression:"banner"}},t._l(t.banner,(function(e,a){return s("div",{key:a,staticClass:"banner-item ls-del-wrap m-b-20"},[s("material-select",{attrs:{"enable-domain":!1,"enable-delete":!1},scopedSlots:t._u([{key:"preview",fn:function(t){var e=t.item;return[s("div",{staticClass:"banner-iamge muted"},[s("el-image",{attrs:{fit:"cover",src:e}})],1)]}}],null,!0),model:{value:e.url,callback:function(s){t.$set(e,"url",s)},expression:"item.url"}},[s("div",{staticClass:"banner-iamge muted",attrs:{slot:"upload"},slot:"upload"},[s("div",{staticClass:"add-image flex-col row-center col-center"},[s("i",{staticClass:"el-icon-plus font-size-30"}),t._v(" 添加图片 ")])])]),s("div",{staticClass:"flex m-t-10"},[s("div",{staticClass:"m-r-10 lighter"},[t._v("链接地址")]),s("link-select",{attrs:{client:t.client},model:{value:e.link,callback:function(s){t.$set(e,"link",s)},expression:"item.link"}})],1),t.closeDelete?t._e():s("i",{staticClass:"el-icon-close ls-icon-del",on:{click:function(e){return t.handleDelete(a)}}})],1)})),0)],1),t.banner.length<t.limit?s("el-button",{staticClass:"add-banner",attrs:{size:"small"},on:{click:t.handleAdd}},[t._v("+ 添加图片")]):t._e()],1)])}),[],!1,null,"f8f818f0",null);e.a=b.exports},ffda:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAABsCAMAAACBzDx8AAABJlBMVEX///8AAAD////////////////////////////////////////////////////////////////////////////////+/v7e4ej8/Pz5+fn7+/sfHx8jIyPk5OS9vb03NzcsLCw0NDQbGxv29vaLi4v09PTBwcFQUFAmJibo6Oi5ubliYmIpKSl/f39bW1vd3d1qamrZ2dnW1tZJSUns7OxlZWVeXl46Ojq2trZMTEzv7+/h4eHT09PGxsazs7TLy8uHh4eDg4NtbW1VVVU+Pj5paWny8vJDQ0MxMTGxsrKamppwcXETExPKysqenp54eHhYWFhGRkYYGBijo6OPj498fHx1dXXz8/PNzc2pqqqlpaahoaHQ0NCtrq6VlZXb29tHR0cKCgpkJ+t4AAAAFXRSTlP8AAGM8wuh+dXTlD8JvbxI4NxFMzLQ81p1AAAHqElEQVR42uzWwQnDMBAAwZNkB4yDSUjUf6vhUoP8OJipYR8brff2Gcc2YYHtGN9sKnp7DlWx0Db21qPt14yYsEjEvPYW7aErVpf16HGqiuXijDGVxWIxR7wmLPf2V9zAt3MPg8WfsKhBWCRhUYOwSMKiBmGRhEUNwiIJixqERRIWNQiLJCxqEBZJWNQgLH7s0gEJAAAAw6D+rc9iHDSDEYsPYhGx+CAWEYsPYhGx+CAWEYsPYhGx+CAWEYuxW3c7iQNhGMev4nnz9pO2fFeEFoqI0IJQLFgRd5cAi6Lx/m9i26KSTTwx8cR0fkeTd5I5+mdmfgYRlpASYQk/gwhLSImwvhkTvo6IPptytgUBEGEd0QlSLB8Ry+8YH+izA5gBEdW7nIdFkB4P+CrG03kFEmdwImkMaNdL0ReQ+7C24RRE0NwX900xzW3tOLPZLHZao+4m3qxW8WZSKoOQYnidxhCEE+KrdnA9LbSB/evh2Fze68p1WIyb/gVYRveupmYUdQlGua82H6bN6NXX51EUqo0o6nVvspaIsXWUM3uROfgEghyHhmE0OpMnwDEHYAj5DotQTsIihn6///OmDoZU7abTS8VHWUKr9wxJKhKQdeVdWGZDydTuqgwCrZrjakGXwNDCvl5J2cOcv4i5DsvzBr+aV/Ut/kMoVqtue9i6tSoYDLWFcTtou0UARIAeWaXRaJcYuWNlDQbAEs4LGiQpaVG1UqoyyfnFleew+Mzszeeh8QxJ/sBEKD80eomCoiOumUZtPjdNHwzCy8oyKyAkCO1Cf3tccxYWJ0UWDsEiCOxHYyzCyi0uxRMz3DgBCCfZjdXfjZbDtaWjGwaXFdseZ3+v+spQHNf/WwSzDK9T22X1yHVtuzF3nob73/t0wvBVW4T1j307XU4TjMI4fhXP6XlFNongAmis+xZRo9aYRatJjUlq7/8myotJZtLtW1M78P+giI4zzPzmwLDEN0YldwFmrSBrNuVrvwMIp3g4xrJRHGGy60FTzsCothybxHBR/ArGqZOzwQBBbZgNc6ab+4rpC6heARi4+eQYK74JPK1u2pjkVplMRjHS8vXbHMg6Rq1WrDkLDUUHJTdAX8IiVLNgor7pPuKTYWhgAITq5vp2bA6vB91pD+iuAlj6Mt7z6mhg0V8Pv0q0jPQGKVvTtN7WHfY0zdZUIHtyLs9jDc8fUHOg6idoSlggkq4Yk3PDV0ZybB1ilPSpKt8EUHFPAK15ZFv6zh0LLPrw1yP8FKOnm8uQDQEE1V2D8DaWsDqvsMDMALJdL22ss6+/JoG1YnhgRruKSvoE7TzomLb03Ys1LCKUa6NaU9nCGmj4mhug4OXBELfn5fLwdhhOrWrZwelsfoBFjLD2fdFIeyXIT8QEmdUyxzOPAW8UwhrAG+fBx7Ol79+xwPonOwiG5tojH9dK9XTxhFIIa76wJazRvtUaK43WftkZOuilmy8Tq/3lc7mRU1y9Xrzxw+qjPgiMnT+cFvQNW3oxgrVd9cHHs6Xv39HA+ieJ1s3dRx+lJzzlHsKJdQLVDUAg0W6jZ/R5MkF9ia3ygE+LS0C9WCqrmWnWi/Wb0U2Y31rNwYy8uTuZVbVFv5LZoit3hWYNMS++sBj3GZv2dTBw07JQCmFxfWyBGNc+HlxNmtlekT/NqqdBB7D8pde3yroKJoQxLtNXYODCEIHZwby9DoFKWPDcTnK6IaYxHs+R/ShhVdwAESx8zvTAwMjBmVEbbJpgNBdXWnoXWZq0wRg2DsdPESzlCik8rp6wCblhsnesAyw7s0tOkMY28RV3EaxAOXuG9RCqEKhOR/hijJf6GqlHd5lvny8CRLFAWcIi2QGWwNppH2B9Wl0BFQkr36glEyu+cTSxUDKKoAOsyd4Ho9LIzLvuNpu3Ln1lWgEJb+ExiAj8EyxGvofoWuGdo1cPsBhDPea3zySwgE3GhohgpXA7KwE7d2DWdA0pFIwgD2aIYU2AgBdYkDHOlLlcphS8EFLHHECgG/3P/beYXyyMNSyKYHG5zmCcuhLEViLb+7hX0uuqIJFnRGUtRDEucvXiS6NoYhFxNLFwKslVQliMzq4a731h3GG16oDVgXrfvF7MwVA1gU+ZPmCP0rmGU7u93nhBEHjBhQZCBCv98bVlBAtIRbCYMNEuB6uneM8qWexh3S19EDEqhuI6pQgE475VBaNtzzdFZ6qbMyNslik8f1s2S2KSlU3YzsyfYW1MFczIj1e5cRcMivtN7zGHJZpa9M5qSRXRKgZER66hw8eUEMKSMWSEM80CPS+3+yVQtNQtZKOlrt2L+w0zspjD+mPEvxs6f756kjxeGJbAesHzhgnhbW8QEeM1YvphLSUPfskSWEmHElhJ/0cJrCRZAivp/yiBlSRLYCX9HyWwkmQJrO/s0kEJgAAARTEPghawf1X5HfTwYMswGsRixKJBLEYsGsRixKJBLEYsGsRixKJBLEYsGsRixKJBLEYsGsRixKJBLEYsGsRixKJBLH5xXA987jzuh7f9ersBGIRCAArXR63VmDS5+6/qEnxyZiAQTO7F9BqaGrLgd65M7vlAV5aJISfBthOOlskAuRsRXMXP0IRQFgOM4OmjpplAHf0wghdfnF2ILaIkEQAAAABJRU5ErkJggg=="}}]);
|