(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cms-editor"],{"006a":function(t,e,a){"use strict";a("139a")},"00b2":function(t,e,a){},"00d5":function(t,e,a){t.exports=a.p+"img/miniapp_no_available_ticket_icon.817bbcef.png"},"0127":function(t,e,a){},"012f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("6042"),i=g(o),r=a("4d26"),n=g(r),s=a("50f6"),c=g(s),l=a("a375"),d=g(l),u=a("7967"),p=g(u),m=a("7074"),f=a("a7e2"),h=g(f);function g(t){return t&&t.__esModule?t:{default:t}}e["default"]={functional:!0,render:function(t,e){var a=e.props,o=a.onCancel,r=a.onOk,s=a.close,l=a.zIndex,u=a.afterClose,f=a.visible,g=a.keyboard,_=a.centered,v=a.getContainer,b=a.maskStyle,y=a.okButtonProps,w=a.cancelButtonProps,C=a.iconType,k=void 0===C?"question-circle":C,x=a.closable,S=void 0!==x&&x;(0,h["default"])(!("iconType"in a),"Modal","The property 'iconType' is deprecated. Use the property 'icon' instead.");var A=a.icon?a.icon:k,T=a.okType||"primary",F=a.prefixCls||"ant-modal",O=F+"-confirm",j=!("okCancel"in a)||a.okCancel,I=a.width||416,P=a.style||{},E=void 0===a.mask||a.mask,M=void 0!==a.maskClosable&&a.maskClosable,$=(0,m.getConfirmLocale)(),D=a.okText||(j?$.okText:$.justOkText),N=a.cancelText||$.cancelText,R=null!==a.autoFocusButton&&(a.autoFocusButton||"ok"),L=a.transitionName||"zoom",B=a.maskTransitionName||"fade",V=(0,n["default"])(O,O+"-"+a.type,F+"-"+a.type,a["class"]),z=j&&t(p["default"],{attrs:{actionFn:o,closeModal:s,autoFocus:"cancel"===R,buttonProps:w}},[N]),q="string"===typeof A?t(c["default"],{attrs:{type:A}}):A(t);return t(d["default"],{attrs:{prefixCls:F,wrapClassName:(0,n["default"])((0,i["default"])({},O+"-centered",!!_)),visible:f,closable:S,title:"",transitionName:L,footer:"",maskTransitionName:B,mask:E,maskClosable:M,maskStyle:b,width:I,zIndex:l,afterClose:u,keyboard:g,centered:_,getContainer:v},class:V,on:{cancel:function(t){return s({triggerCancel:!0},t)}},style:P},[t("div",{class:O+"-body-wrapper"},[t("div",{class:O+"-body"},[q,void 0===a.title?null:t("span",{class:O+"-title"},["function"===typeof a.title?a.title(t):a.title]),t("div",{class:O+"-content"},["function"===typeof a.content?a.content(t):a.content])]),t("div",{class:O+"-btns"},[z,t(p["default"],{attrs:{type:T,actionFn:r,closeModal:s,autoFocus:"ok"===R,buttonProps:y}},[D])])])])}}},"01cb":function(t,e,a){},"01f5":function(t,e,a){},"01f8":function(t,e,a){"use strict";a("01cb")},"0276":function(t,e,a){t.exports=a.p+"img/product_list_store.73d3831f.png"},"02e4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAAAAADLfSATAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfmCgsBCDPns0y2AAAFCklEQVRYw+2Ve0xTdxTHT1sqqzyMiKIgUNGg+JioTIcoBBHDDHP4BBEEWZSgmbiFOIzoXCcgDyewyYTIQxzqVDbCQ8rGFpWJ1lCoArJCQUrHECYQENpb2t6z3y0oZJGMP2aWLL3/9Nxzv72f3/n+zvldwDd8gQFgABgABoAB8C8BHiWczc59SL9M9X8bHx+b9PQ1Ym1h3Nc5V9pf3TenxcfF5gz9I6Dt6kcW3MWNL1NZPOAdu93/GrHuQaav8ZQQ1eitMpANCy7WaiZh0QsfYJ3SjWQGNwPM+2Mifc1MsLg9GoutAPZNxiI9AJxaRzL3ZwDM75xIXzsTIEw9EsexAPbrJgXodGYBJ0m/C/TJKQAOHRPpS8wArB7owx4PLoFpJwWQOm/hwIrfmbBrY6gJzFNMpM9YswbgsN52odsHxKLJAe67lDoC9zwTFvoUTwe+nAmfN7ep/q4/HXjRGOwekUh7+LgAIIRhaRRNz/TlK2sp7B8kgbqt+c/xgJLlsiiAd7uI9kCcyAL4T4ltqZE7nXeKqbvCn4oK5CgVlt8Q0fSRoPZ3gBVN1i33qDoDEDyM+PB4hNfKE30kdWidLMN9U6Xul6Ph7quTh8YAl5cpRLPAOIe0todEbAn2rSjdFNymOAgBfcIAM66XAhtX2kfeozWhIboE0pxSxLztQwkAe4bpK0szu0WLjfJQspZluceaOPjVkoLuChvT8jHAhSUK9W4Az17MCFRXzwK7FirY/B7iLaNlXdjmCi5ybFiXT5ZN7dhHSx2A/QVNBX+DSQC7NXW23i8QwyAK5TthSuy9/a7HLPYOo9oXUscAZxcpsMgUeNcp/zysmQ22smd+MUrEOyaOpGFvWbIOtkdkMS4r3wvTaiMBFsvrvGR4jgX+muL1ZeTBJ3AYsdRo1m+o7sv2JG2m3QNJY4A4RwX2eQH4lnvLUWINc6X0ADG3N5azkACGozmmG1KGGeGg54darJoJnOTEQxpMY8EuapjMPC3dwAB+NrJpJiJqgLy/ZsV4gGA+aZtMLvAWfKrDurkwlzk3eq4l7zdiANjhDjOqRibSPVSDqgCA2QvJutPZsIPpsyfpia4MoGIEQIDi1Pil4wGf8VsQFcsBpt1BbLADmwZE0faEnl/NHfUz/SUHdukPp4G1gaSSQhOA9b1kKNiwTYnUBd9yKhoixwADCduqqNDxgBM2TwhWwAYfUl0jH6zrscbJrWd0D7D+4yNTjc8xh8KA61aKWOcJLObfWWzwU+pSTWOZPRgDqGNMslETNB5wylLMvMeOxcxakwPMeYwxcAAxn73wGSkt5EdVJMe2krHIbSPT3RlGNo/JzyUObFF1reKWomYHHNHvgYykZfzpImImJL8CqMKNC5iBDLcn/Y13LcG8mI6A1RLJdrCWYLNfgAY7nMGjiZzsTk7M56DdyZ8ceDoBC1w65I7sqNbvHcB/EK+wzSpInTVW3MTWXCuIVI4AnmftncNzEZRQWCnQYOdZj6k83tsnT09jrfpc+P60oPg1b619iLXOvKke6We8zc39zolRl1JIBvioA49n5pO2lW26JTdvPj//ktsM/uakO3T3Rpju/91560WVo4CrBWXCH7JLKdQQZPeNEqHwVn5e601B+RB23a6+WSwsa8KWMpItvFwkFF7LriY1kwIeXye5opzippSUehrrqjpvFkpkTXXtNEoT02WoE4tU+H/56BsABoABYAD814C/AB2u2U+9/sESAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEwLTEwVDE3OjA4OjUxKzA4OjAwGIXVkgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0xMFQxNzowODo1MSswODowMGnYbS4AAAAgdEVYdHNvZnR3YXJlAGh0dHBzOi8vaW1hZ2VtYWdpY2sub3JnvM8dnQAAABh0RVh0VGh1bWI6OkRvY3VtZW50OjpQYWdlcwAxp/+7LwAAABd0RVh0VGh1bWI6OkltYWdlOjpIZWlnaHQAODbMbeUmAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADIxMPc9dHUAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTY2NTM5MjkzMeQu2c0AAAASdEVYdFRodW1iOjpTaXplADUzNTdCQj+KFzwAAABGdEVYdFRodW1iOjpVUkkAZmlsZTovLy9hcHAvdG1wL2ltYWdlbGMvaW1ndmlldzJfOV8xNjYzMjI1Mzc3MTMzODM5Nl8xMV9bMF3TsPFmAAAAAElFTkSuQmCC"},"031a":function(t,e,a){"use strict";a("95e7")},"0329":function(t,e,a){},"0342":function(t,e,a){"use strict";a("e401")},"0371":function(t,e,a){t.exports=a.p+"img/pc_recommend_border_color.927114dd.png"},"038d":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"staffed",platform:"web",routerType:"pc"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("3f9b")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"staff_icon",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_stockout_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("缺货图")]),o("staffedForm",{ref:"staffedForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"staffedForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"staffedForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.staffedForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&(t.isEmpty?o.items.push({id:t.id,config_value:""}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("afdb"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"6672633a",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],staffedForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.staffedForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.staffedForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("8fd5"),Object(g["a"])(k,o,i,!1,null,"4cf5b9ed",null));e["default"]=x.exports},"03d4":function(t,e,a){"use strict";a("694c")},"03d6":function(t,e,a){t.exports=a.p+"img/h5_comment_no_result_icon.56797be5.png"},"045d":function(t,e,a){"use strict";a("50761")},"0487":function(t,e,a){"use strict";a("09af")},"04e1":function(t,e,a){},"04e4":function(t,e,a){"use strict";a("e74f")},"052c":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"father",attrs:{id:"father"}},[a("a-collapse",{attrs:{bordered:!1,activeKey:[1,2,3]},scopedSlots:t._u([{key:"expandIcon",fn:function(t){return[a("a-icon",{attrs:{type:"caret-right",rotate:t.isActive?90:0}})]}}])},t._l(t.groupList,(function(e,o){return a("a-collapse-panel",{key:(o+1).toString(),staticStyle:{border:"none"},attrs:{header:e.group_name}},[a("ul",{staticClass:"tool-list"},t._l(e.children,(function(e,o){return a("li",{key:o,class:t.activeItem===e.group_code?"active":"",on:{mouseover:function(a){return t.moveIn(e)},mouseout:function(a){return t.moveOut(e)},click:function(a){return t.toFixtures(e.group_code,e.id)}}},[t.activeItem===e.group_code?a("div",{class:t.activeItem===e.group_code?"active":""},[a("img",{ref:"son",refInFor:!0,attrs:{src:e.edit_hover_icon,alt:""}}),a("p",{staticClass:"tool-des"},[t._v(t._s(e.group_name))])]):a("div",{class:t.activeItem===e.group_code?"active":""},[e.isMoveIn?a("img",{attrs:{src:e.edit_hover_icon}}):a("img",{attrs:{src:e.edit_icon}}),a("p",{staticClass:"tool-des"},[t._v(t._s(e.group_name))])])])})),0)])})),1)],1)},i=[],r=(a("ac6a"),a("96cf"),a("1da1")),n=a("6077"),s={props:{activeItem:{type:String,default:"site_style"},platform:{type:String,default:"web"},routerType:{type:String,default:"pc"}},mounted:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={platform:this.platform},t.next=3,Object(n["d"])(e).then((function(t){t&&-400!==t.status&&(a.groupList=t.data.rows,a.groupList.forEach((function(t){t.children.forEach((function(t){t.isMoveIn=!1}))})))}));case 3:setTimeout((function(){document.getElementById("father").parentElement.scrollTop=a.$refs.son[0].offsetTop-100}),500);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),data:function(){return{groupList:[]}},methods:{toFixtures:function(t,e){var a=this.$route.params.websiteId;this.$router.push({path:"/cms/fixtures/".concat(this.routerType,"/").concat(t,"/groupId/").concat(e,"/websiteId/").concat(a)})},moveIn:function(t){t.isMoveIn=!0,this.$forceUpdate()},moveOut:function(t){t.isMoveIn=!1,this.$forceUpdate()}}},c=s,l=(a("2631"),a("2877")),d=Object(l["a"])(c,o,i,!1,null,"738027b4",null);e["a"]=d.exports},"05a5":function(t,e,a){"use strict";a("e6022")},"0676":function(t,e,a){t.exports=a.p+"img/app_main_color.c3d07550.png"},"0679":function(t,e,a){"use strict";a("130b")},"06dc":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-modal",{attrs:{title:"效果展示",visible:t.visible,footer:null,width:t.width,bodyStyle:t.bodyStyle},on:{cancel:t.handleCancel}},[a("div",{staticClass:"front-effect-title-box",staticStyle:{"margin-top":"-12px"}},[a("div",{staticClass:"title-modal-img"},[a("p",{staticStyle:{margin:"0px",color:"#1890ff","margin-bottom":"10px"}},[t._v(t._s(t.title))]),a("div",{staticClass:"mb16",staticStyle:{color:"rgba(51, 51, 51, 0.647058823529412)","margin-bottom":"10px"}},[t._v(t._s(t.des))]),a("div",{staticClass:"img-box",staticStyle:{"text-align":"center"}},[t.imgSrc?a("img",{attrs:{src:t.imgSrc}}):t._e()])])])])],1)},i=[],r={props:{width:{type:String,default:"778px"},bodyStyle:{type:Object,default:function(){return{padding:"24px 24px 0"}}},routerType:{type:String,default:"pc"}},data:function(){return{visible:!1,imgName:"",title:"",des:"",id:"",pcNavType:""}},computed:{imgSrc:function(){if(this.imgName){if("pc_add_button_touch_color"===this.imgName){var t=this.$route.params.id;if("29"===t)return a("43a4")}return"pc_nav_content"===this.imgName?"ad"===this.pcNavType?"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/944156/12244de8232e7d5524bc7a423de11ef3.png":"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/562505/c456c9490f79778597190534a4c34c0c.png":a("37ee")("./".concat(this.routerType,"_effect/").concat(this.imgName,".png"))}return""}},methods:{showModal:function(t,e){this.imgName=t.decoration_code,this.pcNavType=e,this.title=t.title,this.des=t.des,this.id=t.id,this.visible=!0},handleCancel:function(){this.visible=!1}}},n=r,s=(a("10654"),a("2877")),c=Object(s["a"])(n,o,i,!1,null,"4cf33681",null);e["a"]=c.exports},"06f2":function(t,e,a){},"06fd":function(t,e,a){},"07a3":function(t,e,a){},"07f4":function(t,e,a){},"0802":function(t,e,a){},"081c":function(t,e,a){"use strict";a("f08d")},"0842":function(t,e,a){},"0864":function(t,e,a){t.exports=a.p+"img/app_bottom_tab_my_checked_icon.4b9e2b38.png"},"088a":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("H5")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"personal_center",platform:"mobile_web",routerType:"h5"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"h5-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[a("div",{staticClass:"scroll-view"},[a("img",{staticClass:"bg-image",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/228038/5d434343d37b0ed8bba8c0ff08813999.jpg"}}),t.compdata&&t.compdata.length>0?a("img",{staticClass:"default-avatar-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_default_avatar").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-pending-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_order_pending_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-paid-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_order_paid_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-shipping-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_order_shipping_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-completed-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_order_completed_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-canceled-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_order_canceled_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"user-center-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_user_center_icone").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-address-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_address_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"customer-service-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_customer_service_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-comment-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_comment_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"share-commission-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_share_commission_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"rec-to-friend-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_my_award_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"app_my_award_icon",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_homepage_security_icon").config_value,alt:""}}):t._e(),a("div",{staticClass:"list-wrapper"},[t.bottomTerms.length?a("div",{staticClass:"list-box"},t._l(t.bottomTerms,(function(e,o){return a("div",{key:o,staticClass:"list-item"},[t._v(t._s(e.title))])})),0):a("div",{staticClass:"list-box"},[a("div",{staticClass:"list-item"},[t._v("此处为底部条款文案")])]),a("img",{directives:[{name:"show",rawName:"v-show",value:t.getAdvertise[0].img,expression:"getAdvertise[0].img"}],staticClass:"advertise",attrs:{src:t.getAdvertise[0].img,alt:""}}),a("img",{directives:[{name:"show",rawName:"v-show",value:!t.getAdvertise[0].img,expression:"!getAdvertise[0].img"}],staticClass:"advertise",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/20664/f94afaf319d118b4d3a10ea46ae5d312.jpg",alt:""}}),a("div",{staticClass:"nav-box"})])]),a("img",{staticClass:"bottom-navigation",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/15741/f6c68a73507d1ac70b522842a3ac7ff0.jpg",alt:""}})])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("个人中心")]),a("personalCenterForm",{ref:"personalCenterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("fb02"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5","global-config":{client:1}},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("b1cbf"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"2008b603",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],personalCenterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},getAdvertise:function(){var t=Object(w["a"])(this.compdata,"h5_block_member_ac_ad").config_value;return t?JSON.parse(t):[{img:""}]},bottomTerms:function(){var t=Object(w["a"])(this.compdata,"h5_block_member_page").config_value;return t?JSON.parse(t):[]}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.personalCenterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.personalCenterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("a308"),Object(g["a"])(k,o,i,!1,null,"6a3d744d",null));e["default"]=x.exports},"08a4":function(t,e,a){t.exports=a.p+"img/h5_main_color.c3d07550.png"},"0908":function(t,e,a){"use strict";a("35c17")},"0941":function(t,e,a){"use strict";a("f6575")},"09510":function(t,e,a){t.exports=a.p+"img/givings.25b099b0.jpg"},"0978":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("8726"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e["default"]=i["default"]},"0985":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"arrive",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("99d3f")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"arrive-homepage-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_shortcut_home_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"arrive-cart-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_shortcut_cart_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"arrive-service-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_shortcut_service_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("功能直达")]),o("arriveForm",{ref:"arriveForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"arriveForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"arriveForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.arriveForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("770e6"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"654f04b4",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],arriveForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.arriveForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.arriveForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("97ec"),Object(g["a"])(k,o,i,!1,null,"e9de8eba",null));e["default"]=x.exports},"09af":function(t,e,a){},"09e5":function(t,e,a){"use strict";a("4f00")},"09fe":function(t,e,a){},"0a0d":function(t,e,a){"use strict";a("dab3")},"0a22":function(t,e,a){"use strict";a("4ab2")},"0a78":function(t,e,a){},"0ae8":function(t,e,a){},"0b03":function(t,e,a){"use strict";a("f90e")},"0b65":function(t,e,a){"use strict";a("ccf0")},"0b75":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return r}));a("55dd");var o={h5_main_color:{required:!0,sort:"color",isShowEffect:!0,title:"网站主色效果展示如下:",des:"用于商品分类选中颜色、品牌列表选中颜色、提交订单按钮颜色、登录按钮颜色、优惠券绑定按钮颜色"},h5_promotion_color:{required:!0,sort:"color",isShowEffect:!0,title:"促销色效果展示如下:",des:"用于购物车选中按钮颜色和领券结算按钮颜色、确认订单页提交订单颜色、收银台立即支付颜色、订单列表页去付款按钮颜色、品牌列表hot标签颜色"},h5_sale_price_color:{required:!0,sort:"color",isShowEffect:!0,title:"销售价格文字颜色效果展示如下:",des:"用于商品销售价格文字显示颜色,如销售价格低于销售原价则取促销色显示"},h5_highlight_color:{required:!0,sort:"color",isShowEffect:!0,title:"突出色效果展示如下:",des:"用于消息入口角标颜色、购物车角标颜色、搜索页推荐搜索文字颜色、购物车提示文字颜色、我的订单角标颜色"},h5_product_list_layout_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]},h5_category_filter_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"下拉"},{value:"2",name:"平铺"}]},store_card_show:{sort:"checkbox"},h5_product_list_style:{sort:"styleRadio",arrayValue:[{value:"2",name:"竖排"},{value:"1",name:"横排"}]},global_product_discount_style:{sort:"discountSort"},h5_product_list_discount_tag_show:{sort:"checkbox"},h5_product_list_tag_show:{sort:"checkbox"},h5_product_list_new_tag_show:{sort:"checkbox"},h5_product_list_sale_num_show:{sort:"checkbox"},h5_product_list_cart_num_show:{sort:"checkbox"},h5_product_list_brand_show:{sort:"checkbox"},h5_product_list_brand_cn_show:{sort:"checkbox"},h5_product_list_title_show_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"一行"},{value:"2",name:"二行"}]},h5_product_list_line_price_show:{sort:"checkbox"},global_is_show_cny:{sort:"checkbox"},h5_product_list_promotion_tag_show:{sort:"checkbox"},h5_product_list_store_name_show:{sort:"checkbox"},h5_product_list_cart_show:{sort:"checkbox"},h5_secondary_color:{required:!0,isShowEffect:!0,title:"辅助色效果展示如下:",des:"用于购物车页顶部/底部提示的背景色",sort:"color"},h5_list_page_add_icon:{required:!0,size:"120x120",width:"120",limit:"1MB",apply:"jpg/png/gif"},h5_search_result_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"数据为空图标效果展示如下:",des:"用于页面数据为空场景的显示"},h5_icones:{required:!0,size:"310x419",width:"310",limit:"1MB",apply:"jpg/png/gif"},h5_is_show_add_button:{sort:"radio"},h5_bottom_tab_home_default_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},h5_detail_not_in_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif"},h5_detail_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"已收藏图标效果展示如下:",des:"用于商品已收藏状态的显示"},h5_detail_customer_service_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},h5_detail_cart_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},h5_share_image_site_icon:{required:!0,size:"265*50",width:"265",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"图片分享-站点logo效果展示如下:",des:"用于图片分享里站点logo的展示"},h5_detail_promotion:{required:!1,sort:"activeInfomation",isSelectLink:!1,isShowEffect:!0,title:"活动信息效果展示如下:",des:"用于商品详情活动信息的展示"},h5_default_avatar:{required:!0,size:"156x156",width:"156",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_order_pending_icon:{required:!0,size:"98x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},h5_order_paid_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_order_shipping_icon:{required:!0,size:"98x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_order_completed_icon:{required:!0,size:"98x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_order_canceled_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_rma_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"售后图标-效果展示如下:",des:'用于开启"前台售后入口"的显示'},h5_user_center_icone:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_address_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_customer_service_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_comment_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_share_commission_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_my_award_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_homepage_security_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"},h5_order_list_empty_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"订单列表页-数据为空图标-效果展示如下:",des:"用于订单列表页页面数据为空场景的显示"},h5_coupon_list_empty_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"我的优惠券页-数据为空图标-效果展示如下:",des:"用于我的优惠券页页面数据为空场景的显示"},h5_address_list_empty_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"地址列表页-数据为空图标-效果展示如下:",des:"用于地址列表页页面数据为空场景的显示"},h5_favorite_no_result_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"收藏夹-数据为空图标效果展示如下:",des:"用于收藏夹列表页页面数据为空场景的显示"},h5_comment_no_result_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"暂无评价商品图标效果展示如下:",des:"用于评价晒单页页面数据为空场景的显示"},h5_user_center_icones:{required:!0,size:"1421x1079",width:"1421",limit:"1MB",apply:"jpg/png/gif"},h5_login_and_register_icones:{required:!0,size:"168x168",width:"168",limit:"1MB",apply:"jpg/png/gif"},h5_global_default_product_img:{required:!0,size:"192x192",width:"192",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},h5_out_of_stock_icon:{required:!0,size:"204x204",width:"204",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},h5_type:{required:!0,sort:"select"},h5_site_logo_image_url:{required:!0,size:"80x80",width:"300",limit:"50KB",apply:"jpg/png/gif"},h5_search_icon_url:{required:!0,size:"32x32",width:"0",limit:"50KB",apply:"jpg/png/gif"},h5_key_placeholder:{sort:"key_placeholder"},h5_background_color:{required:!0,sort:"color"},h5_searchbox_color:{required:!0,sort:"select"},h5_cashier_tips:{required:!0,sort:"textarea",requireMessage:"请输入收款主体说明"},h5_product_image_suffix:{sort:"textarea",requireMessage:""},h5_pay_success_ad_img:{required:!1,sort:"advertise",sizeTip:"参考尺寸750x600像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"},h5_block_member_ac_ad_order_detail:{required:!1,sort:"advertise",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"},h5_block_member_ac_ad_logistics:{required:!1,sort:"advertise",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"},h5_cms_header:{required:!0,sort:"cUpload",sizeTip:"参考尺寸750x88像素,宽度固定,高度不超过100。大小不超过500KB,支持jpg/png/gif格式"},h5_user_help_image:{required:!1,sort:"advertise",sizeTip:"尺寸750×340像素,大小不超过500KB,支持jpg/png/gif格式"},h5_points_center_ad_jump_url:{required:!1,sort:"advertise",hideSizeTip:!0,isSelectLink:!1,pointsAd:!0},h5_user_help_service:{required:!0,sort:"conentGroup",des:"最多添加10个",isShowEffect:!0},h5_block_member_page:{required:!0,sort:"bottomList",isSelectLink:!1},h5_block_member_ac_ad:{required:!1,sort:"advertise",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"},h5_homepage_identity_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"}};function i(t){for(var e in o)if(e===t.decoration_code){var a="";return t.sort=o[e].sort,t.required=o[e].required,t.arrayValue=o[e].arrayValue,o[e].isShowEffect&&(t.isShowEffect=!0,t.title=o[e].title,t.des=o[e].des,o[e].isMoreRight&&(t.isMoreRight=o[e].isMoreRight,t.moreRight=o[e].moreRight)),"0"===o[e].width?(a="参考尺寸".concat(o[e].size,"像素,高度固定。大小不超过").concat(o[e].limit,",支持").concat(o[e].apply,"格式"),a):("bottomList"===o[e].sort&&(t.pointsAd=o[e].pointsAd||!1,t.isSelectLink=o[e].isSelectLink||!1),"advertise"===o[e].sort?(t.pointsAd=o[e].pointsAd||!1,o[e].sizeTip):("activeInfomation"===o[e].sort&&(t.isSelectLink=o[e].isSelectLink||!1),"参考尺寸".concat(o[e].size,"像素,宽度不超过").concat(o[e].width,"像素,高度固定。大小不超过").concat(o[e].limit,",支持").concat(o[e].apply,"格式")))}}function r(t,e){for(var a in o)if(a===e.decoration_code)return t.$set(e,"sort",o[a].sort),t.$set(e,"required",o[a].required),t.$set(e,"requireMessage",o[a].requireMessage),t.$set(e,"arrayValue",o[a].arrayValue),o[a].isShowEffect&&(e.isShowEffect=!0,t.$set(e,"title",o[a].title),t.$set(e,"des",o[a].des),o[a].isMoreRight&&(t.$set(e,"isMoreRight",o[a].isMoreRight),t.$set(e,"moreRight",o[a].moreRight))),o[a].sizeTip}},"0b8f":function(t,e,a){"use strict";a("7bb1")},"0baf":function(t,e,a){"use strict";a("8170")},"0bfe":function(t,e,a){},"0c00":function(t,e,a){"use strict";a("b7f4")},"0c47":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"0ca2":function(t,e,a){},"0ca5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=r,e.cancelRequestAnimationFrame=n;var o=["moz","ms","webkit"];function i(){var t=0;return function(e){var a=(new Date).getTime(),o=Math.max(0,16-(a-t)),i=window.setTimeout((function(){e(a+o)}),o);return t=a+o,i}}function r(){if("undefined"===typeof window)return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=o.filter((function(t){return t+"RequestAnimationFrame"in window}))[0];return t?window[t+"RequestAnimationFrame"]:i()}function n(t){if("undefined"===typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=o.filter((function(t){return t+"CancelAnimationFrame"in window||t+"CancelRequestAnimationFrame"in window}))[0];return e?(window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]).call(this,t):clearTimeout(t)}},"0cc6":function(t,e,a){},"0cd1":function(t,e,a){"use strict";a("0ed8")},"0ceb":function(t,e,a){},"0d2b":function(t,e,a){},"0d8d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB4CAMAAAAzKKeGAAAB1FBMVEUAAAAHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAIHAAL/7/AHAAKLfqryoadMQkQJAgStoKKqnZ//7u8xKCrt3d53bG1fVFZIP0FCOTv46Onp2dvTxcY8MzQmHiD76+371tiZi7L0q7H4xcjPwcKrnb2ShohmXF0cFRjz5Ofu3ubaytnDtMu3qaqXi4yFenuCdnhhV1svJij36Or15ufx4uOOgayOgoQpISMiExUMBAb87O7u3+D609b2ur+NgKusn6Gajo96b3BqYGFYTlBFPD49NDYlHSn66uvRw8TJu7zFt7iViLCRg63yo6nsnaKmmpvKhouPg4XAgIV7UFRUSkxQRkg0KzxTNDgrIzA1LC4jGRvl1tfg0dLEtrfzqa+xpKXunqR/c5qKf4BHPVRaUFErIyUqIiQUDA7dztvXyNjQwdTIuc/bzM3Yysu+sMnUxsekl7mhlLfBs7S7ra+HeqWhlJV0aI1sYINkWXhcUm6dZ2twZWdPRV49NEc3LjAzHyEaExXu3+bi09710NOypMGekLWkl5jBkpZ5bZSlbHGka3CeaGxXTGdcUV1cUlNzSk5qREdSXSe4AAAAFXRSTlMA+u2XA7Osh3hYEzccCOPT0uTiHjgxHxaGAAAFbUlEQVRo3rSW53MSURRHgcQkJrbReb9dBhmCIaiRYMEKIhYiKJbYe+9l7I69917G7j/rvfuID3jPyC6b82Xfl+Sw99xdCNTR3tPVMSUURAsEQ1M6unraA/9iQudU+MTUzglGRXdbED4SbOvWHeND8JnQ+AZFexscZvVGkrG8aIF8LBnpnQWHtro0E8eBmblU+MTSmWDGTay5D+lYJXxklbSoe3Fm1ZcWvpLucyb2tzmIcEH4TCEMolq/O8T3sVb4zlq+l1C3GlZajAHb/g5sWlA195v9AILTSNLJuyvGCN7kTlrfSQAqYoyoAJjUHujh51w0kJgen1W8sjy+PtGqhZ/9nkAXgF5Rz9nLqHI50qKkF0BXoANA/X8a2oAaNgy1JIkA6AhMBpAUtUiHsrQkSQKYHAgBiNW7mWw6UUhnwbQ0sRiAUCAIIFHb/ASA49v5GB34/BrAmvdR75IEgGAAhKhhLwjHMZCy7QMgnqUGhJn+SPp/FhCaZBPPim9j0GYOAjhq24NRo+MNMOxFwot9m67kYPbxvGyyCANxEA89SIoA8jQrW7IHQJEPhoktATPDg+QKgIKInmmUnNEHNgMO99xLLjnjKtmEGhdTEg0sg+Si1/Blm1DhmXJj9QUA5oM46UqiVjhlS+QKO8eUofrqFTyyXlcS9TAeqDqch3GPc95tqD5PLAXwyrVErAdzcN+5c/sOgvlqS4lePUzX4wAqLiX6C/KXLUnp1XfQ4QdvsXvJ0HPU8PucLSnr1emw8DyI+y4lTOQyqpz4Yo9Q0qvTYa51BMAhDxKR2Ht0TbG45ug32Vw+jFp1OiyyrMcgTnmQ8GulgQFT9dlzLMs6BuC5J4l8QSoGjdUXW8R3AMtne5JEB+scUWP1lRazhWfnSSK/tCT8pWWu7nABwGaPEhEtlVO7d6fKJboNc3WJs8VnvUl09OoS3uLDvkn06ozc4pueJZmMOhurM3KLN3qV5IAcX83VFU9BZLxJ7oOIj16dkVu8ypskDGbT0GjV1Rb3eZLMg+RQZrTqaoune5DMXg5gGEQ4Nkp1tcVhD5KNAN70bwaxud9cXfEIRNq1JAkiK2JOmOGT5ur1WzzfteQQ5A/dAh9w/JSpeuMWr3UpWQ9iLye+swnEpRuy+mm9utriZS4lfdX3UWaXdfciiBM3TdUVL3iL3UmyIyE/0N9/jIO4oqqbeADikxtJbEH1bfTOYubkAKjqZl5yMTeSHFfICxG9aymLXl3f4u3NS06D2E+H61aVnTmtunGL481LwtWfhfmd1gi7crL6W65u5gmI/mYlFRBL6HDLUuy6ulVo1fUtzjYreQXgJ+/qOquGlVf16voWDzcp2QjilP6p111T1Y084J2sNCX5064ZqzQQBGFYsE0TcPdgXRbRIqVtilhYWMQmeIFUKawshGijEfExfGEJZ/JDhiTDzOxyIfe/wHe3N/sfy35fvhlf+tTjT/LV6RRfsyCrFhnsmNXxfsgvDqr7Ia/rw/my4oT+Vt4ZkAlKixU6xS8HIQuvztVByLMeMmjHm7jFjQ7x9HbHbOF6VsmzZEK+K0VmDwwISkuYDxbktlLlhwHRp4N0kA5yTJCYghckpMiHXHpxIhuS5JDEhgQ5JLQLUmS5Hkt8eBdHshEexbZtxg5yyhBUMa+AORB1FUcGRN0tSQAJ2m4EBJf+5hBc+kNfMF8u6AsQMdRVHHeKGFBKhFVMC5gqJZBj7AM55gKaj3Gg+TTC0tBlyrARloqoV2e9jBLZ/WqX9DY63NTZBncK55nFvsm/2AdFkdx7GSqKkC2NV2zayJbbaurckjH3kFMLCbBU5a2dIjVReTNLycX1aojifStEn4ji2ZX3P9YfPkqZxfpuAAAAAElFTkSuQmCC"},"0df2":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"nav",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?a("CNavDom",{attrs:{navData:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_nav_content").config_value)}}):t._e()],1)])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("导航")]),a("navForm",{ref:"navForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=(a("ac6a"),a("96cf"),a("1da1")),n=a("6ea3"),s=a("41a2"),c=a("052c"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"navForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[t.compdata&&t.compdata.length>0?a("c-nav",{attrs:{form:t.form,formConfig:t.compdata[0],isChange:t.isChange},on:{"update:isChange":function(e){t.isChange=e},"update:is-change":function(e){t.isChange=e}}}):t._e()],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},d=[],u=(a("456d"),a("6077")),p=a("9e0b"),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-style"},[a("div",{staticClass:"nav-top-style"},[a("a-form-item",{staticClass:"nav-type-item",staticStyle:{"border-bottom":"1px solid #eee","margin-bottom":"10px","margin-top":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("类型"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-select",{staticClass:"nav-type-select",attrs:{getPopupContainer:function(t){return t.parentNode}},on:{change:t.changeNavType},model:{value:t.showData.pc_nav_type,callback:function(e){t.$set(t.showData,"pc_nav_type",e)},expression:"showData.pc_nav_type"}},[a("a-select-option",{attrs:{value:"1"}},[t._v("单层导航")]),a("a-select-option",{attrs:{value:"2"}},[t._v("双层导航")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("运营分类显示样式"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.showData.pc_nav_category_style_type,callback:function(e){t.$set(t.showData,"pc_nav_category_style_type",e)},expression:"showData.pc_nav_category_style_type"}},[a("a-radio",{attrs:{value:"1"}},[t._v("上下结构样式")]),a("a-radio",{attrs:{value:"2"}},[t._v("左右结构样式")])],1)],1),"2"!==t.showData.pc_nav_category_style_type?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("运营分类层级显示"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.showData.pc_nav_category_layer_type,callback:function(e){t.$set(t.showData,"pc_nav_category_layer_type",e)},expression:"showData.pc_nav_category_layer_type"}},[a("a-radio",{attrs:{value:"1"}},[t._v("二级运营分类")]),a("a-radio",{attrs:{value:"2"}},[t._v("三级运营分类")])],1)],1):t._e(),"1"===t.showData.pc_nav_type?a("div",{staticClass:"one-item"},t._l(t.showData.pc_nav_content,(function(e,o){return a("div",{key:o},[a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("导航栏目"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")]),a("div",{staticClass:"nav-tips"},[t._v("最多可添加20个")])]),e.nav.length<20?a("a-button",{staticStyle:{color:"#1890ff","margin-top":"5px"},attrs:{block:""},on:{click:function(a){return t.addContentOpen(o,e.nav.length)}}},[t._v("+ 添加栏目")]):t._e(),a("CNavCategoryTable",{staticStyle:{"margin-top":"10px"},attrs:{data:e.nav},on:{"update:data":function(a){return t.$set(e,"nav",a)},stringifyData:t.stringifyData,editContentOpen:t.editContentOpen}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav_content",{rules:[{required:!0,message:"请添加导航栏目"}],initialValue:""}],expression:"[\n 'nav_content',\n {\n rules: [\n {\n required: true,\n message: '请添加导航栏目'\n }\n ],\n initialValue: ''\n }\n ]"}],attrs:{type:"hidden"}})],1),a("CNavBottom",{attrs:{item:e,index:o,form:t.form},on:{stringifyData:t.stringifyData}})],1)})),0):t._e(),"2"===t.showData.pc_nav_type?a("div",{staticClass:"two-item"},[a("a-tabs",t._l(t.showData.pc_nav_content,(function(e,o){return a("a-tab-pane",{key:o,attrs:{forceRender:!0,tab:"导航"+t.numberChange(o)}},[a("a-form-item",{staticStyle:{"margin-bottom":"10px","margin-top":"0px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("导航栏目"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")]),a("div",{staticClass:"nav-tips"},[t._v("最多可添加20个")])]),e.nav.length<20?a("a-button",{staticStyle:{color:"#1890ff"},attrs:{block:""},on:{click:function(a){return t.addContentOpen(o,e.nav.length)}}},[t._v("+ 添加栏目")]):t._e(),a("CNavCategoryTable",{staticStyle:{"margin-top":"10px"},attrs:{data:e.nav,index:o},on:{"update:data":function(a){return t.$set(e,"nav",a)},stringifyData:t.stringifyData,editContentOpen:t.editContentOpen}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav_content"+o,{rules:[{required:!0,message:"请添加导航栏目"}],initialValue:""}],expression:"[\n `nav_content${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加导航栏目'\n }\n ],\n initialValue: ''\n }\n ]"}],attrs:{type:"hidden"}})],1),a("CNavBottom",{attrs:{item:e,index:o,form:t.form},on:{stringifyData:t.stringifyData}})],1)})),1)],1):t._e()],1),a("CNavModal",{ref:"cNavModal",attrs:{formConfig:t.formConfig},on:{addContent:t.addContent,editContent:t.editContent}})],1)},f=[],h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-content-modal"},[a("a-modal",{attrs:{title:t.groupTitle,width:800},on:{ok:t.onGroupOk,cancel:t.groupClose},model:{value:t.groupVisible,callback:function(e){t.groupVisible=e},expression:"groupVisible"}},[a("a-form",{attrs:{form:t.groupForm}},[a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",label:"标题内容",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content_title",{rules:[{required:!0,message:"请输入标题内容"}]}],expression:"[\n 'content_title',\n {\n rules: [{ required: true, message: '请输入标题内容' }]\n }\n ]"}],attrs:{placeholder:"请输入"}})],1),a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:t.linkRequired,label:"链接",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content_link",{rules:[{required:t.linkRequired,message:"请输入链接"}]}],expression:"[\n 'content_link',\n {\n rules: [{ required: linkRequired, message: '请输入链接' }]\n }\n ]"}],attrs:{placeholder:"https://"}})],1),a("a-form-item",{staticClass:"form-item-radio-margin-top",staticStyle:{"margin-bottom":"18px"},attrs:{label:"展开内容类型",labelCol:t.labelCol,wrapperCol:t.wrapperCol,required:!0}},[a("a-radio-group",{on:{change:t.contentTypeChange},model:{value:t.formData.content_type,callback:function(e){t.$set(t.formData,"content_type",e)},expression:"formData.content_type"}},[a("a-radio",{attrs:{value:"1"}},[t._v("运营分类")]),a("a-radio",{attrs:{value:"2"}},[t._v("广告图")]),a("a-radio",{attrs:{value:"3"}},[t._v("自定义")]),a("a-radio",{attrs:{value:"4"}},[t._v("无")])],1)],1),"1"===t.formData.content_type?a("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{label:"运营分类",labelCol:t.labelCol,wrapperCol:t.wrapperCol,required:!0}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{rules:[{required:!0,message:"请选择运营分类"}]}],expression:"[\n 'category_id',\n {\n rules: [{ required: true, message: '请选择运营分类' }]\n }\n ]"}],staticClass:"nva-type-select",staticStyle:{width:"300px"},attrs:{placeholder:"请选择","show-search":"","option-filter-prop":"children","filter-option":t.filterOption}},t._l(t.categoryList,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.category_id}},[t._v(t._s(e.category_name))])})),1)],1):t._e(),"2"===t.formData.content_type?a("a-form-item",{staticClass:"form-item-radio-margin-top",attrs:{label:"选择模板",labelCol:t.labelCol,wrapperCol:t.wrapperCol,required:!0}},[a("a-select",{staticClass:"nva-type-select",staticStyle:{width:"300px"},on:{change:t.adStyleChange},model:{value:t.formData.show_ad_style,callback:function(e){t.$set(t.formData,"show_ad_style",e)},expression:"formData.show_ad_style"}},[a("a-select-option",{attrs:{value:"1"}},[t._v("一行四张")]),a("a-select-option",{attrs:{value:"2"}},[t._v("一行五张")]),a("a-select-option",{attrs:{value:"3"}},[t._v("一行四张+一行一张")])],1),a("span",{staticStyle:{"margin-left":"15px",color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig,"ad")}}},[t._v("效果展示")]),a("div",{staticClass:"normal-model"},[a("div",{staticClass:"add-btn"},["1"===t.formData.show_ad_style?a("a-button",{staticClass:"btn-style",style:t.formData.ad_children.normal.length>=12?"width: 200px;color: #d9d9d9":"width: 200px",attrs:{disabled:t.formData.ad_children.normal.length>=12,block:""},on:{click:function(e){t.addAdOpen("normal","图片参考尺寸280X160像素(更多尺寸参考效果展示),宽度固定,高度不固定。大小不超过500KB,支持jpg/png/gif格式")}}},[t._v("+添加广告")]):t._e(),"2"===t.formData.show_ad_style?a("a-button",{staticClass:"btn-style",style:t.formData.ad_children.normal.length>=20?"width: 200px;color: #d9d9d9":"width: 200px",attrs:{disabled:t.formData.ad_children.normal.length>=20,block:""},on:{click:function(e){t.addAdOpen("normal","图片参考尺寸200X140像素(更多尺寸参考效果展示),宽度固定,高度不固定。大小不超过500KB,支持jpg/png/gif格式")}}},[t._v("+添加广告")]):t._e(),"3"===t.formData.show_ad_style?a("a-button",{staticClass:"btn-style",style:t.formData.ad_children.normal.length>=12?"width: 200px;color: #d9d9d9":"width: 200px",attrs:{disabled:t.formData.ad_children.normal.length>=12,block:""},on:{click:function(e){return t.addAdOpen("normal","图片参考尺寸200X100像素,宽度固定,高度固定。大小不超过500KB,支持jpg/png/gif格式")}}},[t._v("+添加一行四张广告")]):t._e()],1),a("div",{staticClass:"add-tip"},["1"===t.formData.show_ad_style?a("span",[t._v("最多可添加12张,图片参考尺寸280X160像素(更多尺寸参考效果展示),宽度固定,高度不固定。大小不超过500KB,支持jpg/png/gif格式")]):t._e(),"2"===t.formData.show_ad_style?a("span",[t._v("最多可添加20张,图片参考尺寸200X140像素(更多尺寸参考效果展示),宽度固定,高度不固定。大小不超过500KB,支持jpg/png/gif格式")]):t._e(),"3"===t.formData.show_ad_style?a("span",[t._v("最多可添加12张,图片参考尺寸200X100像素,宽度固定,高度固定。大小不超过500KB,支持jpg/png/gif格式")]):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0px","margin-top":"10px"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["no_normal_pic",{rules:[{required:!0,message:"请添加广告图"}],initialValue:""}],expression:"[\n 'no_normal_pic',\n {\n rules: [\n {\n required: true,\n message: '请添加广告图'\n }\n ],\n initialValue: ''\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),a("CNavAdTable",{attrs:{data:t.formData.ad_children.normal,adLineType:"normal"},on:{"update:data":function(e){return t.$set(t.formData.ad_children,"normal",e)},editAdOpen:t.editAdOpen}})],1),"3"===t.formData.show_ad_style?a("div",{staticClass:"special-model"},[a("div",{staticClass:"add-btn"},[a("a-button",{staticClass:"btn-style",style:t.formData.ad_children.special.length>=2?"width: 200px;color: #d9d9d9":"width: 200px",attrs:{disabled:t.formData.ad_children.special.length>=2,block:""},on:{click:function(e){return t.addAdOpen("special","图片尺寸256X156像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式")}}},[t._v("+添加一行一张广告\n ")])],1),a("div",{staticClass:"add-tip"},[a("span",[t._v("最多可添加2张,图片尺寸256X156像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式")]),a("a-form-item",{staticStyle:{"margin-bottom":"0px","margin-top":"10px"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["no_special_pic",{rules:[{required:!0,message:"请添加广告图"}],initialValue:""}],expression:"[\n 'no_special_pic',\n {\n rules: [\n {\n required: true,\n message: '请添加广告图'\n }\n ],\n initialValue: ''\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),a("CNavAdTable",{attrs:{data:t.formData.ad_children.special,adLineType:"special"},on:{"update:data":function(e){return t.$set(t.formData.ad_children,"special",e)},editAdOpen:t.editAdOpen}})],1):t._e()],1):t._e(),"3"===t.formData.content_type?a("a-form-item",{staticClass:"form-item-input-style",attrs:{label:"自定义内容",labelCol:t.labelCol,wrapperCol:t.wrapperCol,required:!0}},[a("div",{staticClass:"design-textarea"},[a("a-textarea",{staticStyle:{"min-height":"300px"},attrs:{id:"design-textarea"},on:{change:t.changeContent},model:{value:t.formData.content,callback:function(e){t.$set(t.formData,"content",e)},expression:"formData.content"}}),a("div",{staticClass:"errorInfo"},[t._v(t._s(t.errorTips))])],1),a("a",{staticClass:"open-gallery",attrs:{id:"open-design-gallery",href:"javascript:void(0)"}},[t._v("插入图片")])]):t._e(),"1"===t.formData.content_type?a("a-form-item",{staticClass:"form-item-radio-margin-top",staticStyle:{"margin-bottom":"0px"},attrs:{label:"右侧内容",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-checkbox",{on:{change:t.showContent},model:{value:t.formData.right_content.show,callback:function(e){t.$set(t.formData.right_content,"show",e)},expression:"formData.right_content.show"}},[t._v("显示")]),a("span",{staticStyle:{"margin-left":"10px",color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig,"right")}}},[t._v("效果展示")]),t.formData.right_content.show?a("div",{staticClass:"right-content"},[a("a-form-item",{staticClass:"form-item-input-style",staticStyle:{"margin-bottom":"0px"},attrs:{label:"内容样式",labelCol:{span:3},wrapperCol:t.wrapperCol,required:!1}},[a("a-radio-group",{on:{change:t.rightContentCahgne},model:{value:t.formData.right_content.style,callback:function(e){t.$set(t.formData.right_content,"style",e)},expression:"formData.right_content.style"}},[a("a-radio",{attrs:{value:"1"}},[t._v("样式一")]),a("a-radio",{attrs:{value:"2"}},[t._v("样式二")]),a("a-radio",{attrs:{value:"3"}},[t._v("样式三")])],1)],1),"1"===t.formData.right_content.style?a("div",{staticClass:"right-textarea"},[a("a-textarea",{staticStyle:{"min-height":"300px"},attrs:{id:"rightContentOne"},model:{value:t.rightContentOne,callback:function(e){t.rightContentOne=e},expression:"rightContentOne"}})],1):t._e(),"2"===t.formData.right_content.style?a("div",{staticClass:"right-textarea"},[a("a-textarea",{staticStyle:{"min-height":"300px"},attrs:{id:"rightContentTwo"},model:{value:t.rightContentTwo,callback:function(e){t.rightContentTwo=e},expression:"rightContentTwo"}})],1):t._e(),"3"===t.formData.right_content.style?a("div",{staticClass:"right-textarea"},[a("a-textarea",{staticStyle:{"min-height":"300px"},attrs:{id:"rightContentThree"},model:{value:t.rightContentThree,callback:function(e){t.rightContentThree=e},expression:"rightContentThree"}})],1):t._e(),a("a",{staticClass:"open-gallery",attrs:{id:"open-gallery",href:"javascript:void(0)"}},[t._v("插入图片")])],1):t._e()],1):t._e(),a("a-form-item",{staticClass:"form-item-input-style",attrs:{label:"状态",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-checkbox",{model:{value:t.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},[t._v("启用")])],1)],1)],1),a("a-modal",{attrs:{title:t.contentTitle,width:800},on:{ok:t.onContentOk,cancel:t.onContentClose},model:{value:t.contentVisible,callback:function(e){t.contentVisible=e},expression:"contentVisible"}},[a("a-form",{attrs:{form:t.contentForm}},[a("a-form-item",{attrs:{required:"",label:"广告图片",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[t.imageUrl?t._e():a("a-upload",{staticClass:"avatar-uploader errorBox",attrs:{name:"file",listType:"picture-card",showUploadList:!1,action:t.addUploadAddress,headers:t.token,data:{website_id:t.websiteId}},on:{change:t.handleChange}},[a("a-icon",{attrs:{type:t.loading?"loading":"plus"}}),a("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1),t.imageUrl?a("div",{staticClass:"adUploadImgStyle",on:{click:function(e){e.stopPropagation(),t.previewVisible=!0}}},[a("a-icon",{staticClass:"icon",attrs:{type:"close"},on:{click:function(e){return e.stopPropagation(),t.handleDel(e)}}}),a("img",{attrs:{src:t.imageUrl,alt:"avatar"}}),a("div",[t._v("预览")])],1):t._e(),a("div",{staticClass:"uploadTips",style:t.imageUrl?"margin-top: 10px;margin-bottom: 0px":"margin-top: -15px;margin-bottom: 5px"},[t._v(t._s(t.uploadTips))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ad_upload",{rules:[{required:!0,message:"请上传广告图"}],initialValue:""}],expression:"[\n 'ad_upload',\n {\n rules: [\n {\n required: true,\n message: '请上传广告图'\n }\n ],\n initialValue: ''\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticClass:"form-item-input-style",attrs:{required:"",label:"链接",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content_ad_link",{rules:[{required:!0,message:"请输入链接"}]}],expression:"[\n 'content_ad_link',\n {\n rules: [{ required: true, message: '请输入链接' }]\n }\n ]"}],attrs:{placeholder:"https://"}})],1)],1)],1),a("a-modal",{attrs:{title:"图片预览",visible:t.previewVisible,footer:null},on:{cancel:function(e){t.previewVisible=!1}}},[a("img",{staticStyle:{width:"100%","margin-bottom":"24px"},attrs:{alt:"example",src:t.imageUrl}})]),a("short-title-modal",{ref:"shortTitleModal",attrs:{width:"1190px",routerType:t.routerType}})],1)},g=[],_=(a("b54a"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.positionData.length?a("div",{staticClass:"menu"},[a("table",[t._m(0),a("tbody",t._l(t.positionData,(function(e,o){return a("tr",{key:o},[a("td",[a("div",{staticClass:"title",staticStyle:{"text-align":"center"}},[a("img",{staticStyle:{width:"50px",height:"50px","object-fit":"contain",margin:"5px 0px"},attrs:{src:e.img,alt:""}})])]),a("td",[a("a-tooltip",{attrs:{title:e.url}},[a("span",{staticClass:"link"},[t._v(t._s(e.url))])])],1),a("td",{staticClass:"operation"},[a("a",{attrs:{href:"javascript:;",disabled:0===o},on:{click:function(e){return t.moveUp(o)}}},[t._v("上移")]),a("a",{attrs:{href:"javascript:;",disabled:o===t.positionData.length-1},on:{click:function(e){return t.moveDown(o)}}},[t._v("下移")]),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return t.editContent(e)}}},[t._v("编辑")]),a("a-popconfirm",{attrs:{title:"确定删除吗?",placement:"topRight",overlayStyle:{width:"200px"}},on:{confirm:function(e){return t.onDel(o)}}},[a("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)])})),0)])]):t._e()])}),v=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"20%"}},[t._v("广告图片")]),a("th",{staticStyle:{width:"45%"}},[t._v("链接")]),a("th",{staticStyle:{width:"35%"}},[t._v("操作")])])])}],b=a("3178"),y={mixins:[b["a"]],props:{data:{type:Array,default:function(){return[]}},adLineType:{type:String,default:function(){return"normal"}}},data:function(){return{positionData:this.data}},methods:{moveUp:function(t){var e=this;this.$nextTick((function(){e.onPositionUp(t),e.updateData()}))},moveDown:function(t){var e=this;this.$nextTick((function(){e.onPositionDown(t),e.updateData()}))},onDel:function(t){var e=this;this.$nextTick((function(){e.onPositionDelete(t),e.updateData()}))},editContent:function(t){this.$emit("editAdOpen",{item:t,adLineType:this.adLineType})},updateData:function(){this.$emit("update:data",this.positionData)}}},w=y,C=(a("b925"),a("2877")),k=Object(C["a"])(w,_,v,!1,null,"4d8c56f6",null),x=k.exports,S=a("06dc"),A="https://cms-resource.azoyacdn.com/lib-gallery.all.min.css",T="https://staticfile.azoyacdn.com/web/static/js/jquery-1.12.4/jquery.min.js",F="https://cms-resource.azoyacdn.com/lib-gallery.all.min.js";function O(t){var e=t.path,a=void 0===e?"":e,o=t.type,i=void 0===o?"css":o;if(a){if("css"===i){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=a,document.getElementsByTagName("head")[0].appendChild(r)}if("js"===i){var n=document.createElement("script");n.src=a,document.body.appendChild(n)}}}var j={props:{formConfig:{type:Object,default:function(){return{}}}},components:{CNavAdTable:x,shortTitleModal:S["a"]},data:function(){return{formData:{id:"",title:"",link:"",content_type:"1",content:"",right_content:{style:"1",content:"",show:!1},show_ad_style:"1",category_id:"",ad_children:{normal:[],special:[]},status:!0},groupForm:this.$form.createForm(this,"groupForm"),contentForm:this.$form.createForm(this,"contentForm"),groupVisible:!1,labelCol:{span:5},wrapperCol:{span:18},groupTitle:"添加栏目",contentVisible:!1,contentTitle:"添加广告",websiteId:this.$route.params.websiteId,addUploadAddress:"/api-cms/cms/file/upload",token:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$store.getters.websiteId},loading:!1,previewVisible:!1,imageUrl:"",errorTips:"",type:"",sortIndex:"",sortLength:"",adType:"",adLineType:"",adFromData:[],categoryList:[],once:!1,routerType:"pc",linkRequired:!0,uploadTips:"",rightContentOne:'
\n
精选品牌
\n \n
',rightContentTwo:'',rightContentThree:'
\n
精选品牌
\n \x3c!-- 提示:最多支持显示8个精选品牌 --\x3e\n \n
\n\n\x3c!-- 提示:多个图片标题,直接复制 --\x3e\n'}},mounted:function(){O({path:A,type:"css"}),O({path:T,type:"js"}),O({path:F,type:"js"})},methods:{open:function(t,e,a,o){var i=this;this.groupVisible=!0,this.type=t,this.groupTitle="add"===this.type?"添加栏目":"编辑栏目",this.sortIndex=a,this.sortLength=o,this.linkRequired=!0,this.getCategoryList(),"edit"===this.type&&(this.formData=JSON.parse(JSON.stringify(e)),this.$nextTick((function(){i.groupForm.setFieldsValue({content_title:i.formData.title}),i.groupForm.setFieldsValue({content_link:i.formData.link}),"1"===i.formData.content_type&&i.groupForm.setFieldsValue({category_id:i.formData.category_id}),"2"===i.formData.content_type||"3"===i.formData.content_type?i.linkRequired=!1:i.linkRequired=!0,i.formData.right_content.show&&("1"===i.formData.right_content.style?i.rightContentOne=i.formData.right_content.content:"2"===i.formData.right_content.style?i.rightContentTwo=i.formData.right_content.content:"3"===i.formData.right_content.style&&(i.rightContentThree=i.formData.right_content.content)),i.picFieldsValue()}))),this.$nextTick((function(){i.formData.right_content.show&&i.buildGallery(),"3"===i.formData.content_type&&i.buildGallery("design")}))},setFormData:function(){this.formData={id:"",title:"",link:"",content_type:"1",content:"",right_content:{style:"1",content:"",show:!1},show_ad_style:"1",category_id:"",ad_children:{normal:[],special:[]},status:!0},this.rightContentOne='
\n
精选品牌
\n \n
',this.rightContentTwo='',this.rightContentThree='
\n
精选品牌
\n \x3c!-- 提示:最多支持显示8个精选品牌 --\x3e\n \n
\n\n\x3c!-- 提示:多个图片标题,直接复制 --\x3e\n'},groupClose:function(){this.groupVisible=!1,this.setFormData(),this.groupForm.resetFields()},onGroupOk:function(){var t=this,e=this.groupForm.validateFields;e((function(e,a){if(!e){if("1"===t.formData.content_type&&(t.formData.ad_children.normal=[],t.formData.ad_children.special=[],t.formData.content="",t.formData.right_content.show?"1"===t.formData.right_content.style?t.formData.right_content.content=t.rightContentOne:"2"===t.formData.right_content.style?t.formData.right_content.content=t.rightContentTwo:"3"===t.formData.right_content.style&&(t.formData.right_content.content=t.rightContentThree):(t.formData.right_content.style="1",t.formData.right_content.content="")),"2"===t.formData.content_type&&(t.formData.category_id="",t.formData.right_content.style="1",t.formData.right_content.content="",t.formData.content="","3"!==t.formData.show_ad_style&&(t.formData.ad_children.special=[])),"3"===t.formData.content_type){if(""===t.formData.content.trim())return void(t.errorTips="请输入自定义内容");t.formData.category_id="",t.formData.right_content.style="1",t.formData.right_content.content="",t.show_ad_style="1",t.formData.ad_children.normal=[],t.formData.ad_children.special=[]}"4"===t.formData.content_type&&(t.formData.category_id="",t.formData.right_content.style="1",t.formData.right_content.content="",t.formData.content="",t.show_ad_style="1",t.formData.ad_children.normal=[],t.formData.ad_children.special=[]),"add"===t.type&&(t.formData.id=(new Date).getTime()+"",t.formData.title=a.content_title,t.formData.link=a.content_link,t.formData.category_id=a.category_id,t.$emit("addContent",{item:t.formData,index:t.sortIndex})),"edit"===t.type&&(t.formData.title=a.content_title,t.formData.link=a.content_link,t.formData.category_id=a.category_id,t.$emit("editContent",{item:t.formData,index:t.sortIndex,length:t.sortLength})),t.groupClose()}}))},addAdOpen:function(t,e){this.adType="add",this.adLineType=t,this.contentTitle="添加广告",this.contentVisible=!0,this.uploadTips=e},editAdOpen:function(t){var e=this;""===this.uploadTips&&(this.uploadTips="图片参考尺寸280X160像素(更多尺寸参考效果展示),宽度固定,高度不固定。大小不超过500KB,支持jpg/png/gif格式"),this.adType="edit",this.contentTitle="编辑",this.contentVisible=!0,this.adLineType=t.adLineType,this.adFromData=t.item,this.$nextTick((function(){e.imageUrl=e.adFromData.img,e.contentForm.setFieldsValue({ad_upload:e.adFromData.url}),e.contentForm.setFieldsValue({content_ad_link:e.adFromData.url})}))},onContentOk:function(){var t=this,e=this.contentForm.validateFields;e((function(e,a){e||("add"===t.adType&&("normal"===t.adLineType?t.formData.ad_children.normal.push({img:t.imageUrl,url:a.content_ad_link}):"special"===t.adLineType&&t.formData.ad_children.special.push({img:t.imageUrl,url:a.content_ad_link})),"edit"===t.adType&&(t.adFromData.img=t.imageUrl,t.adFromData.url=a.content_ad_link),t.onContentClose())}))},onContentClose:function(){this.contentVisible=!1,this.imageUrl="",this.contentForm.resetFields(),this.picFieldsValue()},showContent:function(){var t=this;this.$nextTick((function(){t.formData.right_content.show&&t.buildGallery()}))},contentTypeChange:function(){var t=this;this.$nextTick((function(){"2"===t.formData.content_type||"3"===t.formData.content_type?t.linkRequired=!1:t.linkRequired=!0,"3"===t.formData.content_type&&t.buildGallery("design")}))},buildGallery:function(t){var e=this,a="";if("design"===t)a=document.getElementById("open-design-gallery"),a.addEventListener("click",(function(){new Gallery({websiteId:e.websiteId,directoryLink:"/api-product/admin/imagespace/directory/tree",imgListLink:"/api-product/admin/imagespace/image/list",createDirectoryLink:"/api-product/admin/imagespace/directory/create",uploadLink:"/api-product/admin/imagespace/image/upload",inputElem:$("#design-textarea"),headers:{"Access-Token":e.$ls.get("token"),"Website-ID":e.websiteId}})}));else{a=document.getElementById("open-gallery");var o="rightContentOne";"2"===this.formData.right_content.style?o="rightContentTwo":"3"===this.formData.right_content.style&&(o="rightContentThree"),a.addEventListener("click",(function(){new Gallery({websiteId:e.websiteId,directoryLink:"/api-product/admin/imagespace/directory/tree",imgListLink:"/api-product/admin/imagespace/image/list",createDirectoryLink:"/api-product/admin/imagespace/directory/create",uploadLink:"/api-product/admin/imagespace/image/upload",inputElem:$("#".concat(o)),headers:{"Access-Token":e.$ls.get("token"),"Website-ID":e.websiteId}})}))}},changeContent:function(){""!==this.formData.content.trim()?this.errorTips="":this.errorTips="请输入自定义内容"},handleDel:function(){this.imageUrl="",this.contentForm.setFieldsValue({ad_upload:""})},handleChange:function(t){var e=t.file;"uploading"!==e.status?"done"===e.status&&(200===e.response.status?(this.imageUrl=e.response.data.src,this.contentForm.setFieldsValue({ad_upload:e.response.data.src}),this.loading=!1):(this.$message.error(e.response.message),this.loading=!1)):this.loading=!0},getCategoryList:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!0!==this.once){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(u["b"])().then((function(t){t&&-400!==t.status&&(e.categoryList=t.data.rows,e.once=!0)}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),showEffect:function(t,e){this.$refs.shortTitleModal.showModal(t,e)},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},rightContentCahgne:function(){this.buildGallery()},picFieldsValue:function(){var t=this;this.$nextTick((function(){t.formData.ad_children.normal.length>0?t.groupForm.setFieldsValue({no_normal_pic:"data"}):t.groupForm.setFieldsValue({no_normal_pic:""}),"3"===t.formData.show_ad_style&&(t.formData.ad_children.special.length>0?t.groupForm.setFieldsValue({no_special_pic:"data"}):t.groupForm.setFieldsValue({no_special_pic:""}))}))},adStyleChange:function(){this.picFieldsValue()}}},I=j,P=(a("031a"),Object(C["a"])(I,h,g,!1,null,"4c605677",null)),E=P.exports,M=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.positionData.length?a("div",{staticClass:"menu"},[a("table",[t._m(0),a("tbody",t._l(t.positionData,(function(e,o){return a("tr",{key:o},[a("td",[a("a-tooltip",{attrs:{title:e.title}},[a("span",{staticClass:"title"},[t._v(t._s(e.title))])])],1),a("td",[a("div",{staticClass:"link"},[t._v(t._s(e.status?"启用":"禁用"))])]),a("td",{staticClass:"operation"},[a("a",{attrs:{href:"javascript:;",disabled:0===o},on:{click:function(e){return t.moveUp(o)}}},[t._v("上移")]),a("a",{attrs:{href:"javascript:;",disabled:o===t.positionData.length-1},on:{click:function(e){return t.moveDown(o)}}},[t._v("下移")]),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return t.editContent(e,o)}}},[t._v("编辑")]),a("a-popconfirm",{attrs:{title:"确定删除吗?",placement:"topRight",overlayStyle:{width:"200px"}},on:{confirm:function(e){return t.onDel(o)}}},[a("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)])})),0)])]):t._e()])},D=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"30%"}},[t._v("标题名称")]),a("th",{staticStyle:{width:"10%"}},[t._v("状态")]),a("th",{staticStyle:{width:"60%"}},[t._v("操作")])])])}],N=(a("c5f6"),{mixins:[b["a"]],props:{data:{type:Array,default:function(){return[]}},index:{type:Number,default:function(){return 1}}},data:function(){return{positionData:this.data}},methods:{moveUp:function(t){var e=this;this.$nextTick((function(){e.onPositionUp(t),e.stringifyData()}))},moveDown:function(t){var e=this;this.$nextTick((function(){e.onPositionDown(t),e.stringifyData()}))},onDel:function(t){var e=this;this.$nextTick((function(){e.onPositionDelete(t),e.stringifyData()}))},editContent:function(t,e){this.$emit("editContentOpen",t,this.index,e)},stringifyData:function(){this.$emit("update:data",this.positionData),this.$emit("stringifyData")}}}),R=N,L=(a("8005"),Object(C["a"])(R,M,D,!1,null,"a5290358",null)),B=L.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-bottom-style"},[a("span",[t._v("导航样式")]),a("div",{staticClass:"bottom-content"},[a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("选择模板")]),a("a-select",{staticClass:"nva-type-select",staticStyle:{width:"100%"},attrs:{defaultValue:1,getPopupContainer:function(t){return t.parentNode}},on:{change:t.stringifyData},model:{value:t.item.style.type,callback:function(e){t.$set(t.item.style,"type",e)},expression:"item.style.type"}},[a("a-select-option",{attrs:{value:"1"}},[t._v("常规导航")]),a("a-select-option",{attrs:{value:"2"}},[t._v("搜索导航")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目标题颜色"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.title_color},on:{input:t.updateTitleColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.title_color,callback:function(e){t.$set(t.item.style,"title_color",e)},expression:"item.style.title_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.title_color}})])])],2)],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目背景颜色"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.bg_color},on:{input:t.updateBgColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.bg_color,callback:function(e){t.$set(t.item.style,"bg_color",e)},expression:"item.style.bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.bg_color}})])])],2)],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目高度"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.item.style.height,callback:function(e){t.$set(t.item.style,"height",e)},expression:"item.style.height"}},[a("a-radio",{attrs:{value:"40"}},[t._v("标准")]),a("a-radio",{attrs:{value:"48"}},[t._v("中")]),a("a-radio",{attrs:{value:"56"}},[t._v("高")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目双线条样式")]),a("a-checkbox",{on:{change:t.stringifyData},model:{value:t.item.style.double_line_show,callback:function(e){t.$set(t.item.style,"double_line_show",e)},expression:"item.style.double_line_show"}},[t._v("显示")]),t.item.style.double_line_show?a("div",{staticClass:"double-style"},[a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("双线条颜色")]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.double_line_color},on:{input:t.updateDbLineColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.double_line_color,callback:function(e){t.$set(t.item.style,"double_line_color",e)},expression:"item.style.double_line_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.double_line_color}})])])],2)],1)],1):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("选中状态样式")]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.item.style.select_style,callback:function(e){t.$set(t.item.style,"select_style",e)},expression:"item.style.select_style"}},[a("a-radio",{attrs:{value:"1"}},[t._v("下划线")]),a("a-radio",{attrs:{value:"2"}},[t._v("色块高亮显示")])],1)],1),"2"===t.item.style.select_style?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目标题选中颜色"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.select_title_color},on:{input:t.updateSelectTitleColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.select_title_color,callback:function(e){t.$set(t.item.style,"select_title_color",e)},expression:"item.style.select_title_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.select_title_color}})])])],2)],1):t._e(),"2"===t.item.style.select_style?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目背景选中颜色"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.select_bg_color},on:{input:t.updateSelectBgColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.select_bg_color,callback:function(e){t.$set(t.item.style,"select_bg_color",e)},expression:"item.style.select_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.select_bg_color}})])])],2)],1):t._e(),"1"===t.item.style.type?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("栏目对齐样式")]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.item.style.align_style,callback:function(e){t.$set(t.item.style,"align_style",e)},expression:"item.style.align_style"}},[a("a-radio",{attrs:{value:"1"}},[t._v("居左对齐")]),a("a-radio",{attrs:{value:"2"}},[t._v("平均分布")])],1)],1):t._e(),"2"===t.item.style.type?a("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("搜索图标")]),t.item.style.search_icon?a("div",{staticClass:"uploaded-preview"},[a("img",{attrs:{src:t.item.style.search_icon}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(e){return t.deleteIcon(t.item)}}})],1)]):a("a-upload",{staticClass:"float-icon-uploader",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token},on:{change:t.iconChange}},[a("span",{staticClass:"uploader-text before-upload"},[a("a-icon",{attrs:{type:"plus"}}),t._v("上传")],1)]),a("div",{staticClass:"resetIcon",on:{click:function(e){return t.resetIcon(t.item)}}},[t._v("重置")]),a("p",{staticClass:"tips",staticStyle:{"margin-bottom":"10px"}},[t._v("参考尺寸20x20像素,宽度高度固定。大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search_icon"+t.index,{rules:[{required:!1,message:"请上传图片"}],initialValue:t.item.style.search_icon}],expression:"[\n `search_icon${index}`,\n {\n rules: [\n {\n required: false,\n message: '请上传图片'\n }\n ],\n initialValue: item.style.search_icon\n }\n ]"}],attrs:{type:"hidden"}})],1):t._e(),"2"===t.item.style.type?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("搜索框样式")]),a("a-radio-group",{on:{change:t.stringifyData},model:{value:t.item.style.search_style_type,callback:function(e){t.$set(t.item.style,"search_style_type",e)},expression:"item.style.search_style_type"}},[a("a-radio",{attrs:{value:"1"}},[t._v("横线样式")]),a("a-radio",{attrs:{value:"2"}},[t._v("色块样式")])],1)],1):t._e(),"2"===t.item.style.type?a("a-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{colon:!1,required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("搜索框颜色"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.item.style.search_border_color},on:{input:t.updateBdBgColor}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.item.style.search_border_color,callback:function(e){t.$set(t.item.style,"search_border_color",e)},expression:"item.style.search_border_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.item.style.search_border_color}})])])],2)],1):t._e()],1)])},z=[],q=a("ade3"),U=a("c345a"),H={props:{item:{type:Object,default:function(){return{}}},index:{type:Number,default:function(){return 1}},form:{type:Object,default:function(){return{}}}},components:{"sketch-picker":U["Sketch"]},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId}},data:function(){return{addUploadAddress:"/api-cms/cms/file/upload",websiteId:this.$route.params.websiteId,token:{}}},methods:{updateTitleColor:function(t){this.item.style.title_color=t.hex,this.stringifyData()},updateBgColor:function(t){this.item.style.bg_color=t.hex,this.stringifyData()},updateDbLineColor:function(t){this.item.style.double_line_color=t.hex,this.stringifyData()},updateSelectTitleColor:function(t){this.item.style.select_title_color=t.hex,this.stringifyData()},updateSelectBgColor:function(t){this.item.style.select_bg_color=t.hex,this.stringifyData()},updateBdBgColor:function(t){this.item.style.search_border_color=t.hex,this.stringifyData()},iconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.item,"uploading",!0):"done"===a&&o&&200===o.status?(this.item.style.search_icon=o.data.src,this.form.setFieldsValue(Object(q["a"])({},"search_icon".concat(this.index),o.data.src)),delete this.item["uploading"],this.stringifyData()):o&&200!==o.status&&(this.$message.error(o.message),delete this.item["uploading"])},deleteIcon:function(){this.form.setFieldsValue(Object(q["a"])({},"search_icon".concat(this.index),"")),this.item.style.search_icon="",this.stringifyData()},resetIcon:function(){this.item.style.search_icon=this.item.style.init_search_icon,this.form.setFieldsValue(Object(q["a"])({},"search_icon".concat(this.index),this.item.style.init_search_icon)),this.stringifyData()},stringifyData:function(){this.$emit("stringifyData")}}},G=H,Y=(a("f7b9"),Object(C["a"])(G,V,z,!1,null,"6594ec76",null)),J=Y.exports,K={mixins:[b["a"]],props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){return{}}},isChange:{type:Boolean,default:function(){return!1}}},components:{CNavBottom:J,CNavModal:E,CNavCategoryTable:B},mounted:function(){var t=this;this.showData=JSON.parse(this.formConfig.config_value),this.$nextTick((function(){t.navFieldsValue()}))},data:function(){return{showData:{}}},methods:{numberChange:function(t){return 0===t?"一":"二"},addContentOpen:function(t,e){this.$refs.cNavModal.open("add","",t,e)},editContentOpen:function(t,e,a){this.showData.pc_nav_content.length<2?this.$refs.cNavModal.open("edit",t,0,a):this.$refs.cNavModal.open("edit",t,e,a)},addContent:function(t){this.showData.pc_nav_content[t.index].nav.push(t.item),this.stringifyData()},editContent:function(t){this.$set(this.showData.pc_nav_content[t.index].nav,t.length,t.item),this.stringifyData()},stringifyData:function(){var t=this;this.$nextTick((function(){t.navFieldsValue()})),this.formConfig.config_value=JSON.stringify(this.showData),this.formConfig.isChange=!0,this.$emit("update:isChange",!0)},changeNavType:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("2"!==this.showData.pc_nav_type||1!==this.showData.pc_nav_content.length){t.next=8;break}return e={config:"pc_nav_content",group_id:59},a={},t.next=5,Object(u["a"])(e).then((function(t){if(t&&-400!==t.status){var e={};e=JSON.parse(t.data.rows[0].config_value),a=e.pc_nav_content[0]}}));case 5:this.showData.pc_nav_content.push(a),t.next=9;break;case 8:"1"===this.showData.pc_nav_type&&this.$set(this.showData,"pc_nav_content",[JSON.parse(JSON.stringify(this.showData.pc_nav_content[0]))]);case 9:this.stringifyData();case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),navFieldsValue:function(){"1"===this.showData.pc_nav_type?this.showData.pc_nav_content[0].nav.length>0?this.form.setFieldsValue({nav_content:"data"}):this.form.setFieldsValue({nav_content:""}):"2"===this.showData.pc_nav_type&&(this.showData.pc_nav_content[0].nav.length>0?this.form.setFieldsValue({nav_content0:"data"}):this.form.setFieldsValue({nav_content0:""}),this.showData.pc_nav_content[1].nav.length>0?this.form.setFieldsValue({nav_content1:"data"}):this.form.setFieldsValue({nav_content1:""}))}}},W=K,Z=(a("cbcf"),Object(C["a"])(W,m,f,!1,null,"10e08eb0",null)),Q=Z.exports,X={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:p["a"],CNav:Q},data:function(){return{form:this.$form.createForm(this,{name:"navForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1,mockData:{pc_nav_type:1,pc_nav_category_style_type:1,pc_nav_category_layer_type:1,pc_nav_content:[{nav:[{id:"a1",title:"广告",link:"链接",content_type:"2",content:"123123123123",right_content_show:!1,right_content:{style:1,content:"12312313"},cetegory_id:{},status:!1,children:[{}]},{id:"a1",title:"广1231告",link:"链接",content_type:"2",content:"123123123123",right_content_show:!1,right_content:{style:1,content:"12312313"},cetegory_id:{},status:!1,children:[{}]},{id:"a1",title:"广sfsdfsdf告",link:"链接",content_type:"2",content:"123123123123",right_content_show:!1,right_content:{style:1,content:"12312313"},cetegory_id:{},status:!1,children:[{}]}],style:{type:1,title_color:"#333",bg_color:"#333",height:1,double_line_show:!0,double_line_color:"#fff",select_style:1,select_title_color:"#fff",select_bg_color:"#fff",item_align_type:1,search_icon:"https://cms-resource-test.azoyacdn.com/media/44861e1cdce78b5caee2329892f1247e/18707/64cf54b03785022c60d70c970e6c07f2.png",search_style_type:1,search_border_color:"#333"}}],config_value:"123",decoration_code:"456",init_config_value:"https://cms-resource-test.azoyacdn.com/media/44861e1cdce78b5caee2329892f1247e/18707/64cf54b03785022c60d70c970e6c07f2.png"}}},methods:{updateItem:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.navForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(u["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},tt=X,et=(a("0eac"),Object(C["a"])(tt,l,d,!1,null,"217de566",null)),at=et.exports,ot=a("de6a"),it=a("6de6"),rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"new-nav-container"},[t.navData.pc_nav_content[0].nav.length>0?a("div",{staticClass:"nav-wrapper nav-single"},[t._l(t.navData.pc_nav_content,(function(e,o){return a("div",{key:o,staticClass:"nav-container",style:t.layoutStyel(e,o)},[a("div",{staticClass:"nav-layout",class:t.handleNavClass(e.style)},[a("ul",{staticClass:"nav-list",staticStyle:{"padding-left":"0px"}},t._l(e.nav,(function(i,r){return a("li",{directives:[{name:"show",rawName:"v-show",value:i.status,expression:"items.status"}],key:r,class:"1"===e.style.select_style?"nav-list__item_line nav-list__item":"nav-list__item_color nav-list__item",style:i.moveIn&&"2"===e.style.select_style?"background: "+e.style.select_bg_color:"",on:{mouseover:function(a){return t.moveIn(e,i,o,r)}}},[a("a",{style:i.moveIn&&"2"===e.style.select_style?"color:"+e.style.select_title_color+";font-weight: 700;":"color:"+e.style.title_color,attrs:{href:"javascript:void(0);"}},[t._v(t._s(i.title)+" "),a("i",{staticClass:"line",style:i.moveIn&&"1"===e.style.select_style?"background:"+e.style.title_color:"color:"+e.style.title_color})])])})),0),"2"===e.style.type?a("div",{staticClass:"nav-search"},["1"===e.style.search_style_type?a("form",{staticClass:"nav-search_line_style",attrs:{action:""}},[a("span",{style:"margin-top: -2px;"},[t._v("搜索词")]),a("div",{staticClass:"search-icon"},[a("img",{attrs:{src:e.style.search_icon,alt:""}})]),a("div",{style:"width: 200px;height: 1px;position: absolute;bottom: 20%;border-bottom: 1px solid "+e.style.search_border_color})]):t._e(),"2"===e.style.search_style_type?a("form",{staticClass:"nav-search_style",attrs:{action:""}},[a("input",{style:"background: "+e.style.search_border_color,attrs:{disabled:"",type:"text",placeholder:"搜索词"}}),a("div",{staticClass:"search-icon",style:"40"===e.style.height?"top: 7px;":"48"===e.style.height?"top: 12px;":"top: 16px;"},[a("img",{attrs:{src:e.style.search_icon,alt:""}})])]):t._e()]):t._e()])])})),t.dropDownData&&"4"!==t.dropDownData.content_type?a("div",{staticClass:"drop-down-nav-menu"},[a("div",{staticClass:"nav-menu"},["1"===t.dropDownData.content_type?a("div",{staticClass:"nav-menu_category"},[a("div",{staticClass:"category-layout left-right-layout overflow-wrap-hidden"},[a("div",{staticClass:"left-content",style:t.dropDownData.right_content.show&&"3"===t.dropDownData.right_content.style?"width: 370px;overflow: hidden;":""},["2"===t.navData.pc_nav_category_style_type?a("div",{staticClass:"left-content_list"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/100611/c07ddcd0bc0dbce5f01eeeec620a2cd9.jpg",alt:""}})]):t._e(),"1"===t.navData.pc_nav_category_style_type&&"1"===t.navData.pc_nav_category_layer_type?a("div",{staticClass:"left-content_list"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/73921/b1e6a839310a0138b8be2a0167f150c4.jpg",alt:""}})]):t._e(),"1"===t.navData.pc_nav_category_style_type&&"2"===t.navData.pc_nav_category_layer_type?a("div",{staticClass:"left-content_list"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/77459/a0237f71e8f0a8e4984427fe1180674a.jpg",alt:""}})]):t._e()]),t.dropDownData.right_content.show?a("div",{style:t.dropDownData.right_content.show&&"3"===t.dropDownData.right_content.style?"display: flex;flex-flow: wrap;height: 376px;":"",domProps:{innerHTML:t._s(t.dropDownData.right_content.content)}}):t._e()])]):t._e(),"2"===t.dropDownData.content_type?a("div",{staticClass:"nav-menu_advertise"},["1"===t.dropDownData.show_ad_style?a("div",{staticClass:"one-line-four"},[a("div",{staticClass:"item-wrapper"},t._l(t.dropDownData.ad_children.normal,(function(t,e){return a("a",{key:e,staticClass:"item",attrs:{href:"javascript:void(0);"}},[a("img",{attrs:{alt:t.url,src:t.img}})])})),0)]):t._e(),"2"===t.dropDownData.show_ad_style?a("div",{staticClass:"one-line-five"},[a("div",{staticClass:"item-wrapper"},t._l(t.dropDownData.ad_children.normal,(function(t,e){return a("a",{key:e,staticClass:"item",attrs:{href:"javascript:void(0);"}},[a("img",{attrs:{alt:t.url,src:t.img}})])})),0)]):t._e(),"3"===t.dropDownData.show_ad_style?a("div",{staticClass:"one-line-other"},[a("div",{staticClass:"item-wrapper item-wrapper-left"},t._l(t.dropDownData.ad_children.normal,(function(t,e){return a("a",{key:e,staticClass:"item",attrs:{href:"javascript:void(0);"}},[a("img",{attrs:{alt:t.url,src:t.img}})])})),0),a("div",{staticClass:"item-wrapper-right"},t._l(t.dropDownData.ad_children.special,(function(t,e){return a("a",{key:e,staticClass:"item",attrs:{href:"javascript:void(0);"}},[a("img",{attrs:{alt:t.url,src:t.img}})])})),0)]):t._e()]):t._e(),"3"===t.dropDownData.content_type?a("div",{staticClass:"nav-menu_custom"},[t._m(0)]):t._e()])]):t._e()],2):a("div",["1"===t.navData.pc_nav_category_style_type&&"1"===t.navData.pc_nav_category_layer_type?a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/81648/deff7dc59de1aa3eb08297d136b46df8.png"}}):t._e(),"1"===t.navData.pc_nav_category_style_type&&"2"===t.navData.pc_nav_category_layer_type?a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/81972/9537dca8f5edcd769120250c091ed134.png"}}):t._e(),"2"===t.navData.pc_nav_category_style_type?a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/107341/e9ddb405d100cb57f6b902f53cb0ce7d.png"}}):t._e()])])])},nt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"design-content"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/69259/590039c0353f750c91aa3009b90fc2c0.jpg",alt:""}})])}],st={props:{navData:{type:Object,default:function(){return{}}},isChagne:{type:Boolean,default:function(){return!1}}},data:function(){return{parseData:"",dropDownData:"",activeIndex:0,activeIndexs:0}},mounted:function(){this.dropDownData=this.navData.pc_nav_content[0].nav[0],this.navData.pc_nav_content.forEach((function(t){t.nav.forEach((function(t){delete t["moveIn"]}))})),this.navData.pc_nav_content[0].nav[0]&&(this.navData.pc_nav_content[0].nav[0].moveIn=!0)},methods:{moveIn:function(t,e,a,o){this.activeIndex=a,this.activeIndexs=o,this.dropDownData=e,this.navData.pc_nav_content.forEach((function(t){t.nav.forEach((function(t){delete t["moveIn"]}))})),this.$set(e,"moveIn",!0),this.$forceUpdate()},layoutStyel:function(t,e){return t.style.double_line_show?0===e?(this.oneSelected=!0,"border-top: 1px solid ".concat(t.style.double_line_color,";border-bottom: 1px solid ").concat(t.style.double_line_color,";height: ").concat(t.style.height,"px;background: ").concat(t.style.bg_color,";")):this.oneSelected?"border-bottom: 1px solid ".concat(t.style.double_line_color,";height: ").concat(t.style.height,"px;background: ").concat(t.style.bg_color,";"):"border-top: 1px solid ".concat(t.style.double_line_color,";border-bottom: 1px solid ").concat(t.style.double_line_color,";height: ").concat(t.style.height,"px;background: ").concat(t.style.bg_color,";"):(this.oneSelected=!1,"height: ".concat(t.style.height,"px;background: ").concat(t.style.bg_color,";"))},handleNavClass:function(t){return"2"===t.type?"nav-layout_search":"1"===t.align_style?"nav-layout_left":"nav-layout_average"}},watch:{navData:function(t){this.navData.pc_nav_content.length<2?this.dropDownData=this.navData.pc_nav_content[0].nav[this.activeIndexs]:this.dropDownData=this.navData.pc_nav_content[this.activeIndex].nav[this.activeIndexs]}}},ct=st,lt=(a("452d"),Object(C["a"])(ct,rt,nt,!1,null,null,null)),dt=lt.exports,ut=a("ea1b"),pt={name:"PageEditor",components:{"c-sider-title":s["a"],"c-tool-group":c["a"],navForm:at,CNavDom:dt},data:function(){return{PainterSVG:n["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(ut["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(u["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(it["a"])(a,t),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.navForm.isChange;o?this.$confirm({icon:function(t){return t(ot["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},mt=pt,ft=(a("b971d"),Object(C["a"])(mt,o,i,!1,null,"0c277a0d",null));e["default"]=ft.exports},"0df2b":function(t,e,a){},"0e59":function(t,e,a){},"0e91":function(t,e,a){"use strict";a("9b8a")},"0e92":function(t,e,a){t.exports=a.p+"img/rule_params_cycle_icon.78e0e9e3.png"},"0eac":function(t,e,a){"use strict";a("29a7")},"0eb8":function(t,e,a){"use strict";a("bada")},"0ed8":function(t,e,a){},1001:function(t,e,a){"use strict";a("3305")},"101b":function(t,e,a){t.exports=a.p+"img/miniapp_secondary_color.32f56c34.png"},10654:function(t,e,a){"use strict";a("f301")},"10b4":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"product_detail","active-name":"商品详情"}},[a("template",{slot:"content"},[a("page-render",{on:{onSet:t.onSet}})],1),a("template",{slot:"form"},[a("c-form",{ref:"cForm"})],1)],2)],1)},i=[],r=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=a("2f62"),s=a("7dd3"),c=a("fbce"),l=a("ecd9"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("page-form",{ref:"pageForm"})],1)],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("96cf"),a("1da1")),m=a("6077"),f=a("37ab");function h(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function g(t){for(var e=1;e=0)){var a=this.$props.insertExtraNode;this.extraNode=document.createElement("div");var o=this.extraNode;o.className="ant-click-animating-node";var r=this.getAttributeName();t.removeAttribute(r),t.setAttribute(r,"true"),l=l||document.createElement("style"),e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&u(e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(e)&&"transparent"!==e&&(this.csp&&this.csp.nonce&&(l.nonce=this.csp.nonce),o.style.borderColor=e,l.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: "+e+";\n }",document.body.contains(l)||document.body.appendChild(l)),a&&t.appendChild(o),i["default"].addStartEventListener(t,this.onTransitionStart),i["default"].addEndEventListener(t,this.onTransitionEnd)}},onTransitionStart:function(t){if(!this.destroy){var e=this.$el;t&&t.target===e&&(this.animationStart||this.resetEffect(e))}},onTransitionEnd:function(t){t&&"fadeEffect"===t.animationName&&this.resetEffect(t.target)},getAttributeName:function(){var t=this.$props.insertExtraNode;return t?"ant-click-animating":"ant-click-animating-without-extra-node"},bindAnimationEvent:function(t){var e=this;if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var a=function(a){if("INPUT"!==a.target.tagName&&!d(a.target)){e.resetEffect(t);var o=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,o)}),0),n["default"].cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,n["default"])((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",a,!0),{cancel:function(){t.removeEventListener("click",a,!0)}}}},resetEffect:function(t){if(t&&t!==this.extraNode&&t instanceof Element){var e=this.$props.insertExtraNode,a=this.getAttributeName();t.setAttribute(a,"false"),l&&(l.innerHTML=""),e&&this.extraNode&&t.contains(this.extraNode)&&t.removeChild(this.extraNode),i["default"].removeStartEventListener(t,this.onTransitionStart),i["default"].removeEndEventListener(t,this.onTransitionEnd)}}},render:function(){return this.configProvider.csp&&(this.csp=this.configProvider.csp),this.$slots["default"]&&this.$slots["default"][0]}}},1184:function(t,e,a){"use strict";a.d(e,"f",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return c})),a.d(e,"k",(function(){return l})),a.d(e,"n",(function(){return d})),a.d(e,"h",(function(){return u})),a.d(e,"b",(function(){return p})),a.d(e,"l",(function(){return m})),a.d(e,"o",(function(){return f})),a.d(e,"g",(function(){return h})),a.d(e,"i",(function(){return g})),a.d(e,"d",(function(){return _})),a.d(e,"e",(function(){return v})),a.d(e,"j",(function(){return b})),a.d(e,"m",(function(){return y}));var o=a("b775"),i="/api-p",r={lotteryList:i+"/lottery/list",lotteryCreate:i+"/lottery/create",lotteryDetail:i+"/lottery/detail",lotterySubmitVerify:i+"/lottery/checking",lotteryVerify:i+"/lottery/check",lotteryPause:i+"/lottery/pause",lotteryDelete:i+"/lottery/del",lotteryUpdate:i+"/lottery/update",lotteryVerifyUpdate:i+"/lottery/base-update",lotteryOperationLog:i+"/lottery/loglist",lotteryRecordList:i+"/lottery/award-entity/record-list",lotteryExport:i+"/lottery/customer-take/export",lotteryImport:i+"/lottery/customer-take/logistics-import",lotteryShip:i+"/lottery/award-entity/update-ship-status",lotteryUpdateShipAddress:i+"/lottery/award-entity/update-address"};function n(t){return Object(o["b"])({url:r.lotteryList,method:"get",params:t})}function s(t){return Object(o["b"])({url:r.lotteryCreate,method:"post",data:t})}function c(t){return Object(o["b"])({url:r.lotteryDetail,method:"get",params:t})}function l(t){return Object(o["b"])({url:r.lotterySubmitVerify,method:"post",data:t})}function d(t){return Object(o["b"])({url:r.lotteryVerify,method:"post",data:t})}function u(t){return Object(o["b"])({url:r.lotteryPause,method:"post",data:t})}function p(t){return Object(o["b"])({url:r.lotteryDelete,method:"post",data:t})}function m(t){return Object(o["b"])({url:r.lotteryUpdate,method:"post",data:t})}function f(t){return Object(o["b"])({url:r.lotteryVerifyUpdate,method:"post",data:t})}function h(t){return Object(o["b"])({url:r.lotteryOperationLog,method:"get",params:t})}function g(t){return Object(o["b"])({url:r.lotteryRecordList,method:"get",params:t})}function _(t){return Object(o["b"])({url:r.lotteryExport,method:"post",data:t})}function v(t){return Object(o["b"])({url:r.lotteryImport,method:"post",data:t})}function b(t){return Object(o["b"])({url:r.lotteryShip,method:"post",data:t})}function y(t){return Object(o["b"])({url:r.lotteryUpdateShipAddress,method:"post",data:t})}},"11a4c":function(t,e,a){"use strict";a("1808")},"11f84":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAUCAMAAAE2Dr0aAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpiZDA5OWYwYi03NTQ5LTAzNDUtYTQ1Yi0zMWQ5ZjU4MzQwYzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjYzMzJGRDQxMEQ2MTFFQUIyNTE4RjI0RjdBMkU5RUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjYzMzJGRDMxMEQ2MTFFQUIyNTE4RjI0RjdBMkU5RUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ZTUzY2U1NzktNGFjZi1hOTRlLWIwYWYtNmMwMjM5ZWEwZjM1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmJkMDk5ZjBiLTc1NDktMDM0NS1hNDViLTMxZDlmNTgzNDBjMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvLTMb4AAALBUExURYGBgXFxce/v7ygnKQcGCIuLjN7e3r29vf39/f7+/klISlFRUXt6e9/f3xISEvHx8fn5+TExMTk4Ofz8/Pb29lpZWi4uLvf398fHx2pqa83NztDQ0O7u78PDw4KCgoCAgGJiYvj4+Nvb2xUVFdTU1BgXGKqqquXl5crKyvv7+/Dw8K+vryMjIzIyMg8PDxgYGJybnLCwsLKysjAwMM7OzsDAwMbGxri4uFRUVLGxsXp6euHh4SgoKPT09CIiIlNTU1dXV4eHh/r6+kFBQS0tLRsbGyUlJfX19RQUFPPz8xcXF9fX1+zs7NXV1UlJSaurq2FhYe3t7a6urnl5eX19fYmJiR4eHqmpqVBQUKSkpOnp6ejo6HNzc+fn5+Li4o+Pj6ampjY2Nr6+vlVVVW1tbRwcHG5ubpiYmJKSklpaWn5+ftnZ2WhoaF5eXj4+PnBwcDw8PE9PTzU1NR0dHYWFhZ2dnbOzs0dHRxEREYuLizQ0NLm5ufLy8qOjo46OjqCgoNLS0re3t93d3URERKWlpcHBwUVFRZWVlby8vFhYWD09PRMTE2xsbNHR0Tc3NyAgIExMTGNjY62trZSUlM3NzSsrKxYWFuDg4MLCwsnJySwsLOTk5CYmJuvr65ycnG9vb8XFxQUFBcjIyD8/P1tbWxoaGgwMDIODg9PT08vLy8zMzNra2u7u7pqamoyMjNjY2E1NTQcHB05OTpOTk9bW1hAQEB8fHzg4OF9fX2trayoqKkJCQktLS2pqakpKSp6ennh4eJaWlsTExH9/f5ubmwkJCYqKiqysrGZmZoiIiKenp1JSUg4ODmdnZ+Pj41xcXLu7uwQEBJGRkZmZmSEhIaioqHJychkZGUNDQ6ysrerq6lZWVjs7O2VlZba2tkBAQHV1dWlpaWRkZObm5pCQkHd3dzMzM7+/vy8vLwMDA////1zJUmAAAAW4SURBVHjaYnhFGmB49fLly55Xr57yN76Sg4t6cgKJCGR1zK94VIFKJRhINB8ggMhR7/ASSLCF2D6AC1qqvVqBplD0FdA5pJsPEEAo6uNfURsAjdd99fKV4Azpqa+SX+0TFHuV7sYIdCmmSjGQR1+9cuJ9pcOLz0RR1ldcBqBIApkBEEAMr2gKaG/8S4WAl69AUDmJQ261lfurV1vVtJIwlQp4v9KTf5XAYY/HOGYh1VfsXK/AYQMNHJeVGmJAw/tevQoS1AxTfFX16pWbJxat/iWvuma8usDNJIbPeJZXr1RRjKclAAggGhs/MI5Xm//KWlr6lbkSMKLj5p4Cp3tgaLYQYWRggSuQ1BHT3N+pC+IvfPUq/9UrBXJcx/xKkoVdhkXoFYvUK4NXr5qYYMAE7vhFL192AB2WBCzhgFTZy5crXnHs4dZ7pfNqwqtXZnlur5J5gdn41TRLpqJsImzUCPbjjHZfkjZ9YqUNkOv1yuIVk3YkL3mO53rFwgx0Nwu7ATBBQpIjJElyE5VsHBFMFeKsnJj1KvRVzM5XsbcnvXpl9OqVsI+4lggTmY5nYWcDhjwbGxvQ8TmMMKAw9NM8QAAxjLp9ULk9cgi73a/klbS0llMLMIeqv5o0G1RDAXO4CycRRiZmrn316kBmxCvXPB8glzEO3NjgI8NxrK9ABY0QCxurKjDjvuqBF5NMITC357zMBLW6zr88C6K4X8a8ejVd8cUrYCHp8KqC8VV3/avgV68kUmrk1ESOEmFj8KszIpxzXtkL87/KAoXClVcv418tJ8PtklxA1998xfNKlIVVhh0YCoKwUpKb8QnU7UCOLBi9bHz50gRcgPZzcwdq+wBTjsurMum7q0DtX2tdJqNlxFhpU5n76tXiulmv2qwOvXqlpDj51cvdrwrJC3dJYPnI+oqZlVmVWRLF7XZQt095afbK2PiVxMtVr2YVvTJ9CSzI1716ZVwhmN5pUf1K+RVDbi7IJPGXXkTZ+PyV86tXe1+1A8v2Xa9eLeXlPfaS4yCZaYb1FTsw3LleybCzMr9iXAxzuwIjceVMAJylRJyN2snqcwW22Mu+OgyqQ4BxvZwBaM1JMtM7MKWzsL1ieQUM93p45cTIPlq+DxwACLAh3SgYDfdRQNtwF9BXVidCmW8pA0OpCvVcydkgGwhlqreuBnfQZHs54I7iB5FMThCO1qAI11uhDJjgkghGuHMaMvgDPcKpzRAEpDiOMxgCm13CagxlQErzKsM9qLLycBM3zlfzAgIiXprVPLO30ikVVwZ2Be/XLnC9lubVAFJie/qlK4NGdLSGXPHLQuoEQskjYJNETxFUPS71fMXRpS2sxwZshkHdrqjvAGqzvOQDBX/UMj76BCwrsJX4SoqF/ZWo0CtWZjYZZh42FnZJ0VcGzGBpxlcJGMFe/YoRPdx5wc0ElfVgylsFTDWZgKlzi0DkxccgZfJ+pqYKS4CMrDZhYBwAGbqyvqnCDCmvnI6c4BaDGBv76nI3SAvf5Fdx1PFj7J35jgUZrzpe8r5K2RS6Y4P4q4w8x/zt0JzX7P+qyBwY7q06HK8EitnpE+7swMB+9YqHCxT2bELAxgsrswwo3Fm5XkHDHd5whANuoKidBUq4ixcDxT343fWBlL4tvzKQShVZ4wGkwgR89ICUnSZQlbkLSG3hZt/r0kA644bwq5n6Iq9q51QBG75mr2z7YNGpJO4tL+8r0EstTzarAbOgmCmQlQ5ytvzDBVOFX70KKgBLWnk4OydujHr1ksnQ+VUiOy+d0jtmuIMFuXi42Fik8IR7DBnlOz8o8F9xMHmCul3ir16xaYAKrCgPUAa3nqIogCi+lMK8VlLPi3XGlhLy25gklGd7T2ufmZBqyd8fImEkCB47MgSPv5nbcL5kehW/cN4ruoY7SjkDFOMRfQUN9zSs1VQ+Ndsz4dmvRsFoO3I03EcBbgAAxU9JhAvQ1AEAAAAASUVORK5CYII="},1204:function(t,e,a){},"121d":function(t,e,a){"use strict";a("a996")},1229:function(t,e,a){t.exports=a.p+"img/product_desc_cycle_icon.b881e9b9.png"},"123c":function(t,e,a){},"12f1":function(t,e,a){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.element,o=void 0===a?document.body:a,i={},r=Object.keys(t);return r.forEach((function(t){i[t]=o.style[t]})),r.forEach((function(e){o.style[e]=t[e]})),i}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=o},"130b":function(t,e,a){},1318:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("92fa"),i=f(o),r=a("41b2"),n=f(r),s=a("9517"),c=f(s),l=a("9a8b"),d=f(l),u=a("73c8"),p=a("573a"),m=f(p);function f(t){return t&&t.__esModule?t:{default:t}}var h=(0,d["default"])(),g={inheritAttrs:!1,props:(0,n["default"])({},h,{visible:h.visible.def(!1)}),render:function(){var t=this,e=arguments[0],a=this.$props,o=a.visible,r=a.getContainer,s=a.forceRender,l={props:this.$props,attrs:this.$attrs,ref:"_component",key:"dialog",on:(0,u.getListeners)(this)};return!1===r?e(c["default"],(0,i["default"])([l,{attrs:{getOpenCount:function(){return 2}}}]),[this.$slots["default"]]):e(m["default"],{attrs:{visible:o,forceRender:s,getContainer:r,children:function(a){return l.props=(0,n["default"])({},l.props,a),e(c["default"],l,[t.$slots["default"]])}}})}};e["default"]=g},"133a":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.svgBaseProps=void 0,e.getThemeFromTypeName=l,e.removeTypeTheme=d,e.withThemeSuffix=u,e.alias=p;var o=a("a7e2"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var n=/-fill$/,s=/-o$/,c=/-twotone$/;function l(t){var e=null;return n.test(t)?e="filled":s.test(t)?e="outlined":c.test(t)&&(e="twoTone"),e}function d(t){return t.replace(n,"").replace(s,"").replace(c,"")}function u(t,e){var a=t;return"filled"===e?a+="-fill":"outlined"===e?a+="-o":"twoTone"===e?a+="-twotone":(0,i["default"])(!1,"Icon","This icon '"+t+"' has unknown theme '"+e+"'"),a}function p(t){var e=t;switch(t){case"cross":e="close";break;case"interation":e="interaction";break;case"canlendar":e="calendar";break;case"colum-height":e="column-height";break;default:}return(0,i["default"])(e===t,"Icon","Icon '"+t+"' was a typo and is now deprecated, please use '"+e+"' instead."),e}},"136b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("7b44"),i=n(o),r=a("d2f9");function n(t){return t&&t.__esModule?t:{default:t}}e["default"]={name:"Portal",props:{getContainer:i["default"].func.isRequired,children:i["default"].any.isRequired,didUpdate:i["default"].func},mounted:function(){this.createContainer()},updated:function(){var t=this,e=this.$props.didUpdate;e&&this.$nextTick((function(){e(t.$props)}))},beforeDestroy:function(){this.removeContainer()},methods:{createContainer:function(){this._container=this.$props.getContainer(),this.$forceUpdate()},removeContainer:function(){this._container&&this._container.parentNode&&this._container.parentNode.removeChild(this._container)}},render:function(){return this._container?(0,r.cloneElement)(this.$props.children,{directives:[{name:"ant-portal",value:this._container}]}):null}}},1378:function(t,e,a){},"139a":function(t,e,a){},"13f1":function(t,e,a){},1439:function(t,e,a){"use strict";a("5145")},1501:function(t,e,a){t.exports=a.p+"img/pc_search_null_icon.97a0abaf.png"},1515:function(t,e,a){"use strict";a("685a")},1585:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"activity",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_cms_header").config_value?a("img",{staticClass:"activity-logo",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_cms_header").config_value}}):a("img",{staticClass:"activity-logo",attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/25757/861edb0adba13685610a6d9e5c76ae8d.jpg"}})])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("活动页")]),a("activityForm",{ref:"activityForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"paymentForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.paymentForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("cc1e"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"8c562780",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],activityForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.activityForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.activityForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("e828"),Object(g["a"])(k,o,i,!1,null,"216dc4d6",null));e["default"]=x.exports},"15a8":function(t,e,a){},"15d1":function(t,e,a){"use strict";a("2f94")},16148:function(t,e,a){t.exports=a.p+"img/product_detail.7b0c868e.png"},"162f":function(t,e,a){"use strict";a("eedd")},1631:function(t,e,a){"use strict";a("30c5")},"164fb":function(t,e,a){"use strict";a("25a2d")},"165c":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"选择活动",width:930,visible:t.visible,destroyOnClose:!0},on:{ok:t.select,cancel:t.close}},[a("div",{staticClass:"tableForm table-page-search-wrapper"},[a("a-form",{attrs:{form:t.form,layout:"inline"}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"活动标题"}},[a("a-input",{attrs:{placeholder:"请输入"},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"活动类型"}},[a("a-select",{model:{value:t.queryParam.promotion_type,callback:function(e){t.$set(t.queryParam,"promotion_type",e)},expression:"queryParam.promotion_type"}},t._l(t.PROMOTION_TYPE,(function(e,o){return a("a-select-option",{key:o,attrs:{value:String(o)}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1)],1),a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},[a("a-select-option",{attrs:{value:"1,2,3,5,6"}},[t._v("全部")]),a("a-select-option",{attrs:{value:"1"}},[t._v("新建")]),a("a-select-option",{attrs:{value:"2"}},[t._v("提交审核")]),a("a-select-option",{attrs:{value:"3"}},[t._v("审核通过")]),a("a-select-option",{attrs:{value:"5"}},[t._v("暂停活动")]),a("a-select-option",{attrs:{value:"6"}},[t._v("活动中")])],1)],1)],1)],1),a("a-row",[a("a-button",{staticStyle:{"margin-right":"8px"},attrs:{type:"primary"},on:{click:t.submit}},[t._v("查询")]),a("a-button",{attrs:{"html-type":"reset"},on:{click:t.reset}},[t._v("重置")])],1)],1)],1),a("a-table",{staticStyle:{"margin-top":"24px"},attrs:{"table-layout":"fixed",loading:t.loading,columns:t.columns,"data-source":t.dataSource,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:!1},scopedSlots:t._u([{key:"description",fn:function(e){return[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])],2)]}},{key:"promotionType",fn:function(e){return[t._v("\n "+t._s(t._f("filterType")(e))+"\n ")]}},{key:"platform",fn:function(e){return t._l(e,(function(e,o){return a("a-tag",{key:o,staticStyle:{"margin-bottom":"8px"}},[t._v(t._s(t._f("filterPlatform")(e)))])}))}},{key:"status",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e))+"\n ")]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.queryParam.page,computedPageNumber:t.computedPageNumber,pageSize:t.queryParam.size,size:"customSize",customSize:["10","50","100"]},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)},i=[],r=(a("ac6a"),a("713d")),n=a("bf43"),s={0:"全部",2:"限时抢",3:"单品直降",4:"单品打折",5:"满赠",6:"加价购",7:"满减",8:"满折",9:"运费满减",10:"运费包邮",12:"免费小样",13:"买X免Y",14:"新人满减",15:"运费一口价",16:"N元任选",17:"新人满折",20:"有券活动",21:"多倍积分",22:"会员价",23:"运费满折",101:"外部优惠"},c={1:"PC",2:"H5",4:"iOS",8:"Android",16:"微信",32:"微信小程序",64:"支付宝小程序",128:"百度小程序",256:"抖音小程序"},l={components:{"p-agination":n["a"]},data:function(){return{visible:!1,form:null,PROMOTION_TYPE:s,loading:!1,selectedRowKeys:[],columns:[{title:"活动标题",dataIndex:"title",scopedSlots:{customRender:"description"},width:"32%"},{title:"活动类型",dataIndex:"promotion_type",scopedSlots:{customRender:"promotionType"},width:"15%"},{title:"支持平台",dataIndex:"platform",scopedSlots:{customRender:"platform"},width:"32%"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},width:"15%"}],dataSource:[],queryParam:{promotion_type:"0",title:"",status:"1,2,3,5,6",page:1,size:10},pageTotal:0}},computed:{computedPageNumber:function(){return Math.ceil(this.pageTotal/this.queryParam.size)}},methods:{showModal:function(){this.visible=!0},close:function(){this.visible=!1},select:function(){if(this.selectedRowKeys.length){var t=this.selectedRowKeys[0],e=this.dataSource.filter((function(e){return e.rule_id===t}));e.length&&this.$emit("select",{ruleId:t,item:e[0]}),this.close()}else this.$message.error("请选择活动")},submit:function(){this.getTableList()},reset:function(){this.queryParam.status="1,2,3,5,6",this.queryParam.promotion_type="0",this.queryParam.title="",this.getTableList()},getTableList:function(){var t=this;this.loading=!0,this.$set(this.queryParam,"limit",this.queryParam.size),Object(r["b"])(this.queryParam).then((function(e){var a=e.data;a&&(a.rows.forEach((function(t){t.key=t.rule_id})),t.dataSource=a.rows,t.pageTotal=a.total)})).finally((function(){t.loading=!1}))},jumpTableChange:function(t){this.queryParam.page=t,this.getTableList()},selectPageSizeChange:function(t){this.queryParam.size=t;var e=Math.floor((this.pageTotal-1)/t)+1,a=this.queryParam.page;a=a>e?e:a,0===e&&(a=this.queryParam.page),this.queryParam.page=a,this.getTableList()},onSelectChange:function(t){this.selectedRowKeys=t}},filters:{filterStatus:function(t){switch(t){case 1:return"新建";case 2:return"提交审核";case 3:return"审核通过";case 5:return"暂停活动";case 6:return"活动中";default:return"- -"}},filterType:function(t){return s[String(t)]},filterPlatform:function(t){return c[String(t)]}},mounted:function(){this.getTableList()},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"PromotionForm"})}},d=l,u=a("2877"),p=Object(u["a"])(d,o,i,!1,null,null,null);e["a"]=p.exports},"166e":function(t,e,a){},"16b6":function(t,e,a){"use strict";a("f012")},"16c1":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{fill:"#555555","fill-rule":"nonzero"}},[a("path",{attrs:{d:"M60.5105614,106.25 C60.5105614,137.542593 88.2168557,165.277778 119.476852,165.277778 C150.736848,165.277778 178.443143,137.542593 178.443143,106.25 L178.443143,16.5277778 L60.5105614,16.5277778 L60.5105614,106.25 Z M51.0759548,0 L187.877749,0 C191.785691,0 194.953704,3.17131633 194.953704,7.08333327 L194.953704,106.25 C194.953704,147.978181 161.161566,181.805556 119.476852,181.805556 C77.7921376,181.805556 44,147.978181 44,106.25 L44,7.08333327 C44,3.17131633 47.1680129,0 51.0759548,0 Z"}}),a("path",{attrs:{d:"M28.4655794,37.5036952 L30.9066908,37.8181544 C33.8343588,38.2004935 36.7653885,38.5568945 39.6994316,38.8873152 C47.8680696,39.7835234 51.7311875,42.3542264 54.851702,41.4265721 L49.4322768,23.3451759 C49.7098969,23.2497421 49.9953916,23.1787168 50.2854808,23.1329161 C49.6293351,23.1372541 48.973236,23.1188995 48.3183715,23.0778857 C45.7045413,22.9127915 43.0963341,22.668974 40.4973353,22.3467683 C38.2537249,22.0873395 29.4609839,20.9552869 28.6156801,20.9395641 C2.62455939,20.4914598 -6.26298182,54.5237921 4.43366778,82.2590816 C13.2027084,104.970888 36.1365151,122.918639 55.9814073,119.734741 L52.9635931,101.103041 C43.2860482,102.659614 25.6294661,90.694446 19.767639,75.4903503 C13.1790085,58.4152229 20.202141,37.7316781 28.0152772,37.4486648 L28.4655794,37.5036952 L28.4655794,37.5036952 Z M209.542321,37.5036952 L207.093309,37.8181544 C204.165641,38.2004935 201.234612,38.5568945 198.300568,38.8873152 C190.13983,39.7835234 186.268813,42.3542264 183.148298,41.4265721 L188.567723,23.3451759 C188.290103,23.2497421 188.004608,23.1787168 187.714519,23.1329161 C188.164821,23.1407775 188.836324,23.1250546 189.681628,23.0778857 C192.295458,22.9127915 194.903666,22.668974 197.502665,22.3467683 C199.746275,22.0873395 208.546916,20.9552869 209.38432,20.9395641 C235.375441,20.4914598 244.262982,54.5237921 233.566332,82.2590816 C224.797292,104.970888 201.871385,122.918639 182.018593,119.734741 L185.044307,101.103041 C194.713952,102.659614 212.378434,90.694446 218.240261,75.4903503 C224.820992,58.4152229 217.797859,37.7316781 209.984723,37.4486648 C209.837199,37.4665558 209.689731,37.4848993 209.542321,37.5036952 L209.542321,37.5036952 Z"}}),a("path",{attrs:{d:"M118.16009,99.7079615 L107.394062,105.28677 C105.432623,106.303161 103.018614,105.537048 102.002223,103.575609 C101.599604,102.798631 101.462893,101.911058 101.613045,101.048939 L103.643972,89.3880487 C103.872311,88.0770024 103.433677,86.738247 102.473784,85.8165171 L93.9182188,77.6011042 C92.3247666,76.0710045 92.2734093,73.5388653 93.803509,71.9454131 C94.4220095,71.3013042 95.2382553,70.8826803 96.1222386,70.7562181 L108.040812,69.0511523 C109.339397,68.8653772 110.46436,68.0546784 111.051426,66.8815675 L116.422915,56.1479423 C117.41156,54.1723727 119.814531,53.3723126 121.790101,54.3609581 C122.563223,54.7478558 123.190187,55.3748205 123.577085,56.1479423 L128.948574,66.8815675 C129.53564,68.0546784 130.660603,68.8653772 131.959188,69.0511523 L143.880729,70.7566426 C146.067603,71.0694958 147.586797,73.0959251 147.273943,75.2827991 C147.147537,76.1663918 146.729225,76.9823185 146.085579,77.600731 L137.534481,85.8165869 C136.575147,86.7383107 136.136854,88.0766763 136.365123,89.387321 L138.396509,101.050841 C138.775559,103.227218 137.318538,105.298801 135.142161,105.677851 C134.280298,105.827958 133.39299,105.691374 132.616168,105.289023 L121.840091,99.707611 C120.686192,99.1099547 119.313876,99.1100854 118.16009,99.7079615 Z"}}),a("polygon",{attrs:{points:"109.083333 170.787037 125.611111 170.787037 125.611111 230.287037 109.083333 230.287037"}}),a("path",{attrs:{d:"M184.009259,229.736111 C184.009259,234.300131 180.30939,238 175.74537,238 L57.8472222,238 C53.2832024,238 49.5833333,234.300131 49.5833333,229.736111 C49.5833333,225.172091 53.2832024,221.472222 57.8472222,221.472222 L175.74537,221.472222 C180.30939,221.472222 184.009259,225.172091 184.009259,229.736111 Z"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"16cd":function(t,e,a){"use strict";a("9d26")},"171d":function(t,e,a){t.exports=a.p+"img/sildebar.bb9706e4.png"},"171e":function(t,e,a){"use strict";a("9b08")},"17d4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAF8klEQVRoBe1ZbWhbVRjOOTdZa0VmSzvnF/5Rq4yunS1OdFurrIOKzjRJhRanW5Xulz8GLYJ/jLg5mVNQRGXTbtDhil0+3HQyhu4Df1SdoxFR65wbzk4kpR+0xmruPcfnvcuJt+UmcemNVsmB9D05H+/7PO/7nq/U5SqWogeKHih64N/0ACuUcSklM/x+vxRiOeP8Sy0UCjHGpNP2CkJAbthwpTE1FQXatQowwB/UwmGv0yS4MuCUJPD69PRhAg+wP7sY2wkvjSIi641AoMUpO0qPowQUeJeUawD+J03K1Z5IpEcytocMMiFWKMNOSccI2IBvYtHoWRMoYwmSgjGPU8CVHreqzEdmBX8ZimVXV5kRjzdrixcfYXv3zvydqfOOgFPgCayIxzdjrUSNiYlDsq3tioITcBI8geUlJQew4C/SBmDo+nty48bSXCTyjoAT4JNe7zrp9zcokKy//4KmaU0mCSmbEYnXVF8mmRcBJ8DLzs6rAOqIIcSnSZ/veeS/ucBZKHRGY4y2YFoDndLnW5MJPLVnPchkMMhdsViNIWWNi/MSc4KUHiHlE6jXp7bKv3YbGmBTADDoEuIZ6HjWEw4H1RCjtbUbOb8dKeOGrqNabe39LBjUqd/w+Z4WQmzDOfKtu6pqOdu1K6nmWWXGCID5TXosdkKXcggG+nAleIs+AP8GFNSD+Tns8znBW43NrWuRyE6N87vTKTM09LIawysrX0R9GGfKbcboaMYD0JYAPO/WhTiAyavIy/jsg5G3zQ9juznnW7SKitr0Pq+s5iFZOPw58v4h2JiBo55MBgJNpIY8Dju7TZVCdJjS5o/tOaAPDd2HsQ0I3xmtvLye9fZO2cx1rAl5fwop8xzSaRszjC1QfJyUc03rR9sOOPJBWnesr+9XarcW2wiAeZ05SMpIocErMAD7JiJMJ/YDOAOup3Y2MDACAjFEpsyVSNyuxlqlLQFBE6hw/pt1cCHrADuGiH8CwFxPJpcpW0it81THRnKjarNKWwLWAf9oXcrvyR4y4GZlF96/QHX2XyCAW+vvJnApzS07ReKPlFyUkrPEgooAvGx6XnJuRoKQKs+DnBmJWejxZcEQwMIlD99JAHE2fEeSClLIzH20LWwCuLy1A+w1wHwKC3rYBI/rBhbxHfgIl8eTJkV9qiyICMD7SwFoK4HCVpo+jY3xcR92pVKcA8fY/v2jCrRV2hLgQpj3EQzUrIMLUZcdHeXYNqMAegM8/bHm8byr7CAim8w6Y++otrnSlgAWzNfmQNx15k5w8nvS719rJBJfQedKgD+rud1tSB+DbOhe78PwfCPax9AeymTX9iqBCR8ZyeRFeGWV3tp6GDvBIewMl7YzKQXC8oMrHD4J5XBSfkW2t1caMzMfQMEi6DmmlZQ8hvfAGGnDQ+ZqY3LyFRCgr90gNUkVu2JLgCbI1tYOuGIAJFqgpgXX4fR8M798vkHkbgBjR9Idl1Oprp6QsdirHCctD4dfV86gd4I+Pv4+wC/FejjujkT2ZFNrS4AmsEjkBAAuE8lkAN6vAQF1kGg48ptB7C5E6TPp9a7HrfSLbEbs+lL3/h6zjwEqivlQGh//EODvQcs5rbT0UbMjy5+MBGgOvBuHoPv/rAJiFQAfQmSaEKWTus/3iDscjswalMcXMT3dlQJ/Hou5iZ6YudTYLuJck0BsTFuyZB3C3gsSZYhOCK+rp3LNy9XPpTyIMS8BfCNs/JhrPPVnjUA2Bakn3uO4xw8jnbbjpfYCFny1VlW1OdPzL5s+6ks9kLpzjbP25xUBqwL8YLsD10c/cjYBIpv0ePwopZh1TCHr8yZA4NyhUBR3ldVIqRHkcKOu64PYxW4tJHCl2xECpAxv29M4P1ZihzoNErfgATKIXyPuNfukvI4kjDn+NL20f5F2hwpthfjfwD4sbi+U65AxRGYFSDFEqYGIOmTKVONYBBQoenhrdXV+rIutiAbwu+oBXuC/ND1OgyebjkdAESGJ35au1Tmvdns83+A2+Yu1r1gveqDogaIH/h8e+BOr7LAsgTHuJAAAAABJRU5ErkJggg=="},"17e3":function(t,e,a){"use strict";a("6a22")},"17fd":function(t,e,a){},1801:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAA6UlEQVRIDe2SyQ3CMBBFE8QVsVRABxSAgGAKCQ1QEDegBtYKWLthEyAIbySQHDkxPiOP9GQn/vN/PEoQ+PIT+K8JJEmiYAA115sVXIWY9tC2oQh9nqsuvU4BmCnMWjCFIVzBKeRnAOYRZvLlszAMD3BhP4EbSEiFNbesATR36IxgjvH+68L+zH4Md7CG5AZgLl/dhQWGO9ZUaSEPDmL05ZTg85AZgFjmrWCJ0TarUd5xdmKRmzxBbmKEGAGImojlj1lhsGG1lhbyQhjTX9IbjAAOGyDma11o26M9cj4CGVcdfPkJ+AloE3gDIBFVSDSck/UAAAAASUVORK5CYII="},1808:function(t,e,a){},1887:function(t,e,a){t.exports=a.p+"img/staffed.6ea1a067.jpg"},1892:function(t,e,a){"use strict";a("5c8b")},"18ae":function(t,e,a){"use strict";e["a"]=function(t){return new Promise((function(e,a){setTimeout((function(){e()}),t)}))}},"18f5":function(t,e,a){"use strict";a("0127")},1934:function(t,e,a){"use strict";a("f665")},"19cf":function(t,e,a){"use strict";a("1f74")},"19f3":function(t,e,a){"use strict";a("86bc")},"1a09":function(t,e,a){t.exports=a.p+"img/shopping_car.b539ee2f.png"},"1a1e":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("满赠")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"满赠"}},[a("path",{attrs:{d:"M97.616982,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,95 L229,95",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"100",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"98",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"143",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"142",width:"42",height:"42",rx:"10"}}),a("path",{attrs:{d:"M199.727273,122.036727 C206.138888,122.035098 212.190335,124.999823 216.117276,130.066518 C220.044216,135.133214 221.40454,141.731451 219.801636,147.937471 L230.818182,147.937471 C233.680021,147.937471 236,150.256702 236,153.117619 L236,182.018363 C236,184.879281 233.680021,187.198512 230.818182,187.198512 L225.636364,187.198512 L225.636364,230.819851 C225.636364,233.680768 223.316385,236 220.454545,236 L137.545455,236 C134.683615,236 132.363636,233.680768 132.363636,230.819851 L132.363636,187.198512 L127.181818,187.198512 C124.319979,187.198512 122,184.879281 122,182.018363 L122,153.117619 C122,150.256702 124.319979,147.937471 127.181818,147.937471 L138.198364,147.937471 C135.587108,137.897204 140.805744,127.473833 150.410481,123.545769 C160.015219,119.617705 171.045557,123.395709 176.222545,132.386664 L176.222545,132.397024 L179,137.199022 L181.777455,132.397024 L181.777455,132.386664 L181.865545,132.24162 C185.589888,125.916198 192.385102,122.033907 199.727273,122.036727 Z M142.727273,187.198512 L142.727273,225.639702 L173.818182,225.639702 L173.818182,187.198512 L142.727273,187.198512 Z M215.272727,187.198512 L184.181818,187.198512 L184.181818,225.639702 L215.272727,225.639702 L215.272727,187.198512 Z M132.363636,158.297768 L132.363636,176.838215 L173.818182,176.838215 L173.818182,158.297768 L132.363636,158.297768 Z M184.181818,158.297768 L184.181818,176.838215 L225.636364,176.838215 L225.636364,158.297768 L184.181818,158.297768 Z M149.297752,137.577287 C147.446531,140.782757 147.446556,144.732024 149.297818,147.937471 L172.797364,147.937471 L173.015,147.55932 L167.247636,137.577173 L167.247636,137.571993 C165.395082,134.368581 161.974135,132.396049 158.272727,132.397024 C154.570204,132.397024 151.148973,134.371817 149.297752,137.577287 Z M199.727273,132.397024 C196.025865,132.396049 192.604918,134.368581 190.752364,137.571993 L184.979818,147.55932 L185.197455,147.937471 L208.702182,147.937471 C210.553444,144.732024 210.553469,140.782757 208.702248,137.577287 C206.851027,134.371817 203.429796,132.397024 199.727273,132.397024 Z",id:"形状",stroke:"#555555","stroke-width":"2",fill:"#555555","fill-rule":"nonzero"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"1a4a":function(t,e,a){t.exports=a.p+"img/app_bottom_tab_cart_checked_icon.95d42318.png"},"1a79":function(t,e,a){},"1b81":function(t,e,a){},"1ba9":function(t,e,a){t.exports=a.p+"img/comment_cycle_icon.12cdb9cc.png"},"1bc6":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"shopping_car",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/771619/67d762dbeb1c0cab902faa4ee7b1e3c0.jpg"}}),t.compdata&&t.compdata.length>0?a("div",{staticClass:"close-icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_cart_merge_icons").config_value+") -30px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"promotion-icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_cart_merge_icons").config_value+") -138px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"delete-icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_cart_merge_icons").config_value+") 0px -24px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"alert-icon-1",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_cart_merge_icons").config_value+") -97px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"alert-icon-2",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_cart_merge_icons").config_value+") -97px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_cart_shopping_notice").config_value?a("div",{staticClass:"shopping-notic"},[a("div",{staticClass:"notic-border"}),a("div",{staticClass:"notic-box"},[a("div",{staticClass:"notic-title"},[t._v("购物须知")]),a("div",{staticClass:"notic-content",domProps:{innerHTML:t._s(t.findCurrentFormFun(t.compdata,"pc_cart_shopping_notice").config_value)}})])]):t._e()])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("购物车")]),a("shoppingCarForm",{ref:"shoppingCarForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"shoppingCarForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"shoppingCarForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.shoppingCarForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("5088"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"b0d667da",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],shoppingCarForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.shoppingCarForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.shoppingCarForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("b4aa"),Object(g["a"])(k,o,i,!1,null,"74c46a75",null));e["default"]=x.exports},"1bcb":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("H5")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"top_nav",platform:"mobile_web",routerType:"h5"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"h5-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("be0b")}}),t.compdata&&t.compdata.length>0?o("div",{staticClass:"c-search"},[1*t.type===1?o("div",{staticClass:"h5-search-type-1",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"h5_background_color").config_value}},[o("div",{staticClass:"logo"},[t.findCurrentFormFun(t.compdata,"h5_site_logo_image_url").config_value?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"h5_site_logo_image_url").config_value}}):o("span",{staticClass:"logo-placeholder"})]),o("div",{staticClass:"depart"},[t._v(" ")]),t._v("\n "+t._s(t.findCurrentFormFun(t.compdata,"h5_searchbox_color").searchbox_color)+"\n "),o("div",{staticClass:"search-box",style:{backgroundColor:1*t.searchColor==1?"#f4f4f4":"#fff"}},[o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_search_icon_url").config_value+")"}}),t.findCurrentFormFun(t.compdata,"h5_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_scan_img_url").config_value+")"}}):t._e()])]):t._e(),1*t.type===2?o("div",{staticClass:"h5-search-type-2",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"h5_background_color").config_value}},[o("div",{staticClass:"logo"},[t.findCurrentFormFun(t.compdata,"h5_site_logo_image_url").config_value?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"h5_site_logo_image_url").config_value}}):o("span",{staticClass:"logo-placeholder"})]),t.findCurrentFormFun(t.compdata,"h5_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_scan_img_url").config_value+")"}}):t._e(),o("div",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_search_icon_url").config_value+")"}})]):t._e(),1*t.type===3?o("div",{staticClass:"h5-search-type-3",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"h5_background_color").config_value}},[o("div",{staticClass:"search-box",style:{backgroundColor:1==t.searchColor?"#f4f4f4":"#fff"}},[t.findCurrentFormFun(t.compdata,"h5_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_scan_img_url").config_value+")"}}):t._e(),o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"h5_search_icon_url").config_value+")"}})])]):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("顶部导航")]),o("topNavForm",{ref:"topNavForm",attrs:{compdata:t.compdata},on:{selectType:t.selectType}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("6b54"),a("ac6a"),a("96cf"),a("1da1")),s=a("fb02"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"topNavForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{selectValueAction:t.selectValueAction,isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"topNavForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.topNavForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.map((function(t){t.isChange&&("h5_searchbox_color"===t.decoration_code||"h5_type"===t.decoration_code||"h5_scan_show"===t.decoration_code?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1})).catch((function(t){e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},selectValueAction:function(t,e){this.$emit("selectType",t,e),"h5_type"===e.decoration_code&&(1*t===1?(this.$set(this.compdata[1],"sort",""),this.$set(this.compdata[1],"sizeTip","参考尺寸80x80像素,宽度不超过300像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")):1*t===2?(this.$set(this.compdata[1],"sort",""),this.$set(this.compdata[1],"sizeTip","参考尺寸90x90像素,宽度不超过400像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")):this.$set(this.compdata[1],"sort","hide"),this.$forceUpdate())}}},h=f,g=(a("cb55"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"99de4016",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],topNavForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],type:1,searchColor:1}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},selectType:function(t,e){"h5_type"===e.decoration_code?this.type=t:"h5_searchbox_color"===e.decoration_code&&(this.searchColor=t)},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,"h5_type"!==t.decoration_code&&"h5_searchbox_color"!==t.decoration_code||(t.config_value=JSON.parse(t.config_value),t.initialValue=[],t.config_value.map((function(e){e.checked&&t.initialValue.push(e.value)}))),"h5_type"===t.decoration_code&&(a.type=1*t.initialValue.toString()),"h5_site_logo_image_url"===t.decoration_code&&(3===a.type?(t.sort="hide",a.$forceUpdate()):2===a.type&&(t.sizeTip="参考尺寸90x90像素,宽度不超过400像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")),"h5_scan_img_url"!==t.decoration_code&&"h5_scan_show"!==t.decoration_code||(t.sort="hide"),a.$refs.topNavForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.topNavForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("45a1"),Object(g["a"])(k,o,i,!1,null,"3e967f20",null));e["default"]=x.exports},"1be1":function(t,e,a){"use strict";a("93d1")},"1bf1":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"payment_success",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[a("img",{staticClass:"content-box",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/268534/f07b6c32654294dee28e535b09dfb5c5.jpg"}}),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_pay_success_ad_pc").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_pay_success_ad_pc").config_value)[0].img?a("div",{staticClass:"content-adver-box"},[a("img",{staticClass:"content-adver-img",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_pay_success_ad_pc").config_value)[0].img}})]):t._e()])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("支付成功")]),a("paymentSuccessForm",{ref:"paymentSuccessForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentSuccessForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"paymentSuccessForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.paymentSuccessForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("dcba"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"b4c562ca",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],paymentSuccessForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.paymentSuccessForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.paymentSuccessForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("ec58"),Object(g["a"])(k,o,i,!1,null,"9e695232",null));e["default"]=x.exports},"1c17":function(t,e,a){t.exports=a.p+"img/app_recommend_content.9271ff9c.png"},"1c35":function(t,e,a){"use strict";a("d8e0")},"1d1c":function(t,e,a){},"1d4d":function(t,e,a){},"1daa":function(t,e,a){},"1db9":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warning=i,e.note=r,e.resetWarned=n,e.call=s,e.warningOnce=c,e.noteOnce=l;var o={};function i(t,e){0}function r(t,e){0}function n(){o={}}function s(t,e,a){e||o[a]||(t(!1,a),o[a]=!0)}function c(t,e){s(i,t,e)}function l(t,e){s(r,t,e)}e["default"]=c},"1e04":function(t,e,a){"use strict";a("65dd")},"1e57":function(t,e,a){},"1e92":function(t,e,a){"use strict";a("0df2b")},"1f74":function(t,e,a){},"1f7e":function(t,e,a){t.exports=a.p+"img/pc_price_bg_color.0bcf1af9.png"},"1fb7":function(t,e,a){"use strict";a("c7082")},"201c":function(t,e,a){"use strict";a("a03c")},"214d":function(t,e,a){},"21c3":function(t,e,a){"use strict";a("b16b")},2252:function(t,e,a){},2311:function(t,e,a){},"237a":function(t,e,a){t.exports=a.p+"img/page-header.5e5ef0f1.jpg"},"23bd":function(t,e,a){t.exports=a.p+"img/pc_main_button_touch_color.7277da18.png"},2419:function(t,e,a){"use strict";a("5744")},"247a":function(t,e,a){},"247d":function(t,e,a){"use strict";a("de5d")},2505:function(t,e,a){"use strict";a("42cf")},2518:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"product_detail",platform:"web",routerType:"pc"}})],1)]),t.compdata&&t.compdata.length>0?o("a-layout",{style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_bg_color").config_value},[o("a-layout-content",{staticStyle:{position:"relative",background:"none"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("16148")}}),o("img",{directives:[{name:"show",rawName:"v-show",value:"1"===t.findCurrentFormFun(t.compdata,"pc_is_show_brand").config_value,expression:"findCurrentFormFun(compdata, 'pc_is_show_brand').config_value === '1'"}],staticClass:"logo_icon",attrs:{src:a("02e4"),alt:""}}),t.compdata&&t.compdata.length>0?o("div",{staticClass:"add-count-arrow-left",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -52px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"add-count-arrow-right",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") 0px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"favorite-icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -108px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"detail-icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -208px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"selected-icon-1",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -232px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"selected-icon-2",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -232px 0px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"detail-text",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_collected_button_color").config_value},[t._v("收藏")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"jump-text-1",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_link_color").config_value},[t._v("详情 >>")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"jump-text-2",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_link_color").config_value},[t._v("详情 >>")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"jump-text-3",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_link_color").config_value},[t._v("查看运费规则")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"detail_cart_button",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_add_button_bg_color").config_value},[t._v("加入购物车")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"price_background",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_special_price_bg_color").config_value},[o("span",{staticClass:"special_price_title"},[t._v("特价")]),o("div",{staticClass:"price"},[t._v("AU$59.00")]),o("div",{staticClass:"price_tag"},[t._v("立减AU$10")]),o("span",{staticClass:"such_price"},[t._v("参考价 : ¥430.00")]),o("span",{staticClass:"origin_title"},[t._v("原价")]),o("span",{staticClass:"origin_price"},[t._v("AU$79.00")])]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"title_background",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_item_activity_bg_color").config_value},[o("span",{staticClass:"limited_time"},[t._v("限时抢")]),o("span",{staticClass:"left_count"},[t._v("仅剩5件")]),o("span",{staticClass:"left_title"},[t._v("距离活动结束还剩:")]),o("span",{staticClass:"left_time"},[o("span",{staticClass:"font-big"},[t._v("6")]),t._v(" 天 "),o("span",{staticClass:"font-big"},[t._v("11")]),t._v(" 时 "),o("span",{staticClass:"font-big"},[t._v("23")]),t._v(" 分 "),o("span",{staticClass:"font-big"},[t._v("12")]),t._v(" 秒")]),o("span",{staticClass:"detail"},[t._v("详情 >>")])]):t._e(),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_detail_ad_image").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_detail_ad_image").config_value)[0].img?o("img",{staticClass:"advertise-img",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_detail_ad_image").config_value)[0].img,alt:""}}):o("img",{staticClass:"advertise-img",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/73001/949ec874b37bdc7a432e05721cc59028.jpg",alt:""}})])])],1):t._e(),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("商品详情")]),o("productDetailForm",{ref:"productDetailForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("renderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc",globalConfig:{client:3}},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}},mounted:function(){}},h=f,g=(a("50b2"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"f928d41a",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],productDetailForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.productDetailForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0,"pc_icones"===t.decoration_code&&(t.sizeTip="参考尺寸400x60像素,宽度不超过400像素,高度固定。大小不超过1MB,支持jpg/png/gif格式")}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.productDetailForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("0b03"),Object(g["a"])(k,o,i,!1,null,"230d7cc8",null));e["default"]=x.exports},2521:function(t,e,a){},"253ce":function(t,e,a){},2560:function(t,e,a){"use strict";a("68f5")},25684:function(t,e,a){},2582:function(t,e,a){},2596:function(t,e,a){"use strict";a("8df7")},"25a2d":function(t,e,a){},"25e8":function(t,e,a){t.exports=a.p+"img/h5_detail_promotion.bdb88ef1.png"},"25ec":function(t,e,a){"use strict";a("29a4")},2625:function(t,e,a){},2631:function(t,e,a){"use strict";a("2c62")},2636:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"site_style",platform:"web",routerType:"pc"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"main-part"},[o("img",{attrs:{src:a("f7d1")}}),o("div",{staticClass:"selected_style_color",style:"border-color: "+t.findCurrentFormFun(t.compdata,"pc_main_color").config_value}),o("div",{staticClass:"selected_style_size",style:"border-color: "+t.findCurrentFormFun(t.compdata,"pc_main_color").config_value}),o("div",{staticClass:"title_background",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[o("span",{staticClass:"limited_time"},[t._v("限时抢")]),o("span",{staticClass:"left_count"},[t._v("仅剩5件")]),o("span",{staticClass:"left_title"},[t._v("距离活动结束还剩:")]),o("span",{staticClass:"left_time"},[o("span",{staticClass:"font-big"},[t._v("6")]),t._v(" 天 "),o("span",{staticClass:"font-big"},[t._v("11")]),t._v(" 时 "),o("span",{staticClass:"font-big"},[t._v("23")]),t._v(" 分 "),o("span",{staticClass:"font-big"},[t._v("12")]),t._v(" 秒")]),o("span",{staticClass:"detail"},[t._v("详情 >>")])]),o("div",{staticClass:"price",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[t._v("AU$59.00")]),o("div",{staticClass:"price_tag",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[t._v("立减AU$10")]),o("div",{staticClass:"promotion_tag",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[t._v("促销标")]),o("div",{staticClass:"promotion_title",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[t._v("满300减100 , 满600减200")]),o("div",{staticClass:"promotion_content",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_promotion_color").config_value},[t._v("活动商品买满199 , 重量≤500g免运费活动商品买满199 , 重量≤500g免运费")]),o("div",{staticClass:"cart_button",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_main_button_default_color").config_value},[t._v("加入购物车")])]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("站点风格")]),t.compdata&&t.compdata.length>0?o("siteStyleForm",{ref:"siteStyleForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"siteStyleForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"siteStyleForm"}),groupId:this.$route.params.id,loading:!1,isChange:!1}},methods:{updateItem:function(){var t=this;this.$refs.siteStyleForm.onSubmit();var e=this.form.validateFields;e((function(e,a){if(!e){if(!0===t.loading)return;var o={items:[]};t.compdata.forEach((function(t){o.items.push({id:t.id,config_value:t.config_value})})),t.loading=!0,Object(p["h"])(o).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.isChange=!1):t.$message.error(e.message),t.loading=!1}))}}))},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("cc46"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"679220b2",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],siteStyleForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.siteStyleForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.siteStyleForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("f422"),Object(g["a"])(k,o,i,!1,null,"ffcd30d6",null));e["default"]=x.exports},26365:function(t,e,a){"use strict";a("6f2b")},2670:function(t,e,a){"use strict";a("62c8")},"26a3":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"product_list",platform:"web",routerType:"pc"}})],1)]),t.compdata&&t.compdata.length>0?o("a-layout",{staticClass:"layout-box",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_bg_color").config_value},[o("a-layout-content",{staticStyle:{position:"relative",background:"none"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_bg_color").config_value,on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("5a99")}}),t.compdata&&t.compdata.length>0?o("div",{directives:[{name:"show",rawName:"v-show",value:"1"===t.findCurrentFormFun(t.compdata,"pc_is_show_add_button").config_value,expression:"findCurrentFormFun(compdata, 'pc_is_show_add_button').config_value === '1'"}],staticClass:"add_cart_button",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_add_button_touch_color").config_value},[t._v("加入购物车")]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"price-arrow_1",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") 0 -88px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"price-arrow_2",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") 0 -88px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"select_arrow",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -32px 0 no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"selected_arrow",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") 0px 0 no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"pre_arrow",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -127px -64px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"next_arrow",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_icones").config_value+") -50px -118px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"touch_product_box",style:"border-color: "+t.findCurrentFormFun(t.compdata,"pc_product_touch_color").config_value}):t._e()])])],1):t._e(),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("商品列表")]),o("productListForm",{ref:"productListForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("商品列表包含分类商品列表、品牌商品列表、搜索商品列表、店铺商品列表")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}},mounted:function(){}},h=f,g=(a("d4fa"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"328e451a",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],productListForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.productListForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.productListForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("292d"),Object(g["a"])(k,o,i,!1,null,"92b9f5dc",null));e["default"]=x.exports},"26be":function(t,e,a){},"26e0":function(t,e,a){"use strict";a("cf56")},27216:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={functional:!0,PRESENTED_IMAGE_SIMPLE:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"}},[t("ellipse",{attrs:{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}}),t("g",{attrs:{fillRule:"nonzero",stroke:"#D9D9D9"}},[t("path",{attrs:{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}}),t("path",{attrs:{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}})])])])}}},"274b":function(t,e,a){},"27c5":function(t,e,a){},2851:function(t,e,a){},"28a3":function(t,e,a){},"292d":function(t,e,a){"use strict";a("b2f7")},2946:function(t,e,a){t.exports=a.p+"img/miniapp_homepage_profile_icon.47d1d69d.png"},"29a4":function(t,e,a){},"29a7":function(t,e,a){},"29f2":function(t,e,a){},"2a16":function(t,e,a){},"2a21":function(t,e,a){"use strict";a("0e59")},"2a30":function(t,e,a){},"2a92":function(t,e,a){"use strict";a("8ac6")},"2adc":function(t,e,a){t.exports=a.p+"img/common_question_cycle_icon.1f0164b8.png"},"2b65":function(t,e,a){},"2b93":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("7b44"),i=c(o),r=a("5eea9"),n=c(r),s=a("bad7");function c(t){return t&&t.__esModule?t:{default:t}}var l={functional:!0,inject:{configProvider:{default:function(){return s.ConfigConsumerProps}}},props:{componentName:i["default"].string},render:function(t,e){var a=arguments[0],o=e.props,i=e.injections;function r(t){var e=i.configProvider.getPrefixCls,o=e("empty");switch(t){case"Table":case"List":return a(n["default"],{attrs:{image:n["default"].PRESENTED_IMAGE_SIMPLE}});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a(n["default"],{attrs:{image:n["default"].PRESENTED_IMAGE_SIMPLE},class:o+"-small"});default:return a(n["default"])}}return r(o.componentName)}};function d(t,e){return t(l,{attrs:{componentName:e}})}e["default"]=d},"2c1d":function(t,e,a){t.exports=a.p+"img/pc-code.717010e5.jpg"},"2c62":function(t,e,a){},"2c93":function(t,e,a){t.exports=a.p+"img/app_message_page_promotion_empty_icon.1665a300.png"},"2cca":function(t,e,a){},"2d63":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-component"},[a("div",{class:t.errorTips.length>0?"errorUploadBox img-box":"img-box"},[t.targetUrl?a("div",{staticClass:"upload-img-show"},[a("div",{staticClass:"adUploadImgStyle"},[a("div",{staticClass:"play-video",on:{click:t.showPrevisible}},[a("a-icon",{style:{fontSize:"26px",color:"#1890ff"},attrs:{type:"play-circle"}})],1)]),a("div",{staticClass:"upload-img-preView"},[t.detailOrigin?t._e():a("span",{staticClass:"upload-img-close",on:{click:t.closePreView}},[a("a-icon",{staticStyle:{color:"#fff","font-size":"14px","background-color":"red",width:"20px",height:"20px","border-radius":"50%","line-height":"20px","padding-top":"2px"},attrs:{type:"close"}})],1),a("p",[t._v(t._s(t._f("format")(t.duration)))])])]):a("a-upload",{staticClass:"avatar-uploader errorBox",attrs:{name:"file",listType:"picture-card",showUploadList:!1,action:t.addUploadAddress,accept:".mp4",headers:t.token,data:{website_id:t.website_id},beforeUpload:t.beforeUpload},on:{change:t.handleChange}},[a("div",[a("a-icon",{attrs:{type:t.loading?"loading":"plus"}}),a("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)])],1),t.uploadTips?a("div",{staticClass:"uploadTips"},[t._v(t._s(t.uploadTips))]):t._e(),a("div",{staticClass:"uploadTips"},[t._t("uploadTips")],2),a("div",{staticClass:"uploadErrorInfo"},[t._v(t._s(t.errorTips))]),a("a-modal",{attrs:{title:"预览",destroyOnClose:!0,width:"648px",visible:t.previewVisible,footer:null},on:{cancel:t.handleCancel}},[a("video",{attrs:{src:t.targetUrl,poster:t.videoImg,controls:"controls",width:"600px",height:"600px"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])])],1)},i=[],r=(a("a481"),a("6b54"),a("6762"),a("2fdb"),a("c5f6"),{props:{addUploadAddress:{type:String,default:"/api-product/admin/media/video/upload"},labelCol:{type:[String,Object],default:function(){return{sm:{span:4}}}},wrapperCol:{type:[String,Object],default:function(){return{sm:{span:16}}}},essentialRequired:{type:Boolean,default:function(){return!0}},uploadTips:{type:String,default:""},uploadAttr:{type:String,required:!0},detailOrigin:{type:String,default:""},detailDuration:{type:Number,default:0},cmsVideoDetail:{type:String,default:""},typeArr:{type:Array,default:function(){return["mp4","video/mp4"]}},customTypeErrorTip:{type:String,default:function(){return"仅支持mp4格式"}},videoImg:{type:String,default:function(){return""}}},watch:{detailOrigin:{handler:function(t){t&&(this.targetUrl=t)},immediate:!0},cmsVideoDetail:{handler:function(t){t&&(this.targetUrl=t)},immediate:!0},detailDuration:{handler:function(t){t&&(this.duration=t)},immediate:!0}},data:function(){return{loading:!1,targetUrl:"",errorTips:"",token:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$store.getters.websiteId},website_id:this.$store.getters.websiteId,previewVisible:!1,duration:0}},methods:{handleChange:function(t){var e=t.file;if("uploading"!==e.status){if("done"===e.status){var a=e.response.status;if(200===a||0===a){var o=e.response.data;this.loading=!1;var i=o.src;this.duration=o.duration,this.targetUrl=i;var r=o.path;this.errorTips="",this.$emit("noticeAddress",{address:this.targetUrl,attr:this.uploadAttr,relativePath:r,duration:this.duration})}}}else this.loading=!0},beforeUpload:function(t){var e=this.typeArr.includes(t.type);e||(this.errorTips=this.customTypeErrorTip);var a=t.size<209715200;return a||(this.errorTips="视频大小不能超过200MB"),e&&a},singleDecide:function(){this.targetUrl||(this.errorTips="请上传图片")},singleStatusRest:function(){this.errorTips=""},alreadyAdress:function(t){this.duration=t.duration,this.targetUrl=t.url},closePreView:function(){this.targetUrl="",this.$emit("noticeAddress",{address:this.targetUrl,attr:this.uploadAttr,duration:this.duration})},handleCancel:function(){this.previewVisible=!1},showPrevisible:function(){this.previewVisible=!0}},filters:{format:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HH:mm:ss",a=function(t){return t=t.toString(),t[1]?t:"0".concat(t)},o=a(Math.floor(t/86400)),i=a(Math.floor(t/3600%24)),r=a(Math.floor(t/60%60)),n=a(Math.floor(t%60));return e.replace("DD",o).replace("HH",i).replace("mm",r).replace("ss",n)}}}),n=r,s=(a("9681"),a("2877")),c=Object(s["a"])(n,o,i,!1,null,"e9f40d26",null);e["a"]=c.exports},"2d7b":function(t,e,a){"use strict";a("f7ee")},"2e4d":function(t,e,a){"use strict";a("ddc4")},"2e56":function(t,e,a){"use strict";a("8fb3")},"2e59":function(t,e,a){},"2ed4":function(t,e,a){t.exports=a.p+"img/site_style_2.3940afbe.jpg"},"2eeb":function(t,e,a){"use strict";a("78da")},"2f1d":function(t,e,a){"use strict";a("bb07")},"2f8a":function(t,e,a){},"2f94":function(t,e,a){},3046:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"path-select"},[a("a-select",{staticClass:"path-select-selection",class:{error:void 0===t.selected},attrs:{placeholder:"请选择",value:t.selected,getPopupContainer:function(t){return t.parentNode}},on:{change:t.changeSelect}},[a("a-select-option",{attrs:{value:"ACT_PAGE"}},[t._v("活动页")]),a("a-select-option",{attrs:{value:"HOME"}},[t._v("首页")]),a("a-select-option",{attrs:{value:"PRODUCT_LIST"}},[t._v("商品列表页")]),a("a-select-option",{attrs:{value:"PRODUCT_DETAIL"}},[t._v("商品详情页")]),a("a-select-option",{attrs:{value:"BRAND_DETAIL"}},[t._v("品牌详情页")]),a("a-select-option",{attrs:{value:"SHOP_DETAIL"}},[t._v("店铺详情页")]),a("a-select-option",{attrs:{value:"LOTTERY"}},[t._v("大转盘活动页")]),a("a-select-option",{attrs:{value:"PROMOTION_LIST"}},[t._v("活动商品列表页")]),a("a-select-option",{attrs:{value:"FISSION_LIST"}},[t._v("裂变券活动页")]),a("a-select-option",{attrs:{value:"HELP_SERVICE"}},[t._v("帮助与客服")]),a("a-select-option",{attrs:{value:"CUSTOMIZE"}},[t._v("自定义链接")])],1),"ACT_PAGE"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectAct}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectAct}},[t._v("选择页面")])],1):"PRODUCT_LIST"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectCate}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectCate}},[t._v("选择页面")])],1):"PRODUCT_DETAIL"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectProduct}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectProduct}},[t._v("选择页面")])],1):"FISSION_LIST"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectFission}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectFission}},[t._v("选择页面")])],1):"BRAND_DETAIL"===t.selected?a("div",{staticClass:"path-block"},[a("a-select",{key:"brand",attrs:{placeholder:"请输入品牌名称搜索",getPopupContainer:function(t){return t.parentNode},"show-search":"","show-arrow":!1,"default-value":t.linkDesc||void 0,"default-active-first-option":!1,"filter-option":!1},on:{search:t.brandSearch,change:t.brandChange}},t._l(t.brandList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1):"SHOP_DETAIL"===t.selected?a("div",{staticClass:"path-block"},[a("a-select",{key:"shop",attrs:{placeholder:"请输入店铺名称搜索",getPopupContainer:function(t){return t.parentNode},"show-search":"","show-arrow":!1,"default-value":t.linkDesc||void 0,"default-active-first-option":!1,"filter-option":!1},on:{search:t.shopSearch,change:t.shopChange}},t._l(t.shopList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1):"LOTTERY"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectLottery}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectLottery}},[t._v("选择页面")])],1):"PROMOTION_LIST"===t.selected?a("div",{staticClass:"path-block"},[t.linkUrl?a("div",{staticClass:"ant-input path-desc"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.linkDesc))])]),t._v("\n "+t._s(t.linkDesc)+"\n ")],2),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:t.selectPromotion}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:t.deleteSelect}})],1):a("a-button",{attrs:{block:""},on:{click:t.selectPromotion}},[t._v("选择页面")])],1):"CUSTOMIZE"===t.selected?a("div",{staticClass:"path-block"},[3===t.globalConfig.client?a("a-input",{attrs:{placeholder:"请按小程序路径规则输入","default-value":t.linkUrl},on:{input:t.customInput}}):5===t.globalConfig.client?a("a-input",{attrs:{placeholder:"请按APP路径规则输入","default-value":t.linkUrl},on:{input:t.customInput}}):t._e()],1):t._e(),a("selectActivePage",{ref:"selectActivePage",attrs:{disabledSuccessMsg:""},on:{triggerSelectActivePage:t.triggerSelectActivePage}}),a("select-product",{ref:"selectProduct",on:{select:t.getProductInfo}}),a("searchForSingle",{ref:"searchForSingle",on:{select:t.searchForSingleSelect}}),a("select-lottery",{ref:"selectLottery",on:{select:t.selectLotteryAct}}),a("SelectPromotion",{ref:"selectPromotion",on:{select:t.selectPromotionAct}}),a("select-fission",{ref:"selectFission",on:{select:t.selectFissionAct}})],1)},i=[],r=(a("c5f6"),a("7f7f"),a("ac6a"),a("6a73")),n=a("272e"),s=a("e16c"),c=a("ed1c"),l=a("165c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{width:1e3,title:"选择裂变券活动",destroyOnClose:!0,visible:t.visible},on:{ok:t.select,cancel:t.close}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{form:t.form,layout:"inline"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit(e)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"活动ID"}},[a("a-input",{attrs:{placeholder:"请输入"},model:{value:t.queryParam.ids,callback:function(e){t.$set(t.queryParam,"ids",e)},expression:"queryParam.ids"}})],1)],1),a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"活动标题"}},[a("a-input",{attrs:{placeholder:"请输入"},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{md:8}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},t._l(t.statusOptions,(function(e){return a("a-select-option",{key:Number(e.value),attrs:{value:Number(e.value)}},[t._v(t._s(e.label))])})),1)],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-button",{staticStyle:{"margin-right":"8px","margin-left":"12px"},attrs:{type:"primary"},on:{click:t.submit}},[t._v("查询")]),a("a-button",{attrs:{"html-type":"reset"},on:{click:t.reset}},[t._v("重置")])],1)],1)],1),a("a-table",{staticStyle:{"margin-top":"24px"},attrs:{"table-layout":"fixed",loading:t.loading,columns:t.columns,"data-source":t.dataSource,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:!1},scopedSlots:t._u([{key:"description",fn:function(e){return[a("a-tooltip",{attrs:{placement:"topLeft"}},[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])],2)]}},{key:"status",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e))+"\n ")]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.queryParam.page,computedPageNumber:t.computedPageNumber,pageSize:t.queryParam.size,size:"customSize",customSize:["10","50","100"]},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)},u=[],p=a("713d"),m=a("bf43"),f={components:{"p-agination":m["a"]},data:function(){return{visible:!1,loading:!1,selectedRowKeys:[],columns:[{title:"活动ID",dataIndex:"id",width:"120px"},{title:"活动标题",dataIndex:"title",scopedSlots:{customRender:"description"}},{title:"状态",dataIndex:"status",width:"160px",scopedSlots:{customRender:"status"}}],dataSource:[],queryParam:{status:0,title:"",ids:"",page:1,size:10},pageTotal:0,statusOptions:[{value:0,label:"全部"},{value:1,label:"未开始"},{value:2,label:"活动中"},{value:4,label:"已结束"},{value:3,label:"已暂停"}]}},computed:{computedPageNumber:function(){return Math.ceil(this.pageTotal/this.queryParam.size)}},watch:{visible:function(t){!0===t&&this.getTableList()}},methods:{showModal:function(){this.visible=!0},close:function(){this.visible=!1,this.queryParam={status:0,title:"",ids:"",page:1,size:10},this.selectedRowKeys=[]},select:function(){if(this.selectedRowKeys.length){var t=this.selectedRowKeys[0],e=this.dataSource.filter((function(e){return e.id===t}));e.length&&this.$emit("select",{id:t,item:e[0]}),this.close()}else this.$message.error("请选择裂变券活动")},submit:function(){this.queryParam.page=1,this.getTableList()},reset:function(){this.queryParam={status:0,title:"",ids:"",page:1,size:10},this.selectedRowKeys=[],this.getTableList()},getTableList:function(){var t=this;this.loading=!0,Object(p["a"])(this.queryParam).then((function(e){var a=e.data;a&&(a.coupon_shares.forEach((function(t){t.key=t.id})),t.dataSource=a.coupon_shares,t.pageTotal=a.total)})).finally((function(){t.loading=!1}))},jumpTableChange:function(t){this.queryParam.page=t,this.getTableList()},selectPageSizeChange:function(t){this.queryParam.size=t;var e=Math.floor((this.pageTotal-1)/t)+1,a=this.queryParam.page;a=a>e?e:a,0===e&&(a=this.queryParam.page),this.queryParam.page=a,this.getTableList()},onSelectChange:function(t){this.selectedRowKeys=t}},filters:{filterStatus:function(t){switch(t){case 0:return"全部";case 1:return"未开始";case 2:return"活动中";case 3:return"已暂停";case 4:return"已结束";default:return"- -"}}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"FissionListForm"})}},h=f,g=a("2877"),_=Object(g["a"])(h,d,u,!1,null,null,null),v=_.exports,b=a("ca41"),y=null,w="",C="";function k(t,e){function a(){Object(b["c"])({origin_name:t.title}).then((function(a){var o=a.data;if(o.brand_infos&&w===t.title){var i=[];o.brand_infos.forEach((function(t){i.push({value:t.brand_id,text:t.origin_name})})),e(i)}}))}y&&(clearTimeout(y),y=null),w=t.title,y=setTimeout(a,150)}function x(t,e){function a(){Object(b["h"])({store_name:t.title,website_id:t.websiteId}).then((function(a){var o=a.data;if(o&&C===t.title){var i=[];o.forEach((function(t){i.push({value:t.entity_id,text:t.name})})),e(i)}}))}y&&(clearTimeout(y),y=null),C=t.title,y=setTimeout(a,150)}var S={components:{selectActivePage:r["a"],selectProduct:n["a"],searchForSingle:s["a"],selectLottery:c["a"],SelectPromotion:l["a"],selectFission:v},props:{globalConfig:{type:Object,default:function(){}},linkUrl:{type:String,default:""},linkDesc:{type:String,default:""},linkType:{type:String,default:""}},data:function(){return{selected:void 0,brandList:[],shopList:[]}},watch:{selected:function(t){"HOME"===t&&(3===this.globalConfig.client?this.commitLink("/extra/cms/pages/index","HOME","首页"):5===this.globalConfig.client&&this.commitLink("type=home","HOME","首页")),"HELP_SERVICE"===t&&(3===this.globalConfig.client?this.commitLink("/extra/mine/pages/help-contact","HELP_SERVICE","帮助与客服"):5===this.globalConfig.client&&this.commitLink("type=help_contact","HELP_SERVICE","帮助与客服"))},linkUrl:function(){this.linkType?this.selected=this.linkType:this.linkUrl?this.selected="CUSTOMIZE":this.selected=void 0}},methods:{commitLink:function(t,e,a){this.$emit("changeLink",{linkUrl:t,linkType:e,linkDesc:a})},changeSelect:function(t){var e=this;if(this.selected=t,this.commitLink("",t,""),"HOME"!==t){var a=document.getElementById("props-form"),o=a.scrollTop;this.$nextTick((function(){e.$nextTick((function(){a.scrollTop=o+48}))}))}},deleteSelect:function(){this.commitLink("",this.linkType,"")},customInput:function(t){this.commitLink(t.target.value,"CUSTOMIZE","自定义链接")},selectAct:function(){this.$refs.selectActivePage.readyShow()},selectCate:function(){this.$refs.searchForSingle.showModal()},selectProduct:function(){this.$refs.selectProduct.showModal()},selectLottery:function(){this.$refs.selectLottery.showModal()},selectPromotion:function(){this.$refs.selectPromotion.showModal()},selectFission:function(){this.$refs.selectFission.showModal()},triggerSelectActivePage:function(t){1===t.item.client?3===this.globalConfig.client?this.commitLink("/pages/webview?url=".concat(t.item.page_url),"ACT_PAGE",t.item.title):5===this.globalConfig.client&&this.commitLink("type=webview&url=".concat(t.item.page_url),"ACT_PAGE",t.item.title):3===t.item.client&&this.commitLink("/extra/cms/pages/act?id=".concat(t.item.id),"ACT_PAGE",t.item.title)},getProductInfo:function(t){3===this.globalConfig.client?this.commitLink("/extra/products/pages/detail?id=".concat(t.id),"PRODUCT_DETAIL",t.item.operation.name):5===this.globalConfig.client&&this.commitLink("type=product_detail&id=".concat(t.id),"PRODUCT_DETAIL",t.item.operation.name)},searchForSingleSelect:function(t){3===this.globalConfig.client?this.commitLink("/extra/products/pages/list?cid=".concat(t.id,"&cname=").concat(t.item.name),"PRODUCT_LIST",t.item.name):5===this.globalConfig.client&&this.commitLink("type=product_list&category_id=".concat(t.id,"&category_name=").concat(t.item.name),"PRODUCT_LIST",t.item.name)},selectLotteryAct:function(t){3===this.globalConfig.client?this.commitLink("/extra/lottery/pages/lottery?id=".concat(t.activityId),"LOTTERY",t.item.title):5===this.globalConfig.client&&this.commitLink("type=lottery&id=".concat(t.activityId),"LOTTERY",t.item.title)},selectPromotionAct:function(t){var e=t.item.promotion_type;5===e||7===e||8===e||9===e||10===e||13===e||15===e||16===e||23===e?3===this.globalConfig.client?this.commitLink("/extra/products/pages/promotion-search?id=".concat(t.ruleId),"PROMOTION_LIST",t.item.title):5===this.globalConfig.client&&this.commitLink("type=addons_product_list&id=".concat(t.ruleId),"PROMOTION_LIST",t.item.title):3===this.globalConfig.client?this.commitLink("/extra/products/pages/promotion-product-search?id=".concat(t.ruleId),"PROMOTION_LIST",t.item.title):5===this.globalConfig.client&&this.commitLink("type=product_promotion_list&id=".concat(t.ruleId),"PROMOTION_LIST",t.item.title)},selectFissionAct:function(t){3===this.globalConfig.client?this.commitLink("/extra/mine/pages/share-coupon?id=".concat(t.id),"FISSION_LIST",t.item.title):5===this.globalConfig.client&&this.commitLink("type=share_coupon&id=".concat(t.id),"FISSION_LIST",t.item.title)},brandSearch:function(t){var e=this;k({title:t,websiteId:Number(this.websiteId)},(function(t){return e.brandList=t}))},brandChange:function(t){var e=this.brandList.filter((function(e){return e.value===t}));e.length&&(3===this.globalConfig.client?this.commitLink("/extra/brands/pages/detail?id=".concat(e[0].value,"&bname=").concat(encodeURIComponent(e[0].text)),"BRAND_DETAIL",e[0].text):5===this.globalConfig.client&&this.commitLink("type=brand_detail&brand_id=".concat(e[0].value,"&brand_name=").concat(e[0].text),"BRAND_DETAIL",e[0].text))},shopSearch:function(t){var e=this;x({title:t,websiteId:Number(this.websiteId)},(function(t){return e.shopList=t}))},shopChange:function(t){var e=this.shopList.filter((function(e){return e.value===t}));e.length&&(3===this.globalConfig.client?this.commitLink("/extra/shops/pages/detail?id=".concat(e[0].value,"&sname=").concat(encodeURIComponent(e[0].text)),"SHOP_DETAIL",e[0].text):5===this.globalConfig.client&&this.commitLink("type=store_detail&store_id=".concat(e[0].value,"&store_name=").concat(e[0].text),"SHOP_DETAIL",e[0].text))}},mounted:function(){this.linkType?this.selected=this.linkType:this.linkUrl?this.selected="CUSTOMIZE":this.selected=void 0,this.websiteId=this.$route.params.website_id||this.$route.params.websiteId}},A=S,T=(a("3276"),Object(g["a"])(A,o,i,!1,null,"14afc990",null)),F=T.exports;e["a"]={components:{"path-select":F},methods:{updateLinkTypeDesc:function(t,e,a,o){t[e]=a.linkUrl,t.link_type=a.linkType,t.link_desc=a.linkDesc,this.validatePathSelect&&this.validatePathSelect(o)},pathSelectError:function(t){switch(t.link_type){case"CUSTOMIZE":return"请输入链接";case"ACT_PAGE":case"PRODUCT_LIST":case"PRODUCT_DETAIL":case"BRAND_DETAIL":case"SHOP_DETAIL":case"LOTTERY":case"PROMOTION_LIST":case"FISSION_LIST":return"请选择页面";default:return"请选择链接类型"}}}}},"30c5":function(t,e,a){},"30fb":function(t,e,a){},3121:function(t,e,a){},3150:function(t,e,a){"use strict";a("792b6")},3178:function(t,e,a){"use strict";var o=a("2909");e["a"]={data:function(){return{positionData:[]}},methods:{onPositionUp:function(t){if(0!==t){var e=Object(o["a"])(this.positionData),a=e.splice(t,1)[0];e.splice(t-1,0,a),this.positionData=e}},onPositionDown:function(t){var e=Object(o["a"])(this.positionData);if(t!==e.length-1){var a=e.splice(t,1)[0];e.splice(t+1,0,a),this.positionData=e}},onPositionDelete:function(t){this.positionData.splice(t,1)},onPositionAdd:function(t){this.positionData.push(t)},onPositionEdit:function(t,e){this.positionData.splice(t,1,e)}}}},"31f2":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.requestAnimationTimeout=e.cancelAnimationTimeout=void 0;var o=a("0ca5"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}var n=(0,i["default"])();e.cancelAnimationTimeout=function(t){return(0,o.cancelRequestAnimationFrame)(t.id)},e.requestAnimationTimeout=function(t,e){var a=Date.now();function o(){Date.now()-a>=e?t.call():i.id=n(o)}var i={id:n(o)};return i}},"31fc0":function(t,e,a){"use strict";a("0bfe")},3276:function(t,e,a){"use strict";a("06f2")},"327e":function(t,e,a){t.exports=a.p+"img/miniapp_homepage_rma_icon.3877ef64.png"},3287:function(t,e,a){"use strict";a("37af")},"32ac":function(t,e,a){},"32d0":function(t,e,a){},3305:function(t,e,a){},3306:function(t,e,a){"use strict";a("3a65")},3308:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"site_style",platform:"mini_app",routerType:"applet"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"applet-preview-panel",staticStyle:{width:"770px"},on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("6c92")}}),o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.compdata,"miniapp_main_color").config_value})])]),o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,staticClass:"box box-1"},[o("div",{staticClass:"box-item-1"},[o("div",{staticClass:"pic"},[o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),e%2===1?o("div",{staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")]):t._e()]),o("div",{staticClass:"tag"},[o("div",e%2===1?[o("span",{staticClass:"tag-box"},[t._v("新品")]),o("span",{staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{staticClass:"tag-box"},[t._v("商品打标")]),o("span",{staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{staticClass:"eng"},[t._v("品牌名")]),o("span",{staticClass:"line"},[t._v("/")]),o("span",{staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[o("div",{staticClass:"line-1"},[t._v("此处为商品标题")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:e%2===1?"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_sale_price_color").config_value},[t._v("AU$112.8")]),e%2===1?o("span",{staticClass:"right-price"},[t._v("AU$134")]):t._e()]),o("div",{staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{staticClass:"add-icon"},[o("img",{attrs:{src:"https://cms-resource-test.azoyacdn.com/decoration/product-list-add-cart.png",alt:""}})])])])})),0)]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("42a1")}}),o("div",{staticClass:"tab-color",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_main_color").config_value},[t._v("产品描述"),o("div",{staticClass:"bottom-style",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_main_color").config_value})]),o("div",{staticClass:"tiem_shop",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("限时购")]),o("div",{staticClass:"time_background",style:"background: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("距结束仅剩:01天20小时20分20秒 "),o("img",{attrs:{src:a("1801"),alt:""}})]),o("div",{staticClass:"price",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("AU$"),o("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v("1999.99")])]),o("div",{staticClass:"active",style:"color: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("Physician's Formula 用码[JAN33] 67折")]),o("div",{staticClass:"add_cart",style:"background: "+t.findCurrentFormFun(t.compdata,"miniapp_promotion_color").config_value},[t._v("加入购物车")])]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("站点风格")]),t.compdata&&t.compdata.length>0?o("siteStyleForm",{ref:"siteStyleForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"siteStyleForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"siteStyleForm"}),groupId:this.$route.params.id,loading:!1,isChange:!1}},methods:{updateItem:function(){var t=this;this.$refs.siteStyleForm.onSubmit();var e=this.form.validateFields;e((function(e,a){if(!e){if(!0===t.loading)return;var o={items:[]};t.compdata.forEach((function(t){o.items.push({id:t.id,config_value:t.config_value})})),t.loading=!0,Object(p["h"])(o).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.isChange=!1):t.$message.error(e.message),t.loading=!1}))}}))},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("0e91"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"9c275862",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],siteStyleForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.siteStyleForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.siteStyleForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("51e9"),Object(g["a"])(k,o,i,!1,null,"40fcb1ae",null));e["default"]=x.exports},3355:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var o=a("2c80"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}function n(t,e,a,o){return(0,i["default"])(t,e,a,o)}},"336d":function(t,e,a){},"337e":function(t,e,a){},3387:function(t,e,a){"use strict";a("8917")},3393:function(t,e,a){"use strict";a("b53c")},"33cb":function(t,e,a){"use strict";a("99ee")},3461:function(t,e,a){},3536:function(t,e,a){"use strict";a("93cc")},3538:function(t,e,a){"use strict";a("dfac")},"353e":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"payment",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[a("img",{staticClass:"content-box",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/45875/169f371ce39f08ca008b1ad0053137aa.png"}}),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_pay_cashier_tips_pc").config_value?a("div",{staticClass:"payment-box"},[a("span",{staticClass:"payment-content"},[t._v(t._s(t.findCurrentFormFun(t.compdata,"pc_pay_cashier_tips_pc").config_value))])]):a("div",{staticClass:"payment-box"},[a("span",{staticClass:"payment-content"},[t._v("此处显示收款主体说明提示语")])]),a("img",{staticClass:"content-box",staticStyle:{"margin-top":"0px"},attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/64571/efc6f1ca0c1ad72c06dbbb86cabef5f3.png"}})])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("收银台")]),a("paymentForm",{ref:"paymentForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"paymentForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.paymentForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("83a8"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"cf900072",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],paymentForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.paymentForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.paymentForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("c9eb"),Object(g["a"])(k,o,i,!1,null,"3a111c9c",null));e["default"]=x.exports},"353e4":function(t,e,a){"use strict";a("a6d3")},"35bb":function(t,e,a){},"35c17":function(t,e,a){},"35f5":function(t,e,a){t.exports=a.p+"img/shopping_car.74fab4f5.jpg"},"361e":function(t,e,a){},"362f":function(t,e,a){},"368c":function(t,e,a){},"36d3":function(t,e,a){t.exports=a.p+"img/pc_wechat_official_name.0a88ccda.png"},"36eb":function(t,e,a){t.exports=a.p+"img/pc-givings.da7bdc2f.jpg"},3736:function(t,e,a){"use strict";a("b75b")},3764:function(t,e,a){"use strict";a("362f")},3765:function(t,e,a){},"37ab":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail-form"},[t.rows.length?a("div",{staticClass:"form-components"},[a("div",{staticStyle:{"margin-bottom":"16px"}},[a("c-group-radio",{attrs:{"form-config":t.getStyle},on:{checkRadioAction:t.styleRadioChange}})],1),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("c-group-radio",{attrs:{"form-config":t.getMainImageStyle},on:{checkRadioAction:t.mainImageStyleRadioChange}})],1),a("operate-block-form",{attrs:{title:t.getBaseData.decoration_name,"operate-data":t.baseDataState},on:{moveUp:t.onBaseMoveUp,moveDown:t.onBaseMoveDown,edit:t.onEdit}}),a("operate-block-form",{attrs:{title:t.getOtherData.decoration_name,"operate-data":t.otherDataState},on:{moveUp:t.onOtherMoveUp,moveDown:t.onOtherMoveDown,edit:t.onEdit}}),a("foot-nav-form",{attrs:{"form-config":t.getFootNav},on:{edit:t.onEdit}}),t.getArrialRemind?a("div",{staticClass:"arrial-remind-wrapper"},[a("input-item",{attrs:{"form-config":t.getArrialRemind},on:{inputChange:t.arrilaRemindChange}}),a("span",{staticClass:"show-effect",on:{click:t.showEffect}},[a("a-icon",{attrs:{type:"eye"}}),t._v("\n 效果展示\n ")],1),a("show-example-modal",{ref:"showExampleModal"})],1):t._e(),a("div",{staticClass:"white-block"})],1):t._e(),a("div",{staticClass:"modal-components"},[a("foot-nav-modal",{ref:"detail_bottom_nav",attrs:{name:"detail_bottom_nav"},on:{onConfirm:t.onModalConfirm}}),a("app-upload-advertisement-modal",{ref:"detail_app_download_ad",attrs:{name:"detail_app_download_ad"},on:{onConfirm:t.onModalConfirm}}),a("brand-modal",{ref:"detail_brand",attrs:{name:"detail_brand"},on:{onConfirm:t.onModalConfirm}}),a("product-sell-modal",{ref:"detail_sale_info",attrs:{name:"detail_sale_info"},on:{onConfirm:t.onModalConfirm}}),a("share-coupon-modal",{ref:"detail_share_coupon",attrs:{name:"detail_share_coupon"},on:{onConfirm:t.onModalConfirm}}),a("advertisement-modal",{ref:"detail_ad",attrs:{name:"detail_ad"},on:{onConfirm:t.onModalConfirm}}),a("product-combine-modal",{ref:"detail_match_recommend",attrs:{name:"detail_match_recommend"},on:{onConfirm:t.onModalConfirm}}),a("product-recommend-modal",{ref:"detail_recommend",attrs:{name:"detail_recommend"},on:{onConfirm:t.onModalConfirm}}),a("spec-param-modal",{ref:"detail_spec",attrs:{name:"detail_spec"},on:{onConfirm:t.onModalConfirm}}),a("nutrition-modal",{ref:"detail_nutrition",attrs:{name:"detail_nutrition"},on:{onConfirm:t.onModalConfirm}}),a("product-recommend-flow-modal",{ref:"detail_waterfall_recommend",attrs:{name:"detail_waterfall_recommend"},on:{onConfirm:t.onModalConfirm}}),a("brand-store-modal",{ref:"detail_brand_store_show",attrs:{name:"detail_brand_store_show"},on:{onConfirm:t.onModalConfirm}}),a("promotion-modal",{ref:"detail_marketing",attrs:{name:"detail_marketing"},on:{onConfirm:t.onModalConfirm}}),a("share-collect-notice-modal",{ref:"detail_share_notice",attrs:{name:"detail_share_notice"},on:{onConfirm:t.onModalConfirm}}),a("product-comment-modal",{ref:"detail_comment",attrs:{name:"detail_comment"},on:{onConfirm:t.onModalConfirm}}),a("product-price-modal",{ref:"detail_price",attrs:{name:"detail_price"},on:{onConfirm:t.onModalConfirm}}),a("common-question-modal",{ref:"detail_common_question",attrs:{name:"detail_common_question"},on:{onConfirm:t.onModalConfirm}}),a("buy-notice-modal",{ref:"detail_buy_notice",attrs:{name:"detail_buy_notice"},on:{onConfirm:t.onModalConfirm}}),a("product-tag-modal",{ref:"detail_tag",attrs:{name:"detail_tag"},on:{onConfirm:t.onModalConfirm}})],1)])},i=[],r=(a("8e6e"),a("456d"),a("7514"),a("7f7f"),a("ac6a"),a("96cf"),a("1da1")),n=(a("6762"),a("2fdb"),a("ade3")),s=a("2f62"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"operate-block-component"},[a("a-form-item",[a("span",{staticClass:"label"},[t._v(t._s(t.title))]),a("div",{staticClass:"menu"},[a("table",[a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"55%","padding-left":"24px"}},[t._v("模块")]),a("th",[t._v("操作")])])]),a("tbody",t._l(t.operateData,(function(e,o){return a("tr",{key:o},[a("td",{staticClass:"title"},[t._v(t._s(e.name))]),a("td",{staticClass:"operation"},[a("a",{attrs:{href:"javascript:;",disabled:o===t.currentMoveDataFirstIndex||!e.move},on:{click:function(e){return t.moveUp(o)}}},[t._v("上移")]),a("a",{attrs:{href:"javascript:;",disabled:o===t.currentMoveDataLastIndex||!e.move},on:{click:function(e){return t.moveDown(o)}}},[t._v("下移")]),a("a",{attrs:{href:"javascript:;",disabled:!e.edit},on:{click:function(a){return t.edit(o,e)}}},[t._v("编辑")])])])})),0)])])])],1)},l=[],d=(a("20d6"),{props:{title:{type:String,default:""},operateData:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{edit:function(t,e){this.$emit("edit",{index:t,item:e})},moveUp:function(t){this.$emit("moveUp",t)},moveDown:function(t){this.$emit("moveDown",t)}},computed:{currentMoveDataFirstIndex:function(){return this.operateData.length?this.operateData.findIndex((function(t){return 1===t.move})):0},currentMoveDataLastIndex:function(){return this.operateData.length?this.operateData.findLastIndex((function(t){return 1===t.move})):0}}}),u=d,p=(a("7566"),a("2877")),m=Object(p["a"])(u,c,l,!1,null,"6580865f",null),f=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bottom-nav-form"},[a("a-form-item",[a("span",{staticClass:"label"},[t._v(t._s(t.formConfig.decoration_name))]),a("div",{staticClass:"menu"},[a("table",[a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"65%","padding-left":"24px"}},[t._v("模块")]),a("th",[t._v("操作")])])]),a("tbody",t._l(t.formConfig.config_value,(function(e,o){return a("tr",{key:o},[a("td",{staticClass:"title"},[t._v(t._s(e.name))]),e.edit?a("td",[a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return t.$emit("edit",{item:e})}}},[t._v("编辑")])]):t._e()])})),0)])])])],1)},g=[],_={props:{formConfig:{type:Object,default:function(){}}}},v=_,b=(a("2596"),Object(p["a"])(v,h,g,!1,null,"032e4f26",null)),y=b.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"icon-upload-item"},[a("a-form-item",{staticClass:"cart-item",attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name))]),t.formConfig.isEmpty?a("a-upload",{staticClass:"float-icon-uploader",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.formConfig["uploading-"+t.formConfig.decoration_code]},on:{change:t.iconChange}},[a("span",{staticClass:"uploader-text before-upload"},[a("a-icon",{attrs:{type:t.formConfig["uploading-"+t.formConfig.decoration_code]?"loading":"plus"}}),t._v("上传\n ")],1)]):a("div",{staticClass:"uploaded-preview"},[a("img",{attrs:{src:t.formConfig.config_value}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(e){return t.deleteIcon(t.formConfig)}}})],1)]),t.formConfig.noReset?t._e():a("div",{staticClass:"resetIcon",on:{click:function(e){return t.resetIcon(t.formConfig)}}},[t._v("重置")]),a("p",{staticClass:"tips",staticStyle:{"margin-bottom":"0px"}},[t._v(t._s(t.formConfig.sizeTip))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:"请上传图片"}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请上传图片'\n }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)},C=[],k={props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},data:function(){return{websiteId:this.$route.params.websiteId,token:{}}},methods:{iconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.formConfig,"uploading-".concat(this.formConfig.decoration_code),!0):"done"===a&&o&&200===o.status?(this.formConfig.config_value=o.data.src,this.formConfig.isEmpty=!1,this.formConfig.isChange=!0,this.form.setFieldsValue(Object(n["a"])({},"".concat(this.formConfig.decoration_code),o.data.src)),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)]):o&&200!==o.status&&(this.$set(this.formConfig,"uploading-".concat(this.formConfig.decoration_code),!1),this.$message.error(o.message))},deleteIcon:function(t){this.form.setFieldsValue(Object(n["a"])({},"".concat(t.decoration_code),"")),t.isChange=!0,t.isEmpty=!0},resetIcon:function(t){t.config_value=t.init_config_value,t.isChange=!0,t.isEmpty=!1,this.form.setFieldsValue(Object(n["a"])({},"".concat(t.decoration_code),t.init_config_value))}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId}}},x=k,S=(a("93623"),Object(p["a"])(x,w,C,!1,null,"5f75a0c6",null)),A=S.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkbox-item-component"},[a("a-form-item",{staticStyle:{"margin-bottom":"6px"},attrs:{required:t.formConfig.required,label:t.formConfig.decoration_name}},[a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_name,{rules:[{required:t.formConfig.required,message:t.formConfig.errorTips}],initialValue:t.initialValue}],expression:"[\n formConfig.decoration_name,\n {\n rules: [{ required: formConfig.required, message: formConfig.errorTips }],\n initialValue: initialValue\n }\n ]"}],attrs:{disabled:t.formConfig.disabled},on:{change:function(e){return t.changeCheckbox(e,t.formConfig)}}},t._l(t.formConfig.config_value,(function(e){return a("a-checkbox",{key:e.value,staticStyle:{"margin-left":"0px","margin-right":"8px"},attrs:{value:e.value},on:{change:function(e){t.formConfig.isChange=!0}}},[t._v("\n "+t._s(e.name)+"\n ")])})),1),t.formConfig.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer","padding-left":"10px"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v("\n 效果展示\n ")],1):t._e(),t.formConfig.to&&t.isShowSet?a("a",{staticStyle:{"padding-left":"4px","font-size":"12px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("去设置")]):t._e(),t.formConfig.sizeTip?a("div",{staticClass:"checkbox-tip"},[t._v(t._s(t.formConfig.sizeTip))]):t._e(),t._t("default")],2),t.formConfig.isShowEffect?a("show-example-modal",{ref:"showExampleModal"}):t._e()],1)},F=[],O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-modal",{attrs:{title:"效果展示",visible:t.visible,footer:null,width:t.width,bodyStyle:t.bodyStyle},on:{cancel:t.handleCancel}},[a("div",{staticClass:"example-wrapper",staticStyle:{"margin-top":"-12px"}},[a("div",{staticClass:"title-modal-img"},[t.title?a("p",{staticStyle:{margin:"0px",color:"#1890ff","margin-bottom":"10px"}},[t._v(t._s(t.title))]):t._e(),t.des?a("div",{staticClass:"mb16",staticStyle:{color:"rgba(51, 51, 51, 0.647058823529412)","margin-bottom":"10px"}},[t._v(t._s(t.des))]):t._e(),a("div",{staticClass:"img-box",staticStyle:{"text-align":"center"}},[t.imgSrc?a("img",{style:"width: "+(t.imgWidth||"375px"),attrs:{src:t.imgSrc}}):t._e()])])])])],1)},j=[],I={props:{width:{type:String,default:"900px"},bodyStyle:{type:Object,default:function(){return{padding:"24px 24px 0"}}}},data:function(){return{visible:!1,title:"",des:"",imgSrc:"",imgWidth:""}},methods:{showModal:function(t){this.title=t.title,this.des=t.des,this.imgSrc=t.imgSrc,this.imgWidth=t.imgWidth,this.visible=!0},handleCancel:function(){this.visible=!1}}},P=I,E=(a("a8e1"),Object(p["a"])(P,O,j,!1,null,"7e149f64",null)),M=E.exports,$={components:{ShowExampleModal:M},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}},isShowSet:{type:Boolean,default:!0}},methods:{changeCheckbox:function(t,e){e.config_value.forEach((function(e){t.length?t.forEach((function(t){t===e.value?e.checked=!0:e.checked=!1})):e.checked=!1})),this.$emit("onChangeCheckbox",t)},showEffect:function(t){this.$refs.showExampleModal.showModal(t)}},mounted:function(){var t=this.formConfig.config_value;t&&!Array.isArray(t)&&(this.formConfig.config_value=JSON.parse(t))},computed:{initialValue:function(){var t=this.formConfig.config_value;return t&&Array.isArray(t)&&this.formConfig.config_value.filter((function(t){return t.checked})).map((function(t){return t.value}))||[]}}},D=$,N=(a("5def"),Object(p["a"])(D,T,F,!1,null,"5a37c0ba",null)),R=N.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"advertise-upload-item"},[t.renderForm?[a("div",{staticClass:"item"},[a("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-top":"0"},attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name))]),t.formConfig.img?a("div",{staticClass:"upload-img-show"},[a("img",{staticClass:"adUploadImgStyle",attrs:{src:t.formConfig.img,alt:"avatar"}}),a("div",{staticClass:"upload-img-preView"},[a("span",{staticClass:"upload-img-close",on:{click:function(e){return t.deleteIcon(t.formConfig)}}},[a("a-icon",{staticStyle:{color:"#fff",fontSize:"14px",backgroundColor:"red",width:"20px",height:"20px",borderRadius:"50%",lineHeight:"20px",paddingTop:"2px"},attrs:{type:"close"}})],1),a("p",{on:{click:t.showPrevisible}},[t._v("预览")])])]):a("a-upload",{staticClass:"float-icon-uploader-box",attrs:{name:"file",listType:"picture-card",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.isDisabled},on:{change:function(e){return t.loadChange(e)}}},[a("div",[a("a-icon",{attrs:{type:t.formConfig["uploading-"+t.formConfig.decoration_code]?"loading":"plus"}}),a("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:"请上传图片"}],initialValue:t.formConfig.img}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请上传图片'\n }\n ],\n initialValue: formConfig.img\n }\n ]"}],attrs:{type:"hidden"}}),a("p",{staticClass:"tips"},[t._v(t._s(t.formConfig.sizeTip))])],1),a("div",{staticClass:"link"},[t.formConfig.isSelectLink?a("a-form-item",{attrs:{required:t.formConfig.required,label:"落地页"}},[a("path-select",{attrs:{"global-config":t.globalConfig,"link-url":t.formConfig.link,"link-desc":t.formConfig.link_desc,"link-type":t.formConfig.link_type},on:{changeLink:function(e){return t.updateLinkTypeDesc(t.formConfig,"link",e)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link",{rules:[{required:t.formConfig.required,message:t.pathSelectError(t.formConfig)}],initialValue:t.formConfig.link}],expression:"[\n 'link',\n {\n rules: [\n {\n required: formConfig.required,\n message: pathSelectError(formConfig)\n }\n ],\n initialValue: formConfig.link\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{attrs:{required:t.formConfig.required,label:"落地页"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link",{rules:[{required:t.formConfig.required,message:"请输入落地页"}],initialValue:t.formConfig.link}],expression:"[\n 'link',\n {\n rules: [\n {\n required: formConfig.required,\n message: '请输入落地页'\n }\n ],\n initialValue: formConfig.link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.setItemLink(e,t.formConfig)}}})],1)],1)],1)]:t._e(),a("a-modal",{attrs:{title:"预览",visible:t.previewVisible,footer:null},on:{cancel:t.handleCancel}},[a("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:t.formConfig.img}})])],2)},B=[],V=(a("b54a"),a("3046")),z={props:{formConfig:{type:Object,default:function(){}},form:{type:Object,default:function(){}}},inject:["globalConfig"],mixins:[V["a"]],data:function(){return{renderForm:!0,websiteId:this.$route.params.websiteId,token:{},isDisabled:!1,previewVisible:!1}},mounted:function(){if(this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId},this.formConfig.config_value){var t=this.formConfig.config_value[0];this.formConfig.img=t.img||"",this.$set(this.formConfig,"link",t.link||""),this.formConfig.link_desc=t.link_desc||"",this.formConfig.link_type=t.link_type||""}else this.formConfig.img="",this.$set(this.formConfig,"link",""),this.formConfig.link_desc="",this.formConfig.link_type=""},methods:{loadChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.formConfig,"uploading-".concat(this.formConfig.decoration_code),!0):"done"===a&&o&&200===o.status?(this.formConfig.img=o.data.src,this.formConfig.isChange=!0,this.form.setFieldsValue(Object(n["a"])({},"".concat(this.formConfig.decoration_code),o.data.src)),this.handleFormConfig(),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)]):o&&200!==o.status&&(this.$message.error(o.message),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)])},deleteIcon:function(t){this.form.setFieldsValue(Object(n["a"])({},"".concat(t.decoration_code),"")),t.img="",t.isChange=!0,this.handleFormConfig()},setItemLink:function(t,e){e.link=t.target.value,e.isChange=!0,this.handleFormConfig()},updateLinkTypeDesc:function(t,e,a){t[e]=a.linkUrl,t.link_type=a.linkType,t.link_desc=a.linkDesc,t.isChange=!0,this.handleFormConfig()},handleFormConfig:function(){this.formConfig.config_value=JSON.stringify([{img:this.formConfig.img,link:this.formConfig.link,link_desc:this.formConfig.link_desc,link_type:this.formConfig.link_type}])},showEffect:function(t){this.$refs.shortTitleModal.showModal(t)},handleCancel:function(){this.previewVisible=!1},showPrevisible:function(){this.previewVisible=!0}}},q=z,U=(a("b971"),Object(p["a"])(q,L,B,!1,null,"08c9951a",null)),H=U.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-form-item",{staticStyle:{"margin-top":"14px"},attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:t.formConfig.requireMessage}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: formConfig.requireMessage\n }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],staticStyle:{width:"340px"},attrs:{placeholder:t.formConfig.placeholder||"请输入"},on:{change:t.changeInput}})],1)},Y=[],J={props:{formConfig:{type:Object,default:function(){}},routerType:{type:String,default:function(){return""}}},methods:{changeInput:function(t){this.formConfig.config_value=t.target.value,this.formConfig.isChange=!0,this.formConfig.isEmpty=!1,this.$emit("inputChange",t.target.value)}}},K=J,W=Object(p["a"])(K,G,Y,!1,null,null,null),Z=W.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"add-activity-item"},[a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:t.formConfig.required,label:t.formConfig.decoration_name}},[a("a-button",{staticStyle:{width:"130px"},attrs:{block:""},on:{click:t.contentOpen}},[t._v("+ 添加活动信息")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["items",{rules:[{required:!0,message:"请添加详细内容"}],initialValue:t.positionData.join(",")}],expression:"[\n 'items',\n {\n rules: [{ required: true, message: '请添加详细内容' }],\n initialValue: positionData.join(',')\n }\n ]"}],attrs:{type:"hidden"}}),t.positionData.length?a("div",{staticClass:"menu"},[a("table",[a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"60%"}},[t._v("活动标题")]),a("th",{staticStyle:{width:"150px"}},[t._v("操作")])])]),a("tbody",t._l(t.positionData,(function(e,o){return a("tr",{key:o},[a("td",[a("a-tooltip",{attrs:{title:e.title}},[a("div",{staticClass:"title"},[t._v(t._s(e.title))])])],1),a("td",{staticClass:"operation"},[a("a",{attrs:{href:"javascript:;",disabled:0===o},on:{click:function(e){return t.onMoveUp(o)}}},[t._v("上移")]),a("a",{attrs:{href:"javascript:;",disabled:o===t.positionData.length-1},on:{click:function(e){return t.onMoveDown(o)}}},[t._v("下移")]),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return t.contentOpen(o,e)}}},[t._v("编辑")]),a("a-popconfirm",{attrs:{title:"确定删除吗?",placement:"topRight",overlayStyle:{width:"200px"}},on:{confirm:function(e){return t.onDelete(o)}}},[a("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)])})),0)])]):t._e()],1),a("a-modal",{attrs:{title:t.contentTitle,width:525,"body-style":{"padding-bottom":0}},on:{ok:t.onContentOk,cancel:t.onContentClose},model:{value:t.contentVisible,callback:function(e){t.contentVisible=e},expression:"contentVisible"}},[a("a-form",{attrs:{form:t.contentForm}},[a("a-form-item",{attrs:{required:"",label:"活动标题",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title",{rules:[{required:!0,message:"请输入活动标题"},{max:30,message:"最多支持30个字"}]}],expression:"[\n 'title',\n {\n rules: [\n { required: true, message: '请输入活动标题' },\n { max: 30, message: '最多支持30个字' }\n ]\n }\n ]"}],attrs:{placeholder:"请输入"}})],1),t.formConfig.isSelectLink?a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"落地页"}},[a("path-select",{attrs:{"global-config":t.globalConfig,"link-url":t.activeItem.link,"link-desc":t.activeItem.link_desc,"link-type":t.activeItem.link_type},on:{changeLink:function(e){return t.updateLinkTypeDesc(t.activeItem,"link",e,{item:t.activeItem})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link",{rules:[{required:!0,message:t.pathSelectError(t.activeItem)}],initialValue:t.activeItem.link}],expression:"[\n 'link',\n {\n rules: [\n {\n required: true,\n message: pathSelectError(activeItem)\n }\n ],\n initialValue: activeItem.link\n }\n ]"}],attrs:{required:"",type:"hidden"}})],1):a("a-form-item",{staticClass:"form-item-input-margin-top",attrs:{required:"",label:"落地页",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link",{rules:[{required:!0,message:"请输入落地页"}]}],expression:"[\n 'link',\n {\n rules: [{ required: true, message: '请输入落地页' }]\n }\n ]"}],attrs:{placeholder:"https://"}})],1)],1)],1)],1)},X=[],tt=a("3178");function et(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function at(t){for(var e=1;e0&&void 0!==s[0]?s[0]:-1,a=s.length>1?s[1]:void 0,this.contentVisible=!0,!(e>-1)){t.next=13;break}return this.editContentIndex=e,o=a.title,i=a.link,r=a.link_desc,n=a.link_type,this.contentTitle="编辑活动信息",t.next=9,this.$nextTick();case 9:this.contentForm.setFieldsValue({title:o,link:i,link_desc:r,link_type:n}),this.activeItem=a,t.next=15;break;case 13:this.contentTitle="添加活动消息",this.activeItem={title:"",link:"",link_desc:"",link_type:""};case 15:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onContentOk:function(){var t=this,e=this.contentForm.validateFields;e((function(e,a){e||(t.editContentIndex>-1?t.onPositionEdit(t.editContentIndex,at(at({},t.activeItem),a)):t.onPositionAdd(at(at({},t.activeItem),a)),t.fetchConfigValue(),t.onContentClose())}))},onContentClose:function(){this.contentVisible=!1,this.editContentIndex=-1,this.contentForm.resetFields()},onMoveUp:function(t){this.onPositionUp(t),this.fetchConfigValue()},onMoveDown:function(t){this.onPositionDown(t),this.fetchConfigValue()},onDelete:function(t){this.onPositionDelete(t),this.fetchConfigValue()},fetchConfigValue:function(){this.formConfig.config_value=JSON.stringify(this.positionData),this.formConfig.isChange=!0,this.$emit("isChangeAction",!0)},validatePathSelect:function(t){var e=t.item;this.contentForm.setFieldsValue(Object(n["a"])({},"link",e.link)),this.fetchConfigValue()}},mounted:function(){var t=this.formConfig.config_value;t&&!Array.isArray(t)&&(this.positionData=JSON.parse(t))}},it=ot,rt=(a("3e85"),Object(p["a"])(it,Q,X,!1,null,"24edb027",null)),nt=rt.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recommend-item-component"},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.formConfig.decoration_name)+"\n "),a("a-tooltip",{attrs:{overlayClassName:"recommend_tooltip"}},[a("template",{slot:"title"},[a("span",{domProps:{innerHTML:t._s(t.formConfig.des)}})]),a("a-icon",{attrs:{type:"exclamation-circle"}})],2)],1),a("div",{staticClass:"menu"},[a("table",[a("thead",{staticStyle:{height:"38px"}},[a("tr",[a("th",{staticStyle:{width:"100px"}},[t._v("推荐位顺序")]),a("th",{staticStyle:{width:"100px"}},[t._v("推荐算法")]),a("th",{staticStyle:{width:"80px"}},[t._v("状态")]),a("th",{staticStyle:{width:"100px"}},[t._v("操作")])])]),a("tbody",t._l(t.positionData,(function(e,o){return a("tr",{key:o},[a("td",[t._v(t._s(o+1))]),a("td",[t._v(t._s(e.name))]),a("td",[a("a-switch",{attrs:{"checked-children":"开","un-checked-children":"关",checked:Boolean(e.enable)},on:{change:function(a){return t.onSwtichChange(e,a)}}})],1),a("td",{staticClass:"operation"},[a("a",{attrs:{href:"javascript:;",disabled:0===o},on:{click:function(e){return t.onMoveUp(o)}}},[t._v("上移")]),a("a",{attrs:{href:"javascript:;",disabled:o===t.positionData.length-1},on:{click:function(e){return t.onMoveDown(o)}}},[t._v("下移")])])])})),0)])])])],1)},ct=[],lt={props:{formConfig:{type:Object,default:function(){}},form:{type:Object,default:function(){}}},mixins:[tt["a"]],methods:{onSwtichChange:function(t,e){var a=+e;t.enable=a,this.setConfigValue()},onMoveUp:function(t){this.onPositionUp(t),this.setConfigValue()},onMoveDown:function(t){this.onPositionDown(t),this.setConfigValue()},setConfigValue:function(){this.formConfig.isChange=!0,this.formConfig.config_value=JSON.stringify(this.positionData)}},mounted:function(){var t=this.formConfig.config_value;t&&!Array.isArray(t)?this.positionData=JSON.parse(t):this.positionData=t}},dt=lt,ut=(a("e8d0"),a("a01f"),Object(p["a"])(dt,st,ct,!1,null,"5e4111d6",null)),pt=ut.exports,mt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"image-upload-item"},[a("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"0","margin-top":"0"},attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name))]),t.formConfig.config_value?a("div",{staticClass:"upload-img-show"},[a("img",{staticClass:"adUploadImgStyle",attrs:{src:t.formConfig.config_value,alt:"avatar"}}),a("div",{staticClass:"upload-img-preView"},[a("span",{staticClass:"upload-img-close",on:{click:function(e){return t.deleteIcon(t.formConfig)}}},[a("a-icon",{staticStyle:{color:"#fff",fontSize:"14px",backgroundColor:"red",width:"20px",height:"20px",borderRadius:"50%",lineHeight:"20px",paddingTop:"2px"},attrs:{type:"close"}})],1),a("p",{on:{click:t.showPrevisible}},[t._v("预览")])])]):a("a-upload",{staticClass:"float-icon-uploader-box",attrs:{name:"file",listType:"picture-card",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token},on:{change:function(e){return t.loadChange(e)}}},[a("div",[a("a-icon",{attrs:{type:t.formConfig["uploading-"+t.formConfig.decoration_code]?"loading":"plus"}}),a("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:"请上传图片"}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请上传图片'\n }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],attrs:{type:"hidden"}}),a("p",{staticClass:"tips"},[t._v(t._s(t.formConfig.sizeTip))])],1),a("a-modal",{attrs:{title:"预览",visible:t.previewVisible,footer:null},on:{cancel:t.handleCancel}},[a("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:t.formConfig.config_value}})])],1)},ft=[],ht={props:{formConfig:{type:Object,default:function(){}},form:{type:Object,default:function(){}}},data:function(){return{websiteId:this.$route.params.websiteId,token:{},previewVisible:!1}},methods:{loadChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.formConfig,"uploading-".concat(this.formConfig.decoration_code),!0):"done"===a&&o&&200===o.status?(this.formConfig.config_value=o.data.src,this.formConfig.isChange=!0,this.form.setFieldsValue(Object(n["a"])({},"".concat(this.formConfig.decoration_code),o.data.src)),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)]):o&&200!==o.status&&(this.$message.error(o.message),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)])},deleteIcon:function(t){this.form.setFieldsValue(Object(n["a"])({},"".concat(t.decoration_code),"")),t.config_value="",t.isChange=!0},showPrevisible:function(){this.previewVisible=!0},handleCancel:function(){this.previewVisible=!1}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId}}},gt=ht,_t=(a("f78e"),Object(p["a"])(gt,mt,ft,!1,null,"46f4fb6c",null)),vt=_t.exports,bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-radio"},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.formConfig.decoration_name)+"\n ")]),a("a-radio-group",{attrs:{disabled:t.formConfig.disabled,"default-value":t.initialValue},on:{change:function(e){return t.changeCustomRadio(e,t.formConfig)}}},t._l(t.formConfig.config_value,(function(e,o){return a("a-radio",{key:o,attrs:{value:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1),t.formConfig.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer","padding-left":"10px"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v("\n 效果展示\n ")],1):t._e(),t.formConfig.to?a("a",{staticStyle:{"padding-left":"4px","font-size":"12px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("去设置")]):t._e(),t.formConfig.sizeTip?a("div",{staticClass:"radio-tip"},[t._v(t._s(t.formConfig.sizeTip))]):t._e()],1),t.formConfig.isShowEffect?a("show-example-modal",{ref:"showExampleModal"}):t._e()],1)},yt=[],wt={components:{ShowExampleModal:M},props:{formConfig:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{changeCustomRadio:function(t,e){e.isChange=!0,e.config_value.forEach((function(e){e.value===t.target.value?e.checked=!0:e.checked=!1})),this.$emit("checkRadioAction",t.target.value)},showEffect:function(t){this.$refs.showExampleModal.showModal(t)}},mounted:function(){var t=this.formConfig.config_value;t&&!Array.isArray(t)&&(this.formConfig.config_value=JSON.parse(t))},computed:{initialValue:function(){var t=this.formConfig.config_value;return t&&Array.isArray(t)?(this.formConfig.config_value.filter((function(t){return t.checked}))[0]||{}).value:"1"}}},Ct=wt,kt=(a("38f3"),Object(p["a"])(Ct,bt,yt,!1,null,"fa50f788",null)),xt=kt.exports,St=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"discount-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form,"is-show-set":!t.formConfig.to}},[a("div",{staticClass:"discount-content"},[a("div",{staticClass:"value"},[a("span",{staticClass:"name"},[t._v(t._s(t.websiteConfigs.decoration_name)+":")]),a("span",[t._v(t._s(t.websiteConfigs.config_value))]),t.formConfig.to?a("a",{staticStyle:{"padding-left":"20px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("\n 去设置\n ")]):t._e()]),a("div",{staticClass:"desc"},[t._v("折扣标样式支持“XX折”、“XX%OFF”,此设置项不支持单个客户端单个页面设置,设置后所有客户端首页、活动页、商品列表、商品详情、个性化推荐同时生效")])])])],1)},At=[],Tt={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},computed:{websiteConfigs:function(){return this.formConfig.website_configs[0]}}},Ft=Tt,Ot=(a("d4cc"),Object(p["a"])(Ft,St,At,!1,null,"14f75b2a",null)),jt=Ot.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"question-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form,"is-show-set":!t.formConfig.to}},[a("div",{staticClass:"question-content"},[a("div",{staticClass:"value"},[a("span",{staticClass:"name"},[t._v("问题描述/问题解答:")]),t.formConfig.to?a("a",{attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("\n 去设置\n ")]):t._e()]),a("div",{staticClass:"desc"},[t._v("此设置项不支持单个客户端单个页面设置,设置后所有客户端商品详情同时生效")])])])],1)},Pt=[],Et={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},computed:{websiteConfigs:function(){return this.formConfig.website_configs[0]}}},Mt=Et,$t=(a("eabd"),Object(p["a"])(Mt,It,Pt,!1,null,"14663b17",null)),Dt=$t.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"buy-notice-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form}},[a("div",{staticClass:"buy-notice-content"},[t._l(t.setData,(function(e,o){return a("div",{key:o,staticClass:"value"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),a("a",{attrs:{href:e.url,target:"_blank"}},[t._v("去设置")])])})),a("div",{staticClass:"desc"},[t._v("以上设置项不支持单个客户端单个页面设置,设置后所有客户端商品详情同时生效")])],2)])],1)},Rt=[],Lt={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},data:function(){return{setData:[{name:"发货说明:",url:"/setting/shopManage/list?tab=2"},{name:"税费说明:",url:"/setting/shopManage/list?tab=2"},{name:"运费说明:",url:"/setting/shopManage/list?tab=2"},{name:"商品说明:",url:"/setting/system/list?query=productSetting"}]}},computed:{websiteConfigs:function(){return this.formConfig.website_configs[0]}}},Bt=Lt,Vt=(a("8cc3"),Object(p["a"])(Bt,Nt,Rt,!1,null,"fd52e0d4",null)),zt=Vt.exports,qt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"new-tag-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form,"is-show-set":!t.formConfig.to}},[a("div",{staticClass:"new-tag-content"},[a("div",{staticClass:"value"},[a("span",{staticClass:"name"},[t._v(t._s(t.websiteConfigs.decoration_name)+":")]),a("span",[t._v(t._s(t.websiteConfigs.config_value))]),t.formConfig.to?a("a",{staticStyle:{"padding-left":"20px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("\n 去设置\n ")]):t._e()]),a("div",{staticClass:"desc"},[t._v("此设置项不支持单个客户端单个页面设置,设置后所有客户端商品列表、商品详情同时生效")])])])],1)},Ut=[],Ht={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},computed:{websiteConfigs:function(){return this.formConfig.website_configs[0]}}},Gt=Ht,Yt=(a("f3d3"),Object(p["a"])(Gt,qt,Ut,!1,null,"162f33aa",null)),Jt=Yt.exports,Kt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sale-num-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form,"is-show-set":!t.formConfig.to}},[a("div",{staticClass:"sale-num-content"},[a("div",{staticClass:"value"},[a("span",{staticClass:"name"},[t._v("销量显示规则")]),t.formConfig.to?a("a",{staticStyle:{"padding-left":"20px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("\n 去设置\n ")]):t._e()]),t._l(t.websiteConfigs,(function(e,o){return a("div",{key:o,staticClass:"value"},[a("span",{staticClass:"name"},[t._v(t._s(e.decoration_name)+":")]),a("span",[t._v(t._s(e.config_value))])])})),a("div",{staticClass:"desc"},[t._v("\n 商城显示销量=真实销量+初始销量\n "),a("br"),t._v("\n 真实销量支持按“周、月、累计”设置,初始销量支持自定义设置\n "),a("br"),t._v("\n 此设置项不支持单个客户端单个页面设置,设置后所有客户端商品列表、商品详情同时生效\n ")])],2)])],1)},Wt=[],Zt={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},computed:{websiteConfigs:function(){return this.formConfig.website_configs}}},Qt=Zt,Xt=(a("3736"),Object(p["a"])(Qt,Kt,Wt,!1,null,"fbf95c52",null)),te=Xt.exports,ee=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cart-num-checkbox"},[a("checkbox-item",{attrs:{"form-config":t.formConfig,form:t.form,"is-show-set":!t.formConfig.to}},[a("div",{staticClass:"cart-num-content"},[a("div",{staticClass:"value"},[a("span",{staticClass:"name"},[t._v("加购量显示规则")]),t.formConfig.to?a("a",{staticStyle:{"padding-left":"20px"},attrs:{href:t.formConfig.to,target:"_blank"}},[t._v("\n 去设置\n ")]):t._e()]),t._l(t.websiteConfigs,(function(e,o){return a("div",{key:o,staticClass:"value"},[a("span",{staticClass:"name"},[t._v(t._s(e.decoration_name)+":")]),a("span",[t._v(t._s(e.config_value))])])})),a("div",{staticClass:"desc"},[t._v("\n 商城显示加购量=真实加购量+初始加购量\n "),a("br"),t._v("\n 真实加购量支持设置按“周、月、累计”设置,初始加购量支持自定义设置\n "),a("br"),t._v("\n 此设置项不支持单个客户端单个页面设置,设置后所有客户端商品列表、商品详情同时生效\n ")])],2)])],1)},ae=[],oe={components:{CheckboxItem:R},props:{formConfig:{type:Object,default:function(){return{}}},form:{type:Object,default:function(){}}},computed:{websiteConfigs:function(){return this.formConfig.website_configs}}},ie=oe,re=(a("081c"),Object(p["a"])(ie,ee,ae,!1,null,"da6c8a14",null)),ne=re.exports,se=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑底部导航",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"foot-nav-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig},on:{customRadio:t.customRadio}})],1)],1)])},ce=[],le=a("2909"),de=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group-modal"},t._l(t.compdata,(function(e,o){return a("div",{key:o,staticClass:"form-box"},["radio"===e.sort?a("c-group-radio",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig},on:{checkRadioAction:t.checkRadioAction}}):t._e(),"icon_upload"===e.sort?a("icon-upload",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox"===e.sort?a("checkbox-item",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig},on:{onChangeCheckbox:t.onChangeCheckbox}}):t._e(),"advertise_upload"===e.sort?a("advertise-upload-item",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"input"===e.sort?a("input-item",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig}}):t._e(),"activity"===e.sort?a("add-activity-item",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig}}):t._e(),"recommend"===e.sort?a("recommend-item",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"image_upload"===e.sort?a("image-upload-item",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_discount"===e.sort?a("discount-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_question"===e.sort?a("question-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_buy_notice"===e.sort?a("buy-notice-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_new_tag"===e.sort?a("new-tag-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_sale_num"===e.sort?a("sale-num-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e(),"checkbox_cart_num"===e.sort?a("cart-num-checkbox",{attrs:{"form-config":t.handleDataParse(e),form:t.form,"global-config":t.globalConfig}}):t._e()],1)})),0)},ue=[],pe={components:{CGroupRadio:xt,IconUpload:A,CheckboxItem:R,AdvertiseUploadItem:H,InputItem:Z,AddActivityItem:nt,RecommendItem:pt,ImageUploadItem:vt,DiscountCheckbox:jt,QuestionCheckbox:Dt,BuyNoticeCheckbox:zt,NewTagCheckbox:Jt,SaleNumCheckbox:te,CartNumCheckbox:ne},props:{compdata:{type:Array,default:function(){return[]}},form:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}}},methods:{handleDataParse:function(t){var e=t.config_value;return e&&!Array.isArray(e)&&(t.config_value=JSON.parse(e)),t},checkRadioAction:function(t){this.$emit("customRadio",t)},onChangeCheckbox:function(t){this.$emit("onChangeCheckbox",t)}}},me=pe,fe=Object(p["a"])(me,de,ue,!1,null,null,null),he=fe.exports,ge=(a("55dd"),{detail_productpage_brand_store_show:{required:!1,disabled:!0,sort:"radio",sizeTip:"品牌/店铺不支持单个客户端配置,配置后所有客户端商品详情显示店铺或品牌",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/334548/7d45e6adff1933cc8bdcdd6ba802089e.png",imgWidth:"90%",to:"/setting/system/list?query=productSetting"},share_commission_status:{required:!1,disabled:!0,sort:"checkbox",sizeTip:"分享返佣不支持单个客户端单个页面配置,配置后所有客户端商品详情、个人中心“分享返现”同时生效",to:"/setting/system/list?query=promotionSetting"},reduce_price_notification_status:{required:!1,disabled:!0,sort:"checkbox",sizeTip:"降价通知不支持单个客户端单个页面配置,配置后所有客户端商品详情、我的收藏夹同时生效",to:"/setting/system/list?query=productSetting"},comment_status:{required:!1,disabled:!0,sort:"checkbox",sizeTip:'商品评价不支持单个客户端单个页面配置,配置后所有客户端商品详情"商品评价"和个人中心“评价晒单”同时生效',to:"/setting/system/list?query=userSetting"},general_share_status:{required:!1,disabled:!0,sort:"checkbox",sizeTip:"分享不支持单个客户端配置,配置后所有客户端同时生效",to:"/setting/system/list?query=productSetting"},global_is_show_cny:{required:!1,disabled:!0,sort:"checkbox",sizeTip:"人民币参考价不支持单个客户端单个页面配置,配置后所有客户端首页、商品列表、商品详情同时生效",to:"/setting/system/list?query=productSetting"},h5_detail_brand_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/157972/0df386b8545692dd0e0d493931c88e84.png"},h5_detail_brand_cn_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159525/2acc801450f2d34e1f6549ca9c2c49e3.png"},h5_detail_sale_info_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160685/c53eed53855cf5454b0e77b6cc35666b.png"},h5_detail_ad_image:{required:!1,sort:"advertise_upload",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限,大小不超过500KB,支持jpg/png/gif格式"},h5_detail_match_recommend_style:{required:!1,sort:"radio"},h5_detail_match_recommend_line:{required:!1,sort:"radio"},h5_detail_match_recommend_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/350087/813f53509eaf89df6f11aae9eb58af8f.png",imgWidth:"150%"},h5_detail_match_recommend_title:{required:!1,sort:"input",placeholder:"建议不超过六个字",requireMessage:"请输入标题"},h5_detail_recommend_style:{required:!1,sort:"radio"},h5_detail_recommend_layout:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/1697849/90f3868b38b9c7697393a25410e3e50e.png",imgWidth:"150%"},h5_detail_recommend_line:{required:!1,sort:"radio"},h5_detail_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐20个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐20个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品20个,数量不足基于全站随机商品补足",isShowEffect:!0},h5_detail_spec_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/176430/cb0aff35fefc79b9428fc054bb6a5bc8.png"},h5_detail_nutrition_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/197112/9f8ead249725dba933beda884df1880a.png"},h5_detail_waterfall_recommend_style:{required:!1,sort:"radio"},h5_detail_waterfall_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐200个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐200个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品200个,数量不足基于全站随机商品补足",isShowEffect:!0},h5_detail_bottom_nav_show_type:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/263140/c8d1404283eca01f241b7d667ba34e61.png",imgWidth:"90%"},h5_detail_homepage_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_store_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_customer_service_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_cart_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_coupon_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152321/5a5b74393031a58fa3ffaf6a9588c67c.png"},h5_detail_promotion_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152430/475acf6c1d0092e97136619b01b30c58.png"},h5_detail_promotion:{required:!1,sort:"activity"},h5_detail_base_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_base_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},h5_detail_product_discount_show:{required:!1,sort:"checkbox_discount",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159792/0e99f1f28ce554a102979f07c7d9173b.png",to:"/setting/system/list?query=productSetting"},h5_detail_line_price_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160092/2bcc75a645e92d141730cfd5b88cb0e0.png"},h5_common_question_show:{required:!1,isShowEffect:!0,sort:"checkbox_question",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/218914/a20ca391b673aadababbda9e0380501f.png",to:"/setting/system/list?query=productSetting"},h5_detail_buy_notice_show:{required:!1,isShowEffect:!0,sort:"checkbox_buy_notice",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/216596/0eb1aaab89ed9d975ceb6bf43514a4ad.png"},h5_detail_tag_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160185/14e58642a0da5c3f2400079c0899523e.png",title:"商品打标效果展示如下:",des:""},h5_detail_new_tag_show:{required:!1,sort:"checkbox_new_tag",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159517/381982c25e66180caa89c3ea9a0d0145.png",to:"/setting/system/list?query=productSetting"},h5_detail_sale_num_show:{required:!1,sort:"checkbox_sale_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159567/42a3ae56925541350070a306c1715823.png",to:"/setting/system/list?query=productSetting"},h5_detail_cart_num_show:{required:!1,sort:"checkbox_cart_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159843/5d96b8fdda1d6d32d332b637824c174b.png",to:"/setting/system/list?query=productSetting"},h5_detail_app_download_ad:{required:!1,sort:"image_upload",sizeTip:"参考尺寸750x88像素,宽高固定,大小不超过500KB,支持jpg/png/gif格式"},miniapp_detail_brand_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/157972/0df386b8545692dd0e0d493931c88e84.png"},miniapp_detail_brand_cn_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159525/2acc801450f2d34e1f6549ca9c2c49e3.png"},miniapp_detail_sale_info_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160685/c53eed53855cf5454b0e77b6cc35666b.png"},miniapp_share_coupon_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/174733/c0eb819d1709ec7cbfaa259bb3ad8171.png",sizeTip:"用于控制商详页是否显示裂变券活动图标"},miniapp_detail_ad_image:{required:!1,sort:"advertise_upload",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限,大小不超过500KB,支持jpg/png/gif格式",isSelectLink:!0},miniapp_detail_match_recommend_style:{required:!1,sort:"radio"},miniapp_detail_match_recommend_line:{required:!1,sort:"radio"},miniapp_detail_match_recommend_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/350087/813f53509eaf89df6f11aae9eb58af8f.png",imgWidth:"150%"},miniapp_detail_match_recommend_title:{required:!1,sort:"input",placeholder:"建议不超过六个字",requireMessage:"请输入标题"},miniapp_detail_recommend_style:{required:!1,sort:"radio"},miniapp_detail_recommend_layout:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/1697849/90f3868b38b9c7697393a25410e3e50e.png",imgWidth:"150%"},miniapp_detail_recommend_line:{required:!1,sort:"radio"},miniapp_detail_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐20个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐20个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品20个,数量不足基于全站随机商品补足",isShowEffect:!0},miniapp_detail_spec_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/176430/cb0aff35fefc79b9428fc054bb6a5bc8.png"},miniapp_detail_nutrition_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/197112/9f8ead249725dba933beda884df1880a.png"},miniapp_detail_waterfall_recommend_style:{required:!1,sort:"radio"},miniapp_detail_waterfall_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐200个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐200个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品200个,数量不足基于全站随机商品补足",isShowEffect:!0},miniapp_detail_bottom_nav_show_type:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/263140/c8d1404283eca01f241b7d667ba34e61.png",imgWidth:"90%"},miniapp_detail_homepage_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_store_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_customer_service_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_cart_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_coupon_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152321/5a5b74393031a58fa3ffaf6a9588c67c.png"},miniapp_detail_promotion_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152430/475acf6c1d0092e97136619b01b30c58.png"},miniapp_detail_promotion:{required:!1,sort:"activity",isSelectLink:!0},miniapp_detail_base_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_base_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},miniapp_detail_product_discount_show:{required:!1,sort:"checkbox_discount",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159792/0e99f1f28ce554a102979f07c7d9173b.png",to:"/setting/system/list?query=productSetting"},miniapp_detail_line_price_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160092/2bcc75a645e92d141730cfd5b88cb0e0.png"},miniapp_common_question_show:{required:!1,isShowEffect:!0,sort:"checkbox_question",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/218914/a20ca391b673aadababbda9e0380501f.png",to:"/setting/system/list?query=productSetting"},miniapp_detail_buy_notice_show:{required:!1,isShowEffect:!0,sort:"checkbox_buy_notice",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/216596/0eb1aaab89ed9d975ceb6bf43514a4ad.png"},miniapp_detail_tag_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160185/14e58642a0da5c3f2400079c0899523e.png",title:"商品打标效果展示如下:",des:""},miniapp_detail_new_tag_show:{required:!1,sort:"checkbox_new_tag",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159517/381982c25e66180caa89c3ea9a0d0145.png",to:"/setting/system/list?query=productSetting"},miniapp_detail_sale_num_show:{required:!1,sort:"checkbox_sale_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159567/42a3ae56925541350070a306c1715823.png",to:"/setting/system/list?query=productSetting"},miniapp_detail_cart_num_show:{required:!1,sort:"checkbox_cart_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159843/5d96b8fdda1d6d32d332b637824c174b.png",to:"/setting/system/list?query=productSetting"},app_detail_brand_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/157972/0df386b8545692dd0e0d493931c88e84.png"},app_detail_brand_cn_name_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159525/2acc801450f2d34e1f6549ca9c2c49e3.png"},app_detail_sale_info_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160685/c53eed53855cf5454b0e77b6cc35666b.png"},app_share_coupon_show:{required:!1,isShowEffect:!0,sort:"checkbox",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/174733/c0eb819d1709ec7cbfaa259bb3ad8171.png",sizeTip:"用于控制商详页是否显示裂变券活动图标"},app_detail_ad_image:{required:!1,sort:"advertise_upload",sizeTip:"参考尺寸750x120像素,宽度固定,高度不限,大小不超过500KB,支持jpg/png/gif格式",isSelectLink:!0},app_detail_match_recommend_style:{required:!1,sort:"radio"},app_detail_match_recommend_line:{required:!1,sort:"radio"},app_detail_match_recommend_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/350087/813f53509eaf89df6f11aae9eb58af8f.png",imgWidth:"150%"},app_detail_match_recommend_title:{required:!1,sort:"input",placeholder:"建议不超过六个字",requireMessage:"请输入标题"},app_detail_recommend_style:{required:!1,sort:"radio"},app_detail_recommend_layout:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/1697849/90f3868b38b9c7697393a25410e3e50e.png",imgWidth:"150%"},app_detail_recommend_line:{required:!1,sort:"radio"},app_detail_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐20个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐20个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品20个,数量不足基于全站随机商品补足",isShowEffect:!0},app_detail_spec_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/176430/cb0aff35fefc79b9428fc054bb6a5bc8.png"},app_detail_nutrition_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/197112/9f8ead249725dba933beda884df1880a.png"},app_detail_waterfall_recommend_style:{required:!1,sort:"radio"},app_detail_waterfall_recommend:{required:!1,sort:"recommend",des:"“热销排行”推荐逻辑:基于商品品牌/类目相关商品推荐200个商品,数量不足基于全站随机商品补足
“大家都在看”推荐逻辑:基于全站最近七天销售Top商品推荐200个,不足基于全站随机商品补足
“买了还买”推荐逻辑:推荐商品一级类目相关随机商品200个,数量不足基于全站随机商品补足",isShowEffect:!0},app_detail_bottom_nav_show_type:{required:!1,sort:"radio",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/263140/c8d1404283eca01f241b7d667ba34e61.png",imgWidth:"90%"},app_detail_homepage_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_store_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_customer_service_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_cart_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸48x48像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式"},app_detail_coupon_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152321/5a5b74393031a58fa3ffaf6a9588c67c.png"},app_detail_promotion_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/152430/475acf6c1d0092e97136619b01b30c58.png"},app_detail_promotion:{required:!1,sort:"activity",isSelectLink:!0},app_detail_base_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},app_detail_base_not_in_favorite_icon:{required:!0,sort:"icon_upload",sizeTip:"参考尺寸42x42像素,大小不超过50KB,支持jpg/png/gif格式"},app_detail_product_discount_show:{required:!1,sort:"checkbox_discount",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159792/0e99f1f28ce554a102979f07c7d9173b.png",to:"/setting/system/list?query=productSetting"},app_detail_line_price_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160092/2bcc75a645e92d141730cfd5b88cb0e0.png"},app_common_question_show:{required:!1,isShowEffect:!0,sort:"checkbox_question",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/218914/a20ca391b673aadababbda9e0380501f.png",to:"/setting/system/list?query=productSetting"},app_detail_buy_notice_show:{required:!1,isShowEffect:!0,sort:"checkbox_buy_notice",imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/216596/0eb1aaab89ed9d975ceb6bf43514a4ad.png"},app_detail_tag_show:{required:!1,sort:"checkbox",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/160185/14e58642a0da5c3f2400079c0899523e.png",title:"商品打标效果展示如下:",des:""},app_detail_new_tag_show:{required:!1,sort:"checkbox_new_tag",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159517/381982c25e66180caa89c3ea9a0d0145.png",to:"/setting/system/list?query=productSetting"},app_detail_sale_num_show:{required:!1,sort:"checkbox_sale_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159567/42a3ae56925541350070a306c1715823.png",to:"/setting/system/list?query=productSetting"},app_detail_cart_num_show:{required:!1,sort:"checkbox_cart_num",isShowEffect:!0,imgSrc:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/159843/5d96b8fdda1d6d32d332b637824c174b.png",to:"/setting/system/list?query=productSetting"}});function _e(t,e){for(var a in ge)if(ge.hasOwnProperty(a)&&a===e.decoration_code)return t.$set(e,"sort",ge[a].sort),t.$set(e,"required",ge[a].required),t.$set(e,"requireMessage",ge[a].requireMessage),ge[a].isShowEffect&&(e.isShowEffect=!0,t.$set(e,"imgSrc",ge[a].imgSrc),t.$set(e,"title",ge[a].title),t.$set(e,"des",ge[a].des),t.$set(e,"imgWidth",ge[a].imgWidth)),ge[a].placeholder&&t.$set(e,"placeholder",ge[a].placeholder),ge[a].isSelectLink&&t.$set(e,"isSelectLink",ge[a].isSelectLink),ge[a].disabled&&t.$set(e,"disabled",ge[a].disabled),ge[a].to&&t.$set(e,"to",ge[a].to),ge[a].sizeTip}var ve={components:{FormGroup:he},inject:["globalConfig","routerType"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"footNavForm"}),visible:!1,isFormRender:!0,labelCol:{span:5},wrapperCol:{span:19},compdata:[],allIcons:[],navSelectedStyle:{},timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(o,t)})),this.navSelectedStyle=e.slice(0,1)[0],a=JSON.parse(this.navSelectedStyle.config_value).filter((function(t){return t.checked}))[0].value,this.allIcons=e.slice(1),this.compdata=[this.navSelectedStyle].concat(Object(le["a"])(this.handleIcons(a,this.allIcons)));case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),customRadio:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.form.resetFields(),this.$nextTick(),this.compdata=[this.navSelectedStyle].concat(Object(le["a"])(this.handleIcons(e,this.allIcons)));case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleIcons:function(t,e){var a=["".concat(this.routerType,"_detail_customer_service_icon"),"".concat(this.routerType,"_detail_cart_icon")];return"1"===t?a.unshift("".concat(this.routerType,"_detail_homepage_icon")):"2"===t?a.unshift("".concat(this.routerType,"_detail_store_icon")):a.unshift("".concat(this.routerType,"_detail_favorite_icon"),"".concat(this.routerType,"_detail_not_in_favorite_icon")),JSON.parse(JSON.stringify(e)).filter((function(t){return a.includes(t.decoration_code)}))},onConfirm:function(){var t=this,e=this.form.validateFields;e((function(e){if(!e){var a=[t.navSelectedStyle].concat(Object(le["a"])(t.allIcons));a.forEach((function(e){t.compdata.forEach((function(t){t.decoration_code===e.decoration_code&&(e.config_value=t.config_value,e.isChange=t.isChange)}))})),t.$emit("onConfirm",{name:t.name,compdata:a}),t.close()}}))}}},be=ve,ye=Object(p["a"])(be,se,ce,!1,null,null,null),we=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑APP下载广告位",width:560,"body-style":{"padding-bottom":"24px"}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"app-upload-advertisement-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},ke=[],xe={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"AppUploadAdvertisementForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Se=xe,Ae=Object(p["a"])(Se,Ce,ke,!1,null,null,null),Te=Ae.exports,Fe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑品牌信息",width:520,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"brand-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"16px","margin-bottom":"18px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig,visible:t.visible}})],1)],1)])},Oe=[],je={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"brandForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Ie=je,Pe=Object(p["a"])(Ie,Fe,Oe,!1,null,null,null),Ee=Pe.exports,Me=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品卖点",width:520,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-sell-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"14px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},$e=[],De={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productSellForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Ne=De,Re=Object(p["a"])(Ne,Me,$e,!1,null,null,null),Le=Re.exports,Be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑裂变券",width:520,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"share-coupon-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"14px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Ve=[],ze={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"shareCouponForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t),t.config_value&&!Array.isArray(t.config_value)&&(t.config_value=JSON.parse(t.config_value))})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},qe=ze,Ue=Object(p["a"])(qe,Be,Ve,!1,null,null,null),He=Ue.exports,Ge=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑广告位",width:640,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"advertisement-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Ye=[],Je={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"advertisementForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Ke=Je,We=Object(p["a"])(Ke,Ge,Ye,!1,null,null,null),Ze=We.exports,Qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品搭配推荐",width:800,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-combine-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig},on:{onChangeCheckbox:t.onChangeCheckbox}})],1)],1)])},Xe=[],ta={components:{FormGroup:he},inject:["globalConfig","routerType"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productCombineForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleTitleRequired:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,o=this,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]&&i[0],a=this.compdata.find((function(t){return t.decoration_code==="".concat(o.routerType,"_detail_match_recommend_title")})),!e){t.next=6;break}a.required=!0,t.next=12;break;case 6:return a.required=!1,t.next=9,this.$nextTick();case 9:if(!a.config_value){t.next=11;break}return t.abrupt("return");case 11:this.form.setFieldsValue(Object(n["a"])({},"".concat(a.decoration_code),""));case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onChangeCheckbox:function(t){this.handleTitleRequired(!!t.length)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,o,i,r,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:a={},e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(n,t),t.decoration_code==="".concat(n.routerType,"_detail_match_recommend_show")&&(a=t)})),this.compdata=e,o=a,i=o.config_value,r="string"!==typeof i?i:JSON.parse(i),this.handleTitleRequired(r[0].checked);case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){var t=this,e=this.form.validateFields;e((function(e){e||(t.$emit("onConfirm",{name:t.name,compdata:t.compdata}),t.close())}))}}},ea=ta,aa=Object(p["a"])(ea,Qe,Xe,!1,null,null,null),oa=aa.exports,ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品推荐",width:800,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-recommend-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},ra=[],na={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productRecommendForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},sa=na,ca=Object(p["a"])(sa,ia,ra,!1,null,null,null),la=ca.exports,da=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑规格参数",width:520,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"spec-param-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"14px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},ua=[],pa={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"specParamForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},ma=pa,fa=Object(p["a"])(ma,da,ua,!1,null,null,null),ha=fa.exports,ga=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑营养成分",width:520,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"nutrition-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"16px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},_a=[],va={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"nutritionForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},ba=va,ya=Object(p["a"])(ba,ga,_a,!1,null,null,null),wa=ya.exports,Ca=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品推荐(瀑布流)",width:800,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-recommend-flow-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},ka=[],xa={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productRecommendFlowForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Sa=xa,Aa=Object(p["a"])(Sa,Ca,ka,!1,null,null,null),Ta=Aa.exports,Fa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑品牌/店铺",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"brand-store-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Oa=[],ja={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"brandStoreForm"}),visible:!1,labelCol:{span:5},wrapperCol:{span:19},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Ia=ja,Pa=Object(p["a"])(Ia,Fa,Oa,!1,null,null,null),Ea=Pa.exports,Ma=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑营销信息",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"promotion-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},$a=[],Da={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"promotionForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},Na=Da,Ra=Object(p["a"])(Na,Ma,$a,!1,null,null,null),La=Ra.exports,Ba=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑分享/收藏/降价通知",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"share-collect-notice-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"24px","margin-bottom":"18px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Va=[],za={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"shareCollectNoticeForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){var t=this,e=this.form.validateFields;e((function(e){e||(t.$emit("onConfirm",{name:t.name,compdata:t.compdata}),t.close())}))}}},qa=za,Ua=(a("875e"),Object(p["a"])(qa,Ba,Va,!1,null,"6aff6cac",null)),Ha=Ua.exports,Ga=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品评价",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-comment-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"18px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Ya=[],Ja={components:{FormGroup:he},inject:["globalConfig"],data:function(){return{form:this.$form.createForm(this,{name:"productCommentForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[]}},methods:{open:function(t){this.visible=!0,this.handleCompData(t)},close:function(){this.visible=!1},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.close()}}},Ka=Ja,Wa=Object(p["a"])(Ka,Ga,Ya,!1,null,null,null),Za=Wa.exports,Qa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑价格信息",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-price-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"16px","margin-bottom":"18px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},Xa=[],to={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productPriceForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},eo=to,ao=Object(p["a"])(eo,Qa,Xa,!1,null,null,null),oo=ao.exports,io=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑常见问题",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"spec-param-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},ro=[],no={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"commonQuestionForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},so=no,co=Object(p["a"])(so,io,ro,!1,null,null,null),lo=co.exports,uo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑购物须知",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"buy-notice-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},po=[],mo={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"buyNoticeForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},fo=mo,ho=Object(p["a"])(fo,uo,po,!1,null,null,null),go=ho.exports,_o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"编辑商品标签",width:700,"body-style":{"padding-bottom":0}},on:{ok:t.onConfirm,cancel:t.close},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"product-tag-modal"},[a("a-form",{attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("form-group",{staticStyle:{"margin-top":"12px","margin-bottom":"24px"},attrs:{compdata:t.compdata,isChange:!1,loading:!1,form:t.form,globalConfig:t.globalConfig}})],1)],1)])},vo=[],bo={components:{FormGroup:he},inject:["globalConfig"],props:{name:{type:String,default:""}},data:function(){return{form:this.$form.createForm(this,{name:"productTagForm"}),visible:!1,labelCol:{span:4},wrapperCol:{span:20},compdata:[],timer:null}},methods:{open:function(t){clearTimeout(this.timer),this.visible=!0,this.handleCompData(t)},close:function(){var t=this;this.visible=!1,this.timer=setTimeout((function(){t.compdata=[]}),200)},handleCompData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$nextTick();case 2:e.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=_e(a,t)})),this.compdata=e;case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onConfirm:function(){this.$emit("onConfirm",{name:this.name,compdata:this.compdata}),this.close()}}},yo=bo,wo=Object(p["a"])(yo,_o,vo,!1,null,null,null),Co=wo.exports,ko=a("6077"),xo=a("8a56"),So=a.n(xo);function Ao(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function To(t){for(var e=1;e0?o("div",{staticClass:"adress_background",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_address_hover").config_value},[o("span",{staticClass:"adress_content"},[t._v("天津  天河区  全境  天津商业大学-光荣道409号")]),o("span",{staticClass:"adress_area"},[t._v("518067")]),o("span",{staticClass:"adress_qq"},[t._v("819***35@qq.com")]),o("span",{staticClass:"adress_phone"},[t._v("138****4458")]),o("span",{staticClass:"adress_normal"},[t._v("设为默认地址")]),o("span",{staticClass:"adress_operate"},[t._v("编辑")]),o("span",{staticClass:"aderes_delete"},[t._v("删除")])]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("提交订单")]),o("shoppingCheckoutForm",{ref:"shoppingCheckoutForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"shoppingCheckoutForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"shoppingCheckoutForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.shoppingCheckoutForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("2670"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"fc2041ce",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],ShoppingCheckoutForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.shoppingCheckoutForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.shoppingCheckoutForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("4ffa"),Object(g["a"])(k,o,i,!1,null,"1f5151a1",null));e["default"]=x.exports},"38f3":function(t,e,a){"use strict";a("9b87")},"38fc":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("买X免Y@2x")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"买X免Y"}},[a("path",{attrs:{d:"M99.6176717,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,99 L229,99",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"102",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"102",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"143",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"142",width:"42",height:"42",rx:"10"}}),a("path",{attrs:{d:"M179.993626,131 C152.889684,131 131,152.947103 131,180.02605 C131,207.104997 152.889684,229 179.993626,229 C207.097567,229 229,207.052897 229,180.02605 C229,152.999202 207.033823,131 179.993626,131 Z",id:"路径",stroke:"#555555","stroke-width":"14","fill-rule":"nonzero"}}),a("path",{attrs:{d:"M197.526625,188.768951 C198.489182,188.730029 199.421388,189.107434 200.081639,189.803352 C200.741889,190.49927 201.065186,191.445192 200.967739,192.395959 C200.967739,194.742847 199.58054,196.118976 197.526625,196.022967 L186.149442,195.969629 L186.149442,202.092872 C186.095674,205.367846 184.13854,205 180.643659,205 C177.148777,205 175.137876,205.421185 174.976574,202.092872 L174.976574,196.118976 L163.502609,196.118976 C161.351912,195.969629 160.007727,194.689508 160.007727,192.193273 C160.007727,189.697039 161.341159,188.928966 163.502609,188.768951 L174.976574,188.768951 L174.976574,183.141943 L163.502609,183.141943 C162.546182,183.177375 161.619529,182.808493 160.953092,182.127032 C160.286655,181.445571 159.943051,180.515559 160.007727,179.568274 C160.007727,177.317395 161.341159,176.293299 163.502609,176.143951 L172.105394,176.143951 L164.072543,162.467998 C162.524042,159.865086 162.265958,156.899474 164.58871,155.373997 C166.911462,153.84852 169.83641,154.712601 171.374157,157.208836 L180.385575,173.210342 L190.321793,157.070156 C191.708992,154.680598 194.02099,153.091115 197.064226,154.573922 C199.634308,155.854042 199.429992,158.84099 197.989025,161.518575 L188.805551,176.101281 L197.558886,176.101281 C199.612801,176.250628 201,176.965362 201,179.525603 C201,182.085844 199.559033,183.045934 197.505118,183.195281 L186.181702,183.24862 L186.181702,188.768951 L197.526625,188.768951 Z",id:"路径",stroke:"#555555","stroke-width":"2",fill:"#555555","fill-rule":"nonzero"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},3915:function(t,e,a){},3977:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"perch",platform:"web",routerType:"pc"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("eab5")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch_icon",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_default_product_img").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("占位图")]),o("perchForm",{ref:"perchForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"perchForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"perchForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.perchForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&(t.isEmpty?o.items.push({id:t.id,config_value:""}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("2eeb"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"2bda1214",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],perchForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.perchForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.perchForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("e561"),Object(g["a"])(k,o,i,!1,null,"24329529",null));e["default"]=x.exports},"39e1":function(t,e,a){"use strict";a("ef5d9")},"3a2b":function(t,e,a){"use strict";a("b076")},"3a3f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("c26e"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e["default"]=function(t){var e=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;if(e){if(t)return document.body.style.position="",void(document.body.style.width="");var a=(0,i["default"])();a&&(document.body.style.position="relative",document.body.style.width="calc(100% - "+a+"px)")}}},"3a41":function(t,e,a){},"3a65":function(t,e,a){},"3a84":function(t,e,a){"use strict";a("b4f7")},"3ac7f":function(t,e,a){},"3ad2":function(t,e,a){},"3ad9":function(t,e,a){},"3adb":function(t,e,a){t.exports=a.p+"img/app_coupon_list_empty_icon.dfbb88b0.png"},"3b58":function(t,e,a){!function(e,a){t.exports=a()}(window,(function(){return function(t){function e(o){if(a[o])return a[o].exports;var i=a[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,o){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:o})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=25)}([function(t,e,a){var o=a(11);"string"==typeof o&&(o=[[t.i,o,""]]);var i={transform:void 0};a(3)(o,i),o.locals&&(t.exports=o.locals)},function(t,e,a){"use strict";function o(t,e,a,o,i,r,n,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),n?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}a.d(e,"a",(function(){return o}))},function(t,e,a){"use strict";function o(t){return s(t)||n(t)||r(t)||i()}function i(){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 r(t,e){if(t){if("string"==typeof t)return c(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(t,e):void 0}}function n(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t){if(Array.isArray(t))return c(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=new Array(e);a=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]]),l(this.domEvents),this.dragHandle&&o(this.$el.querySelectorAll(this.dragHandle)).forEach((function(e){e.setAttribute("data-drag-handle",t._uid)})),this.dragCancel&&o(this.$el.querySelectorAll(this.dragCancel)).forEach((function(e){e.setAttribute("data-drag-cancel",t._uid)}))},beforeDestroy:function(){d(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,a=void 0!==t.pageY?t.pageY:t.touches[0].pageY,o=this.dimensionsBeforeMove,i={x:(o.pointerX-e)/this.parentScaleX,y:(o.pointerY-a)/this.parentScaleY};if(this.stickDrag&&this.stickMove(i),this.bodyDrag){if("x"===this.axis)i.y=0;else if("y"===this.axis)i.x=0;else if("none"===this.axis)return;this.bodyMove(i)}}},up:function(t){this.stickDrag?this.stickUp(t):this.bodyDrag&&this.bodyUp(t)},bodyDown:function(t){var e=t.target,a=t.button;if(this.preventActiveBehavior||(this.active=!0),(!a||0===a)&&(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 o=void 0!==t.pageX?t.pageX:t.touches[0].pageX,i=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:o,pointerY:i}),this.parentLimitation&&(this.limits=this.calcDragLimitation())}},bodyMove:function(t){var e=this.dimensionsBeforeMove,a=this.parentWidth,o=this.parentHeight,i=this.gridX,r=this.gridY,n=this.width,s=this.height,c=e.top-t.y,l=e.bottom+t.y,d=e.left-t.x,u=e.right+t.x;if(this.snapToGrid){var p=!0,m=!0,f=c-Math.floor(c/r)*r,h=o-l-Math.floor((o-l)/r)*r,g=d-Math.floor(d/i)*i,_=a-u-Math.floor((a-u)/i)*i;f>r/2&&(f-=r),h>r/2&&(h-=r),g>i/2&&(g-=i),_>i/2&&(_-=i),Math.abs(h)2&&void 0!==arguments[2]&&arguments[2];if(this.isResizable&&this.active||a){this.stickDrag=!0;var o=void 0!==e.pageX?e.pageX:e.touches[0].pageX,i=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:o,pointerY:i}),this.currentStick=t,this.limits=this.calcResizeLimits()}},saveDimensionsBeforeMove:function(t){var e=t.pointerX,a=t.pointerY;this.dimensionsBeforeMove.pointerX=e,this.dimensionsBeforeMove.pointerY=a,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,a=this.dimensionsBeforeMove,o=this.gridY,i=this.gridX,r=this.snapToGrid,n=this.parentHeight,s=this.parentWidth,c=a.top,l=a.bottom,d=a.left,u=a.right;switch(e[0]){case"b":l=a.bottom+t.y,r&&(l=n-Math.round((n-l)/o)*o);break;case"t":c=a.top-t.y,r&&(c=Math.round(c/o)*o)}switch(e[1]){case"r":u=a.right+t.x,r&&(u=s-Math.round((s-u)/i)*i);break;case"l":d=a.left-t.x,r&&(d=Math.round(d/i)*i)}var p=this.rectCorrectionByLimit({newLeft:d,newRight:u,newTop:c,newBottom:l});if(d=p.newLeft,u=p.newRight,c=p.newTop,l=p.newBottom,this.aspectRatio){var m=this.rectCorrectionByAspectRatio({newLeft:d,newRight:u,newTop:c,newBottom:l});d=m.newLeft,u=m.newRight,c=m.newTop,l=m.newBottom}this.left=d,this.right=u,this.top=c,this.bottom=l,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,a=this.height,o=this.bottom,i=this.top,r=this.left,n=this.right,s=this.minh,c=this.minw,l=this.parentLimitation?0:null;this.aspectRatio&&(c/s>t?s=c/t:c=t*s);var d={left:{min:l,max:r+(e-c)},right:{min:l,max:n+(e-c)},top:{min:l,max:i+(a-s)},bottom:{min:l,max:o+(a-s)}};if(this.aspectRatio){var u={left:{min:r-Math.min(i,o)*t*2,max:r+(a-s)/2*t*2},right:{min:n-Math.min(i,o)*t*2,max:n+(a-s)/2*t*2},top:{min:i-Math.min(r,n)/t*2,max:i+(e-c)/2/t*2},bottom:{min:o-Math.min(r,n)/t*2,max:o+(e-c)/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 a=e;return null!==t.min&&ec?(d=c*u,"l"===s[1]?e=r-a-d:a=r-e-d):(u=d/c,"t"===s[0]?o=n-i-u:i=n-o-u);return{newLeft:e,newRight:a,newTop:o,newBottom:i}}},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 a={width:"".concat(t.stickSize/t.parentScaleX,"px"),height:"".concat(t.stickSize/t.parentScaleY,"px")};return a[m.y[e[0]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),a[m.x[e[1]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),a}},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 a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.left){var o=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:o,y:0}),this.$nextTick((function(){a.bodyUp()}))}}},y:{handler:function(t,e){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.top){var o=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:o}),this.$nextTick((function(){a.bodyUp()}))}}},w:{handler:function(t,e){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.width){var o=e-t;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:o,y:0}),this.$nextTick((function(){a.stickUp()}))}}},h:{handler:function(t,e){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.height){var o=e-t;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:o}),this.$nextTick((function(){a.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}}},h=f,g=(a(12),a(1)),_=Object(g.a)(h,u,p,!1,null,null,null);_.options.__file="src/components/vue-drag-resize.vue",e.a=_.exports},function(t,e,a){function o(t,e){for(var a=0;a=0&&b.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),r(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),r(t,e),e}function l(t,e){Object.keys(e).forEach((function(a){t.setAttribute(a,e[a])}))}function d(t,e){var a,o,i,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var l=v++;a=_||(_=s(e)),o=u.bind(null,a,l,!1),i=u.bind(null,a,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=c(e),o=m.bind(null,a,e),i=function(){n(a),a.href&&URL.revokeObjectURL(a.href)}):(a=s(e),o=p.bind(null,a),i=function(){n(a)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}function u(t,e,a,o){var i=a?"":o.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var r=document.createTextNode(i),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(r,n[e]):t.appendChild(r)}}function p(t,e){var a=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}function m(t,e,a){var o=a.css,i=a.sourceMap,r=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||r)&&(o=y(o)),i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var n=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(n),s&&URL.revokeObjectURL(s)}var f={},h=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),g=function(t){var e={};return function(a){return void 0===e[a]&&(e[a]=t.call(this,a)),e[a]}}((function(t){return document.querySelector(t)})),_=null,v=0,b=[],y=a(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||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=h()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var a=i(t,e);return o(a,e),function(t){for(var r=[],n=0;n0?o("img",{staticClass:"data-empty",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_cart_empty_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("购物车")]),o("shoppingCarForm",{ref:"shoppingCarForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"shoppingCarForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"shoppingCarForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.shoppingCarForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("26365"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"2145b5fc",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],shoppingCarForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.shoppingCarForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.shoppingCarForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("2a21"),Object(g["a"])(k,o,i,!1,null,"ea39f98c",null));e["default"]=x.exports},"3c25":function(t,e,a){"use strict";a("ef80")},"3d2f":function(t,e,a){t.exports=a.p+"img/pc-product.1f82b7e9.jpg"},"3de0":function(t,e,a){},"3dfe":function(t,e,a){"use strict";a("2f8a")},"3e01":function(t,e,a){"use strict";a("cf01")},"3e15":function(t,e,a){},"3e77":function(t,e,a){"use strict";a("dc1b")},"3e85":function(t,e,a){"use strict";a("846a")},"3eae":function(t,e,a){},"3f5f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("41b2"),i=l(o),r=a("7b44"),n=l(r),s=a("94ef"),c=l(s);function l(t){return t&&t.__esModule?t:{default:t}}e["default"]={name:"LocaleReceiver",props:{componentName:n["default"].string.def("global"),defaultLocale:n["default"].oneOfType([n["default"].object,n["default"].func]),children:n["default"].func},inject:{localeData:{default:function(){return{}}}},methods:{getLocale:function(){var t=this.componentName,e=this.defaultLocale,a=e||c["default"][t||"global"],o=this.localeData.antLocale,r=t&&o?o[t]:{};return(0,i["default"])({},"function"===typeof a?a():a,r||{})},getLocaleCode:function(){var t=this.localeData.antLocale,e=t&&t.locale;return t&&t.exist&&!e?c["default"].locale:e}},render:function(){var t=this.$scopedSlots,e=this.children||t["default"],a=this.localeData.antLocale;return e(this.getLocale(),this.getLocaleCode(),a)}}},"3f9b":function(t,e,a){t.exports=a.p+"img/staffed.fc3ae0c6.png"},"3fcf":function(t,e,a){"use strict";a("1d1c")},4017:function(t,e,a){"use strict";a("f383")},"401bb":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCssAnimationSupported=void 0;var o=a("1098"),i=d(o),r=a("e098"),n=d(r),s=a("3c55"),c=d(s),l=a("31f2");function d(t){return t&&t.__esModule?t:{default:t}}var u=0!==n["default"].endEvents.length,p=["Webkit","Moz","O","ms"],m=["-webkit-","-moz-","-o-","ms-",""];function f(t,e){for(var a=window.getComputedStyle(t,null),o="",i=0;i0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_out_of_stock_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("缺货图")]),o("staffedForm",{ref:"staffedForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("fb02"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"staffedForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"staffedForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.staffedForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("6135"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"6921f42c",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],staffedForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.staffedForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.staffedForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("0487"),Object(g["a"])(k,o,i,!1,null,"cbc802fa",null));e["default"]=x.exports},"43a4":function(t,e,a){t.exports=a.p+"img/pc_add_button_touch_color1.419b2d21.png"},"43bb":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("app")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"top_nav",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("be0b")}}),t.compdata&&t.compdata.length>0?o("div",{staticClass:"c-search"},[1*t.radio===1?o("div",{staticClass:"app-search-type--1",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"app_background_color").config_value}},[o("div",{staticClass:"logo-box"},[t.findCurrentFormFun(t.compdata,"app_logo_img").config_value?o("div",{staticClass:"logo"},[o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"app_logo_img").config_value}})]):o("span",{staticClass:"logo-placeholder"}),o("img",{staticClass:"message",attrs:{src:a("4fb5")}})]),o("div",{staticClass:"search-content"},[t._v("\n "+t._s(t.findCurrentFormFun(t.compdata,"app_searchbox_color").searchbox_color)+"\n "),o("div",{staticClass:"search-box",style:{backgroundColor:1*t.searchColor==1?"#f4f4f4":"#fff"}},[o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"app_search_icon_url").config_value+")"}}),t.findCurrentFormFun(t.compdata,"app_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"app_scan_img_url").config_value+")"}}):t._e()])])]):t._e(),1*t.radio===2?o("div",{staticClass:"app-search-type--2",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"app_background_color").config_value}},[o("div",{staticClass:"logo-box"},[t.findCurrentFormFun(t.compdata,"app_logo_img").config_value?o("div",{staticClass:"logo"},[o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"app_logo_img").config_value}})]):o("span",{staticClass:"logo-placeholder"}),o("img",{staticClass:"message",attrs:{src:a("4fb5")}})]),o("div",{staticClass:"search-content"},[t._v("\n "+t._s(t.findCurrentFormFun(t.compdata,"app_searchbox_color").searchbox_color)+"\n "),o("div",{staticClass:"search-box",style:{backgroundColor:1*t.searchColor==1?"#f4f4f4":"#fff"}},[o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"app_search_icon_url").config_value+")"}}),t.findCurrentFormFun(t.compdata,"app_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"app_scan_img_url").config_value+")"}}):t._e()])])]):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("顶部导航")]),o("topNavForm",{ref:"topNavForm",attrs:{compdata:t.compdata},on:{selectType:t.selectType,customRadio:t.customRadio}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("6b54"),a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"topNavForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{selectValueAction:t.selectValueAction,isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction,checkRadioAction:t.checkRadioAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"topNavForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.topNavForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.map((function(t){t.isChange&&("app_searchbox_color"===t.decoration_code||"app_logo_display"===t.decoration_code||"app_scan_show"===t.decoration_code?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1})).catch((function(t){e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},selectValueAction:function(t,e){this.$emit("selectType",t,e)},checkRadioAction:function(t,e){this.$emit("customRadio",t,e)}}},h=f,g=(a("88ed"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"6aa371d8",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],topNavForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],radio:1,searchColor:1}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},selectType:function(t,e){"app_searchbox_color"===e.decoration_code&&(this.searchColor=t)},customRadio:function(t,e){this.radio=t},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(e,o){e.index=o,e.isChange=!1,e.sizeTip=Object(y["b"])(a,e),e.config_value?(e.isEmpty=!1,"app_logo_display"!==e.decoration_code&&"app_searchbox_color"!==e.decoration_code&&"app_scan_show"!==e.decoration_code||(e.config_value=JSON.parse(e.config_value),e.initialValue=[],e.config_value.map((function(t){t.checked&&e.initialValue.push(t.value)}))),"app_logo_display"===e.decoration_code&&(e.initialValue=e.initialValue.toString(),a.radio=e.initialValue),"app_scan_img_url"===e.decoration_code&&(e.isShowScanImg=a.findCurrentFormFun(t.data.rows,"app_scan_show").config_value[0].checked,e.required=a.findCurrentFormFun(t.data.rows,"app_scan_show").config_value[0].checked),a.$refs.topNavForm.form.setFieldsValue(Object(r["a"])({},"".concat(e.decoration_code),a.compdata[o].config_value))):e.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.topNavForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("f46e"),Object(g["a"])(k,o,i,!1,null,"69326f46",null));e["default"]=x.exports},4442:function(t,e,a){"use strict";a("166e")},"445c":function(t,e,a){"use strict";a("425e")},"447b":function(t,e,a){"use strict";a("27c5")},4518:function(t,e,a){"use strict";a("2582")},"452d":function(t,e,a){"use strict";a("adff")},4594:function(t,e,a){},"45a1":function(t,e,a){"use strict";a("4a68")},"45b8":function(t,e,a){"use strict";a("86db")},4613:function(t,e,a){},"474f":function(t,e,a){t.exports=a.p+"img/app_favorite_no_result_icon.23a9bdd3.png"},"476c":function(t,e,a){},"47aa":function(t,e,a){},"47d9":function(t,e,a){"use strict";a("bd1a")},"48bb":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("9b57"),i=c(o),r=a("41b2"),n=c(r),s=a("73c8");function c(t){return t&&t.__esModule?t:{default:t}}e["default"]={methods:{setState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],a="function"===typeof t?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){var o=this.getDerivedStateFromProps((0,s.getOptionProps)(this),(0,n["default"])({},this.$data,a));if(null===o)return;a=(0,n["default"])({},a,o||{})}(0,n["default"])(this.$data,a),this.$forceUpdate(),this.$nextTick((function(){e&&e()}))},__emit:function(){var t=[].slice.call(arguments,0),e=t[0],a=this.$listeners[e];if(t.length&&a)if(Array.isArray(a))for(var o=0,r=a.length;o0?a("a-form",{ref:"helpCustomerForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,globalConfig:{client:5},loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"helpCustomerForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.helpCustomerForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("eae9"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"2f91a00c",null),g=h.exports,_=a("75dc"),v=a("ea1b"),b=a("de6a"),y={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$route.params.id,a={decoration_group_id:e},t.next=4,Object(u["f"])(a).then((function(t){t&&-400!==t.status&&(o.compdata=t.data.rows,o.$nextTick((function(){o.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(o,t),o.$forceUpdate(),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{groups:function(){var t=Object(v["a"])(this.compdata,"app_user_help_service").config_value;if(t){var e=JSON.parse(t).tabs;return e.filter((function(t){return t.status}))}return[]},getAdvertise:function(){var t=Object(v["a"])(this.compdata,"app_user_help_image").config_value;return t?JSON.parse(t):[{img:""}]}},beforeRouteLeave:function(t,e,a){var o=this.$refs.helpCustomerForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},w=y,C=(a("d205"),Object(f["a"])(w,o,i,!1,null,"5f25b8ab",null));e["default"]=C.exports},"4afd":function(t,e,a){"use strict";a("413e")},"4b4a":function(t,e,a){},"4ba0":function(t,e,a){},"4c14":function(t,e,a){"use strict";a("361e")},"4c54":function(t,e,a){t.exports=a.p+"img/app_detail_favorite_icon.57e5a92c.png"},"4c578":function(t,e,a){"use strict";a("fb18")},"4c9b":function(t,e,a){},"4cad":function(t,e,a){"use strict";a("3de0")},"4cec":function(t,e,a){"use strict";a("f07d")},"4d25":function(t,e,a){"use strict";a("476c")},"4d5e":function(t,e,a){},"4df0":function(t,e,a){},"4f00":function(t,e,a){},"4f4a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAADAAAAAATDPpdAAAAY0lEQVQoFWNgGBrg////AkAsi821LOiCQIWCQDFfIP4BZHMwMjLeRlcD50NNjgPSfEDMDMQhQKwCV4DMAEqAnAFWDBMH8kGaQoFYGSYGp4GCQUDMDxeAMoBiLFA5PnS5ocoHAJ3QQ+JzfJWfAAAAAElFTkSuQmCC"},"4f5f":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"隔离模式",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171.64 174.15"}},[a("title",[t._v("删除")]),a("path",{staticClass:"cls-1",attrs:{d:"M71.19,31.1h57.15a7.46,7.46,0,1,0,0-14.92H71.19a7.46,7.46,0,0,0,0,14.92Z",transform:"translate(-13.95 -16.18)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M178.13,41.91H21.41a7.74,7.74,0,0,0-7.46,8,7.73,7.73,0,0,0,7.46,8h17.3V156c0,19,14.42,34.38,32.13,34.38h57.85c17.72,0,32.13-15.42,32.13-34.38V57.86h17.31a8,8,0,0,0,0-16ZM83.67,157a7.67,7.67,0,0,1-15.34,0V80a7.67,7.67,0,0,1,15.34,0Zm49,0a7.67,7.67,0,1,1-15.34,0V80a7.67,7.67,0,1,1,15.34,0Z",transform:"translate(-13.95 -16.18)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"4fa0":function(t,e,a){},"4fb5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALAAAAAD8buejAAAGgklEQVRYCe2ZfWjVVRjHvdvd3GuaMBVnq2lQqFCyTZtr5gsiW0bUWCpFEJUR9k8kGBllKRTkLDAq1EpDUxgV5nSlFYttbboNNawkaOIswfdsY7O99nnOzrme3/ndO3fndf2zH1yf5znP2/c8v/Occ35z1KiRZ6QCngoEPFKUQmlpaXxLS0ted3f3okAgkNvX1zcBOh46XkLBn4M/Bz0LbQwGgwezsrIaysvLe6JMFTIfEuDZs2fn9PT0vASIYiKNCUUbHHOFCeyPj48vO3ToUNPgXK5ZRQU4JydnPsnWAHThtRAhrg/dJXTnoedkFH48fAZ0HKIvF7rvGV/f2NhYBR3U4wsSzgugKYxv4Pe8o/8DeZ8kBtSPTU1NVxy9EvEfg80D2MhEH+Q31bH7EHkV/u3OuE+8LuBZs2bdw+vfjefdlncNADYsWbJk79q1a3ut8euy2MdVVFQ8BPhVGN9vOZxgmSw7fPjwMWvMxw4IODc3dyaBf8BrrPaUBlrBK9zjizSEAeI/TPzNuKomhf5N/AXEPxIpXFwkRV5e3nSCHUCvwBJof0pKyoxYgZW8EktiSmyNY6zklNxa9pGwFWYXuIVl8AvOk8WDgF+kpaUtq6qq6vZFiMHAvHnzgm1tbbvJV6Lz/cnymM4u8o8bPmyF2VffssDuvZlgBZAUQnJQmL0iS27BILz7+CpMk+VT3VoM8Q+cTUhImFZXV3fJdbwZcn5+/riurq5fATyB+H1UuYAmrLNz+SoM2DUYmImsHC6wAkrnWqkBBjQWLfYTA0xJhYWFGR0dHWeYYZDqHqUpZnqsh0lg9zgChnvB0J2cnDypurr6vEntqXB7e/tyAauV243R/0BVbsECpmV2fg9gZjTXKFk/uwzvUro6iZ3kPtZcpqsTWbYlOXBI6HmDWjdR+kSfnuHcR9m5bUxi7AGMnKUjXGZLOat5DwHo5NbW1uN0cR0NcorXZ9acskP+vLe39zjr7yjA98mNzgRAfgLdKXQ/MfY7tncZnU117st67HZbFxYwszplG9k8yVYjq7sAFYznt5FKJ4sNlVuAvNzYwxedPHnyEZHhA4DdBJuo9ZmMvaZ5H7EwmCIqGw9gAsitSh7fht0/rBIbGzOUyD03TQQAuTrZG9VYcXFxIryyM45GZ2SHXtGy5/rqAYyBMgL4HY5zSIyLi/sUodcMkPRr08WsvQPIp40OegH7PSJXVlb+S9wdlk6q/okt2zw6dcpC/7LHXcBmKUwuKioabRsavqGh4TuAyS1rA+BeyM7OLjU6OUrR5QHydcbW8cuxe2HKlCnPMPYsvzLsFnKdLIf3PYCUZr1NFE4BQgeEcqIJPsL4OREIOJdTplophvkffdpKY8qzlYnJJNXjqTCzCc2Y9ejpfuMwHJTcT5o8YPrK8EI9gHnd8slyQhuUFBQUTNL8sBFypvOWl0pCwF6EP2gn9wDWig+EYhi8evXqu7bxcPDkfJs8t0ouMOxkOXTZeX2Ak5KStmHQoo0ecw8G2znWPLkKiKm+G6nuJfroTTeHD3BtbW0r+6q8EjUzZrmRJih0HWMty6lHri+Jq45zAL9M01908/gAiwFbUT1b0yvaOJHT7SDH6uOuc6xk7hVTASv9o77tALsfsFvDxQ8LWAxxKINsE55nNJ27g8Bv9Iux+5fKymdRA79MiQrYOsCXQvtEdh9VfnfQlgH5KrKsJWO7mEaQj9MbeuSmx+VpHeCeMoEAeZQeWlBTU2MuPkYVohErbCwAtx5+KcE6oJ0slYjBjM9AlIrOoAhbOjs7mx2wH/M5NmcgsBLXVG2gHEon31skSWMCLTIgX9YskzHs3fbdIRRH9nDsM5noBHpgorjALwakOnJDhv33jReJ47lnWHoPO2jAtpc0CfIxACRBS+y/Vcj9lyvlToCpzd/2c/gLyGXp6env89Xc5ugiisGImgEUbHtjucCnAkqa5FFM1Y2MiSQ0NzdvRo4E9jL23/KrSE1N3RMNUANnSIBZCqkmAKDVmmaJTOPVb0GeIzpAdcC/B3saXq6Ip7Ozs3++kb8NS9whAcZvkTjrp4tG2k7F5UsjQY+1AbKUpfKNMRKKbItD4ocEmArbX7KrZGlYTw3dvqK+vv43ayxmbNSA5WuZat7pIqCi8t8Cq6niZ/CeGbi2NyJHDZjqzncSngHgO4DdzJbXDu+oYytGDRhgsi6fBlgrdFNGRsZO+V6LLayRaCMVGHQF/gMuoMCwW65/hQAAAABJRU5ErkJggg=="},"4fee":function(t,e,a){"use strict";a("ab6b")},"4ffa":function(t,e,a){"use strict";a("ab4f")},5039:function(t,e,a){"use strict";a("da23")},5041:function(t,e,a){},50761:function(t,e,a){},5088:function(t,e,a){"use strict";a("2252")},"50b2":function(t,e,a){"use strict";a("26be")},"50bf":function(t,e,a){"use strict";a("e50d")},"50e3":function(t,e,a){t.exports=a.p+"img/pc-award-tab.d165d0a7.png"},"50ea":function(t,e,a){"use strict";a("99a6")},"50f6":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("92fa"),i=I(o),r=a("41b2"),n=I(r),s=a("6042"),c=I(s),l=a("9b57"),d=I(l),u=a("4d26"),p=I(u),m=a("3a9b"),f=j(m),h=a("8520"),g=I(h),_=a("7b44"),v=I(_),b=a("bbf5"),y=I(b),w=a("133a"),C=a("a7e2"),k=I(C),x=a("3f5f"),S=I(x),A=a("f3dc"),T=a("73c8"),F=a("baff"),O=I(F);function j(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e["default"]=t,e}function I(t){return t&&t.__esModule?t:{default:t}}g["default"].add.apply(g["default"],(0,d["default"])(Object.keys(f).map((function(t){return f[t]})))),(0,A.setTwoToneColor)("#1890ff");var P="outlined",E=void 0;function M(t,e,a){var o,r=a.$props,s=a.$slots,l=(0,T.getListeners)(a),d=r.type,u=r.component,m=r.viewBox,f=r.spin,h=r.theme,_=r.twoToneColor,v=r.rotate,b=r.tabIndex,y=(0,T.filterEmpty)(s["default"]);y=0===y.length?void 0:y,(0,k["default"])(Boolean(d||u||y),"Icon","Icon should have `type` prop or `component` prop or `children`.");var C=(0,p["default"])((o={},(0,c["default"])(o,"anticon",!0),(0,c["default"])(o,"anticon-"+d,!!d),o)),x=(0,p["default"])((0,c["default"])({},"anticon-spin",!!f||"loading"===d)),S=v?{msTransform:"rotate("+v+"deg)",transform:"rotate("+v+"deg)"}:void 0,A={attrs:(0,n["default"])({},w.svgBaseProps,{viewBox:m}),class:x,style:S};m||delete A.attrs.viewBox;var F=function(){if(u)return t(u,A,[y]);if(y){(0,k["default"])(Boolean(m)||1===y.length&&"use"===y[0].tag,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");var e={attrs:(0,n["default"])({},w.svgBaseProps),class:x,style:S};return t("svg",(0,i["default"])([e,{attrs:{viewBox:m}}]),[y])}if("string"===typeof d){var a=d;if(h){var o=(0,w.getThemeFromTypeName)(d);(0,k["default"])(!o||h===o,"Icon","The icon name '"+d+"' already specify a theme '"+o+"', the 'theme' prop '"+h+"' will be ignored.")}return a=(0,w.withThemeSuffix)((0,w.removeTypeTheme)((0,w.alias)(a)),E||h||P),t(g["default"],{attrs:{focusable:"false",type:a,primaryColor:_},class:x,style:S})}},O=b;void 0===O&&"click"in l&&(O=-1);var j={attrs:{"aria-label":d&&e.icon+": "+d,tabIndex:O},on:l,class:C,staticClass:""};return t("i",j,[F()])}var $={name:"AIcon",props:{tabIndex:v["default"].number,type:v["default"].string,component:v["default"].any,viewBox:v["default"].any,spin:v["default"].bool.def(!1),rotate:v["default"].number,theme:v["default"].oneOf(["filled","outlined","twoTone"]),twoToneColor:v["default"].string,role:v["default"].string},render:function(t){var e=this;return t(S["default"],{attrs:{componentName:"Icon"},scopedSlots:{default:function(a){return M(t,a,e)}}})}};$.createFromIconfontCN=y["default"],$.getTwoToneColor=A.getTwoToneColor,$.setTwoToneColor=A.setTwoToneColor,$.install=function(t){t.use(O["default"]),t.component($.name,$)},e["default"]=$},"510e":function(t,e,a){},5110:function(t,e,a){},"511c":function(t,e,a){},5145:function(t,e,a){},5198:function(t,e,a){"use strict";a("579e")},"51dd":function(t,e,a){},"51e4":function(t,e,a){"use strict";a("5890")},"51e9":function(t,e,a){"use strict";a("5041")},"51f2":function(t,e,a){},"522c":function(t,e,a){},5238:function(t,e,a){t.exports=a.p+"img/miniapp_detail_promotion.bdb88ef1.png"},"524f":function(t,e,a){t.exports=a.p+"img/img-ad-link.fd57ec3a.png"},"52d3":function(t,e,a){t.exports=a.p+"img/main_bg_write.09b66416.png"},"52e1":function(t,e,a){},"531f":function(t,e,a){"use strict";a("6161")},"53be":function(t,e,a){"use strict";a("9367")},"53d3":function(t,e,a){t.exports=a.p+"img/amp_guide_img.a4827bcd.png"},5434:function(t,e,a){"use strict";a("1e57")},5457:function(t,e,a){"use strict";a("7888")},"549b9":function(t,e,a){},"54e2":function(t,e,a){"use strict";a("01f5")},55377:function(t,e,a){"use strict";a("acc7")},"55be":function(t,e,a){"use strict";a("6184")},"55d9":function(t,e,a){"use strict";a("ecea")},"55fa":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("products-modal",{ref:"productsModalChild",attrs:{visible:t.chooseVisible,init:t.init,"rule-id":t.ruleId,"hide-input":t.hideInput,secret:t.secret,"activity-page":t.activityPage,"global-config":t.globalConfig},on:{"products-modal-close":t.closeChoose,"selected-products":t.finishChoose}}),a("edit-products-modal",{attrs:{visible:t.editVisible,products:t.selectedProducts,secret:t.secret,"rule-id":t.ruleId,"activity-page":t.activityPage,"global-config":t.globalConfig},on:{"edit-products-modal-close":t.closeEdit,"active-products":t.finishEdit,"open-products-modal":t.openProductsModal}})],1)},i=[],r=a("2909"),n=(a("c5f6"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{staticClass:"c-edit-products-modal",attrs:{title:"编辑商品",width:878,visible:t.visible,bodyStyle:{padding:"0 0 24px"},destroyOnClose:!0},on:{cancel:t.closeModal}},[a("template",{slot:"footer"},[a("p",{staticClass:"record-total"},[t._v("共 "+t._s(t.dataSource.length)+" 条记录")]),a("a-button",{key:"back",on:{click:t.closeModal}},[t._v("取消")]),a("a-button",{key:"submit",attrs:{type:"primary"},on:{click:t.finishEditProducts}},[t._v("保存")])],1),a("div",{staticStyle:{padding:"24px"}},[a("div",{staticStyle:{"margin-bottom":"24px"}},[a("a-button",{attrs:{type:"primary"},on:{click:t.openProductsModal}},[t._v("添加商品")]),a("a-button",{staticStyle:{"margin-left":"8px"},attrs:{disabled:t.deleteDisable},on:{click:t.deleteSelected}},[t._v("删除")])],1),a("a-table",{staticClass:"c-edit-products-modal-table",attrs:{rowSelection:{selectedRowkeys:t.selectedRowKeys,onChange:t.onSelectChange},columns:t.columns,dataSource:t.dataSource,pagination:!1,scroll:{y:355}},scopedSlots:t._u([{key:"product_image",fn:function(e,o){return[a("div",{staticClass:"c-product-list-img-wrap"},[a("a",{staticClass:"c-product-list-img-link",attrs:{href:o.product_url,target:"_blank"}},[a("img",{staticClass:"c-product-list-img",attrs:{src:e,onerror:"this.src = 'https://cms-resource.azoyacdn.com/img/no_thumb.jpg'"}})]),3===o.status?a("div",{staticClass:"no-stock"},[a("img",{attrs:{src:t.globalConfig.h5_out_of_stock_icon}})]):t._e()])]}},{key:"product_info",fn:function(e,o){return[a("div",{staticStyle:{width:"498px"}},[a("p",{staticStyle:{width:"100%",overflow:"hidden","margin-bottom":"0","white-space":"nowrap","text-overflow":"ellipsis"}},[a("a",{attrs:{href:o.product_url,target:"_blank"}},[t._v(t._s(e))])]),a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("商品ID:"+t._s(o.product_id)+"    商户SKU:"+t._s(o.merchant_sku))])])]}},{key:"actions",fn:function(e,o,i){return[a("div",{staticStyle:{width:"118px"}},[a("a",{class:{"link-disabled":0===i||3===o.status},staticStyle:{"margin-right":"16px"},attrs:{href:"javascript:;"},on:{click:function(e){return t.moveUp(o.key)}}},[t._v("上移")]),a("a",{class:{"link-disabled":i===t.dataSource.length-1||3===o.status},staticStyle:{"margin-right":"16px"},attrs:{href:"javascript:;"},on:{click:function(e){return t.moveDn(o.key)}}},[t._v("下移")]),a("a-popconfirm",{attrs:{title:"确定删除吗?",placement:"left",getPopupContainer:function(t){return t.parentNode}},on:{confirm:function(e){return t.deleteRow(o.key)}}},[a("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)]}}])})],1)],2)}),s=[],c=(a("8e6e"),a("456d"),a("20d6"),a("ac6a"),a("ade3")),l=a("b775");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function u(t){for(var e=1;e=this.selectedRowKeys.length)this.allSelectedRowKeys=C.a.uniq([].concat(Object(r["a"])(this.allSelectedRowKeys),[t]));else{var a=C.a.xor(t,this.selectedRowKeys);a.forEach((function(t){if(e.allSelectedRowKeys.includes(t)){var a=e.allSelectedRowKeys.indexOf(t);e.allSelectedRowKeys.splice(a,1)}}))}else t.length>=this.lastSelectedRowKeys.length&&t.forEach((function(t){e.lastSelectedRowKeys.includes(t)||e.allSelectedRowKeys.push(t)})),t.length0?a("a-form",{ref:"helpCustomerForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"helpCustomerForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.helpCustomerForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("3306"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"61ff3e7e",null),g=h.exports,_=a("0b75"),v=a("ea1b"),b=a("de6a"),y={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(u["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(a,t),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.helpCustomerForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()},computed:{groups:function(){var t=Object(v["a"])(this.compdata,"h5_user_help_service").config_value;if(t){var e=JSON.parse(t).tabs;return e.filter((function(t){return t.status}))}return[]},getAdvertise:function(){var t=Object(v["a"])(this.compdata,"h5_user_help_image").config_value;return t?JSON.parse(t):[{img:""}]}}},w=y,C=(a("47d9"),Object(f["a"])(w,o,i,!1,null,"7a2e9a26",null));e["default"]=C.exports},"5a99":function(t,e,a){t.exports=a.p+"img/product_list.fc3ae0c6.png"},"5b11":function(t,e,a){},"5b15":function(t,e,a){t.exports=a.p+"img/h5_coupon_list_empty_icon.6140c8ad.png"},"5b9d":function(t,e,a){"use strict";a("e6ad")},"5b9e":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"payment",platform:"app",routerType:"app"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/41265/5cc510c7e95fb860969134adca5baf0e.png"}}),a("div",{staticClass:"textarea"},[t._v(t._s(t.findCurrentFormFun(t.compdata,"app_cashier_tips")&&t.findCurrentFormFun(t.compdata,"app_cashier_tips").config_value?t.findCurrentFormFun(t.compdata,"app_cashier_tips").config_value:"此处显示收款主体说明"))])])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("收银台")]),a("paymentForm",{ref:"paymentForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"paymentForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.paymentForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("f948"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"5736d75c",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],paymentForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.paymentForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.paymentForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("d8cf"),Object(g["a"])(k,o,i,!1,null,"e8f8b5ce",null));e["default"]=x.exports},"5ba8":function(t,e,a){"use strict";a("5945")},"5bc7":function(t,e,a){"use strict";a("04e1")},"5c25":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("401bb"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}var n=function(){},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.beforeEnter,o=e.enter,r=e.afterEnter,s=e.leave,c=e.afterLeave,l=e.appear,d=void 0===l||l,u=e.tag,p=e.nativeOn,m={props:{appear:d,css:!1},on:{beforeEnter:a||n,enter:o||function(e,a){(0,i["default"])(e,t+"-enter",a)},afterEnter:r||n,leave:s||function(e,a){(0,i["default"])(e,t+"-leave",a)},afterLeave:c||n},nativeOn:p};return u&&(m.tag=u),m};e["default"]=s},"5c2a":function(t,e,a){},"5c33":function(t,e,a){},"5c82":function(t,e,a){"use strict";a("3461")},"5c8b":function(t,e,a){},"5cb9":function(t,e,a){t.exports=a.p+"img/brand_list.ac6b489f.png"},"5cce":function(t,e,a){"use strict";a("00b2")},"5cdf":function(t,e,a){"use strict";a("5c2a")},"5d14":function(t,e,a){t.exports=a.p+"img/app_highlight_color.957d0c0d.png"},"5def":function(t,e,a){"use strict";a("e821")},"5e75":function(t,e,a){t.exports=a.p+"img/app_comment_no_result_icon.338a12a1.png"},"5ec2":function(t,e,a){"use strict";a("94b1")},"5ec6":function(t,e,a){t.exports=a.p+"img/site_style_2.7b4295e5.jpg"},"5eea9":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyProps=e.TransferLocale=void 0;var o=a("92fa"),i=k(o),r=a("1098"),n=k(r),s=a("6042"),c=k(s),l=a("41b2"),d=k(l),u=a("7b44"),p=k(u),m=a("bad7"),f=a("73c8"),h=a("3f5f"),g=k(h),_=a("c4ff"),v=k(_),b=a("27216"),y=k(b),w=a("baff"),C=k(w);function k(t){return t&&t.__esModule?t:{default:t}}e.TransferLocale=function(){return{description:p["default"].string}};var x=e.EmptyProps=function(){return{prefixCls:p["default"].string,image:p["default"].any,description:p["default"].any,imageStyle:p["default"].object}},S={name:"AEmpty",props:(0,d["default"])({},x()),methods:{renderEmpty:function(t){var e=this.$createElement,a=this.$props,o=a.prefixCls,r=a.imageStyle,s=m.ConfigConsumerProps.getPrefixCls("empty",o),l=(0,f.getComponentFromProp)(this,"image")||e(v["default"]),d=(0,f.getComponentFromProp)(this,"description"),u="undefined"!==typeof d?d:t.description,p="string"===typeof u?u:"empty",h=(0,c["default"])({},s,!0),g=null;if("string"===typeof l)g=e("img",{attrs:{alt:p,src:l}});else if("object"===("undefined"===typeof l?"undefined":(0,n["default"])(l))&&l.PRESENTED_IMAGE_SIMPLE){var _=l;g=e(_),h[s+"-normal"]=!0}else g=l;return e("div",(0,i["default"])([{class:h},{on:(0,f.getListeners)(this)}]),[e("div",{class:s+"-image",style:r},[g]),u&&e("p",{class:s+"-description"},[u]),this.$slots["default"]&&e("div",{class:s+"-footer"},[this.$slots["default"]])])}},render:function(){var t=arguments[0];return t(g["default"],{attrs:{componentName:"Empty"},scopedSlots:{default:this.renderEmpty}})}};S.PRESENTED_IMAGE_DEFAULT=v["default"],S.PRESENTED_IMAGE_SIMPLE=y["default"],S.install=function(t){t.use(C["default"]),t.component(S.name,S)},e["default"]=S},"5ef7":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"site_style",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("6c92")}}),o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.compdata,"app_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.compdata,"app_main_color").config_value})])]),o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,staticClass:"box box-1"},[o("div",{staticClass:"box-item-1"},[o("div",{staticClass:"pic"},[o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),e%2===1?o("div",{staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")]):t._e()]),o("div",{staticClass:"tag"},[o("div",e%2===1?[o("span",{staticClass:"tag-box"},[t._v("新品")]),o("span",{staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{staticClass:"tag-box"},[t._v("商品打标")]),o("span",{staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{staticClass:"eng"},[t._v("品牌名")]),o("span",{staticClass:"line"},[t._v("/")]),o("span",{staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[o("div",{staticClass:"line-1"},[t._v("此处为商品标题")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:e%2===1?"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value:"color: "+t.findCurrentFormFun(t.compdata,"app_sale_price_color").config_value},[t._v("AU$112.8")]),e%2===1?o("span",{staticClass:"right-price"},[t._v("AU$134")]):t._e()]),o("div",{staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{staticClass:"add-icon"},[o("img",{attrs:{src:"https://cms-resource-test.azoyacdn.com/decoration/product-list-add-cart.png",alt:""}})])])])})),0)]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("5ec6")}}),o("div",{staticClass:"tab-color",style:"color: "+t.findCurrentFormFun(t.compdata,"app_main_color").config_value},[t._v("产品描述"),o("div",{staticClass:"bottom-style",style:"color: "+t.findCurrentFormFun(t.compdata,"app_main_color").config_value})]),o("div",{staticClass:"tiem_shop",style:"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("限时购")]),o("div",{staticClass:"time_background",style:"background: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("距结束仅剩:01天20小时20分20秒 "),o("img",{attrs:{src:a("1801"),alt:""}})]),o("div",{staticClass:"price",style:"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("AU$"),o("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v("1999.99")])]),o("div",{staticClass:"active",style:"color: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("Physician's Formula 用码[JAN33] 67折")]),o("div",{staticClass:"add_cart",style:"background: "+t.findCurrentFormFun(t.compdata,"app_promotion_color").config_value},[t._v("加入购物车")])]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("站点风格")]),t.compdata&&t.compdata.length>0?o("siteStyleForm",{ref:"siteStyleForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"siteStyleForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"siteStyleForm"}),groupId:this.$route.params.id,loading:!1,isChange:!1}},methods:{updateItem:function(){var t=this;this.$refs.siteStyleForm.onSubmit();var e=this.form.validateFields;e((function(e,a){if(!e){if(!0===t.loading)return;var o={items:[]};t.compdata.forEach((function(t){o.items.push({id:t.id,config_value:t.config_value})})),t.loading=!0,Object(p["h"])(o).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.isChange=!1):t.$message.error(e.message),t.loading=!1}))}}))},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("a483"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"5ac40c35",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],siteStyleForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.siteStyleForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.siteStyleForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("9f86"),Object(g["a"])(k,o,i,!1,null,"1106c206",null));e["default"]=x.exports},"606e":function(t,e,a){},6077:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"f",(function(){return s})),a.d(e,"h",(function(){return c})),a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return d})),a.d(e,"c",(function(){return u})),a.d(e,"e",(function(){return p})),a.d(e,"g",(function(){return m}));var o=a("b775"),i="/api-cms",r={groupList:i+"/decoration/group/tree",itemInfo:i+"/decoration/group/item/website/list",updateInfo:i+"/decoration/item/website/update",defaultList:i+"/decoration/item/default/list/by/code",categoryList:i+"/decoration/top/category/list",configColor:i+"/decoration/item/list/by/code",fetchItemChildInfo:i+"/decoration/item/list/by/parent-code",fetchProductConfig:i+"/decoration/website/by/relation-code"};function n(t){return Object(o["b"])({url:r.groupList,method:"get",params:t})}function s(t){return Object(o["b"])({url:r.itemInfo,method:"get",params:t})}function c(t){return Object(o["b"])({url:r.updateInfo,method:"post",data:t})}function l(t){return Object(o["b"])({url:r.defaultList,method:"get",params:t})}function d(t){return Object(o["b"])({url:r.categoryList,method:"get",params:t})}function u(t){return Object(o["b"])({url:r.configColor,method:"get",params:t})}function p(t){return Object(o["b"])({url:r.fetchItemChildInfo,method:"get",params:t})}function m(t){return Object(o["b"])({url:r.fetchProductConfig,method:"get",params:t})}},"60ac":function(t,e,a){},6119:function(t,e,a){"use strict";a("07f4")},6135:function(t,e,a){"use strict";a("f615")},6161:function(t,e,a){},6184:function(t,e,a){},6191:function(t,e,a){},6199:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("满折@2x")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"满折"}},[a("path",{attrs:{d:"M106,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,95 L229,95",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"109",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"98",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"143",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"142",width:"42",height:"42",rx:"10"}}),a("path",{attrs:{d:"M217.455428,136.248947 L143.025272,210.677203 C141.54686,212.156901 141.54686,214.554386 143.025272,216.034083 C143.773835,216.783297 144.746967,217.139174 145.720099,217.139174 C146.693231,217.139174 147.666363,216.783297 148.414926,216.034083 L222.807654,141.624558 C224.286066,140.12613 224.286066,137.728645 222.807654,136.248947 C221.329242,134.76925 218.93384,134.76925 217.455428,136.248947 Z",id:"路径",stroke:"#555555","stroke-width":"10","fill-rule":"nonzero"}}),a("circle",{attrs:{id:"椭圆形",stroke:"#555555","stroke-width":"15",cx:"152",cy:"145",r:"16"}}),a("circle",{attrs:{id:"椭圆形",stroke:"#555555","stroke-width":"15",cx:"211",cy:"211",r:"16"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"61bf":function(t,e,a){t.exports=a.p+"img/product_list_sift_1.2888c29e.jpg"},6244:function(t,e,a){"use strict";a("06fd")},6259:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"62c8":function(t,e,a){},"630e":function(t,e,a){"use strict";a("7e8c")},6315:function(t,e,a){"use strict";a("1378")},6373:function(t,e,a){},6432:function(t,e,a){"use strict";a("de97")},6486:function(t,e,a){},"64af":function(t,e,a){t.exports=a.p+"img/h5_promotion_color.cc2cce8c.png"},"650e":function(t,e,a){},6533:function(t,e,a){t.exports=a.p+"img/h5_share_image_site_icon.8a4dbe25.png"},6584:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"message_center",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("86823")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"promotion-message-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_message_page_promotion_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"my-asset-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_message_page_asset_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"sysmsg-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_message_page_sysmsg_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("消息中心")]),o("messageCenterForm",{ref:"messageCenterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"messageCenterForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"messageCenterForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.messageCenterForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("6d49"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"5866c5e6",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],messageCenterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.messageCenterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.messageCenterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("5457"),Object(g["a"])(k,o,i,!1,null,"225f9ce5",null));e["default"]=x.exports},"658f":function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){var e={};function a(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,o){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(o,i,function(e){return t[e]}.bind(null,i));return o},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/dist/",a(a.s=5)}([function(t,e,a){t.exports=a(6)},function(t,e){function a(t,e,a,o,i,r,n){try{var s=t[r](n),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(o,i)}t.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(i,r){var n=t.apply(e,o);function s(t){a(n,i,r,s,c,"next",t)}function c(t){a(n,i,r,s,c,"throw",t)}s(void 0)}))}}},function(t,e,a){"use strict";a.r(e);var o=a(4),i=a.n(o);e.default=function(){return i()('!function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=0)}([function(t,e){!function(){var t,e,i,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function o(o,s,n,a){var h,l,u,p,f,c,y=Math.max(2,a),d=new Uint8Array(256),w=new Int32Array(5003),g=new Int32Array(5003),b=0,x=0,v=!1;function P(t,e){d[l++]=t,l>=254&&S(e)}function m(t){B(5003),x=f+2,v=!0,F(f,t)}function B(t){for(var e=0;e0&&(t.writeByte(l),t.writeBytes(d,0,l),l=0)}function T(t){return(1<0?h|=t<=8;)P(255&h,e),h>>=8,b-=8;if((x>u||v)&&(v?(u=T(i=p),v=!1):(++i,u=12==i?4096:T(i))),t==c){for(;b>0;)P(255&h,e),h>>=8,b-=8;S(e)}}this.encode=function(r){r.writeByte(y),t=o*s,e=0,function(t,e){var r,o,s,n,a,h;for(v=!1,u=T(i=p=t),c=(f=1<=0){a=5003-s,0===s&&(a=1);do{if((s-=a)<0&&(s+=5003),w[s]===r){n=g[s];continue t}}while(w[s]>=0)}F(n,e),n=o,x<4096?(g[s]=x++,w[s]=r):m(e)}else n=g[s];F(n,e),F(c,e)}(y+1,r),r.writeByte(0)}}var s;function n(t,e){var i,r,o,s,n;function a(t,e,r,o,s){i[e][0]-=t*(i[e][0]-r)/1024,i[e][1]-=t*(i[e][1]-o)/1024,i[e][2]-=t*(i[e][2]-s)/1024}function h(t,e,r,o,s){for(var a,h,l=Math.abs(e-t),u=Math.min(e+t,256),p=e+1,f=e-1,c=1;pl;)h=n[c++],pl&&((a=i[f--])[0]-=h*(a[0]-r)/(1<<18),a[1]-=h*(a[1]-o)/(1<<18),a[2]-=h*(a[2]-s)/(1<<18))}function l(t,e,r){var n,a,h,l,u,p=~(1<<31),f=p,c=-1,y=c;for(n=0;n<256;n++)a=i[n],(h=Math.abs(a[0]-t)+Math.abs(a[1]-e)+Math.abs(a[2]-r))>12))>10,s[n]-=u,o[n]+=u<<10;return s[c]+=64,o[c]-=65536,y}this.buildColormap=function(){!function(){var t,e;for(i=[],r=new Int32Array(256),o=new Int32Array(256),s=new Int32Array(256),n=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,i[t]=new Float64Array([e,e,e,0]),s[t]=256,o[t]=0}(),function(){var i,r,o,s,u,p,f=t.length,c=30+(e-1)/3,y=f/(3*e),d=~~(y/100),w=1024,g=2048,b=g>>6;for(b<=1&&(b=0),i=0;i=f&&(x-=f),0===d&&(d=1),++i%d==0)for(w-=w/c,(b=(g-=g/30)>>6)<=1&&(b=0),p=0;p>=4,i[t][1]>>=4,i[t][2]>>=4,i[t][3]=t}(),function(){var t,e,o,s,n,a,h=0,l=0;for(t=0;t<256;t++){for(n=t,a=(o=i[t])[1],e=t+1;e<256;e++)(s=i[e])[1]>1,e=h+1;e>1,e=h+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[i[r][3]]=r;for(var o=0,s=0;s<256;s++){var n=e[s];t[o++]=i[n][0],t[o++]=i[n][1],t[o++]=i[n][2]}return t},this.lookupRGB=function(t,e,o){for(var s,n,a,h=1e3,l=-1,u=r[e],p=u-1;u<256||p>=0;)u<256&&((a=(n=i[u])[1]-e)>=h?u=256:(u++,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=0&&((a=e-(n=i[p])[1])>=h?p=-1:(p--,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,i=0;i=0&&(this.dispose=t)},l.prototype.setRepeat=function(t){this.repeat=t},l.prototype.setTransparent=function(t){this.transparent=t},l.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},l.prototype.finish=function(){this.out.writeByte(59)},l.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},l.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},l.prototype.setGlobalPalette=function(t){this.globalPalette=t},l.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},l.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},l.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},l.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var i=0,r=0;r=0&&P+u=0&&m+l>16,(65280&t)>>8,255&t,e)},l.prototype.findClosestRGB=function(t,e,i,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,i);for(var o=0,s=16777216,n=this.colorTab.length,a=0,h=0;a=0&&(e=7&dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},l.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},l.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},l.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},l.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},l.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},l.prototype.stream=function(){return this.out}}()}]);\n',"Worker",void 0,void 0)}},function(t,e){function a(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=a=function(t){return typeof t}:t.exports=a=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(e)}t.exports=a},function(t,e,a){"use strict";t.exports=function(t,e,a,o){try{try{var i;try{i=new window.Blob([t])}catch(e){(i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(t),i=i.getBlob()}var r=window.URL||window.webkitURL,n=r.createObjectURL(i),s=new window[e](n,a);return r.revokeObjectURL(n),s}catch(o){return new window[e]("data:application/javascript,".concat(encodeURIComponent(t)),a)}}catch(t){if(!o)throw Error("Inline worker is not supported");return new window[e](o,a)}}},function(t,e,a){t.exports=a(7)},function(t,e,a){var o=function(t){"use strict";var e=Object.prototype,a=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",n=o.toStringTag||"@@toStringTag";function s(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,a){return t[e]=a}}function c(t,e,a,o){var i=e&&e.prototype instanceof u?e:u,r=Object.create(i.prototype),n=new k(o||[]);return r._invoke=function(t,e,a){var o="suspendedStart";return function(i,r){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw r;return S()}for(a.method=i,a.arg=r;;){var n=a.delegate;if(n){var s=y(n,a);if(s){if(s===d)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===o)throw o="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o="executing";var c=l(t,e,a);if("normal"===c.type){if(o=a.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(o="completed",a.method="throw",a.arg=c.arg)}}}(t,a,n),r}function l(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function u(){}function p(){}function m(){}var f={};f[i]=function(){return this};var h=Object.getPrototypeOf,g=h&&h(h(x([])));g&&g!==e&&a.call(g,i)&&(f=g);var _=m.prototype=u.prototype=Object.create(f);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;this._invoke=function(i,r){function n(){return new e((function(o,n){!function o(i,r,n,s){var c=l(t[i],t,r);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==typeof u&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){o("next",t,n,s)}),(function(t){o("throw",t,n,s)})):e.resolve(u).then((function(t){d.value=t,n(d)}),(function(t){return o("throw",t,n,s)}))}s(c.arg)}(i,r,o,n)}))}return o=o?o.then(n,n):n()}}function y(t,e){var a=t.iterator[e.method];if(void 0===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,y(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(a,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function e(){for(;++o=0;--i){var r=this.tryEntries[i],n=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var s=a.call(r,"catchLoc"),c=a.call(r,"finallyLoc");if(s&&c){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),C(a),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var o=a.completion;if("throw"===o.type){var i=o.arg;C(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:x(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),d}},t}(t.exports);try{regeneratorRuntime=o}catch(t){Function("r","regeneratorRuntime = r")(o)}},function(t,e,a){"use strict";a.r(e);var o=a(0),i=a.n(o),r=a(1),n=a.n(r),s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),c=new Uint8Array(16);function l(){if(!s)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(c)}for(var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&d.test(t)},p=[],m=0;m<256;++m)p.push((m+256).toString(16).substr(1));var f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(p[t[e+0]]+p[t[e+1]]+p[t[e+2]]+p[t[e+3]]+"-"+p[t[e+4]]+p[t[e+5]]+"-"+p[t[e+6]]+p[t[e+7]]+"-"+p[t[e+8]]+p[t[e+9]]+"-"+p[t[e+10]]+p[t[e+11]]+p[t[e+12]]+p[t[e+13]]+p[t[e+14]]+p[t[e+15]]).toLowerCase();if(!u(a))throw TypeError("Stringified UUID is invalid");return a},h=function(t,e,a){var o=(t=t||{}).random||(t.rng||l)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){a=a||0;for(var i=0;i<16;++i)e[a+i]=o[i];return e}return f(o)};function g(t){return""===t?t:"true"===t||"1"==t}var _=function(t){if(t)return new Promise((function(e,a){if("data"==t.slice(0,4)){var o=new Image;return o.onload=function(){e(o)},o.onerror=function(){a("Image load error")},void(o.src=t)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){a("Image load error")},i.src=t}))},v=function(t,e){return new Promise((function(e,a){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(o.response)},o.open("GET",t),o.send()}))},b=function(t,e,a,o,i,r,n,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),n?(c=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"}},name:"vue-qr",data:function(){return{uuid:"",AwesomeQRCode:null}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.uuid=h(),this.main()},methods:{main:function(){var t=this;return n()(i.a.mark((function e(){var a,o,r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=10;break}return e.next=4,v(t.gifBgSrc);case 4:return a=e.sent,e.next=7,_(t.logoSrc);case 7:return o=e.sent,t.render(void 0,o,a),e.abrupt("return");case 10:return e.next=12,_(t.bgSrc);case 12:return r=e.sent,e.next=15,_(t.logoSrc);case 15:n=e.sent,t.render(r,n);case 17:case"end":return e.stop()}}),e)})))()},render:function(t,e,o){var r=this;return n()(i.a.mark((function n(){var s;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(s=r,!r.$isServer){i.next=3;break}return i.abrupt("return");case 3:r.AwesomeQRCode||(r.AwesomeQRCode=a(8).default),(new r.AwesomeQRCode).create({gifBackground:o,text:s.text,size:s.size,margin:s.margin,colorDark:s.colorDark,colorLight:s.colorLight,backgroundColor:s.backgroundColor,backgroundImage:t,backgroundDimming:s.backgroundDimming,logoImage:e,logoScale:s.logoScale,logoBackgroundColor:s.logoBackgroundColor,correctLevel:s.correctLevel,logoMargin:s.logoMargin,logoCornerRadius:s.logoCornerRadius,whiteMargin:g(s.whiteMargin),dotScale:s.dotScale,autoColor:g(s.autoColor),binarize:g(s.binarize),binarizeThreshold:s.binarizeThreshold,callback:function(t){s.callback&&s.callback(t,s.qid)},bindElement:s.bindElement?s.uuid:void 0});case 5:case"end":return i.stop()}}),n)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",this._b({staticStyle:{display:"inline-block"}},"img",{id:this.uuid},!1)):this._e()}),[],!1,null,null,null).exports;b.install=function(t){return t.component(b.name,b)};var y=b,w=[y];"undefined"!=typeof window&&window.Vue&&function(t){w.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=y},function(t,e,a){"use strict";function o(t){this.data=t,this.pos=0}a.r(e),o.prototype.readByte=function(){return this.data[this.pos++]},o.prototype.peekByte=function(){return this.data[this.pos]},o.prototype.readBytes=function(t){for(var e=new Array(t),a=0;a=0;a--)t.push(!!(e&1<=this.raw.frames.length)return null;var a=this.raw.frames[t];if(a.image){var o=a.image.descriptor.width*a.image.descriptor.height,i=function(t,e,a){var o,i,r,n,s,c,l,d,u,p,m,f,h,g,_,v,b=a,y=new Array(a),w=new Array(4096),C=new Array(4096),k=new Array(4097);for(s=1+(i=1<<(f=t)),o=i+2,l=-1,r=(1<<(n=f+1))-1,u=0;u>=n,d-=n,u>o||u==s)break;if(u==i){r=(1<<(n=f+1))-1,o=i+2,l=-1;continue}if(-1==l){k[g++]=C[u],l=u,h=u;continue}for(c=u,u==o&&(k[g++]=h,u=l);u>i;)k[g++]=C[u],u=w[u];h=255&C[u],k[g++]=h,o<4096&&(w[o]=l,C[o]=h,0==(++o&r)&&o<4096&&(n++,r+=o)),l=c}g--,y[v++]=k[g],p++}for(p=v;p0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},k.prototype.on=k.prototype.addListener,k.prototype.once=function(t,e){if(!x(e))throw TypeError("listener must be a function");var a=!1;function o(){this.removeListener(t,o),a||(a=!0,e.apply(this,arguments))}return o.listener=e,this.on(t,o),this},k.prototype.removeListener=function(t,e){var a,o,i,r;if(!x(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(a=this._events[t]).length,o=-1,a===e||x(a.listener)&&a.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(S(a)){for(r=i;r-- >0;)if(a[r]===e||a[r].listener&&a[r].listener===e){o=r;break}if(o<0)return this;1===a.length?(a.length=0,delete this._events[t]):a.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},k.prototype.removeAllListeners=function(t){var e,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(x(a=this._events[t]))this.removeListener(t,a);else if(a)for(;a.length;)this.removeListener(t,a[a.length-1]);return delete this._events[t],this},k.prototype.listeners=function(t){return this._events&&this._events[t]?x(this._events[t])?[this._events[t]]:this._events[t].slice():[]},k.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(x(e))return 1;if(e)return e.length}return 0},k.listenerCount=function(t,e){return t.listenerCount(e)},b=navigator.userAgent.toLowerCase(),v=navigator.platform.toLowerCase(),_="ie"===(h=b.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(g={name:"version"===h[1]?h[3]:h[1],version:_||parseFloat("opera"===h[1]&&h[4]?h[4]:h[2]),platform:{name:b.match(/ip(?:ad|od|hone)/)?"ios":(b.match(/(?:webos|android)/)||v.match(/mac|win|linux/)||["other"])[0]}})[g.name]=!0,g[g.name+parseInt(g.version,10)]=!0,g.platform[g.platform.name]=!0;var T,F={}.hasOwnProperty,O=[].indexOf||function(t){for(var e=0,a=this.length;ee;0<=e?++t:--t)a.push(null);return a}.call(this),e=this.spawnWorkers(),!0===this.options.globalPalette)this.renderNextFrame();else for(t=0,a=e;0<=a?ta;0<=a?++t:--t)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},r.prototype.abort=function(){for(var t;null!=(t=this.activeWorkers.shift());)this.log("killing active worker"),t.terminate();return this.running=!1,this.emit("abort")},r.prototype.spawnWorkers=function(){var t,e,o,i;return t=Math.min(this.options.workers,this.frames.length),function(){o=[];for(var a=e=this.freeWorkers.length;e<=t?at;e<=t?a++:a--)o.push(a);return o}.apply(this).forEach((i=this,function(t){var e;i.log("spawning worker "+t);var o=a(2);return(e=new o.default).onmessage=function(t){return i.activeWorkers.splice(i.activeWorkers.indexOf(e),1),i.freeWorkers.push(e),i.frameFinished(t.data)},i.freeWorkers.push(e)})),t},r.prototype.frameFinished=function(t){var e,a;if(this.log("frame "+t.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[t.index]=t,!0===this.options.globalPalette&&(this.options.globalPalette=t.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(e=1,a=this.freeWorkers.length;1<=a?ea;1<=a?++e:--e)this.renderNextFrame();return O.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},r.prototype.finishRendering=function(){var t,e,a,o,i,r,n,s,c,l,d,u,p,m,f,h;for(s=0,i=0,c=(m=this.imageParts).length;i=this.frames.length))return t=this.frames[this.nextFrame++],a=this.freeWorkers.shift(),e=this.getTask(t),this.log("starting frame "+(e.index+1)+" of "+this.frames.length),this.activeWorkers.push(a),a.postMessage(e)},r.prototype.getContextData=function(t){return t.getImageData(0,0,this.options.width,this.options.height).data},r.prototype.getImageData=function(t){var e;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(e=this._canvas.getContext("2d")).setFill=this.options.background,e.fillRect(0,0,this.options.width,this.options.height),e.drawImage(t,0,0),this.getContextData(e)},r.prototype.getTask=function(t){var e,a;if(a={index:e=this.frames.indexOf(t),last:e===this.frames.length-1,delay:t.delay,transparent:t.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:"chrome"===g.name},null!=t.data)a.data=t.data;else if(null!=t.context)a.data=this.getContextData(t.context);else{if(null==t.image)throw new Error("Invalid frame");a.data=this.getImageData(t.image)}return a},r.prototype.log=function(){var t;if(t=1<=arguments.length?j.call(arguments,0):[],this.options.debug)return console.log.apply(console,t)},r}(k);function P(t){this.mode=M.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,a=this.data.length;e65536?(o[0]=240|(1835008&i)>>>18,o[1]=128|(258048&i)>>>12,o[2]=128|(4032&i)>>>6,o[3]=128|63&i):i>2048?(o[0]=224|(61440&i)>>>12,o[1]=128|(4032&i)>>>6,o[2]=128|63&i):i>128?(o[0]=192|(1984&i)>>>6,o[1]=128|63&i):o[0]=i,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function E(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}P.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,a=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=E.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var a=-1;a<=7;a++)if(!(t+a<=-1||this.moduleCount<=t+a))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+a][e+o]=0<=a&&a<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,a=0;a<8;a++){this.makeImpl(!0,a);var o=U.getLostPoint(this);(0==a||t>o)&&(t=o,e=a)}return e},createMovieClip:function(t,e,a){var o=t.createEmptyMovieClip(e,a);this.make();for(var i=0;i>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=o}for(a=0;a<18;a++)o=!t&&1==(e>>a&1),this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=o},setupTypeInfo:function(t,e){for(var a=this.errorCorrectLevel<<3|e,o=U.getBCHTypeInfo(a),i=0;i<15;i++){var r=!t&&1==(o>>i&1);i<6?this.modules[i][8]=r:i<8?this.modules[i+1][8]=r:this.modules[this.moduleCount-15+i][8]=r}for(i=0;i<15;i++)r=!t&&1==(o>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=r:i<9?this.modules[8][15-i-1+1]=r:this.modules[8][15-i-1]=r;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var a=-1,o=this.moduleCount-1,i=7,r=0,n=this.moduleCount-1;n>0;n-=2)for(6==n&&n--;;){for(var s=0;s<2;s++)if(null==this.modules[o][n-s]){var c=!1;r>>i&1)),U.getMask(e,o,n-s)&&(c=!c),this.modules[o][n-s]=c,-1==--i&&(r++,i=7)}if((o+=a)<0||this.moduleCount<=o){o-=a,a=-a;break}}}},E.PAD0=236,E.PAD1=17,E.createData=function(t,e,a){for(var o=J.getRSBlocks(t,e),i=new K,r=0;r8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s||(i.put(E.PAD0,8),i.getLengthInBits()>=8*s));)i.put(E.PAD1,8);return E.createBytes(i,o)},E.createBytes=function(t,e){for(var a=0,o=0,i=0,r=new Array(e.length),n=new Array(e.length),s=0;s=0?p.get(m):0}}var f=0;for(d=0;d=0;)e^=U.G15<=0;)e^=U.G18<>>=1;return e},getPatternPosition:function(t){return U.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,a){switch(t){case D:return(e+a)%2==0;case N:return e%2==0;case R:return a%3==0;case L:return(e+a)%3==0;case B:return(Math.floor(e/2)+Math.floor(a/3))%2==0;case V:return e*a%2+e*a%3==0;case z:return(e*a%2+e*a%3)%2==0;case q:return(e*a%3+(e+a)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new Y([1],0),a=0;a5&&(a+=3+r-5)}for(o=0;o=256;)t-=255;return H.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},G=0;G<8;G++)H.EXP_TABLE[G]=1<>>7-t%8&1)},put:function(t,e){for(var a=0;a>>e-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var W=function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function e(t,e){var a=this;if(a._fFail=e,a._fSuccess=t,null===a._bSupportDataURI){var o=document.createElement("img"),i=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)};return o.onabort=i,o.onerror=i,o.onload=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)},void(o.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===a._bSupportDataURI&&a._fSuccess?a._fSuccess.call(a):!1===a._bSupportDataURI&&a._fFail&&a._fFail.call(a)}var a=function(t){this._bIsPainted=!1,this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.size,this._elCanvas.height=t.size,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._bSupportDataURI=null,this._callback=t.callback,this._bindElement=t.bindElement};return a.prototype.draw=function(t){var e=this._elImage,a=document.createElement("canvas"),o=a.getContext("2d"),i=this._htOption,r=t.getModuleCount(),n=i.size,s=i.margin;(s<0||2*s>=n)&&(s=0);var c=Math.ceil(s),l=n-2*s,d=i.whiteMargin,u=i.backgroundDimming,p=Math.ceil(l/r),m=p*r,f=m+2*c,h=void 0,g=void 0;a.width=f,a.height=f;var _=i.dotScale;if(e.style.display="none",this.clear(),_<=0||_>1)throw new Error("Scale should be in range (0, 1).");o.save(),o.translate(c,c);var v=document.createElement("canvas");v.width=f,v.height=f;var b=v.getContext("2d"),w=void 0;if(void 0!==i.gifBackground){var C=new y(i.gifBackground);if(!C.raw.hasImages)throw new Error("An invalid gif has been selected as the background.");if(h=C,g=C.decompressFrames(!0),i.autoColor){for(var k=0,x=0,S=0,A=0,T=0;T200||F[1]>200||F[2]>200||0===F[0]&&0===F[1]&&0===F[2]||(A++,k+=F[0],x+=F[1],S+=F[2])}k=~~(k/A),x=~~(x/A),S=~~(S/A),i.colorDark="rgb("+k+", "+x+", "+S+")"}}else if(void 0!==i.backgroundImage){if(i.autoColor){var O=function(t){var e,a,o,i,r={r:0,g:0,b:0},n=document.createElement("canvas"),s=n.getContext&&n.getContext("2d"),c=-4,l={r:0,g:0,b:0},d=0;if(!s)return r;o=n.height=t.naturalHeight||t.offsetHeight||t.height,a=n.width=t.naturalWidth||t.offsetWidth||t.width,s.drawImage(t,0,0);try{e=s.getImageData(0,0,a,o)}catch(t){return r}for(i=e.data.length;(c+=20)200||e.data[c+1]>200||e.data[c+2]>200||(++d,l.r+=e.data[c],l.g+=e.data[c+1],l.b+=e.data[c+2]);return l.r=~~(l.r/d),l.g=~~(l.g/d),l.b=~~(l.b/d),l}(i.backgroundImage);i.colorDark="rgb("+O.r+", "+O.g+", "+O.b+")"}i.maskedDots?((w=document.createElement("canvas")).width=f,w.height=f,w.getContext("2d").drawImage(i.backgroundImage,0,0,i.backgroundImage.width,i.backgroundImage.height,0,0,f,f),b.rect(0,0,f,f),b.fillStyle="#ffffff",b.fill()):(b.drawImage(i.backgroundImage,0,0,i.backgroundImage.width,i.backgroundImage.height,0,0,f,f),b.rect(0,0,f,f),b.fillStyle=u,b.fill())}else b.rect(0,0,f,f),b.fillStyle=i.backgroundColor,b.fill();i.binarize&&(i.colorDark="#000000",i.colorLight="#FFFFFF");for(var j=U.getPatternPosition(t.typeNumber),P=.5*(1-_),E=0;E=r-8)||M>=r-8&&E<8,N=6===E||6===M||D;for(T=0;T=j[T]-2&&E<=j[T]+2&&M>=j[T]-2&&M<=j[T]+2;var R=M*p+(N?0:P*p),L=E*p+(N?0:P*p);o.strokeStyle=$?i.colorDark:i.colorLight,o.lineWidth=.5,o.fillStyle=$?i.colorDark:"rgba(255, 255, 255, 0.6)",0===j.length?N||X(o,R,L,(N?1:_)*p,(N?1:_)*p,w,$):N||M=r-4-5&&E=r-4-5||X(o,R,L,(N?1:_)*p,(N?1:_)*p,w,$)}var B=i.colorLight;o.fillStyle=B,o.fillRect(0,0,8*p,8*p),o.fillRect(0,(r-8)*p,8*p,8*p),o.fillRect((r-8)*p,0,8*p,8*p),o.fillRect(8*p,6*p,(r-8-8)*p,p),o.fillRect(6*p,8*p,p,(r-8-8)*p);var V=j[j.length-1];for(T=0;T=1)&&(G=.2),Y<0&&(Y=0),J<0&&(J=0),o.restore(),o.translate(c,c);var K=m*G,W=.5*(m-K),at=W;o.fillStyle=i.logoBackgroundColor,o.save(),Z(o,W-Y,at-Y,K+2*Y,K+2*Y,J),o.clip(),o.fill(),o.restore(),o.save(),Z(o,W,at,K,K,J),o.clip(),o.drawImage(i.logoImage,W,at,K,K),o.restore()}if(void 0===h){if(b.drawImage(a,0,0,f,f),o.drawImage(v,-c,-c,f,f),i.binarize){var ot=o.getImageData(0,0,f,f),it=128;for(parseInt(i.binarizeThreshold)>0&&parseInt(i.binarizeThreshold)<255&&(it=parseInt(i.binarizeThreshold)),T=0;Tit?(ot.data[T]=255,ot.data[T+1]=255,ot.data[T+2]=255):(ot.data[T]=0,ot.data[T+1]=0,ot.data[T+2]=0);o.putImageData(ot,0,0)}var rt=document.createElement("canvas"),nt=rt.getContext("2d");if(rt.width=n,rt.height=n,nt.drawImage(a,0,0,n,n),this._elCanvas=rt,this._bIsPainted=!0,void 0!==this._callback&&this._callback(this._elCanvas.toDataURL()),void 0!==this._bindElement)try{var st=document.getElementById(this._bindElement);if("IMG"===st.nodeName)st.src=this._elCanvas.toDataURL();else{var ct=st.style;ct["background-image"]="url("+this._elCanvas.toDataURL()+")",ct["background-size"]="contain",ct["background-repeat"]="no-repeat"}}catch(t){console.error(t)}}else{var lt,dt,ut,pt,mt=document.createElement("canvas"),ft=mt.getContext("2d");if(g.forEach((function(t){void 0===lt&&(lt=new I({workers:4,quality:10,width:n,height:n})),void 0===dt&&(dt=document.createElement("canvas"),ut=dt.getContext("2d"),dt.width=t.dims.width,dt.height=t.dims.height,ut.rect(0,0,dt.width,dt.height),ut.fillStyle="#ffffff",ut.fill()),pt&&t.dims.width===mt.width&&t.dims.height===mt.height||(mt.width=t.dims.width,mt.height=t.dims.height,pt=ft.createImageData(t.dims.width,t.dims.height)),pt.data.set(t.patch),ft.putImageData(pt,0,0),ut.drawImage(mt,t.dims.left,t.dims.top);var e=document.createElement("canvas");e.width=f,e.height=f;var o=e.getContext("2d");o.drawImage(dt,0,0,f,f),o.drawImage(a,0,0,f,f);var i=document.createElement("canvas"),r=i.getContext("2d");i.width=n,i.height=n,r.drawImage(e,0,0,n,n),lt.addFrame(r,{copy:!0,delay:t.delay})})),void 0===lt)throw new Error("No frames.");var ht=this;lt.on("finished",(function(t){var e=new FileReader;e.onload=function(t){var e=t.target.result;if(ht._bIsPainted=!0,void 0!==ht._callback&&ht._callback(e),void 0!==ht._bindElement)try{var a=document.getElementById(ht._bindElement);if("IMG"===a.nodeName)a.src=e;else{var o=a.style;o["background-image"]="url("+e+")",o["background-size"]="contain",o["background-repeat"]="no-repeat"}}catch(t){console.error(t)}},e.readAsDataURL(t)})),lt.render()}},a.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},a.prototype.isPainted=function(){return this._bIsPainted},a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},a.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},a}();function Z(t,e,a,o,i,r){t.beginPath(),t.moveTo(e,a),t.arcTo(e+o,a,e+o,a+i,r),t.arcTo(e+o,a+i,e,a+i,r),t.arcTo(e,a+i,e,a,r),t.arcTo(e,a,e+o,a,r),t.closePath()}function Q(t,e,a){return.3*t+.59*a+.11*a}function X(t,e,a,o,i,r,n){if(void 0===r)t.fillRect(e,a,o,i);else{t.drawImage(r,e,a,o,i,e,a,o,i);var s=t.fillStyle;t.fillStyle=n?"rgba(0, 0, 0, .5)":"rgba(255, 255, 255, .7)",t.fillRect(e,a,o,i),t.fillStyle=s}}function tt(t,e,a,o,i){t.clearRect((e-2)*o,(a-2)*i,5*o,5*i),t.fillRect((e-2)*o,(a-2)*i,5*o,5*i)}function et(t,e,a,o,i){t.fillRect((e-2)*o,(a-2)*i,o,4*i),t.fillRect((e+2)*o,(a-2+1)*i,o,4*i),t.fillRect((e-2+1)*o,(a-2)*i,4*o,i),t.fillRect((e-2)*o,(a+2)*i,4*o,i),t.fillRect(e*o,a*i,o,i)}(T=function(){}).prototype.create=function(t){if(this._htOption={size:800,margin:20,typeNumber:4,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",logoBackgroundColor:"#ffffff",correctLevel:$.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:6,logoCornerRadius:8,whiteMargin:!0,dotScale:.35,maskedDots:!1,autoColor:!0,binarize:!1,binarizeThreshold:128,gifBackground:void 0,callback:void 0,bindElement:void 0,backgroundColor:"#ffffff"},"string"==typeof t&&(t={text:t}),t)for(var e in t)this._htOption[e]=t[e];this._oQRCode=null,this._oDrawing=new W(this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},T.prototype.makeCode=function(t){this._oQRCode=new E(-1,this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._oDrawing.draw(this._oQRCode),this.makeImage()},T.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&this._oDrawing.makeImage()},T.prototype.clear=function(){this._oDrawing.clear()},T.CorrectLevel=$,e.default=T}])}))},"65dd":function(t,e,a){},"663c":function(t,e,a){"use strict";a("9e3d")},"66c9":function(t,e,a){},"67b5":function(t,e,a){},6809:function(t,e,a){t.exports=a.p+"img/app_search_result_empty_icon.e146f8b1.png"},"685a":function(t,e,a){},6887:function(t,e,a){"use strict";a("6b53")},"68dd":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"68f5":function(t,e,a){},"694c":function(t,e,a){},"69ab":function(t,e,a){"use strict";a("6fb9")},"6a02":function(t,e,a){"use strict";a("17fd")},"6a22":function(t,e,a){},"6a73":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-modal",{attrs:{title:"选择活动页",width:"930px"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("a-layout",{},[a("a-layout-content",{style:{background:"#fff"}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{sm:24,lg:8}},[a("a-form-item",{attrs:{label:"页面标题"}},[a("a-input",{attrs:{placeholder:t.$t("message.PleaseEnter")},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{sm:24,lg:8}},[a("a-form-item",{attrs:{label:"平台"}},[a("a-select",{attrs:{placeholder:t.$t("message.PleaSeselect"),"default-value":"0",disabled:t.clientStatus},model:{value:t.queryParam.client,callback:function(e){t.$set(t.queryParam,"client",e)},expression:"queryParam.client"}},t._l(t.clientData,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.value))])})),1)],1)],1),a("a-col",{attrs:{sm:24,lg:8}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},[a("a-select-option",{attrs:{value:"-1"}},[t._v("全部")]),a("a-select-option",{attrs:{value:"1"}},[t._v("已上架")]),a("a-select-option",{attrs:{value:"0"}},[t._v("未上架")])],1)],1)],1)],1),a("a-row",[a("a-col",{attrs:{sm:24,lg:8}},[a("a-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v(t._s(t.$t("message.Search")))]),a("a-button",{staticClass:"marginBottom24 ml8",on:{click:t.reset}},[t._v(t._s(t.$t("message.Reset")))])],1)],1)],1)],1)]),a("a-layout-content",{style:{background:"#fff"}},[a("a-table",{ref:"table",attrs:{dataSource:t.dataSource,columns:t.columns,pagination:t.paginationSet,rowKey:"id",loading:t.loading,rowSelection:t.rowSelection},scopedSlots:t._u([{key:"titleSlot",fn:function(e,o){return[e?[1==o.status&&1!==o.page_type&&3!==o.client?[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[a("a",{attrs:{href:o.page_url,target:"_blank"}},[t._v(t._s(t._f("stringFilter")(e)))])])],2)]:[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])],2)]]:[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])]]}},{key:"client",fn:function(e){return[t._v("\n "+t._s(t.filterClient(e))+"\n ")]}},{key:"statusType",fn:function(e){return[t._v("\n "+t._s(t.statusFilter(e))+"\n ")]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.query.page,computedPageNumber:t.computedPageNumber,pageSize:t.query.limit},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)],1)],1)],1)},i=[],r=(a("8e6e"),a("ac6a"),a("456d"),a("7514"),a("6762"),a("2fdb"),a("ade3")),n=(a("c5f6"),a("ca41")),s=a("ac0d"),c=a("bf43"),l=a("5a70"),d=a("2f62");function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function p(t){for(var e=1;e0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("ed25")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e()]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("ec26")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"h5_global_default_product_img").config_value,alt:""}}):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("占位图")]),t.compdata&&t.compdata.length>0?o("perchForm",{ref:"perchForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("fb02"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"perchForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"perchForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.perchForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("772e"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"9e579460",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],perchForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isEmpty=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isChange=!1,a.$refs.perchForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.perchForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("55d9"),Object(g["a"])(k,o,i,!1,null,"059c7bd3",null));e["default"]=x.exports},"6d49":function(t,e,a){"use strict";a("f189")},"6d5b":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"}},[a("g",[a("path",{staticClass:"st0",attrs:{d:"M66.3,4c1,0,1.8,0.8,1.8,1.8v60.5c0,1-0.8,1.8-1.8,1.8H5.7c-1,0-1.8-0.8-1.8-1.8V5.7C4,4.8,4.8,4,5.7,4H66.3M66.3,0H5.7C2.6,0,0,2.6,0,5.7v60.5C0,69.4,2.6,72,5.7,72h60.5c3.2,0,5.7-2.6,5.7-5.7V5.7C72,2.6,69.4,0,66.3,0L66.3,0z"}}),a("path",{staticClass:"st0",attrs:{d:"M59.7,63.2h-9.6c-2,0-3.5-1.6-3.5-3.5V30.6c0-2,1.6-3.5,3.5-3.5h9.6c2,0,3.5,1.6,3.5,3.5v29C63.2,61.6,61.7,63.2,59.7,63.2L59.7,63.2z"}})])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"6db6":function(t,e,a){t.exports=a.p+"img/app_bottom_tab_category_checked_icon.5ee7978f.png"},"6dc0":function(t,e,a){t.exports=a.p+"img/main_bg_grey.5d18de45.png"},"6de3":function(t,e,a){"use strict";a("42ec")},"6de6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("55dd");var o={pc_main_color:{required:!0,sort:"color",isShowEffect:!0,title:"网站主色效果展示如下:",des:"用于商品列表搜索关键词文字颜色,确定按钮颜色、个人中心tab选中颜色"},pc_promotion_color:{required:!0,sort:"color",isShowEffect:!0,title:"促销色效果展示如下:",des:"用于商品列表的商品打标颜色、商品价格文字颜色、促销标颜色"},pc_secondary_color:{required:!0,isShowEffect:!0,title:"辅助色效果展示如下:",des:"用于登录注册模块【获取验证码】按钮颜色",sort:"color"},pc_main_button_default_color:{sort:"color",required:!0,isShowEffect:!0,isMoreRight:!0,moreRight:45,title:"主按钮默认颜色效果展示如下:",des:"用于登录页主按钮默认颜色"},pc_main_button_touch_color:{required:!0,isShowEffect:!0,title:"主按钮触碰颜色效果展示如下:",des:"用于鼠标移入主按钮显示的颜色",isMoreRight:!0,moreRight:45,sort:"color"},pc_website_tips_background:{required:!0,isShowEffect:!0,title:"提示背景色效果展示如下:",des:"用于购物车页顶部/底部提示的背景色",isMoreRight:!0,moreRight:75,sort:"color"},pc_is_show_add_button:{required:!0,sort:"radio"},pc_sidebar_icones:{required:!0,size:"132x130",hieght:"132",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_default_product_img:{required:!0,size:"300x300",hieght:"300",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_stockout_icon:{required:!0,size:"228x228",hieght:"228",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_search_null_icon:{required:!0,size:"88x88",hieght:"88",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"搜索无结果图标效果展示如下:",des:"用于列表页无数据场景的展示"},pc_hot_tag_img:{required:!0,size:"35x14",hieght:"35",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!1,title:"HOT标签图片效果展示如下:",des:"用于品牌聚合页热门品牌标签的显示"},pc_cms_header:{required:!0,size:"1920x60",hieght:"80",limit:"500KB",apply:"jpg/png/gif",sort:"cUpload"},pc_add_button_bg_color:{required:!0,sort:"color"},pc_add_button_touch_color:{required:!0,sort:"color",isShowEffect:!0,title:"加入购物车按钮触碰颜色效果展示如下:",des:"用于鼠标移入加入购物车按钮显示的颜色",isMoreRight:!0,moreRight:-8},pc_product_touch_color:{required:!0,sort:"color"},pc_bg_color:{required:!0,sort:"color"},pc_detail_promotion:{required:!1,sort:"activeInfomation",isSelectLink:!1,isShowEffect:!0,title:"活动信息效果展示如下:",des:"用于商品详情活动信息的展示"},pc_wechat_official_name:{required:!1,sort:"link",requireMessage:"请输入",isShowEffect:!0,title:"到货提醒服务号名称效果展示如下:",des:"用于PC商品详情关注公众号的获取到货提醒弹窗展示,请与微信公众号名称保持一致",maxLength:30,maxLengthMessage:"最多支持30个字"},pc_wechat_official_qrcode:{required:!1,size:"100x100",limit:"1M",apply:"jpg/png/gif",isShowEffect:!0,title:"到货提醒服务号二维码效果展示如下:",des:"用于PC商品详情关注公众号的获取到货提醒弹窗展示",noReset:!0},pc_detail_ad_image:{required:!1,size:"1190x150",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:1},pc_is_show_brand:{required:!0,sort:"radio"},detail_pc_icones:{required:!0,size:"400x60",hieght:"400",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_collected_button_color:{required:!0,sort:"color"},pc_official_reply_comments_color:{required:!0,sort:"color",isShowEffect:!0,title:"评价官方回复文字颜色效果展示如下:",des:"用于评价官方回复显示的文字颜色",isMoreRight:!0,moreRight:0},pc_link_color:{required:!0,sort:"color"},pc_recommend_border_color:{required:!0,sort:"color",isShowEffect:!0,title:"推荐商品触碰边框颜色效果展示如下:",des:"用于鼠标移入推荐商品显示的边框颜色",isMoreRight:!0,moreRight:0},pc_price_bg_color:{required:!0,sort:"color",isShowEffect:!0,title:"价格区域底色-普通效果展示如下:",des:"用于非活动商品价格区域底色显示的边框颜色",isMoreRight:!0,moreRight:15},pc_special_price_bg_color:{required:!0,sort:"color"},pc_item_activity_bg_color:{required:!0,sort:"color"},pc_cart_loading:{required:!0,size:"120x120",hieght:"120",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"推荐商品触碰边框颜色效果展示如下:",des:"用于数据加载状态的显示"},pc_cart_merge_icons:{required:!0,size:"900x430",hieght:"900",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_right_shop_ad_image:{required:!1,size:"252x252",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:1,isShowEffect:!0,title:"右侧广告图-效果展示如下:"},pc_cart_shopping_notice:{required:!1,sort:"rich"},pc_address_hover:{required:!0,sort:"color"},pc_pay_cashier_tips_pc:{required:!0,sort:"textarea",requireMessage:"请输入主体说明"},pc_product_image_suffix:{sort:"textarea",tips:"设置商品列表页显示的商品主图的缩放比例。若按原图展示,则保持为空,不设置商品列表图片压缩参数。",requireMessage:""},pc_pay_success_ad_pc:{required:!1,size:"480x236",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:1},pc_user_center_icones:{required:!0,size:"668x531",hieght:"668",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload",isShowEffect:!0,title:"整合图效果展示如下:",des:"用于“我的优惠券”,“我的收藏”页面效果"},pc_block_member_ac_ad:{required:!1,size:"160x254",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:2},pc_global_default_product_img:{required:!0,size:"300x300",hieght:"300",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_block_member_ad:{required:!1,size:"300x400",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:1},pc_out_of_stock_icon:{required:!0,size:"228x228",hieght:"228",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_login_and_register_icones:{required:!0,size:"124x124",hieght:"124",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},pc_block_sign_in_ad:{required:!0,size:"580x466",hieght:"124",limit:"500KB",apply:"jpg/png/gif",sort:"advertise",countLimit:1},pc_block_sign_in_ad_bg_color:{required:!0,sort:"color"},pc_sidebar:{required:!1,size:"362x360",hieght:"360",limit:"1MB",apply:"jpg/png/gif",errorTips:"请选择侧边工具栏",sort:"checkbox"},pc_wechat_qrcode:{required:!1,size:"362x360",hieght:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"微信二维码图片效果展示如下:",des:"用于侧边栏微信二维码图片的展示",noReset:!0},pc_app_qrcode:{required:!1,size:"362x360",hieght:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"APP二维码图片效果展示如下:",des:"用于侧边栏APP二维码图片的展示",noReset:!0},pc_weibo_link:{sort:"link",placeholder:"https://",required:!1},pc_online_service_link:{sort:"link",placeholder:"https://",required:!1},pc_top_img:{required:!1,size:"915x1200",hieght:"915",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"小工具顶部图片效果展示如下:",des:"用于侧边栏顶部广告图片的展示",noReset:!0},pc_top_notice_title:{required:!0,placeholder:"请输入",requireMessage:"请输入标题",sort:"link"},pc_top_notice_unfold:{required:!1,placeholder:"请输入",requireMessage:"请输入标题",sort:"link"},pc_top_notice_link:{required:!1,placeholder:"https://",requireMessage:"请输入链接",sort:"link"},pc_top_notice_title_color:{required:!0,sort:"color"},pc_top_notice_bg_color:{required:!0,sort:"color"},pc_top_notice_content:{required:!1,sort:"rich"},pc_top_notice_show:{required:!1,sort:"checkbox"},pc_website_logo:{required:!0,size:"300x300",hieght:"300",limit:"1MB",apply:"jpg/png/gif/svg",sort:"lgUpload"}};function i(t,e){for(var a in o)if(a===e.decoration_code)return t.$set(e,"sort",o[a].sort),t.$set(e,"tips",o[a].tips),t.$set(e,"errorTips",o[a].errorTips),t.$set(e,"required",o[a].required),t.$set(e,"placeholder",o[a].placeholder),t.$set(e,"countLimit",o[a].countLimit),t.$set(e,"requireMessage",o[a].requireMessage),t.$set(e,"maxLength",o[a].maxLength),t.$set(e,"maxLengthMessage",o[a].maxLengthMessage),t.$set(e,"isSelectLink",o[a].isSelectLink),t.$set(e,"noReset",!!o[a].noReset&&o[a].noReset),o[a].isShowEffect&&(e.isShowEffect=!0,e.title=o[a].title,e.des=o[a].des,o[a].isMoreRight&&(e.isMoreRight=o[a].isMoreRight,e.moreRight=o[a].moreRight)),339===e.id?"参考尺寸".concat(o[a].size,"像素,宽度不超过").concat(o[a].hieght,"像素,高度固定。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"):"pc_cms_header"===e.decoration_code?"参考尺寸".concat(o[a].size,"像素,宽度固定,高度不超过").concat(o[a].hieght,"。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"):"pc_wechat_official_qrcode"===e.decoration_code?"图片尺寸建议".concat(o[a].size,",大小不超过").concat(o[a].limit,",仅支持").concat(o[a].apply,"格式。"):"pc_website_logo"===e.decoration_code?"尺寸请以线上首页logo尺寸为准,大小不超过".concat(o[a].limit,",支持").concat(o[a].apply,"格式(站点logo展示页面包含:首页/列表商详/购物车/确认订单/收银台/支付成功页/个人中心页面)"):"advertise"===e.sort?e.countLimit>1?"最多可添加".concat(o[a].countLimit,"张,参考尺寸").concat(o[a].size,"像素,宽度固定,高度不限。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"):"参考尺寸".concat(o[a].size,"像素,宽度固定,高度不限。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"):"参考尺寸".concat(o[a].size,"像素,宽度不超过").concat(o[a].hieght,"像素,高度固定。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式")}},"6e00":function(t,e,a){"use strict";a("7949")},"6e0e":function(t,e,a){t.exports=a.p+"img/pc_promotion_color.7b8b32b1.png"},"6e20":function(t,e,a){"use strict";a("f886")},"6e4a":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"personal_register",platform:"web",routerType:"pc"}})],1)]),t.compdata&&t.compdata.length>0?a("a-layout",[a("a-layout-content",{staticStyle:{position:"relative",background:"none"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",style:"background-color: "+t.findCurrentFormFun(t.compdata,"pc_block_sign_in_ad_bg_color").config_value+";margin-top: 22px",on:{click:function(e){t.siderPropShow=!0}}},[a("img",{staticClass:"login-box",attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/104190/82fdd997868d553c908f399dd96756a8.png"}}),t.compdata&&t.compdata.length>0?a("div",{staticClass:"account_icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_login_and_register_icones").config_value+") -69px -88px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"qrcode_icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_login_and_register_icones").config_value+") -37px -104px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"phone_icon",style:"background: url("+t.findCurrentFormFun(t.compdata,"pc_login_and_register_icones").config_value+") -37px -104px no-repeat"}):t._e(),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_block_sign_in_ad").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_sign_in_ad").config_value)[0].img?a("div",{staticClass:"content-adver-box"},[a("img",{staticClass:"content-adver-img",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_sign_in_ad").config_value)[0].img}})]):t._e()])])],1):t._e(),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("登录注册")]),a("personalRegisterForm",{ref:"personalRegisterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"personalRegisterForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"personalRegisterForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.personalRegisterForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("03d4"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"a7446662",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],PersonalRegisterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.personalRegisterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.personalRegisterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("71c2"),Object(g["a"])(k,o,i,!1,null,"410d6102",null));e["default"]=x.exports},"6e90":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"sildebar",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?a("img",{staticClass:"pc_icones",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_sidebar_icones").config_value,alt:""}}):t._e()])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("侧边栏")]),a("sildebarForm",{ref:"sildebarForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"sildebarForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title",staticStyle:{"margin-top":"16px"}},[t._v("用于全局页面侧边栏功能的设置")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"sildebarForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.sildebarForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&("pc_sidebar"===t.decoration_code?(t.config_value.forEach((function(t){t.checked=!1})),e.checkboxValue.forEach((function(e){t.config_value.forEach((function(t){e===t.value&&(t.checked=!0)}))})),o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)})):t.isEmpty?o.items.push({id:t.id,config_value:""}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("201c"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"e790d6d0",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],SildebarForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,"pc_sidebar"===t.decoration_code?(t.config_value=JSON.parse(t.config_value),t.initialValue=[],t.config_value.forEach((function(e){e.checked&&t.initialValue.push(e.value)})),a.$refs.sildebarForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):a.$refs.sildebarForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0,"pc_icones"===t.decoration_code&&(t.sizeTip="参考尺寸88x264像素,宽度不超过88像素,高度固定。大小不超过1MB,支持jpg/png/gif格式")}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.sildebarForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("7e3d"),Object(g["a"])(k,o,i,!1,null,"751924fc",null));e["default"]=x.exports},"6ea3":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"6f2b":function(t,e,a){},"6fb9":function(t,e,a){},7074:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("41b2"),i=s(o);e.changeConfirmLocale=l,e.getConfirmLocale=d;var r=a("d46a"),n=s(r);function s(t){return t&&t.__esModule?t:{default:t}}var c=(0,i["default"])({},n["default"].Modal);function l(t){c=t?(0,i["default"])({},c,t):(0,i["default"])({},n["default"].Modal)}function d(){return c}},7121:function(t,e,a){},"713d":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return s}));var o=a("b775"),i="/api-cms",r={promotionList:i+"/cms/promotion/list",fissionCouponList:i+"/promotion/coupon-share/list"};function n(t){return Object(o["b"])({url:r.promotionList,method:"get",params:t})}function s(t){return Object(o["b"])({url:r.fissionCouponList,method:"get",params:t})}},7184:function(t,e,a){},"71c2":function(t,e,a){"use strict";a("0329")},"71fb":function(t,e,a){},"723d":function(t,e,a){"use strict";a("aa53")},"72b7":function(t,e,a){t.exports=a.p+"img/h5_order_list_empty_icon.92039595.png"},"72d4":function(t,e,a){"use strict";a("f030")},"734b":function(t,e,a){"use strict";a("f70f")},7390:function(t,e,a){"use strict";a("6191")},"73c8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllChildren=e.getAllProps=e.getSlot=e.getSlots=e.camelize=e.isValidElement=e.initDefaultProps=e.parseStyleText=e.getValueByProp=e.getAttrs=e.getKey=e.getPropsData=e.slotHasProp=e.getSlotOptions=e.getComponentFromProp=e.getOptionProps=e.filterProps=e.hasProp=void 0;var o=a("1098"),i=m(o),r=a("b24f"),n=m(r),s=a("41b2"),c=m(s);e.getEvents=E,e.getDataEvents=M,e.getListeners=$,e.getClass=D,e.getStyle=N,e.getComponentName=R,e.isEmptyElement=L,e.isStringElement=B,e.filterEmpty=V,e.mergeProps=q;var l=a("60ed"),d=m(l),u=a("4d26"),p=m(u);function m(t){return t&&t.__esModule?t:{default:t}}function f(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}var h=/-(\w)/g,g=function(t){return t.replace(h,(function(t,e){return e?e.toUpperCase():""}))},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],a={},o=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(o).forEach((function(t){if(t){var o=t.split(i);if(o.length>1){var r=e?g(o[0].trim()):o[0].trim();a[r]=o[1].trim()}}})),a},v=function(t,e){var a=t.$options||{},o=a.propsData||{};return e in o},b=function(t,e){var a=t.componentOptions||{},o=a.propsData||{};return e in o},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={};return Object.keys(t).forEach((function(o){(o in e||void 0!==t[o])&&(a[o]=t[o])})),a},w=function(t){return t.data&&t.data.scopedSlots||{}},C=function(t){var e=t.componentOptions||{};t.$vnode&&(e=t.$vnode.componentOptions||{});var a=t.children||e.children||[],o={};return a.forEach((function(t){if(!L(t)){var e=t.data&&t.data.slot||"default";o[e]=o[e]||[],o[e].push(t)}})),(0,c["default"])({},o,w(t))},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.$scopedSlots&&t.$scopedSlots[e]&&t.$scopedSlots[e](a)||t.$slots[e]||[]},x=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},S=function(t){if(t.fnOptions)return t.fnOptions;var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.Ctor.options||{}},A=function(t){if(t.componentOptions){var e=t.componentOptions,a=e.propsData,o=void 0===a?{}:a,i=e.Ctor,r=void 0===i?{}:i,s=(r.options||{}).props||{},l={},d=!0,u=!1,p=void 0;try{for(var m,h=Object.entries(s)[Symbol.iterator]();!(d=(m=h.next()).done);d=!0){var g=m.value,_=(0,n["default"])(g,2),v=_[0],b=_[1],w=b["default"];void 0!==w&&(l[v]="function"===typeof w&&"Function"!==f(b.type)?w.call(t):w)}}catch(A){u=!0,p=A}finally{try{!d&&h["return"]&&h["return"]()}finally{if(u)throw p}}return(0,c["default"])({},l,o)}var C=t.$options,k=void 0===C?{}:C,x=t.$props,S=void 0===x?{}:x;return y(S,k.propsData)},T=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$createElement){var i=t.$createElement,r=t[e];return void 0!==r?"function"===typeof r&&o?r(i,a):r:t.$scopedSlots[e]&&o&&t.$scopedSlots[e](a)||t.$scopedSlots[e]||t.$slots[e]||void 0}var n=t.context.$createElement,s=O(t)[e];if(void 0!==s)return"function"===typeof s&&o?s(n,a):s;var c=w(t)[e];if(void 0!==c)return"function"===typeof c&&o?c(n,a):c;var l=[],d=t.componentOptions||{};return(d.children||[]).forEach((function(t){t.data&&t.data.slot===e&&(t.data.attrs&&delete t.data.attrs.slot,"template"===t.tag?l.push(t.children):l.push(t))})),l.length?l:void 0},F=function(t){var e=t.data||{},a=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.data||{},a=t.$vnode.componentOptions||{}),(0,c["default"])({},e.props,e.attrs,a.propsData)},O=function(t){var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.propsData||{}},j=function(t,e){return O(t)[e]},I=function(t){var e=t.data;return t.$vnode&&(e=t.$vnode.data),e&&e.attrs||{}},P=function(t){var e=t.key;return t.$vnode&&(e=t.$vnode.key),e};function E(t){var e={};return t.componentOptions&&t.componentOptions.listeners?e=t.componentOptions.listeners:t.data&&t.data.on&&(e=t.data.on),(0,c["default"])({},e)}function M(t){var e={};return t.data&&t.data.on&&(e=t.data.on),(0,c["default"])({},e)}function $(t){return(t.$vnode?t.$vnode.componentOptions.listeners:t.$listeners)||{}}function D(t){var e={};t.data?e=t.data:t.$vnode&&t.$vnode.data&&(e=t.$vnode.data);var a=e["class"]||{},o=e.staticClass,i={};return o&&o.split(" ").forEach((function(t){i[t.trim()]=!0})),"string"===typeof a?a.split(" ").forEach((function(t){i[t.trim()]=!0})):Array.isArray(a)?(0,p["default"])(a).split(" ").forEach((function(t){i[t.trim()]=!0})):i=(0,c["default"])({},i,a),i}function N(t,e){var a={};t.data?a=t.data:t.$vnode&&t.$vnode.data&&(a=t.$vnode.data);var o=a.style||a.staticStyle;if("string"===typeof o)o=_(o,e);else if(e&&o){var i={};return Object.keys(o).forEach((function(t){return i[g(t)]=o[t]})),i}return o}function R(t){return t&&(t.Ctor.options.name||t.tag)}function L(t){return!(t.tag||t.text&&""!==t.text.trim())}function B(t){return!t.tag}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter((function(t){return!L(t)}))}var z=function(t,e){return Object.keys(e).forEach((function(a){if(!t[a])throw new Error("not have "+a+" prop");t[a].def&&(t[a]=t[a].def(e[a]))})),t};function q(){var t=[].slice.call(arguments,0),e={};return t.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=!0,o=!1,i=void 0;try{for(var r,s=Object.entries(t)[Symbol.iterator]();!(a=(r=s.next()).done);a=!0){var l=r.value,u=(0,n["default"])(l,2),p=u[0],m=u[1];e[p]=e[p]||{},(0,d["default"])(m)?(0,c["default"])(e[p],m):e[p]=m}}catch(f){o=!0,i=f}finally{try{!a&&s["return"]&&s["return"]()}finally{if(o)throw i}}})),e}function U(t){return t&&"object"===("undefined"===typeof t?"undefined":(0,i["default"])(t))&&"componentOptions"in t&&"context"in t&&void 0!==t.tag}e.hasProp=v,e.filterProps=y,e.getOptionProps=A,e.getComponentFromProp=T,e.getSlotOptions=S,e.slotHasProp=b,e.getPropsData=O,e.getKey=P,e.getAttrs=I,e.getValueByProp=j,e.parseStyleText=_,e.initDefaultProps=z,e.isValidElement=U,e.camelize=g,e.getSlots=C,e.getSlot=k,e.getAllProps=F,e.getAllChildren=x,e["default"]=v},"73e9":function(t,e,a){t.exports=a.p+"img/advertise_default_icon.b382bee3.png"},7408:function(t,e,a){t.exports=a.p+"img/pc_add_button_touch_color.6a71ae94.png"},7433:function(t,e,a){"use strict";a("7835")},7473:function(t,e,a){t.exports=a.p+"img/product_list_pro_3.40a1ef98.png"},"748a":function(t,e,a){},"74d0":function(t,e,a){"use strict";a("adae")},7531:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("41b2"),i=m(o),r=a("a375"),n=m(r),s=a("d019"),c=m(s),l=a("50f6"),d=m(l),u=a("baff"),p=m(u);function m(t){return t&&t.__esModule?t:{default:t}}var f=function(t){var e=(0,i["default"])({type:"info",icon:function(t){return t(d["default"],{attrs:{type:"info-circle"}})},okCancel:!1},t);return(0,c["default"])(e)},h=function(t){var e=(0,i["default"])({type:"success",icon:function(t){return t(d["default"],{attrs:{type:"check-circle"}})},okCancel:!1},t);return(0,c["default"])(e)},g=function(t){var e=(0,i["default"])({type:"error",icon:function(t){return t(d["default"],{attrs:{type:"close-circle"}})},okCancel:!1},t);return(0,c["default"])(e)},_=function(t){var e=(0,i["default"])({type:"warning",icon:function(t){return t(d["default"],{attrs:{type:"exclamation-circle"}})},okCancel:!1},t);return(0,c["default"])(e)},v=_,b=function(t){var e=(0,i["default"])({type:"confirm",okCancel:!0},t);return(0,c["default"])(e)};n["default"].info=f,n["default"].success=h,n["default"].error=g,n["default"].warning=_,n["default"].warn=v,n["default"].confirm=b,n["default"].destroyAll=function(){while(r.destroyFns.length){var t=r.destroyFns.pop();t&&t()}},n["default"].install=function(t){t.use(p["default"]),t.component(n["default"].name,n["default"])},e["default"]=n["default"]},7566:function(t,e,a){"use strict";a("51dd")},"757f":function(t,e,a){"use strict";a("6b65")},"75dc":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return r}));a("55dd");var o={app_main_color:{required:!0,sort:"color",isShowEffect:!0,title:"网站主色效果展示如下:",des:"用于商品分类选中颜色、品牌列表选中颜色、提交订单按钮颜色、登录按钮颜色、优惠券绑定按钮颜色"},app_promotion_color:{required:!0,sort:"color",isShowEffect:!0,title:"促销色效果展示如下:",des:"用于购物车选中按钮颜色和领券结算按钮颜色、确认订单页提交订单颜色、收银台立即支付颜色、订单列表页去付款按钮颜色、品牌列表hot标签颜色"},app_sale_price_color:{required:!0,sort:"color",isShowEffect:!0,title:"销售价格文字颜色效果展示如下:",des:"用于商品销售价格文字显示颜色,如销售价格低于销售原价则取促销色显示"},app_secondary_color:{required:!0,sort:"color",isShowEffect:!0,title:"辅助色效果展示如下:",des:"用于购物车页顶部/底部提示的背景色"},app_highlight_color:{required:!0,sort:"color",isShowEffect:!0,title:"突出色效果展示如下:",des:"用于消息入口角标颜色、购物车角标颜色、搜索页推荐搜索文字颜色、购物车提示文字颜色、我的订单角标颜色"},app_product_list_layout_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]},app_category_filter_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"下拉"},{value:"2",name:"平铺"}]},store_card_show:{sort:"checkbox"},app_product_list_style:{sort:"styleRadio",arrayValue:[{value:"2",name:"竖排"},{value:"1",name:"横排"}]},global_product_discount_style:{sort:"discountSort"},app_product_list_discount_tag_show:{sort:"checkbox"},app_product_list_tag_show:{sort:"checkbox"},app_product_list_new_tag_show:{sort:"checkbox"},app_product_list_sale_num_show:{sort:"checkbox"},app_product_list_cart_num_show:{sort:"checkbox"},app_product_list_brand_show:{sort:"checkbox"},app_product_list_brand_cn_show:{sort:"checkbox"},app_product_list_title_show_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"一行"},{value:"2",name:"二行"}]},app_product_list_line_price_show:{sort:"checkbox"},global_is_show_cny:{sort:"checkbox"},app_product_list_promotion_tag_show:{sort:"checkbox"},app_product_list_store_name_show:{sort:"checkbox"},app_product_list_cart_show:{sort:"checkbox"},app_list_page_add_icon:{required:!0,size:"120x120",width:"120",limit:"1MB",apply:"jpg/png/gif"},app_search_result_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"数据为空图标效果展示如下:",des:"用于页面数据为空场景的显示"},app_detail_page_home_icon:{required:!0,size:"72x74",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_detail_not_in_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif"},app_detail_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"已收藏图标效果展示如下:",des:"用于商品已收藏状态的显示"},app_detail_page_service_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_detail_page_cart_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_share_image_site_icon:{required:!0,size:"330x90",width:"330",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"图片分享-站点logo效果展示如下:",des:"用于图片分享里站点logo的展示"},app_detail_promotion:{required:!1,sort:"activeInfomation",isSelectLink:!0,isShowEffect:!0,title:"活动信息效果展示如下:",des:"用于商品详情活动信息的展示"},app_cart_empty_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif"},app_cashier_tips:{required:!0,sort:"textarea",requireMessage:"请输入收款主体说明"},app_default_avatar:{required:!0,size:"156x156",width:"156",limit:"1MB",apply:"jpg/png/gif"},app_homepage_order_pending_icon:{required:!0,size:"98x96",width:"98",limit:"1MB",apply:"jpg/png/gif"},app_order_paid_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},app_homepage_order_shipping_icon:{required:!0,size:"98x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},app_homepage_order_completed_icon:{required:!0,size:"98x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},app_homepage_order_canceled_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},app_homepage_rma_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"售后图标-效果展示如下:",des:'用于开启"前台售后入口"的显示'},app_user_center_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_address_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_customer_service_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_comment_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_share_commission_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_rec_to_friend_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_recommend_content:{required:!1,sort:"recommend",isShowEffect:!0,title:"推荐给好友内容效果展示如下:",des:"用于APP推荐给好友微信卡片的标题内容、描述、图标"},app_my_award_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_security_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_homepage_setting_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},app_order_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"订单列表页-数据为空图标-效果展示如下:",des:"用于订单列表页页面数据为空场景的显示"},app_coupon_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"我的优惠券页-数据为空图标-效果展示如下:",des:"用于我的优惠券页页面数据为空场景的显示"},app_address_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"地址列表页-数据为空图标-效果展示如下:",des:"用于地址列表页页面数据为空场景的显示"},app_favorite_no_result_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"收藏夹-数据为空图标效果展示如下:",des:"用于收藏夹列表页页面数据为空场景的显示"},app_comment_no_result_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"暂无评价商品图标效果展示如下:",des:"用于评价晒单页页面数据为空场景的显示"},app_user_bottom_terms:{required:!0,sort:"bottomList",isSelectLink:!0},app_message_page_promotion_icon:{required:!0,size:"132x132",width:"132",limit:"1MB",apply:"jpg/png/gif"},app_message_page_asset_icon:{required:!0,size:"132x132",width:"132",limit:"1MB",apply:"jpg/png/gif"},app_message_page_sysmsg_icon:{required:!0,size:"132x132",width:"132",limit:"1MB",apply:"jpg/png/gif"},app_message_page_promotion_empty_icon:{required:!0,size:"362x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"消息为空图标效果展示如下:",des:"用于“优惠活动”、“我的资产”、“系统消息”页面无数据场景的展示"},app_bottom_tab_home_default_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif"},app_bottom_tab_home_checked_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"首页选中图标效果展示如下:",des:"用于首页选中状态的图标展示"},app_bottom_tab_category_default_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif"},app_bottom_tab_category_checked_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"分类默认图标效果展示如下:",des:"用于分类选中状态的图标展示"},app_bottom_tab_brand_default_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif"},app_bottom_tab_brand_checked_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"品牌选中图标-效果展示如下:",des:"用于品牌选中状态的图标展示"},app_bottom_tab_cart_default_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif"},app_bottom_tab_cart_checked_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"购物车选中图标效果展示如下:",des:"用于购物车选中状态的图标展示"},app_bottom_tab_my_default_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif"},app_bottom_tab_my_checked_icon:{required:!0,size:"81x81",width:"81",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"我的选中图标效果展示如下:",des:"用于我的选中状态的图标展示"},app_global_default_product_img:{required:!0,size:"192x192",width:"192",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},app_out_of_stock_icon:{required:!0,size:"204x204",width:"204",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},app_shortcut_home_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_shortcut_cart_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_shortcut_service_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},app_logo_img:{required:!0,size:"80x80",width:"480",limit:"50KB",apply:"jpg/png/gif"},app_logo_display:{sort:"customRadio"},app_search_icon_url:{required:!0,size:"32x32",width:"0",limit:"50KB",apply:"jpg/png/gif"},app_key_placeholder:{sort:"key_placeholder"},app_scan_show:{required:!1,isShowScan:!0,sort:"checkbox"},app_scan_img_url:{required:!0,size:"32x32",width:"0",limit:"50KB",apply:"jpg/png/gif"},app_background_color:{required:!0,sort:"color"},app_searchbox_color:{required:!0,sort:"select"},app_user_help_image:{required:!1,sort:"advertise",isSelectLink:!0,sizeTip:"尺寸750×340像素,大小不超过500KB,支持jpg/png/gif格式",isApp:!0},app_points_center_ad_jump_url:{required:!1,sort:"bottomList",hideSizeTip:!0,pointsAd:!0,isSelectLink:!0},app_user_help_service:{required:!0,size:"",sort:"conentGroup",isShowEffect:!0,des:"最多可添加10个"},app_homepage_identity_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"}};function i(t,e){for(var a in o)if(a===e.decoration_code){var i="";return t.$set(e,"sort",o[a].sort),t.$set(e,"arrayValue",o[a].arrayValue),e.required=o[a].required,e.requireMessage=o[a].requireMessage,"bottomList"===o[a].sort&&(e.isSelectLink=o[a].isSelectLink||!1,t.$set(e,"pointsAd",o[a].pointsAd||!1)),"activeInfomation"!==o[a].sort&&"advertise"!==o[a].sort||(t.$set(e,"isSelectLink",o[a].isSelectLink||!1),t.$set(e,"pointsAd",o[a].pointsAd||!1)),o[a].isShowEffect&&(e.isShowEffect=!0,e.title=o[a].title,e.des=o[a].des,o[a].isMoreRight&&(e.isMoreRight=o[a].isMoreRight,e.moreRight=o[a].moreRight)),i=o[a].hideSizeTip?"":"0"===o[a].width?"参考尺寸".concat(o[a].size,"像素,高度固定。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"):"参考尺寸".concat(o[a].size,"像素,宽度不超过").concat(o[a].width,"像素,高度固定。大小不超过").concat(o[a].limit,",支持").concat(o[a].apply,"格式"),i}}function r(t,e){for(var a in o)if(a===e.decoration_code)return t.$set(e,"sort",o[a].sort),t.$set(e,"required",o[a].required),t.$set(e,"arrayValue",o[a].arrayValue),o[a].isShowEffect&&(e.isShowEffect=!0,t.$set(e,"title",o[a].title),t.$set(e,"des",o[a].des),o[a].isMoreRight&&(t.$set(e,"isMoreRight",o[a].isMoreRight),t.$set(e,"moreRight",o[a].moreRight))),"advertise"===o[a].sort&&(t.$set(e,"isSelectLink",o[a].isSelectLink||!1),t.$set(e,"isApp",o[a].isApp)),"activeInfomation"===o[a].sort&&t.$set(e,"isSelectLink",o[a].isSelectLink||!1),"bottomList"===o[a].sort&&(e.isSelectLink=o[a].isSelectLink||!1),o[a].sizeTip}},"75f2":function(t,e,a){"use strict";a("7184")},"76a1":function(t,e,a){},"770e6":function(t,e,a){"use strict";a("a707")},"772e":function(t,e,a){"use strict";a("5921")},7796:function(t,e,a){t.exports=a.p+"img/nutrition_content_icon.49f9c277.png"},"77c3":function(t,e,a){"use strict";a("1204")},7835:function(t,e,a){},7858:function(t,e,a){t.exports=a.p+"img/h5_highlight_color.957d0c0d.png"},7888:function(t,e,a){},7896:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 16"}},[a("title",[t._v("复制")]),a("path",{staticClass:"cls-1",attrs:{d:"M12.58,3,10.17.59A2,2,0,0,0,8.75,0H4.17a2,2,0,0,0-2,2V4h-1a1,1,0,0,0-1,1V15a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V14h3a2,2,0,0,0,2-2V4.41A2,2,0,0,0,12.58,3Zm-.41,9a1,1,0,0,1-1,1h-7a1,1,0,0,1-1-1V2a1,1,0,0,1,1-1h3.5V4a1.5,1.5,0,0,0,1.5,1.5h3Zm0-7.5h-3a.5.5,0,0,1-.5-.5V1h.08a1,1,0,0,1,.71.29l2.41,2.42a1,1,0,0,1,.3.7Z",transform:"translate(-0.17)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"78da":function(t,e,a){},"792b6":function(t,e,a){},7949:function(t,e,a){},7967:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("92fa"),i=m(o),r=a("7b44"),n=m(r),s=a("c4c6"),c=m(s),l=a("48bb"),d=m(l),u=a("f70b"),p=m(u);function m(t){return t&&t.__esModule?t:{default:t}}var f=(0,p["default"])().type,h={type:f,actionFn:n["default"].func,closeModal:n["default"].func,autoFocus:n["default"].bool,buttonProps:n["default"].object};e["default"]={mixins:[d["default"]],props:h,data:function(){return{loading:!1}},mounted:function(){var t=this;this.autoFocus&&(this.timeoutId=setTimeout((function(){return t.$el.focus()})))},beforeDestroy:function(){clearTimeout(this.timeoutId)},methods:{onClick:function(){var t=this,e=this.actionFn,a=this.closeModal;if(e){var o=void 0;e.length?o=e(a):(o=e(),o||a()),o&&o.then&&(this.setState({loading:!0}),o.then((function(){a.apply(void 0,arguments)}),(function(e){console.error(e),t.setState({loading:!1})})))}else a()}},render:function(){var t=arguments[0],e=this.type,a=this.$slots,o=this.loading,r=this.buttonProps;return t(c["default"],(0,i["default"])([{attrs:{type:e,loading:o},on:{click:this.onClick}},r]),[a["default"]])}}},"79a8":function(t,e,a){t.exports=a.p+"img/perch_2.7d89120c.jpg"},"79d2":function(t,e,a){t.exports=a.p+"img/wap-award.7840cb9f.png"},"7a02":function(t,e,a){"use strict";a("c2b7")},"7a04":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"shopping_car",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("35f5")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"data-empty",attrs:{src:t.findCurrentFormFun(t.compdata,"app_cart_empty_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("购物车")]),o("shoppingCarForm",{ref:"shoppingCarForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"shoppingCarForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"shoppingCarForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.shoppingCarForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("c09e"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"f24aa1f4",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],shoppingCarForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.shoppingCarForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.shoppingCarForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("247d"),Object(g["a"])(k,o,i,!1,null,"535b6201",null));e["default"]=x.exports},"7a0af":function(t,e,a){t.exports=a.p+"img/miniapp_highlight_color.957d0c0d.png"},"7a0b":function(t,e,a){"use strict";a("3ac7f")},"7a2a":function(t,e,a){},"7a7b":function(t,e,a){},"7aba":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("单品直降@2x")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"单品直降"}},[a("path",{attrs:{d:"M99.6176717,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,99 L229,99",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"103",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"103",y:"178",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"102",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"153",y:"102",width:"18",height:"12",rx:"6"}}),a("path",{attrs:{d:"M99.9294488,187 L88,187 C81.372583,187 76,181.627417 76,175 L76,101 C76,94.372583 81.372583,89 88,89 L151,89 C157.075132,89 162,93.9248678 162,100 L162,100 L162,100",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"92",y:"51",width:"55",height:"38",rx:"4"}}),a("path",{attrs:{d:"M184.603526,159.588406 C186.695226,159.589315 188.390504,161.284593 188.404657,163.389537 L188.404657,163.389537 L188.412824,196.721406 L201.026706,184.109773 C202.454138,182.6811 204.736409,182.631835 206.222796,183.961979 L206.378931,184.109773 C207.857343,185.589471 207.857343,187.986956 206.378931,189.485384 L206.378931,189.485384 L187.780514,208.100599 C187.677555,208.203647 187.570348,208.299254 187.459477,208.387518 C187.406258,208.447421 187.350227,208.507003 187.292421,208.564809 C186.604313,209.252917 185.664562,209.689382 184.605474,209.688922 C183.616572,209.688492 182.716276,209.309344 182.041744,208.688636 C181.771444,208.530147 181.515799,208.33455 181.282051,208.100599 L162.683633,189.485384 C161.205221,187.986956 161.205221,185.589471 162.683633,184.109773 C164.162045,182.630076 166.557447,182.630076 168.035859,184.109773 L180.816824,196.890406 L180.818931,163.373001 C180.818051,161.346668 182.407619,159.693749 184.408635,159.593247 Z",id:"形状结合",stroke:"#555555","stroke-width":"4",fill:"#555555","fill-rule":"nonzero"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"14",x:"139",y:"139",width:"90",height:"90",rx:"4"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"7b44":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("1098"),i=c(o),r=a("60ed"),n=c(r),s=a("bb78");function c(t){return t&&t.__esModule?t:{default:t}}var l={get any(){return(0,s.toType)("any",{type:null})},get func(){return(0,s.toType)("function",{type:Function}).def(u.func)},get bool(){return(0,s.toType)("boolean",{type:Boolean}).def(u.bool)},get string(){return(0,s.toType)("string",{type:String}).def(u.string)},get number(){return(0,s.toType)("number",{type:Number}).def(u.number)},get array(){return(0,s.toType)("array",{type:Array}).def(u.array)},get object(){return(0,s.toType)("object",{type:Object}).def(u.object)},get integer(){return(0,s.toType)("integer",{type:Number,validator:function(t){return(0,s.isInteger)(t)}}).def(u.integer)},get symbol(){return(0,s.toType)("symbol",{type:null,validator:function(t){return"symbol"===("undefined"===typeof t?"undefined":(0,i["default"])(t))}})},custom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!==typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return(0,s.toType)(t.name||"<>",{validator:function(){var a=t.apply(void 0,arguments);return a||(0,s.warn)(this._vueTypes_name+" - "+e),a}})},oneOf:function(t){if(!(0,s.isArray)(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e='oneOf - value should be one of "'+t.join('", "')+'"',a=t.reduce((function(t,e){return null!==e&&void 0!==e&&-1===t.indexOf(e.constructor)&&t.push(e.constructor),t}),[]);return(0,s.toType)("oneOf",{type:a.length>0?a:null,validator:function(a){var o=-1!==t.indexOf(a);return o||(0,s.warn)(e),o}})},instanceOf:function(t){return(0,s.toType)("instanceOf",{type:t})},oneOfType:function(t){if(!(0,s.isArray)(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e=!1,a=t.reduce((function(t,a){if((0,n["default"])(a)){if("oneOf"===a._vueTypes_name)return t.concat(a.type||[]);if(a.type&&!(0,s.isFunction)(a.validator)){if((0,s.isArray)(a.type))return t.concat(a.type);t.push(a.type)}else(0,s.isFunction)(a.validator)&&(e=!0);return t}return t.push(a),t}),[]);if(!e)return(0,s.toType)("oneOfType",{type:a}).def(void 0);var o=t.map((function(t){return t&&(0,s.isArray)(t.type)?t.type.map(s.getType):(0,s.getType)(t)})).reduce((function(t,e){return t.concat((0,s.isArray)(e)?e:[e])}),[]).join('", "');return this.custom((function(e){var a=t.some((function(t){return"oneOf"===t._vueTypes_name?!t.type||(0,s.validateType)(t.type,e,!0):(0,s.validateType)(t,e,!0)}));return a||(0,s.warn)('oneOfType - value type should be one of "'+o+'"'),a})).def(void 0)},arrayOf:function(t){return(0,s.toType)("arrayOf",{type:Array,validator:function(e){var a=e.every((function(e){return(0,s.validateType)(t,e)}));return a||(0,s.warn)('arrayOf - value must be an array of "'+(0,s.getType)(t)+'"'),a}})},objectOf:function(t){return(0,s.toType)("objectOf",{type:Object,validator:function(e){var a=Object.keys(e).every((function(a){return(0,s.validateType)(t,e[a])}));return a||(0,s.warn)('objectOf - value must be an object of "'+(0,s.getType)(t)+'"'),a}})},shape:function(t){var e=Object.keys(t),a=e.filter((function(e){return t[e]&&!0===t[e].required})),o=(0,s.toType)("shape",{type:Object,validator:function(o){var i=this;if(!(0,n["default"])(o))return!1;var r=Object.keys(o);return a.length>0&&a.some((function(t){return-1===r.indexOf(t)}))?((0,s.warn)('shape - at least one of required properties "'+a.join('", "')+'" is not present'),!1):r.every((function(a){if(-1===e.indexOf(a))return!0===i._vueTypes_isLoose||((0,s.warn)('shape - object is missing "'+a+'" property'),!1);var r=t[a];return(0,s.validateType)(r,o[a])}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),o}},d=function(){return{func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0}},u=d();Object.defineProperty(l,"sensibleDefaults",{enumerable:!1,set:function(t){!1===t?u={}:!0===t?u=d():(0,n["default"])(t)&&(u=t)},get:function(){return u}}),e["default"]=l},"7b59":function(t,e,a){"use strict";a("4594")},"7b5d":function(t,e,a){t.exports=a.p+"img/pc_secondary_color.4d08d771.png"},"7b6a":function(t,e,a){"use strict";a("95d7")},"7bb1":function(t,e,a){},"7be1":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"payment_success","active-name":"支付成功"}},[a("template",{slot:"content"},[a("div",{staticClass:"payment-success-container"},[a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/65612/27bf6c076a556f9effd17d199bb43275.png",alt:""}}),a("img",{directives:[{name:"show",rawName:"v-show",value:!t.getAdvertise[0].img,expression:"!getAdvertise[0].img"}],attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/68964/cc47fa0b8a7e1c6a42ba53fd6aa0ff3a.jpg",alt:""}}),a("img",{directives:[{name:"show",rawName:"v-show",value:t.getAdvertise[0].img,expression:"getAdvertise[0].img"}],attrs:{src:t.getAdvertise[0].img}})])]),a("template",{slot:"form"},[a("c-form",{ref:"paymentSuccessForm",attrs:{compdata:t.compdata}})],1)],2)],1)},i=[],r=(a("ac6a"),a("96cf"),a("1da1")),n=a("e9e8"),s=a("aaa9"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentSuccessForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"paymentSuccessForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.paymentSuccessForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("e4da"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"e028df88",null),g=h.exports,_=a("0b75"),v=a("ea1b"),b={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(u["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(a,t),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{getAdvertise:function(){var t=Object(v["a"])(this.compdata,"h5_pay_success_ad_img").config_value;return t?JSON.parse(t):[{img:""}]}}},y=b,w=(a("ac7b"),Object(f["a"])(y,o,i,!1,null,"03031868",null));e["default"]=w.exports},"7d35":function(t,e,a){},"7d68":function(t,e,a){t.exports=a.p+"img/product_list_pro_1.d85af212.png"},"7dd3":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1)},i=[],r={methods:{toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})}}},n=r,s=(a("d936"),a("2877")),c=Object(s["a"])(n,o,i,!1,null,"b9766c82",null);e["a"]=c.exports},"7dfe":function(t,e,a){"use strict";a("dcda")},"7e3d":function(t,e,a){"use strict";a("1a79")},"7e83":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 146.48 175.78"}},[a("title",[t._v("箭头上")]),a("path",{staticClass:"cls-1",attrs:{d:"M125.52,192.06H76.16c-4.35,0-8.71-1.7-8.71-6.78V117.47c0-5.08-1.45-6.78-5.81-6.78h-29c-7,0-7.55-10.51-2.61-16.27l64.74-75.6c2.91-3.39,7.84-3.39,11,0l64.74,75.6c4.94,5.76,2.91,16.27-4.06,16.27l-26.71-1c-4.36,0-8.13,2.71-8.13,7.79v67.81c-.29,4.74-1.75,6.78-6.1,6.78Z",transform:"translate(-26.76 -16.28)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"7e8c":function(t,e,a){},"7ef9":function(t,e,a){"use strict";a("ea5e")},"7f69":function(t,e,a){},"7fae2":function(t,e,a){t.exports=a.p+"img/comment_icon.d49a284b.png"},"7fc0":function(t,e,a){t.exports=a.p+"img/product_list_pro_2.54e8095d.png"},8005:function(t,e,a){"use strict";a("be68")},"806f":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[o("a",{attrs:{href:""}},[t._v("站点")])]),o("a-breadcrumb-item",[o("a",{attrs:{href:"/cms/page/list"}},[t._v("页面管理")])]),o("a-breadcrumb-item",[t._v("装修页面")]),o("a-breadcrumb-item",[t._v(t._s(t.pageTitle))])],1),o("div",{staticClass:"c-top-menu"},[t.isToolReady&&1===t.globalConfig.client?o("a-popover",{attrs:{visible:t.showPreview,placement:"bottom",destroyTooltipOnHide:!0}},[o("template",{slot:"content"},[o("div",{staticStyle:{width:"200px",height:"200px"}},[o("vue-qr",{attrs:{text:t.previewUrl}})],1),o("p",{staticStyle:{"margin-bottom":"4px","text-align":"center"}},[t._v("请扫码预览(5分钟内有效)")])]),o("a-button",{attrs:{type:"default",size:"small",loading:t.previewLoading},on:{click:t.editPreview}},[t._v("预览")])],2):t._e(),o("a-button",{attrs:{type:"default",size:"small",loading:t.saveLoading},on:{click:t.editSave}},[t._v("保存并继续")]),o("a-button",{attrs:{type:"primary",size:"small",loading:t.publishLoading},on:{click:t.editPublish}},[t._v("上架")])],1),t.isShowPublishTip?o("div",{staticClass:"publish-tip"},[o("a-icon",{staticStyle:{color:"#f93"},attrs:{type:"info-circle",theme:"filled"}}),t._v(" 当前版本与线上版本不一致,保存后需要上架才能生效")],1):t._e()],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1),o("li",{staticClass:"c-list-item",class:{active:t.toolTwoActive},on:{click:t.toggleTwo}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{type:"setting"}}),o("span",{staticClass:"c-sider-label"},[t._v("页面设置")])],1)])]),t.siderToolShow?o("a-layout-sider",{staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:function(e){return t.closeTool("one")}}},[t._v("装修")]),o("c-tool-group",{attrs:{plugins:t.plugins,elements:t.elements,globalConfig:t.globalConfig,settings:t.settings,ready:t.isToolReady},on:{selectModule:t.selectModule}})],1)]):t.toolTwoActive?o("a-layout-sider",{staticStyle:{background:"#fff"},attrs:{width:"279"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:function(e){return t.closeTool("two")}}},[t._v("页面设置")]),o("a-col",{attrs:{span:20,offset:2}},[o("a-form",{attrs:{layout:"vertical",form:t.form}},[o("a-form-item",{staticStyle:{"margin-top":"24px"}},[o("span",{attrs:{slot:"label"},slot:"label"},[t._v("背景色\n "),o("a-tooltip",{attrs:{title:"用于页面内组件的通用背景颜色,设置后将同步更新组件的背景颜色。若需修改单个组件的背景颜色,请选择组件单独编辑。"}},[o("a-icon",{attrs:{type:"exclamation-circle"}})],1),t._v("\n :\n ")],1),o("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[o("template",{slot:"content"},[o("sketch-picker",{attrs:{value:t.settings.background_color},on:{input:function(e){return t.updateColor(e,"settings.background_color")}}})],1),o("a-input",{attrs:{"read-only":""},model:{value:t.settings.background_color,callback:function(e){t.$set(t.settings,"background_color",e)},expression:"settings.background_color"}},[o("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[o("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.settings.background_color}})])])],2)],1),o("a-form-item",{staticStyle:{"margin-top":"24px"}},[o("span",{attrs:{slot:"label"},slot:"label"},[t._v("加购按钮颜色\n "),o("a-tooltip",{attrs:{title:"用于页面内商品组件的通用加购按钮颜色,设置后将同步更新商品组件加购按钮的加购按钮颜色。若需修改单个商品组件的加购按钮颜色,请选择商品组件单独编辑。"}},[o("a-icon",{attrs:{type:"exclamation-circle"}})],1),t._v("\n :\n ")],1),o("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[o("template",{slot:"content"},[o("sketch-picker",{attrs:{value:t.settings.add_cart_color},on:{input:function(e){return t.updateColor(e,"settings.add_cart_color")}}})],1),o("a-input",{attrs:{"read-only":""},model:{value:t.settings.add_cart_color,callback:function(e){t.$set(t.settings,"add_cart_color",e)},expression:"settings.add_cart_color"}},[o("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[o("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.settings.add_cart_color}})])])],2)],1),o("a-form-item",{staticStyle:{"margin-top":"24px"}},[o("span",{attrs:{slot:"label"},slot:"label"},[t._v("标题文字颜色\n "),o("a-tooltip",{attrs:{title:"用于页面内标题组件的通用标题文字颜色,设置后将同步更新标题组件的标题文字颜色。若需修改单个标题组件的标题文字颜色,请选择标题组件单独编辑。"}},[o("a-icon",{attrs:{type:"exclamation-circle"}})],1),t._v("\n :\n ")],1),o("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[o("template",{slot:"content"},[o("sketch-picker",{attrs:{value:t.settings.title_color},on:{input:function(e){return t.updateColor(e,"settings.title_color")}}})],1),o("a-input",{attrs:{"read-only":""},model:{value:t.settings.title_color,callback:function(e){t.$set(t.settings,"title_color",e)},expression:"settings.title_color"}},[o("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[o("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.settings.title_color}})])])],2)],1),1!==t.globalConfig.page_type||1!==t.globalConfig.client&&5!==t.globalConfig.client?t._e():o("a-form-item",[o("label",{attrs:{slot:"label",title:"页面特效"},slot:"label"},[t._v("\n 页面特效\n "),o("a-tooltip",{attrs:{placement:"right",overlayStyle:{zIndex:10040}}},[o("template",{slot:"title"},[o("span",[t._v("用于页面全局特效,设置后前台页面将展示相应的页面特效")])]),o("a-icon",{staticStyle:{"margin-top":"4px"},attrs:{type:"info-circle"}})],2)],1),o("a-select",{model:{value:t.settings.page_effect,callback:function(e){t.$set(t.settings,"page_effect",e)},expression:"settings.page_effect"}},[o("a-select-option",{attrs:{value:0}},[t._v("无")]),o("a-select-option",{attrs:{value:2}},[t._v("黑白主题")])],1)],1)],1)],1)],1)]):t._e(),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"preview-panel"},[o("img",{staticStyle:{display:"block"},attrs:{src:a("11f84")}}),1===t.globalConfig.header_type&&1===t.globalConfig.client&&1!==t.globalConfig.page_type?[o("div",{staticClass:"page-header",domProps:{innerHTML:t._s(t.headerImage)}})]:t._e(),o("c-render-components",{ref:"compRender",attrs:{elements:t.elements,websiteId:t.websiteId,globalConfig:t.globalConfig,settings:t.settings},on:{showprops:t.openProp,selectModule:t.selectModule}}),1===t.globalConfig.header_type?[o("div",{staticClass:"page-footer",domProps:{innerHTML:t._s(t.footerImage)}})]:t._e(),o("c-selected-tool",{attrs:{selectedIndex:t.currentSelectedIndex,selectedUuid:t.currentSelectedElement&&t.currentSelectedElement.uuid,elementsLength:t.elements.length,currentElement:t.currentSelectedElement,"global-config":t.globalConfig},on:{deleteElement:t.deleteElement,copyElement:t.copyElement,editRemark:t.editRemark,moveUp:t.moveUp,moveDown:t.moveDown,chain:t.chain}}),o("div",{staticClass:"screen-height"},[t._v("iPhone 13手机高度")])],2)])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:t.currentCompHelp},on:{close:t.closeProp}},[t._v(t._s(t.currentCompName))]),o("c-render-props",{attrs:{currentElement:t.currentSelectedElement,globalConfig:t.globalConfig}})],1)])],1),o("a-modal",{attrs:{title:"修改备注"},on:{ok:t.handleChangeRemark},model:{value:t.remarkVisible,callback:function(e){t.remarkVisible=e},expression:"remarkVisible"}},[o("a-form",{attrs:{form:t.remarkForm,"label-col":{span:6},"wrapper-col":{span:14}},on:{submit:t.handleRemarkSubmit}},[o("a-form-item",{style:{marginBottom:0},attrs:{label:"备注"}},[o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"请输入备注"}],initialValue:t.currentSelectedElement.remark}],expression:"[\n 'remark',\n {\n rules: [\n {\n required: true,\n message: '请输入备注'\n }\n ],\n initialValue: currentSelectedElement.remark\n }\n ]"}]})],1)],1)],1),o("chain-modal",{attrs:{visible:t.chainVisible,"relate-page":t.relatePage,"relate-page-title":t.relatePageTitle,"relate-page-type":t.relatePageType,"current-module":t.currentSelectedElement},on:{close:function(e){t.chainVisible=!1}}})],1)},i=[],r=(a("8e6e"),a("456d"),a("5df3"),a("3835")),n=(a("96cf"),a("1da1")),s=a("ade3"),c=(a("ac6a"),a("2909")),l=(a("28a5"),a("7f7f"),a("b775")),d=a("658f"),u=a.n(d),p=a("c345a"),m=a("6259"),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-sider-header"},[a("a-icon",{attrs:{type:"close"},on:{click:t.closeSider}}),t.link?a("a",{staticClass:"c-sider-help",attrs:{target:"_blank",href:t.link}},[t._v("查看教程")]):t._e(),a("div",{staticClass:"c-sider-title"},[t._t("default")],2)],1)},h=[],g={props:{link:{type:String,default:function(){return""}}},methods:{closeSider:function(){this.$emit("close")}}},_=g,v=(a("bf0bd"),a("2877")),b=Object(v["a"])(_,f,h,!1,null,"1d7293c9",null),y=b.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.ready?a("a-collapse",{staticStyle:{background:"#fff"},attrs:{bordered:!1,activeKey:[1,2]},scopedSlots:t._u([{key:"expandIcon",fn:function(t){return[a("a-icon",{attrs:{type:"caret-right",rotate:t.isActive?90:0}})]}}],null,!1,766930589)},[a("a-collapse-panel",{key:"1",staticStyle:{border:"none"},attrs:{header:"基础组件"}},[a("ul",{staticClass:"tool-list"},[a("li",{on:{click:t.addTitle}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.TextSVG}}),a("p",{staticClass:"tool-des"},[t._v("标题")])],1),a("li",{on:{click:t.addProduct}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"block"}}),a("p",{staticClass:"tool-des"},[t._v("商品")])],1),t.isAlipay?t._e():a("li",{on:{click:t.addAwardList}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.AwardSVG}}),a("p",{staticClass:"tool-des"},[t._v("榜单商品")])],1),!t.isWap||t.isWap&&t.isHome?a("li",{on:{click:t.addCarousel}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"play-circle"}}),a("p",{staticClass:"tool-des"},[t._v("轮播图")])],1):t._e(),a("li",{on:{click:t.addAds}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"picture"}}),a("p",{staticClass:"tool-des"},[t._v("广告图")])],1),t.isAlipay?t._e():a("li",{on:{click:t.addHotSpots}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"select"}}),a("p",{staticClass:"tool-des"},[t._v("图片热区")])],1),a("li",{on:{click:t.addFloatAds}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.FloatAds}}),a("p",{staticClass:"tool-des"},[t._v("浮标")])],1),a("li",{on:{click:t.addVideo}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"video-camera"}}),a("p",{staticClass:"tool-des"},[t._v("视频")])],1),a("li",{on:{click:t.addBlankspace}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"column-height"}}),a("p",{staticClass:"tool-des"},[t._v("辅助空白")])],1),a("li",{on:{click:t.addGivings}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.GiftSVG}}),a("p",{staticClass:"tool-des"},[t._v("赠品专区")])],1),t.isWX||t.isAlipay?a("li",{on:{click:t.addJumpMp}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"logout"}}),a("p",{staticClass:"tool-des"},[t._v("小程序跳转")])],1):t._e(),t.isWap&&!t.isHome?a("li",{on:{click:t.addAnchor}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"compass"}}),a("p",{staticClass:"tool-des"},[t._v("楼层导航")])],1):t._e(),a("li",{staticStyle:{display:"none"},on:{click:t.addCustomize}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"edit"}}),a("p",{staticClass:"tool-des"},[t._v("自定义内容")])],1),!t.isAlipay&&!t.isWap||t.isWap&&t.isHome?a("li",{on:{click:t.addNotice}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"info-circle"}}),a("p",{staticClass:"tool-des"},[t._v("公告栏")])],1):t._e(),t.isHome&&!t.isAlipay?a("li",{on:{click:t.addRecommend}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"like"}}),a("p",{staticClass:"tool-des"},[t._v("商品推荐")])],1):t._e(),a("li",{on:{click:t.addBackTop}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"to-top"}}),a("p",{staticClass:"tool-des"},[t._v("回到顶部")])],1),!t.isHome&&t.isWap?a("li",{on:{click:t.addRichText}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"unordered-list"}}),a("p",{staticClass:"tool-des"},[t._v("富文本")])],1):t._e()])]),t.isAlipay?t._e():a("a-collapse-panel",{key:"2",staticStyle:{border:"none"},attrs:{header:"营销组件"}},[a("ul",{staticClass:"tool-list"},[a("li",{on:{click:t.addCoupon}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"tags"}}),a("p",{staticClass:"tool-des"},[t._v("优惠券")])],1),a("li",{on:{click:t.addFlashsale}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"sound"}}),a("p",{staticClass:"tool-des"},[t._v("限时抢")])],1),a("li",{on:{click:t.addNewUser}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.NewUserSVG}}),a("p",{staticClass:"tool-des"},[t._v("新人专区")])],1),a("li",{on:{click:function(e){return t.addActivities(7)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.ReduceSVG}}),a("p",{staticClass:"tool-des"},[t._v("满减")])],1),a("li",{on:{click:function(e){return t.addActivities(8)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.DiscountSVG}}),a("p",{staticClass:"tool-des"},[t._v("满折")])],1),a("li",{on:{click:function(e){return t.addActivities(5)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.GivingSVG}}),a("p",{staticClass:"tool-des"},[t._v("满赠")])],1),a("li",{on:{click:function(e){return t.addActivities(16)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.AnySVG}}),a("p",{staticClass:"tool-des"},[t._v("N元任选")])],1),a("li",{on:{click:function(e){return t.addActivities(3)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.DropSVG}}),a("p",{staticClass:"tool-des"},[t._v("单品直降")])],1),a("li",{on:{click:function(e){return t.addActivities(4)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.SingleDiscountSVG}}),a("p",{staticClass:"tool-des"},[t._v("单品打折")])],1),a("li",{on:{click:function(e){return t.addActivities(13)}}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.ExemptSVG}}),a("p",{staticClass:"tool-des"},[t._v("买X免Y")])],1)])])],1):t._e()],1)},C=[],k=(a("6762"),a("2fdb"),a("aaa5")),x=a("6d5b"),S=a("f0bd"),A=a("e26c"),T=a("ca43"),F=a("6199"),O=a("7aba"),j=a("38fc"),I=a("ff3a"),P=a("9058"),E=a("1a1e"),M=a("ea31"),$=a("16c1"),D={name:"CTitle",remark:"标题",type:{options:[1,2],selected:1},text:{content:"",align:"left",fontSize:32,fontWeight:"normal",isShowUnderline:!1,color:"#333333",backgroundColor:"#ffffff",isShowMore:{status:!1,options:[1,2],selected:1,link:""}},image:{image_url:"",image_link:""},block_timer:{start_time:"",end_time:""}},N={name:"CProduct",remark:"商品",tpl_type:1,display_type:1,product_only:{set_type:1,product_ids:[],product_cat:"",brand_id:"",show_num:"",is_show_discount:!0,is_hide_sold_out:!0,is_show_btn:{status:!0,btn_color:"#e5e5e5"},background_color:"#e5e5e5",background_image_url:"",shadow:{is_show:!0}},product_tab:{show_num:"",tab_style:1,is_show_discount:!0,is_hide_sold_out:!0,is_show_btn:{status:!0,btn_color:"#e5e5e5"},tab_selected_color:"#e5e5e5",background_color:"#e5e5e5",tabs:[{set_type:1,product_ids:[],product_cat:"",brand_id:"",tab_name:"",is_show_more:{status:!1,show_more_img_url:"",show_more_img_link:""}}]},block_timer:{start_time:"",end_time:""}},R={name:"CCarousel",remark:"轮播图",type:1,slides:[{image_url:"",image_link:"",start_time:"",end_time:""}],indicator_type:1,main_height:340},L={name:"CAds",remark:"广告图",type:1,ad_images:[{image_url:"",image_link:"",jump_anchor:""}],background_color:"#e5e5e5",shadow:{is_show:!1},block_timer:{start_time:"",end_time:""}},B={name:"CBlankspace",remark:"辅助空白",blank_height:20,background_color:"#e5e5e5"},V={name:"CAnchor",remark:"楼层导航",type:1,selected_color:"#f5f5f5",anchors:[{name:"",jump_to:"",block_timer:{start_time:"",end_time:""}}]},z={name:"CCoupon",remark:"优惠券",tpl_type:2,background_color:"#e5e5e5",coupons:[{img_url:"",rule_id:"",coupon_desc:""}],block_timer:{start_time:"",end_time:""}},q={name:"CFlashsale",remark:"限时抢",tpl_type:2,rounds:[{name:"",async_name:"",async_id:"",async_start:"",async_end:"",product_ids:[],start_time:"",end_time:""}],tab_bg_color:"#E52222",add_btn_color:"#333333",background_color:"#FFFFFF"},U={name:"CCustomize",remark:"自定义内容",customContent:""},H={name:"CSearch",remark:"搜索",type:1,site_logo_image_url:"",search_icon_url:"",key_placeholder:"",background_color:"#FFFFFF",searchbox_color:1},G={name:"CJumpMp",remark:"跳转小程序",appid:"",path:"",extraData:"",image_url:""},Y={name:"CNotice",remark:"公告栏",notice_icon_url:"",notice_text_color:"#333333",background_color:"#ffffff",notices:[{content:"",click_type:1,link_url:""}]},J={name:"CProductRecommend",remark:"商品推荐",tpl_type:2,display_type:1,product_only:{recommend_type:"1",show_num:100,is_show_discount:!0,is_show_btn:{status:!0,btn_color:"#e5e5e5"},background_color:"#e5e5e5"},product_tab:{show_num:60,tab_style:1,is_show_discount:!0,is_show_btn:{status:!0,btn_color:"#333333"},tab_selected_color:"#e5e5e5",background_color:"#F8F8F8",tabs:[{recommend_type:"1",tab_name:""}]}},K={name:"CBackTop",remark:"回到顶部",icon_url:""},W={name:"CFloatAds",remark:"浮标",image_url:"",image_link:"",start_time:"",end_time:""},Z={name:"CRichText",remark:"富文本",content:"",pureText:"",background_color:"#FFFFFF"},Q={name:"CVideo",remark:"视频",type:1,upload:1,image_url:"",img_height:0,background_color:"#e5e5e5",shadow:{is_show:!1},mv_url:{src:""},upload_video:{url:"",duration:0,src:""}},X={name:"CHotSpots",remark:"图片热区",image_url:"",hotspots:[],block_timer:{start_time:"",end_time:""}},tt=function(){return{name:"CGivings",remark:"赠品专区",display_tpl:1,givings:[{async_id:"",async_name:"",async_desc:"",async_start:"",async_end:"",name:"",desc:"",start_time:"",end_time:""}],add_btn_color:"#D4D4D4",background_color:"#FFFFFF"}},et={name:"CActivities",remark:"促销活动",activity_type:0,tpl_type:2,rounds:[{name:"",async_name:"",async_id:"",async_start:"",async_end:"",product_ids:[],start_time:"",end_time:"",is_show_more:{status:!1,show_more_img_url:""}}],show_num:10,is_show_count_down:!0,tab_bg_color:"#E52222",add_btn_color:"#333333",background_color:"#FFFFFF"},at={name:"CNewUser",remark:"新人专区",type:{options:[1,2],selected:1},text:{content:"",color:"#333333"},image:{image_url:"",image_link:""},tpl_type:4,rounds:[{coupon:{rule_id:"",coupon_name:"",currency_symbol:"",coupon_value:"",coupon_object:"",type:"",sign:"",async_start:"",async_end:""},product_ids:[],is_show_more:{status:!1,show_more_img_url:"",show_more_img_link:""}}],is_show_discount:!0,is_show_btn:{status:!0,btn_color:"#e5e5e5"},coupon_text_color:"#FF2F36",coupon_color:"#FFE2E1",background_color:"#e5e5e5"},ot=function(){return{name:"CAwardList",remark:"榜单商品",tpl_type:1,display_type:1,product_only:{set_type:1,product_ids:[],show_num:"",is_show_btn:{status:!0,btn_color:"#000000"}},product_tab:{show_num:"",tab_style:1,is_show_btn:{status:!0,btn_color:"#000000"},tab_selected_color:"#000000",tabs:[{set_type:1,product_ids:[],tab_name:"",is_show_more:{status:!1,show_more_img_url:"",show_more_img_link:""}}]},block_timer:{start_time:"",end_time:""},icon_style:1,is_show_brand:!0,is_show_brand_cn:!0,is_show_short_description:!0,is_show_discount:!0,is_hide_sold_out:!0,background_color:"#f4f4f4"}};function it(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function rt(t){for(var e=1;e=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()]):t._e()])}))],2)},$t=[],Dt={data:function(){return{loading:!1,websiteId:this.$route.params.website_id,productData:[],delayTimer:null}},props:{data:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){return{}}}},computed:{productIds:function(){if(this.data.tab_style){if(1===this.data.tabs[0].set_type)return this.data.tabs[0].product_ids}else if(1===this.data.set_type)return this.data.product_ids;return[]},categoryId:function(){if(this.data.tab_style){if(2===this.data.tabs[0].set_type)return this.data.tabs[0].product_cat}else if(2===this.data.set_type)return this.data.product_cat;return""},brandId:function(){if(this.data.tab_style){if(3===this.data.tabs[0].set_type)return this.data.tabs[0].brand_id}else if(3===this.data.set_type)return this.data.brand_id;return""},backgroundImage:function(){return this.compName&&"OneLineNPcsFs"===this.compName&&this.data.background_image_url?"url(".concat(this.data.background_image_url,")"):this.productData.length?"none":""}},watch:{productIds:{handler:function(t){t.length&&this.getProducts({product_ids:t})}},categoryId:{handler:function(t){Number(t)&&this.getProducts({cate_id:t})}},brandId:{handler:function(t){Number(t)&&this.getProducts({brand_id:t})}},data:{deep:!0,handler:function(t){var e=0===t.show_num?20:t.show_num,a=t.is_hide_sold_out?0:1,o=[],i="",r="";if(this.data.tab_style){if(1===this.data.tabs[0].set_type){if(o=this.data.tabs[0].product_ids,!o.length)return;this.getProducts({product_ids:o,limit:e,stock:a})}else if(2===this.data.tabs[0].set_type){if(i=this.data.tabs[0].product_cat,!i)return;this.getProducts({cate_id:i,limit:e,stock:a})}else if(3===this.data.tabs[0].set_type){if(r=this.data.tabs[0].brand_id,!r)return;this.getProducts({brand_id:r,limit:e,stock:a})}}else if(1===this.data.set_type){if(o=this.data.product_ids,!o.length)return;this.getProducts({product_ids:o,limit:e,stock:a})}else if(2===this.data.set_type){if(i=this.data.product_cat,!i)return;this.getProducts({cate_id:i,limit:e,stock:a})}else if(3===this.data.set_type){if(r=this.data.brand_id,!r)return;this.getProducts({brand_id:r,limit:e,stock:a})}}}},methods:{getProducts:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.product_ids,o=void 0===a?[]:a,i=e.cate_id,r=void 0===i?"":i,n=e.brand_id,s=void 0===n?"":n,d=e.limit,u=void 0===d?20:d,p=e.secret,m=void 0===p?0:p,f=e.stock,h=void 0===f?0:f;this.delayTimer&&clearTimeout(this.delayTimer),this.delayTimer=setTimeout((function(){t.loading=!0,m=0===t.globalConfig.page_type?1:0,u=t.data.show_num,o.length?l["b"].get("/api-cms/cms/product/list?website_id=".concat(t.websiteId,"&limit=").concat(u,"&product_id=").concat(o.join(","),"&idSort=1&secret=").concat(m,"&stock=").concat(h)).then((function(e){e.data.results&&(t.productData=Object(c["a"])(e.data.results))})).finally((function(){t.loading=!1})):r?l["b"].get("/api-cms/cms/product/list?website_id=".concat(t.websiteId,"&limit=").concat(u,"&cid=").concat(r,"&secret=").concat(m,"&stock=").concat(h)).then((function(e){e.data.results&&(t.productData=Object(c["a"])(e.data.results))})).finally((function(){t.loading=!1})):s?l["b"].get("/api-cms/cms/product/list?website_id=".concat(t.websiteId,"&limit=").concat(u,"&brand_id=").concat(s,"&secret=").concat(m,"&stock=").concat(h)).then((function(e){e.data.results&&(t.productData=Object(c["a"])(e.data.results))})).finally((function(){t.loading=!1})):t.productData=[]}),500)}},mounted:function(){var t=[],e="",a="";if(this.data.tab_style){if(1===this.data.tabs[0].set_type){if(t=this.data.tabs[0].product_ids,!t.length)return;this.getProducts({product_ids:t})}else if(2===this.data.tabs[0].set_type){if(e=this.data.tabs[0].product_cat,!e)return;this.getProducts({cate_id:e})}else if(3===this.data.tabs[0].set_type){if(a=this.data.tabs[0].brand_id,!a)return;this.getProducts({brand_id:a})}}else if(1===this.data.set_type){if(t=this.data.product_ids,!t.length)return;this.getProducts({product_ids:t})}else if(2===this.data.set_type){if(e=this.data.product_cat,!e)return;this.getProducts({cate_id:e})}else if(3===this.data.set_type){if(a=this.data.brand_id,!a)return;this.getProducts({brand_id:a})}}},Nt={mixins:[Dt]},Rt=Nt,Lt=(a("0a22"),Object(v["a"])(Rt,Mt,$t,!1,null,null,null)),Bt=Lt.exports,Vt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct cproduct-1-2",style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:t.productData.length?"auto":"612px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-sale-feature":!e.description&&e.sales_tags.length,"no-feature-no-tag":!e.description&&!e.sales_tags.length,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0),"is-hide":!t.data.is_hide_sold_out&&3===e.status}},[a("div",[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e(),e.description?a("div",{staticClass:"sale-feature",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.description))]):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))]),e.sales?a("del",{staticClass:"product-origin-price"},[t._v(t._s(e.merchant_currency)+t._s(e.price.toFixed(2)))]):t._e()]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.data.is_show_btn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.data.is_show_btn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.data.is_show_discount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])])}))],2)},zt=[],qt={mixins:[Dt]},Ut=qt,Ht=(a("ea97"),Object(v["a"])(Ut,Vt,zt,!1,null,null,null)),Gt=Ht.exports,Yt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct cproduct-1-3",style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:t.productData.length?"auto":"607px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0),"is-hide":!t.data.is_hide_sold_out&&3===e.status}},[a("div",[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))])]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.data.is_show_btn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.data.is_show_btn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.data.is_show_discount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])])}))],2)},Jt=[],Kt={mixins:[Dt]},Wt=Kt,Zt=(a("0b65"),Object(v["a"])(Wt,Yt,Jt,!1,null,null,null)),Qt=Zt.exports,Xt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct cproduct-1-n swiper-container",style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:t.productData.length?"auto":"273px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),a("div",{staticClass:"swiper-wrapper"},t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix swiper-slide",class:{"out-of-stock":3===e.status,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0),"is-hide":!t.data.is_hide_sold_out&&3===e.status}},[a("div",[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag"},[t._v(t._s(e))])})),0):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))])]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.data.is_show_btn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.data.is_show_btn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.data.is_show_discount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])])})),0)])},te=[],ee={mixins:[Dt]},ae=ee,oe=(a("57de"),Object(v["a"])(ae,Xt,te,!1,null,null,null)),ie=oe.exports,re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct cproduct-1-n-fs swiper-container",class:{"has-background":t.data.background_image_url},style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:"460px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),a("div",{staticClass:"swiper-wrapper"},t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix swiper-slide",class:{"out-of-stock":3===e.status,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-add-cart":!t.data.is_show_btn.status,"no-cny":!(t.globalConfig.h5_is_show_cny-0),"is-hide":!t.data.is_hide_sold_out&&3===e.status},style:{"box-shadow":"0 0 15px 0 rgba(0,0,0,0.1)"}},[t.data.is_hide_sold_out||3!==e.status||t.data.isHideSoldOut?a("div",[t.countSales(e.sales)?a("div",{staticClass:"sales",style:{backgroundColor:t.globalConfig.h5_main_color}},[t._v(t._s(t.countSales(e.sales)))]):t._e(),a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("div",{staticClass:"product-brand",style:{color:t.globalConfig.h5_promotion_color,opacity:"50%"}},[t._v(t._s(e.brand_name))]),a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price",style:{color:t.globalConfig.h5_promotion_color}},[a("span",{staticClass:"currency-symbol"},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price"},[t._v(t._s(e.final_price.toFixed(2)))])]),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag"},[t._v(t._s(e))])})),0):t._e(),t.data.is_show_btn.status?a("div",{staticClass:"add-cart",style:{background:t.data.is_show_btn.btn_color}},[t._v("\n 加入购物车\n ")]):t._e()])]):t._e()])})),0)])},ne=[],se={mixins:[Dt],data:function(){return{compName:"OneLineNPcsFs"}},methods:{countSales:function(t){if(this.data.is_show_discount){if(Number(t)){if(1===Number(this.globalConfig.h5_product_discount_style))return"".concat(((100-t)/10).toFixed(1),"折");if(2===Number(this.globalConfig.h5_product_discount_style))return"".concat(t,"%OFF")}return""}return!1}}},ce=se,le=(a("d914"),Object(v["a"])(ce,re,ne,!1,null,null,null)),de=le.exports,ue={mixins:[wt],props:{globalConfig:{type:Object,default:null}},components:{"product-tabs":Et,"one-pcs":Bt,"two-pcs":Gt,"three-pcs":Qt,"n-pcs":ie,"n-pcs-fs":de}},pe=ue,me=(a("50ea"),a("16cd"),Object(v["a"])(pe,At,Tt,!1,null,"5fc6b2aa",null)),fe=me.exports,he=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-carousel c-module-wrap"},[a("div",{staticClass:"c-carousel"},[a("style-show",{attrs:{attr:t.conf}})],1),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},ge=[],_e=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"carousel-wrap",class:1===t.indicatorType?"styleCircle":"",style:{height:t.hasImage?"auto":"170px",backgroundImage:t.hasImage?"none":""}},[t.hasImage?a("a-carousel",{attrs:{autoplay:"","after-change":t.carouselChange,dots:3!==t.indicatorType}},t._l(t.options,(function(t){return a("div",{key:t.image_url,staticClass:"carouselBox"},[a("a",{attrs:{href:t.image_link}},[a("img",{attrs:{src:t.image_url}})])])})),0):t._e(),3==t.indicatorType?a("div",{staticClass:"swiper-pagination-fraction"},[a("span",{staticClass:"swiper-pagination-current"},[t._v(t._s(t.curSlide+1))]),t._v(" / "),a("span",{staticClass:"swiper-pagination-total"},[t._v(t._s(t.options.length))])]):t._e()],1)},ve=[],be={name:"LowPosition",props:{options:{type:Array,default:function(){return[]}},indicatorType:{type:Number,required:!0}},data:function(){return{curSlide:1}},computed:{hasImage:function(){var t=!1;return this.options.forEach((function(e){e.image_url&&(t=!0)})),t}},methods:{carouselChange:function(t){this.curSlide=t}}},ye=be,we=(a("a47a"),Object(v["a"])(ye,_e,ve,!1,null,"54b66083",null)),Ce=we.exports,ke=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"carousel-wrap",class:1===t.indicatorType?"styleCircle":"",style:{height:t.hasImage?"auto":"280px",backgroundImage:t.hasImage?"none":""}},[t.hasImage?a("a-carousel",{attrs:{autoplay:"","after-change":t.carouselChange,dots:3!==t.indicatorType}},t._l(t.options,(function(t){return a("div",{key:t.image_url,staticClass:"carouselBox"},[a("a",{attrs:{href:t.image_link}},[a("img",{attrs:{src:t.image_url}})])])})),0):t._e(),3==t.indicatorType?a("div",{staticClass:"swiper-pagination-fraction"},[a("span",{staticClass:"swiper-pagination-current"},[t._v(t._s(t.curSlide+1))]),t._v(" / "),a("span",{staticClass:"swiper-pagination-total"},[t._v(t._s(t.options.length))])]):t._e()],1)},xe=[],Se={name:"HightPosition",props:{options:{type:Array,default:function(){return[]}},indicatorType:{type:Number,required:!0}},data:function(){return{curSlide:1}},computed:{hasImage:function(){var t=!1;return this.options.forEach((function(e){e.image_url&&(t=!0)})),t}},methods:{carouselChange:function(t){this.curSlide=t}}},Ae=Se,Te=(a("1c35"),Object(v["a"])(Ae,ke,xe,!1,null,"56dbfd42",null)),Fe=Te.exports,Oe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"carousel-wrap",class:1===t.indicatorType?"styleCircle":"",style:{height:t.hasImage?"auto":"460px",backgroundImage:t.hasImage?"none":""}},[t.hasImage?a("a-carousel",{attrs:{autoplay:"","after-change":t.carouselChange,dots:3!==t.indicatorType}},t._l(t.options,(function(t){return a("div",{key:t.image_url,staticClass:"carouselBox"},[a("a",{attrs:{href:t.image_link}},[a("img",{attrs:{src:t.image_url}})])])})),0):t._e(),3==t.indicatorType?a("div",{staticClass:"swiper-pagination-fraction"},[a("span",{staticClass:"swiper-pagination-current"},[t._v(t._s(t.curSlide+1))]),t._v(" / "),a("span",{staticClass:"swiper-pagination-total"},[t._v(t._s(t.options.length))])]):t._e()],1)},je=[],Ie={name:"FashionHightPosition",props:{options:{type:Array,default:function(){return[]}},indicatorType:{type:Number,required:!0}},data:function(){return{curSlide:1}},computed:{hasImage:function(){var t=!1;return this.options.forEach((function(e){e.image_url&&(t=!0)})),t}},methods:{carouselChange:function(t){this.curSlide=t}}},Pe=Ie,Ee=(a("7a0b"),Object(v["a"])(Pe,Oe,je,!1,null,"98cfcc62",null)),Me=Ee.exports,$e=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"carousel-wrap",class:1===t.indicatorType?"styleCircle":"",style:{height:t.hasImage?"auto":"400px",backgroundImage:t.hasImage?"none":""}},[t.hasImage?a("a-carousel",{attrs:{autoplay:"","after-change":t.carouselChange,dots:3!==t.indicatorType}},t._l(t.options,(function(t){return a("div",{key:t.image_url,staticClass:"carouselBox"},[a("a",{attrs:{href:t.image_link}},[a("img",{attrs:{src:t.image_url}})])])})),0):t._e(),3==t.indicatorType?a("div",{staticClass:"swiper-pagination-fraction"},[a("span",{staticClass:"swiper-pagination-current"},[t._v(t._s(t.curSlide+1))]),t._v(" / "),a("span",{staticClass:"swiper-pagination-total"},[t._v(t._s(t.options.length))])]):t._e()],1)},De=[],Ne={name:"HightPosition",props:{options:{type:Array,default:function(){return[]}},indicatorType:{type:Number,required:!0}},data:function(){return{curSlide:1}},computed:{hasImage:function(){var t=!1;return this.options.forEach((function(e){e.image_url&&(t=!0)})),t}},methods:{carouselChange:function(t){this.curSlide=t}}},Re=Ne,Le=(a("630e"),Object(v["a"])(Re,$e,De,!1,null,"78363723",null)),Be=Le.exports,Ve={name:"carousel-generate",functional:!0,render:function(t,e){var a=e.data.attrs.attr;switch(a.type){case 1:return t(Ce,{props:{options:a.slides,indicatorType:a.indicator_type}});case 2:return t(Fe,{props:{options:a.slides,indicatorType:a.indicator_type}});case 4:return t(Be,{props:{options:a.slides,indicatorType:a.indicator_type}});default:return t(Me,{props:{options:a.slides,indicatorType:a.indicator_type}})}}},ze={name:"CarouselRender",props:{globalConfig:{type:Object,default:null}},components:{styleShow:Ve},mixins:[wt]},qe=ze,Ue=(a("e1eb"),Object(v["a"])(qe,he,ge,!1,null,null,null)),He=Ue.exports,Ge=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-ads c-module-wrap"},[a("div",{staticClass:"c-ads"},[1===t.conf.type?a("one-line-one-pcs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),2===t.conf.type?a("one-line-two-pcs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),3===t.conf.type?a("one-line-three-pcs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),4===t.conf.type?a("one-line-four-pcs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),5===t.conf.type?a("one-line-one-cross",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),6===t.conf.type?a("one-big-two-sm",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),7===t.conf.type?a("one-big-four-sm",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),8===t.conf.type?a("big-slide",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),9===t.conf.type?a("small-slide",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),10===t.conf.type?a("one-line-three-pcs-fs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color,conf:t.conf}}):t._e(),11===t.conf.type?a("one-line-five-pcs",{attrs:{data:t.conf.ad_images,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e()],1),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Ye=[],Je=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-03",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"180px"}},[t.hasImage?t._l(t.data,(function(t,e){return a("img",{key:e,style:{height:t.image_url?"auto":"170px"},attrs:{src:t.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})):t._e()],2)])},Ke=[],We={props:{data:{type:Array,default:function(){return[]}},globalConfig:{type:Object,default:null},bg:{type:String,default:function(){return""}}},computed:{hasImage:function(){var t=!1;return this.data.forEach((function(e){e.image_url&&(t=!0)})),t},backgroundImage:function(){return this.hasImage?"none":""}}},Ze={mixins:[We]},Qe=Ze,Xe=(a("56ea"),Object(v["a"])(Qe,Je,Ke,!1,null,"d6682d66",null)),ta=Xe.exports,ea=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-04",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"149px"}},[this.hasImage?[t._l(Math.ceil(t.data.length/2),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(2,(function(o){return[t.data[2*e+o-3]?a("img",{key:"img-"+(2*e+o-3),attrs:{alt:2*e+o-3,src:t.data[2*e+o-3].image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},aa=[],oa={mixins:[We]},ia=oa,ra=(a("0679"),Object(v["a"])(ia,ea,aa,!1,null,"2c953d76",null)),na=ra.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-05",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"168px"}},[t.hasImage?[t._l(Math.ceil(t.data.length/3),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(3,(function(o){return[t.data[3*e+o-4]?a("img",{key:"img-"+(3*e+o-4),attrs:{alt:3*e+o-4,src:t.data[3*e+o-4].image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},ca=[],la={mixins:[We]},da=la,ua=(a("445c"),Object(v["a"])(da,sa,ca,!1,null,"67f2c1f0",null)),pa=ua.exports,ma=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-06",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"128px"}},[t.hasImage?[t._l(Math.ceil(t.data.length/4),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(4,(function(o){return[t.data[4*e+o-5]?a("img",{key:"img-"+(4*e+o-5),attrs:{alt:4*e+o-5,src:t.data[4*e+o-5].image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},fa=[],ha={mixins:[We],data:function(){return{openTag:'
',closeTag:"
"}}},ga=ha,_a=(a("5039"),Object(v["a"])(ga,ma,fa,!1,null,"55ecee2d",null)),va=_a.exports,ba=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-03"},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"170px"}},[t.hasImage?t._l(t.data,(function(t,e){return a("img",{key:e,style:{height:t.image_url?"auto":"170px"},attrs:{src:t.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})):t._e()],2)])},ya=[],wa={mixins:[We]},Ca=wa,ka=(a("5c82"),Object(v["a"])(Ca,ba,ya,!1,null,"0defc119",null)),xa=ka.exports,Sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-01",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap clearfix",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"250px"}},[t.hasImage?[a("div",{staticClass:"left-big"},[a("img",{attrs:{src:t.data[0]&&t.data[0].image_url?t.data[0].image_url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg==",alt:""}})]),a("div",{staticClass:"right-two"},[a("img",{attrs:{src:t.data[1]&&t.data[1].image_url?t.data[1].image_url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg==",alt:""}}),a("img",{attrs:{src:t.data[2]&&t.data[2].image_url?t.data[2].image_url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg==",alt:""}})])]:t._e()],2)])},Aa=[],Ta={mixins:[We]},Fa=Ta,Oa=(a("e042"),Object(v["a"])(Fa,Sa,Aa,!1,null,"4b0562d8",null)),ja=Oa.exports,Ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-02",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap clearfix",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"193px"}},[t.hasImage?[a("div",{staticClass:"left-big"},[a("img",{attrs:{src:t.data[0]&&t.data[0].image_url?t.data[0].image_url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg==",alt:""}})]),a("div",{staticClass:"right-four"},[t._l(t.data,(function(e,o){return[0!==o?a("img",{key:o,attrs:{src:e.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]:t._e()],2)])},Pa=[],Ea={mixins:[We]},Ma=Ea,$a=(a("7b59"),Object(v["a"])(Ma,Ia,Pa,!1,null,"74252c6e",null)),Da=$a.exports,Na=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-07",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"153px"}},[t.hasImage?[a("div",{staticClass:"inner-slide"},t._l(t.data,(function(t,e){return a("img",{key:e,attrs:{src:t.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})),0)]:t._e()],2)])},Ra=[],La={mixins:[We]},Ba=La,Va=(a("943f"),Object(v["a"])(Ba,Na,Ra,!1,null,"060a7542",null)),za=Va.exports,qa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-08",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"153px"}},[t.hasImage?[a("div",{staticClass:"inner-slide"},t._l(t.data,(function(t,e){return a("img",{key:e,attrs:{src:t.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})),0)]:t._e()],2)])},Ua=[],Ha={mixins:[We]},Ga=Ha,Ya=(a("cce4"),Object(v["a"])(Ga,qa,Ua,!1,null,"142dd811",null)),Ja=Ya.exports,Ka=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-09",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"125px"}},[t.hasImage?[t._l(Math.ceil(t.data.length/3),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(3,(function(o){return[t.data[3*e+o-4]?a("img",{key:"img-"+(3*e+o-4),style:{"box-shadow":t.conf.shadow.is_show?"0 0 15px 0 rgba(0,0,0,0.1)":"none"},attrs:{alt:3*e+o-4,src:t.data[3*e+o-4].image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},Wa=[],Za={mixins:[We],props:{conf:{type:Object,default:null}}},Qa=Za,Xa=(a("d8ac"),Object(v["a"])(Qa,Ka,Wa,!1,null,"34c65ee6",null)),to=Xa.exports,eo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cbroad cbroad-11",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"104px"}},[t.hasImage?[t._l(Math.ceil(t.data.length/5),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(5,(function(o){return[t.data[5*e+o-6]?a("img",{key:"img-"+(5*e+o-6),attrs:{alt:5*e+o-6,src:t.data[5*e+o-6].image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},ao=[],oo={mixins:[We],data:function(){return{openTag:'
',closeTag:"
"}}},io=oo,ro=(a("d3fe"),Object(v["a"])(io,eo,ao,!1,null,"f3621b74",null)),no=ro.exports,so={mixins:[wt],props:{globalConfig:{type:Object,default:null}},components:{"one-line-one-pcs":ta,"one-line-two-pcs":na,"one-line-three-pcs":pa,"one-line-four-pcs":va,"one-line-one-cross":xa,"one-big-two-sm":ja,"one-big-four-sm":Da,"big-slide":za,"small-slide":Ja,"one-line-three-pcs-fs":to,"one-line-five-pcs":no}},co=so,lo=(a("bf72"),Object(v["a"])(co,Ge,Ye,!1,null,null,null)),uo=lo.exports,po=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-blankspace c-module-wrap"},[a("div",{style:{height:Math.round(t.conf.blank_height/2)+"px",backgroundColor:t.conf.background_color}}),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},mo=[],fo={mixins:[wt]},ho=fo,go=Object(v["a"])(ho,po,mo,!1,null,null,null),_o=go.exports,vo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-anchor c-module-wrap"},[a("div",{staticClass:"c-anchor"},[a("div",{staticClass:"anchor-wrapper",class:"anchor-type-"+t.anchorType,style:{display:t.anchors.length<=4?"flex":"",backgroundColor:t.bgColor}},t._l(t.anchors,(function(e,o){return a("span",{key:"anchor-"+o,staticClass:"tab-outer",class:0===o?"selected":"",style:t.tabOuterStyles},[a("a",{staticClass:"tab-inner",style:{width:3===t.anchorType&&t.anchors.length<=4?"100%":"",color:0===o?t.textColor:"",backgroundColor:3===t.anchorType&&0===o?t.selectedColor:"",paddingLeft:3!==t.anchorType&&4!==t.anchorType?"0":"9px",paddingRight:3!==t.anchorType&&4!==t.anchorType?"0":"9px"},attrs:{href:"javascript:void(0)"}},[t._v("\n "+t._s(e.name)+"\n "),a("span",{staticClass:"anchor-after",style:{backgroundColor:0===o?t.textColor:""}})])])})),0)]),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},bo=[],yo={mixins:[wt],computed:{anchors:function(){return this.conf.anchors},selectedColor:function(){return this.conf.selected_color},anchorType:function(){return this.conf.type},bgColor:function(){return 1===this.anchorType||3===this.anchorType?"#fff":4===this.anchorType?this.selectedColor:"none"},textColor:function(){return 3===this.anchorType?"#fff":this.selectedColor},tabOuterStyles:function(){return this.anchors.length>4?{width:"auto"}:1===this.anchorType?{width:"".concat(100/this.anchors.length,"%")}:3===this.anchorType?{width:"".concat(100/this.anchors.length,"%"),margin:0}:4===this.anchorType?{width:"".concat(100/this.anchors.length,"%"),marginLeft:"8px",marginRight:"8px"}:{}}}},wo=yo,Co=(a("eba4"),Object(v["a"])(wo,vo,bo,!1,null,null,null)),ko=Co.exports,xo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-coupon c-module-wrap"},[a("div",{staticClass:"c-coupon"},[1==t.conf.tpl_type?a("one-line-one-pcs",{attrs:{data:t.conf.coupons,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),2==t.conf.tpl_type?a("one-line-two-pcs",{attrs:{data:t.conf.coupons,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),3==t.conf.tpl_type?a("one-line-three-pcs",{attrs:{data:t.conf.coupons,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e(),5==t.conf.tpl_type?a("one-line-one-cross",{attrs:{data:t.conf.coupons,globalConfig:t.globalConfig,bg:t.conf.background_color}}):t._e()],1),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},So=[],Ao=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccoupon ccoupon-1",class:{"with-radius":1===t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"160px"}},[t.hasImage?t._l(t.data,(function(t,e){return a("img",{key:e,style:{height:t.img_url?"auto":"170px"},attrs:{src:t.img_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})):t._e()],2)])},To=[],Fo={props:{data:{type:Array,default:function(){return[]}},globalConfig:{type:Object,default:null},bg:{type:String,default:function(){return""}}},computed:{hasImage:function(){var t=!1;return this.data.forEach((function(e){e.img_url&&(t=!0)})),t},backgroundImage:function(){return this.hasImage?"none":""}}},Oo={mixins:[Fo]},jo=Oo,Io=(a("006a"),Object(v["a"])(jo,Ao,To,!1,null,null,null)),Po=Io.exports,Eo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccoupon ccoupon-2",class:{"with-radius":t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"320px"}},[this.hasImage?[t._l(Math.ceil(t.data.length/2),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(2,(function(o){return[t.data[2*e+o-3]?a("img",{key:"img-"+(2*e+o-3),attrs:{alt:2*e+o-3,src:t.data[2*e+o-3].img_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},Mo=[],$o={mixins:[Fo]},Do=$o,No=(a("2d7b"),Object(v["a"])(Do,Eo,Mo,!1,null,"426816cf",null)),Ro=No.exports,Lo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccoupon ccoupon-3",class:{"with-radius":t.globalConfig.is_radius}},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"295px"}},[t.hasImage?[t._l(Math.ceil(t.data.length/3),(function(e){return[a("div",{key:"row-"+e,staticClass:"row"},[t._l(3,(function(o){return[t.data[3*e+o-4]?a("img",{key:"img-"+(3*e+o-4),attrs:{alt:3*e+o-4,src:t.data[3*e+o-4].img_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}}):t._e()]}))],2)]}))]:t._e()],2)])},Bo=[],Vo={mixins:[Fo],props:{conf:{type:Object,default:null}}},zo=Vo,qo=(a("4cec"),Object(v["a"])(zo,Lo,Bo,!1,null,"4a92ff8a",null)),Uo=qo.exports,Ho=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccoupon ccoupon-5"},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"140px"}},[t.hasImage?t._l(t.data,(function(t,e){return a("img",{key:e,style:{height:t.img_url?"auto":"170px"},attrs:{src:t.img_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})):t._e()],2)])},Go=[],Yo={mixins:[Fo]},Jo=Yo,Ko=(a("bf32"),Object(v["a"])(Jo,Ho,Go,!1,null,"406e0236",null)),Wo=Ko.exports,Zo={mixins:[wt],components:{"one-line-one-pcs":Po,"one-line-two-pcs":Ro,"one-line-three-pcs":Uo,"one-line-one-cross":Wo},props:{globalConfig:{type:Object,default:null}}},Qo=Zo,Xo=(a("3150"),Object(v["a"])(Qo,xo,So,!1,null,null,null)),ti=Xo.exports,ei=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-flashsale c-module-wrap"},[a("div",{staticClass:"c-flashsale",style:{backgroundColor:t.conf.background_color}},[t.products.length?a("div",{staticClass:"time-tab",class:{scroll:t.shownTabs.length>3},style:{backgroundColor:t.conf.tab_bg_color}},t._l(t.shownTabs,(function(e,o){return a("div",{key:"tab-"+o,staticClass:"tab",class:{active:e.isHighlight}},[a("p",{staticClass:"time"},[a("span",{staticClass:"center"},[t._v(t._s(e.name||e.startData))])]),a("p",{staticClass:"status"},[a("span",{staticClass:"center",style:{color:t.conf.tab_bg_color}},[t._v(t._s(e.statusText))])])])})),0):t._e(),a("div",{staticClass:"product-wrap"},[1===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic1",class:{noData:!t.products.length}}),t._l(t.products,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-1"},[a("product-card-big-flash",{attrs:{data:e,"product-conf":t.productConf,col:1,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})],1)}))]:2===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic2",class:{noData:!t.products.length}}),t._l(t.productsGroupByTwo,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-2"},t._l(e,(function(e,i){return a("product-card-flash",{key:"product-"+o+"-"+i,attrs:{data:e,"product-conf":t.productConf,col:2,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})})),1)}))]:3===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic3",class:{noData:!t.products.length}}),t._l(t.productsGroupByThree,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row 3"},t._l(e,(function(e,i){return a("product-card-flash",{key:"product-"+o+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})})),1)}))]:t._e()],2)]),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},ai=[],oi=a("18ae"),ii=a("c1df"),ri=a.n(ii),ni=a("2ef0"),si=a.n(ni),ci=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-card",class:"product-style-"+t.col+(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(t.globalConfig.is_radius?" with-radius":"")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})]),a("div",{staticClass:"tags-and-desc"},[a("div",{staticClass:"tags-wrap",class:t.data.short_description?void 0:"no-info"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag"},[t._v(t._s(e))])})),0)])]),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"price-wrap"},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),a("div",{staticClass:"ref-store"},[t.isShowCny?a("span",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()])]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),t.productConf.isShowAddBtn?a("a",{staticClass:"add-cart",class:{radius:t.globalConfig.is_radius},style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])},li=[],di={props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1},globalConfig:{type:Object,default:function(){}}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},ui=di,pi=(a("af28"),Object(v["a"])(ui,ci,li,!1,null,"316f3f42",null)),mi=pi.exports,fi=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-card-big",class:(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(t.globalConfig.is_radius?" with-radius":"")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})])]),a("div",{staticClass:"product-info"},[t.data.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.data.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"tags-wrap"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag"},[t._v(t._s(e))])})),0),a("div",{staticClass:"bottom-area"},[a("div",{staticClass:"price-wrap"},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),t.isShowCny?a("div",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"btn-wrap"},[t.productConf.isShowAddBtn?a("a",{staticClass:"add-cart",class:{radius:t.globalConfig.is_radius},style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])])])])},hi=[],gi={props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1},globalConfig:{type:Object,default:function(){}}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},_i=gi,vi=(a("2419"),Object(v["a"])(_i,fi,hi,!1,null,"149764c1",null)),bi=vi.exports,yi={mixins:[wt],props:{globalConfig:{type:Object,default:function(){}}},components:{"product-card-flash":mi,"product-card-big-flash":bi},data:function(){return{products:[],tabs:[],shownProductIds:[]}},computed:{globalConfigTrans:function(){return{discountStyle:this.globalConfig.h5_product_discount_style-0,isShowCny:this.globalConfig.h5_is_show_cny-0,mainColor:this.globalConfig.h5_main_color,promotionColor:this.globalConfig.h5_promotion_color,defaultProductImage:this.globalConfig.h5_global_default_product_img,is_radius:this.globalConfig.is_radius}},shownTabs:function(){var t=JSON.parse(JSON.stringify(this.tabs));return t.splice(0,5)},shownRuleId:function(){for(var t=-1,e=0;e=o&&e=i&&(r=2),t.push({startData:ri()(o).format("MMMDo HH:mm"),status:r,statusText:0===r?"即将开始":1===r?"抢购中":"已结束",name:a.name})):t.push({startData:"",status:0,statusText:"",name:""})}));for(var a=0;a=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2)},Hi=[],Gi={data:function(){return{loading:!1,websiteId:this.$route.params.website_id,productData:{}}},props:{data:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){return{}}}},computed:{backgroundImage:function(){return this.compName&&"OneLineNPcsFs"===this.compName&&this.data.background_image_url?"url(".concat(this.data.background_image_url,")"):this.productData.length?"none":""}},mounted:function(){var t=this;this.data.tab_style,this.loading=!0,l["b"].get("/api-cms/cms/product/list?website_id=".concat(this.websiteId,"&limit=10")).then((function(e){t.productData=Object(c["a"])(e.data.results)})).finally((function(){t.loading=!1}))}},Yi={mixins:[Gi]},Ji=Yi,Ki=(a("db71"),Object(v["a"])(Ji,Ui,Hi,!1,null,null,null)),Wi=Ki.exports,Zi=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"crecommend crecommend-1-2",style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:t.productData.length?"auto":"612px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-sale-feature":!e.description&&e.sales_tags.length,"no-feature-no-tag":!e.description&&!e.sales_tags.length,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0)}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e(),e.description?a("div",{staticClass:"sale-feature",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.description))]):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))]),e.sales?a("del",{staticClass:"product-origin-price"},[t._v(t._s(e.merchant_currency)+t._s(e.price.toFixed(2)))]):t._e()]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.data.is_show_btn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.data.is_show_btn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.data.is_show_discount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2)},Qi=[],Xi={mixins:[Gi]},tr=Xi,er=(a("c47b"),Object(v["a"])(tr,Zi,Qi,!1,null,null,null)),ar=er.exports,or=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"crecommend crecommend-1-3",style:{backgroundColor:t.data.background_color,backgroundImage:t.backgroundImage,height:t.productData.length?"auto":"607px"}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-btn":!t.data.is_show_btn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0)}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))])]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.data.is_show_btn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.data.is_show_btn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.data.is_show_discount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.data.is_show_discount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2)},ir=[],rr={mixins:[Gi]},nr=rr,sr=(a("4afd"),Object(v["a"])(nr,or,ir,!1,null,null,null)),cr=sr.exports,lr={1:"猜你喜欢"},dr={mixins:[wt],props:{globalConfig:{type:Object,default:null}},components:{"one-pcs":Wi,"two-pcs":ar,"three-pcs":cr},data:function(){return{recommendType:lr}}},ur=dr,pr=(a("e29a"),Object(v["a"])(ur,zi,qi,!1,null,null,null)),mr=pr.exports,fr=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-notice c-module-wrap",style:{backgroundColor:t.conf.background_color||"#fff"}},[o("div",{staticClass:"c-notice"},[o("div",{staticClass:"notice-flex"},[o("span",{staticClass:"icon-wrap"},[t.conf.notice_icon_url?o("img",{staticStyle:{"max-width":"48px","max-height":"24px"},attrs:{src:t.conf.notice_icon_url}}):o("img",{staticStyle:{width:"24px",height:"24px"},attrs:{src:a("17d4")}})]),o("span",{staticClass:"notice-text",style:{color:t.conf.notice_text_color||"#333"}},[t._v(t._s(t.conf.notices[0].content||"这里是公告栏的引导文案,最多可以显示一行"))])]),o("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),o("span",{staticClass:"tip-corner"})]),o("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])])},hr=[],gr={mixins:[wt]},_r=gr,vr=(a("74d0"),Object(v["a"])(_r,fr,hr,!1,null,"447aed14",null)),br=vr.exports,yr=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-search c-module-wrap c-module-backtop",style:{left:t.moduleLeft+"px"}},[a("div",{staticClass:"c-backtop"},[t.conf.icon_url?a("div",{staticClass:"backtop-icon",staticStyle:{background:"none"}},[t.conf.icon_url?a("img",{attrs:{src:t.conf.icon_url}}):t._e()]):a("div",{staticClass:"backtop-icon"})]),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},wr=[],Cr={mixins:[wt],data:function(){return{moduleLeft:document.querySelector(".preview-panel").getBoundingClientRect().left+325}},mounted:function(){var t=this,e=null;window.addEventListener("resize",(function(){clearTimeout(e),e=setTimeout((function(){t.moduleLeft=document.querySelector(".preview-panel").getBoundingClientRect().left+325}),200)}))}},kr=Cr,xr=(a("19cf"),Object(v["a"])(kr,yr,wr,!1,null,null,null)),Sr=xr.exports,Ar=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-float c-module-wrap c-module-backtop",style:{left:t.moduleLeft+"px"}},[a("div",{staticClass:"c-float"},[t.conf.image_url?a("div",{staticClass:"float-icon",staticStyle:{background:"none"}},[a("span",{staticClass:"icon-close"}),a("div",{staticClass:"float-wrap"},[t.conf.image_url?a("img",{attrs:{src:t.conf.image_url}}):t._e()])]):a("div",{staticClass:"float-icon"},[a("span",{staticClass:"icon-close"}),t._m(0)])]),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Tr=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"float-wrap"},[o("img",{attrs:{src:a("0d8d")}})])}],Fr={mixins:[wt],data:function(){return{moduleLeft:document.querySelector(".preview-panel").getBoundingClientRect().left+315}},mounted:function(){var t=this,e=null;window.addEventListener("resize",(function(){clearTimeout(e),e=setTimeout((function(){t.moduleLeft=document.querySelector(".preview-panel").getBoundingClientRect().left+315}),200)}))}},Or=Fr,jr=(a("4a80"),Object(v["a"])(Or,Ar,Tr,!1,null,null,null)),Ir=jr.exports,Pr=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-wrap c-module-rich",class:{"c-module-selected":t.conf.isSelected}},[a("div",{staticClass:"rich-text-wrap",style:{backgroundColor:t.conf.background_color},domProps:{innerHTML:t._s(t.conf.content)}}),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Er=[],Mr={mixins:[wt]},$r=Mr,Dr=(a("3e01"),Object(v["a"])($r,Pr,Er,!1,null,"273f9102",null)),Nr=Dr.exports,Rr=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-hotspots c-module-wrap",style:{height:t.parentHeight+"px"}},[t.conf.image_url?o("img",{staticClass:"hotspots-image",class:{"img-error":t.imgLoadedError},attrs:{src:t.conf.image_url,height:t.parentHeight},on:{load:t.imgLoaded,error:t.imgError}}):o("img",{staticClass:"hotspots-image",class:{"img-error":t.imgLoadedError},attrs:{src:a("cbc2"),height:t.parentHeight},on:{load:t.imgLoaded,error:t.imgError}}),o("div",{staticClass:"hot-spots",style:{height:t.parentHeight+"px"}},t._l(t.conf.hotspots,(function(t,e){return o("a",{key:"spots-"+e,staticClass:"spot",style:{width:t.width/2+"px",height:t.height/2+"px",top:t.top/2+"px",left:t.left/2+"px"},attrs:{href:t.spot_link}})})),0),o("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),o("span",{staticClass:"tip-corner"})]),o("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Lr=[],Br={mixins:[wt],props:{globalConfig:{type:Object,default:function(){}}},data:function(){return{imgLoadedError:!1,parentHeight:0}},methods:{imgError:function(){this.imgLoadedError=!0},imgLoaded:function(t){var e=t.composedPath();this.imgLoadedError=!1,this.parentHeight=e[0].naturalHeight*(375/e[0].naturalWidth)}}},Vr=Br,zr=(a("54e2"),Object(v["a"])(Vr,Rr,Lr,!1,null,"3ea1d60e",null)),qr=zr.exports,Ur=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-video c-module-wrap"},[a("div",{staticClass:"c-video"},[1===t.conf.type?a("big-screen-video",{attrs:{data:1===t.conf.upload?t.conf.upload_video:t.conf.mv_url,bg:t.conf.background_color,imgBg:t.conf.image_url,globalConfig:t.globalConfig}}):t._e(),2===t.conf.type?a("center-screen-video",{attrs:{data:1===t.conf.upload?t.conf.upload_video:t.conf.mv_url,bg:t.conf.background_color,imgBg:t.conf.image_url,globalConfig:t.globalConfig}}):t._e()],1),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Hr=[],Gr=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-video"},[a("div",{staticClass:"bwrap",style:{backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"460px"}},[t.hasImage?[a("video",{attrs:{src:t.data.src,poster:t.imgBg,controls:"controls",width:"375px",height:"auto"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])]:t._e()],2)])},Yr=[],Jr={props:{data:{type:Object,default:null},globalConfig:{type:Object,default:null},bg:{type:String,default:function(){return""}},imgBg:{type:String,default:function(){return""}}},computed:{hasImage:function(){var t=!1;return this.data.src&&(t=!0),t},backgroundImage:function(){return this.hasImage?"none":""}}},Kr={mixins:[Jr]},Wr=Kr,Zr=(a("aca1"),Object(v["a"])(Wr,Gr,Yr,!1,null,"046e5318",null)),Qr=Zr.exports,Xr=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"center-video"},[a("div",{staticClass:"bwrap",style:{backgroundColor:t.bg,backgroundImage:t.backgroundImage,height:t.hasImage?"auto":"460px"}},[t.hasImage?[a("video",{class:{"video-radius":1===t.globalConfig.is_radius},attrs:{src:t.data.src,poster:t.imgBg,controls:"controls",width:"355px",height:"auto"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])]:t._e()],2)])},tn=[],en={mixins:[Jr]},an=en,on=(a("e85b"),Object(v["a"])(an,Xr,tn,!1,null,"b4fef102",null)),rn=on.exports,nn={mixins:[wt],props:{globalConfig:{type:Object,default:null}},components:{"big-screen-video":Qr,"center-screen-video":rn}},sn=nn,cn=(a("94a5"),Object(v["a"])(sn,Ur,Hr,!1,null,null,null)),ln=cn.exports,dn=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-givings c-module-wrap"},[t.isShowExample?o("img",{staticClass:"givings-example",attrs:{src:a("09510")}}):o("div",{staticClass:"c-givings",style:{backgroundColor:t.conf.background_color}},[1===t.conf.display_tpl?[o("div",{staticClass:"givings-wrap",staticStyle:{"padding-bottom":"1px"}},[t._l(t.giftsInfo,(function(e,a){return[e.products.length?o("OneLineOnePcs",{key:"one-line-one-pcs-"+t.conf.uuid+"-"+a,attrs:{data:e,globalConfig:t.globalConfigTrans,config:t.conf}}):t._e()]}))],2)]:2===t.conf.display_tpl?t._l(t.conf.givings,(function(e,a){return o("div",{key:"giving-"+t.conf.uuid+"-"+a,staticClass:"givings-wrap"},[o("div",{staticStyle:{padding:"1px 0",background:"#fff"}},[o("div",{staticClass:"giving-title"},[t._v(t._s(e.name))]),o("div",{staticClass:"giving-desc"},[t._v(t._s(e.desc))]),o("div",{staticClass:"giving-time"},[o("span",[t._v(t._s(t.moment(e.async_start).format("YYYY-MM-DD HH:mm"))+" ~ "+t._s(t.moment(e.async_end).format("YYYY-MM-DD HH:mm")))]),o("a",{staticClass:"giving-btn",style:{backgroundColor:t.conf.add_btn_color},attrs:{href:"#"}},[t._v("立即参与")])])]),o("div",{staticClass:"products-wrap"},[o("OneLineNPcs",{attrs:{data:t.giftsInfo,"rule-id":e.async_id,globalConfig:t.globalConfigTrans}})],1)])})):t._e()],2),o("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),o("span",{staticClass:"tip-corner"})]),o("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},un=[],pn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct cproduct-1-n swiper-container",style:{backgroundColor:t.data.background_color}},[a("div",{staticClass:"swiper-wrapper"},t._l(t.products,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix swiper-slide",class:{"out-of-stock":3===e.status,"with-radius":1===t.globalConfig.is_radius}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),a("span",{staticClass:"tag",style:{backgroundColor:t.globalConfig.promotionColor}},[t._v("赠")])]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")])])])})),0)])},mn=[],fn={props:{data:{type:Array,default:function(){return[]}},ruleId:{type:String,default:function(){return""}},globalConfig:{type:Object,default:function(){}}},data:function(){return{products:[]}},watch:{ruleId:function(){this.getGiftProducts()}},methods:{getGiftProducts:function(){var t=this,e=this.data.filter((function(e){return e.rule_id===Number(t.ruleId)}));e.length&&(this.products=e[0]["products"])}},mounted:function(){this.getGiftProducts()}},hn=fn,gn=(a("a001"),Object(v["a"])(hn,pn,mn,!1,null,"169bdb20",null)),_n=gn.exports,vn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("div",{staticClass:"one-line-giving"},[a("a",{staticClass:"product-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-image",attrs:{src:t.product.image_url},on:{"~error":function(e){t.product.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),a("span",{staticClass:"badge",style:{backgroundColor:t.globalConfig.promotionColor}},[t._v("赠")])]),a("div",{staticClass:"giving-info"},[a("p",{staticClass:"title"},[t._v(t._s(t.getGivingInfo(t.data.rule_id)["name"]))]),a("p",{staticClass:"description"},[t._v(t._s(t.getGivingInfo(t.data.rule_id)["desc"]))]),a("p",{staticClass:"time"},[t._v(t._s(t.moment(t.getGivingInfo(t.data.rule_id)["async_start"]).format("YYYY-MM-DD"))+" ~ "+t._s(t.moment(t.getGivingInfo(t.data.rule_id)["async_end"]).format("YYYY-MM-DD")))]),a("a",{staticClass:"btn-link",style:{backgroundColor:t.config.add_btn_color},attrs:{href:"#"}},[t._v("立即参与")])])]):t._e()},bn=[],yn={props:{data:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}},config:{type:Object,default:function(){}}},data:function(){return{productId:"",product:{},show:!0}},watch:{data:{deep:!0,handler:function(t,e){t.rule_id!==e.rule_id&&(this.product=this.data.products[0])}}},methods:{moment:ri.a,getGivingInfo:function(t){var e=this.config.givings.filter((function(e){return e.async_id===String(t)}));return e.length?(this.show=!0,e[0]):(this.show=!1,{name:"",desc:"",async_start:"",async_end:""})}},mounted:function(){this.product=this.data.products[0]}},wn=yn,Cn=(a("6432"),Object(v["a"])(wn,vn,bn,!1,null,"3c1eb9ee",null)),kn=Cn.exports,xn={mixins:[wt],props:{globalConfig:{type:Object,default:function(){}}},components:{OneLineNPcs:_n,OneLineOnePcs:kn},data:function(){return{giftsInfo:[]}},computed:{isShowExample:function(){var t=this.conf.givings.filter((function(t){return!!t.async_id}));return!t.length},globalConfigTrans:function(){return{discountStyle:this.globalConfig.h5_product_discount_style-0,isShowCny:this.globalConfig.h5_is_show_cny-0,mainColor:this.globalConfig.h5_main_color,promotionColor:this.globalConfig.h5_promotion_color,defaultProductImage:this.globalConfig.h5_global_default_product_img,is_radius:this.globalConfig.is_radius}}},watch:{"conf.givings":{deep:!0,handler:function(){this.getGiftsInfo()}}},methods:{moment:ri.a,getGiftsInfo:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.conf.givings.forEach((function(t){e.push(Number(t.async_id))})),t.prev=2,t.next=5,l["b"].post("/api-cms/cms/promotion/gifts",{rule_ids:e});case 5:a=t.sent,o=a.data.gifts,this.giftsInfo=o,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:case"end":return t.stop()}}),t,this,[[2,10]])})));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){this.getGiftsInfo()}},Sn=xn,An=(a("ac60"),Object(v["a"])(Sn,dn,un,!1,null,null,null)),Tn=An.exports,Fn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-flashsale c-module-wrap"},[a("div",{staticClass:"c-flashsale",style:{backgroundColor:t.conf.background_color}},[t.products.length?a("div",{staticClass:"time-tab",class:{scroll:t.shownTabs.length>3},style:{backgroundColor:t.conf.tab_bg_color}},t._l(t.shownTabs,(function(e,o){return a("div",{key:"tab-"+o,staticClass:"tab",class:{active:e.isHighlight}},[a("p",{staticClass:"time"},[a("span",{staticClass:"center"},[t._v(t._s(e.name||e.startData))])]),a("p",{staticClass:"status"},[a("span",{staticClass:"center",style:{color:t.conf.tab_bg_color}},[t._v(t._s(e.statusText))])])])})),0):t._e(),t.conf.is_show_count_down?a("div",{staticClass:"activity-count-down"}):t._e(),a("div",{staticClass:"product-wrap"},[1===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic1",class:{noData:!t.products.length}}),t._l(t.limitedProducts,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-1"},[a("product-card-big-flash",{attrs:{data:e,"product-conf":t.productConf,col:1,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})],1)}))]:2===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic2",class:{noData:!t.products.length}}),t._l(t.productsGroupByTwo,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-2"},t._l(e,(function(e,i){return a("product-card-flash",{key:"product-"+o+"-"+i,attrs:{data:e,"product-conf":t.productConf,col:2,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})})),1)}))]:3===t.col?[t.products.length?t._e():a("div",{staticClass:"flash-example-pic3",class:{noData:!t.products.length}}),t._l(t.productsGroupByThree,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-3"},t._l(e,(function(e,i){return a("product-card-flash",{key:"product-"+o+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,"btn-status":t.btnStatus,"global-config":t.globalConfigTrans}})})),1)}))]:t._e(),t.showMore.status?a("img",{staticClass:"activity-more",attrs:{src:t.showMore.show_more_img_url,alt:""}}):t._e()],2)]),a("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),a("span",{staticClass:"tip-corner"})]),a("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},On=[],jn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-card",class:"product-style-"+t.col+(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(t.globalConfig.is_radius?" with-radius":"")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})]),a("div",{staticClass:"tags-and-desc"},[a("div",{staticClass:"tags-wrap",class:t.data.short_description?void 0:"no-info"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag"},[t._v(t._s(e))])})),0)])]),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"price-wrap"},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),a("div",{staticClass:"ref-store"},[t.isShowCny?a("span",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()])]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),t.productConf.isShowAddBtn?a("a",{staticClass:"add-cart",class:{radius:t.globalConfig.is_radius},style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])},In=[],Pn={props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1},globalConfig:{type:Object,default:function(){}}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},En=Pn,Mn=(a("0baf"),Object(v["a"])(En,jn,In,!1,null,"512d8001",null)),$n=Mn.exports,Dn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-card-big",class:(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(t.globalConfig.is_radius?" with-radius":"")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})])]),a("div",{staticClass:"product-info"},[t.data.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.data.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"tags-wrap"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag"},[t._v(t._s(e))])})),0),a("div",{staticClass:"bottom-area"},[a("div",{staticClass:"price-wrap"},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),t.isShowCny?a("div",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"btn-wrap"},[t.productConf.isShowAddBtn?a("a",{staticClass:"add-cart",class:{radius:t.globalConfig.is_radius},style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])])])])},Nn=[],Rn={props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1},globalConfig:{type:Object,default:function(){}}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},Ln=Rn,Bn=(a("d0cc"),Object(v["a"])(Ln,Dn,Nn,!1,null,"a5836e14",null)),Vn=Bn.exports,zn={mixins:[wt],props:{globalConfig:{type:Object,default:function(){}}},components:{"product-card-flash":$n,"product-card-big-flash":Vn},data:function(){return{products:[],limitedProducts:[],tabs:[],shownProductIds:[]}},computed:{productIds:function(){return this.conf?this.conf.rounds[0].product_ids:[]},globalConfigTrans:function(){return{discountStyle:this.globalConfig.h5_product_discount_style-0,isShowCny:this.globalConfig.h5_is_show_cny-0,mainColor:this.globalConfig.h5_main_color,promotionColor:this.globalConfig.h5_promotion_color,defaultProductImage:this.globalConfig.h5_global_default_product_img,is_radius:this.globalConfig.is_radius}},shownTabs:function(){var t=JSON.parse(JSON.stringify(this.tabs));return t.splice(0,5)},shownRuleId:function(){for(var t=-1,e=0;e=o&&e=i&&(r=2),t.push({startData:ri()(o).format("MMMDo HH:mm"),status:r,statusText:0===r?"即将开始":1===r?"抢购中":"已结束",name:a.name})):t.push({startData:"",status:0,statusText:"",name:""})}));for(var a=0;a=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.productConfig.isShowDiscount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2):t._e()},es=[],as=null,os={data:function(){return{loading:!1,websiteId:this.$route.params.website_id,productData:[]}},props:{data:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){return{}}},productConfig:{type:Object,default:function(){return{}}}},computed:{productIds:function(){return this.data?this.data.product_ids:[]},backgroundImage:function(){return this.productData.length||this.productConfig.textContent?"none":""},wrapHeight:function(){return this.productData.length||this.productConfig.textContent?"auto":"371px"}},watch:{productIds:{handler:function(t){if(t.length){var e=this;as&&clearTimeout(as),as=setTimeout((function(){e.loading=!0;var a=0===e.globalConfig.page_type?1:0;l["b"].get("/api-cms/cms/product/list?website_id=".concat(e.websiteId,"&limit=10&product_id=").concat(t.join(","),"&idSort=1&secret=").concat(a)).then((function(t){e.productData=t.data.results?Object(c["a"])(t.data.results):[],t.data.results||e.$message.error("无商品数据"),e.loading=!1}))}),500)}else this.productData=[]}}},mounted:function(){var t=this,e=[];if(e=this.data.product_ids,e.length){this.loading=!0;var a=0===this.globalConfig.page_type?1:0;l["b"].get("/api-cms/cms/product/list?website_id=".concat(this.websiteId,"&limit=10&product_id=").concat(e.join(","),"&idSort=1&secret=").concat(a)).then((function(e){t.productData=e.data.results?Object(c["a"])(e.data.results):[],e.data.results||t.$message.error("无商品数据"),t.loading=!1}))}}},is={mixins:[os],computed:{isShowProduct:function(){return!((!this.data.isHideSoldOut||1!==this.product.status)&&this.data.isHideSoldOut)}}},rs=is,ns=(a("1be1"),Object(v["a"])(rs,ts,es,!1,null,null,null)),ss=ns.exports,cs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct new-user-product-1-2",style:{backgroundColor:t.productConfig.backgroundColor,backgroundImage:t.backgroundImage,height:t.wrapHeight}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-sale-feature":!e.description&&e.sales_tags.length,"no-feature-no-tag":!e.description&&!e.sales_tags.length,"no-btn":!t.productConfig.isShowBtn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0)}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e(),e.description?a("div",{staticClass:"sale-feature",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.description))]):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))]),e.sales?a("del",{staticClass:"product-origin-price"},[t._v(t._s(e.merchant_currency)+t._s(e.price.toFixed(2)))]):t._e()]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.productConfig.isShowBtn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.productConfig.isShowBtn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.productConfig.isShowDiscount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.productConfig.isShowDiscount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2)},ls=[],ds={mixins:[os],computed:{isShowProduct:function(){return!((!this.data.isHideSoldOut||1!==this.product.status)&&this.data.isHideSoldOut)}}},us=ds,ps=(a("95c7"),Object(v["a"])(us,cs,ls,!1,null,null,null)),ms=ps.exports,fs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct new-user-product-1-3",style:{backgroundColor:t.productConfig.backgroundColor,backgroundImage:t.backgroundImage,height:t.wrapHeight}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix",class:{"out-of-stock":3===e.status,"no-btn":!t.productConfig.isShowBtn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0)}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag",style:{borderColor:t.globalConfig.h5_promotion_color,color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e))])})),0):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))])]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.productConfig.isShowBtn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.productConfig.isShowBtn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.productConfig.isShowDiscount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.productConfig.isShowDiscount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])}))],2)},hs=[],gs={mixins:[os],computed:{isShowProduct:function(){return!((!this.data.isHideSoldOut||1!==this.product.status)&&this.data.isHideSoldOut)}}},_s=gs,vs=(a("3c25"),Object(v["a"])(_s,fs,hs,!1,null,null,null)),bs=vs.exports,ys=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cproduct new-user-product-1-n swiper-container",style:{backgroundColor:t.productConfig.backgroundColor,backgroundImage:t.backgroundImage,height:t.wrapHeight}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),a("div",{staticClass:"swiper-wrapper"},t._l(t.productData,(function(e){return a("div",{key:e.product_id,staticClass:"product-single-wrap clearfix swiper-slide",class:{"out-of-stock":3===e.status,"no-btn":!t.productConfig.isShowBtn.status,"with-radius":1===t.globalConfig.is_radius,"no-cny":!(t.globalConfig.h5_is_show_cny-0)}},[a("a",{staticClass:"product-img-wrap",attrs:{href:"#"}},[a("img",{staticClass:"product-thumb",attrs:{src:e.image_url,alt:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("span",{staticClass:"out-sale"},[t._v("已售罄")]):t._e(),e.sales_tags.length?a("div",{staticClass:"sale-tag-wrap"},t._l(e.sales_tags,(function(e,o){return a("span",{key:"ptag-"+o,staticClass:"single-sale-tag"},[t._v(t._s(e))])})),0):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("a",{staticClass:"product-link",attrs:{href:"#"}},[t._v("\n "+t._s(e.name)+"\n ")]),a("div",{staticClass:"product-price"},[a("span",{staticClass:"currency-symbol",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.merchant_currency))]),a("span",{staticClass:"product-final-price",style:{color:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.final_price.toFixed(2)))])]),t.globalConfig.h5_is_show_cny-0?a("div",{staticClass:"product-cny-price"},[t._v("\n 参考价:"+t._s(e.reference_currency)+t._s(e.reference_price.toFixed(2))+"\n ")]):t._e(),t.productConfig.isShowBtn.status?a("a",{staticClass:"product-add-cart",style:{backgroundColor:t.productConfig.isShowBtn.btn_color},attrs:{href:"javascript:void(0)","data-product-id":"123456"}},[t._v("加入购物车")]):t._e()]),t.productConfig.isShowDiscount&&e.sales>=10&&1==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(((100-e.sales)/10).toFixed(1))+"折")]):t._e(),t.productConfig.isShowDiscount&&e.sales>=10&&2==t.globalConfig.h5_product_discount_style?a("span",{staticClass:"sale-label",style:{backgroundColor:t.globalConfig.h5_promotion_color}},[t._v(t._s(e.sales)+"%OFF")]):t._e()])})),0)])},ws=[],Cs={mixins:[os],computed:{isShowProduct:function(){return!((!this.data.isHideSoldOut||1!==this.product.status)&&this.data.isHideSoldOut)}}},ks=Cs,xs=(a("0a0d"),Object(v["a"])(ks,ys,ws,!1,null,null,null)),Ss=xs.exports,As=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"new-coupon-bwrap bwrap",class:{"with-radius":1===t.globalConfig.is_radius},style:{backgroundColor:t.bg,color:t.textColor}},[a("div",{staticClass:"bg-decoration-top",style:{backgroundColor:t.decorationBg}}),a("div",{staticClass:"bg-decoration-bottom",style:{backgroundColor:t.decorationBg}}),a("div",{staticClass:"bg-decoration-line",style:{backgroundColor:t.textColor}}),a("div",{staticClass:"coupon-left"},[a("div",{staticClass:"coupon-content"},[2===t.data.type||4===t.data.type?a("span",{staticClass:"coupon-symbol"},[t._v(t._s(t.data.currency_symbol))]):t._e(),a("span",{staticClass:"coupon-quota"},[t._v(t._s(t.data.coupon_value)+t._s(1===t.data.type||3===t.data.type?"折":""))]),a("div",{staticClass:"coupon-des"},[a("p",[t._v(t._s(t.data.coupon_name))]),a("p",[t._v(t._s(t.data.coupon_object))])])]),a("p",{staticClass:"coupon-time"},[t._v(t._s(t.removeS(t.data.async_start))+" ~ "+t._s(t.removeS(t.data.async_end)))])]),a("div",{staticClass:"coupon-btn"},[t._v("\n 立即领取\n ")])])},Ts=[],Fs={props:{data:{type:Object,default:function(){}},globalConfig:{type:Object,default:null},bg:{type:String,default:function(){return""}},textColor:{type:String,default:function(){return""}},decorationBg:{type:String,default:function(){return""}}},methods:{removeS:function(t){return ri()(t).format("YYYY-MM-DD HH:mm")}}},Os=Fs,js=(a("6cbb"),Object(v["a"])(Os,As,Ts,!1,null,null,null)),Is=js.exports,Ps={mixins:[wt],props:{globalConfig:{type:Object,default:null}},components:{"product-tabs":Xn,"one-pcs":ss,"two-pcs":ms,"three-pcs":bs,"n-pcs":Ss,"coupon-new":Is},data:function(){return{}},computed:{productConfig:function(){return{isShowBtn:this.conf.is_show_btn,isShowDiscount:this.conf.is_show_discount,textContent:1===this.conf.type.selected?this.conf.text.content:this.conf.image.image_url,backgroundColor:this.conf.background_color}}}},Es=Ps,Ms=(a("31fc0"),Object(v["a"])(Es,Gn,Yn,!1,null,null,null)),$s=Ms.exports,Ds=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-award-list c-module-wrap"},[o("div",{staticClass:"c-award-list",class:{"with-tab":2===t.conf.display_type},style:{backgroundColor:t.conf.background_color}},[1===t.conf.display_type?[t.conf.product_only.product_ids.length?[1===t.conf.tpl_type?o("one-pcs",{attrs:{data:t.conf.product_only,conf:t.conf,globalConfig:t.globalConfig}}):t._e()]:o("img",{staticClass:"eg-img",attrs:{src:a("79d2")}})]:[t.conf.product_tab.tabs.length&&t.conf.product_tab.tabs[0].product_ids.length?o("product-tabs",{attrs:{data:t.conf.product_tab,"component-conf":t.conf}}):t._e(),t.conf.product_tab.tabs.length&&t.conf.product_tab.tabs[0].product_ids.length?[1===t.conf.tpl_type?o("one-pcs",{attrs:{data:t.conf.product_tab,conf:t.conf,globalConfig:t.globalConfig}}):t._e(),t.conf.product_tab.tabs.length&&t.conf.product_tab.tabs[0].is_show_more.status?o("div",{staticClass:"show-more"},[o("img",{attrs:{src:t.conf.product_tab.tabs[0].is_show_more.show_more_img_url}})]):t._e()]:o("img",{staticClass:"eg-img",attrs:{src:a("8c20")}})]],2),o("div",{staticClass:"module-left-tip"},[t._v(t._s(t.conf.remark)),o("span",{staticClass:"tip-corner"})]),o("div",{staticClass:"module-select-mask",class:{isSelected:t.conf.isSelected},on:{click:t.clickToSelect}})])},Ns=[],Rs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"award-list-wrap",class:{"with-radius":1===t.globalConfig.is_radius}},[t.loading?a("p",{staticStyle:{margin:"0",padding:"10px 0","text-align":"center"}},[a("a-spin")],1):t._e(),t._l(t.products,(function(e,o){return a("div",{key:"product-"+e.product_id,staticClass:"product-wrap"},[a("div",{staticClass:"badge",class:"style-"+t.conf.icon_style+" top-"+(o+1)},[a("span",[t._v("TOP")]),a("strong",{staticClass:"class"},[t._v(t._s(o+1))])]),t.isShowAddIcon?a("div",{staticClass:"add-cart-icon",style:{backgroundColor:1!==e.status?"#858585":t.addIconBackgroundColor}}):t._e(),a("div",{staticClass:"img-wrap"},[a("img",{staticClass:"product-image",attrs:{src:e.image_url}}),1!==e.status&&t.conf.is_hide_sold_out?a("div",{staticClass:"no-stock"},[a("img",{attrs:{src:t.globalConfig.h5_out_of_stock_icon}})]):t._e()]),a("div",{staticClass:"info-box-wrap"},[a("div",{staticClass:"brand-wrap",class:{hide:!t.isShowBrand&&!t.isShowCnBrand||!e.brand_name&&!e.brand_cn_name||t.isShowBrand&&!e.brand_name&&!t.isShowCnBrand||!t.isShowBrand&&t.isShowCnBrand&&!e.brand_cn_name}},[t.isShowBrand&&e.brand_name?a("strong",[t._v(t._s(e.brand_name))]):t._e(),t.isShowBrand&&t.isShowCnBrand&&e.brand_name&&e.brand_cn_name?a("span",[t._v(" / ")]):t._e(),t.isShowCnBrand&&e.brand_cn_name?a("span",[t._v(t._s(e.brand_cn_name))]):t._e()]),t.isShowShortDescription&&e.short_description?a("div",{staticClass:"short-description",class:{"no-top":!t.isShowBrand&&!t.isShowCnBrand||!e.brand_name&&!e.brand_cn_name||t.isShowBrand&&!e.brand_name&&!t.isShowCnBrand||!t.isShowBrand&&t.isShowCnBrand&&!e.brand_cn_name}},[t._v(t._s(e.short_description))]):t._e(),a("div",{staticClass:"product-title"},[t._v(t._s(e.name))]),a("div",{staticClass:"price-wrap"},[a("p",{staticClass:"price",style:e.final_price50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_only.show_num}],expression:"[\n `productOnlyShowNum_${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata.product_only)}}})],1),1===t.compdata.display_type?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e(),a("a-divider"),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{model:{value:t.compdata.product_only.is_show_discount,callback:function(e){t.$set(t.compdata.product_only,"is_show_discount",e)},expression:"compdata.product_only.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"已售完商品"}},[a("a-checkbox",{model:{value:t.compdata.product_only.is_hide_sold_out,callback:function(e){t.$set(t.compdata.product_only,"is_hide_sold_out",e)},expression:"compdata.product_only.is_hide_sold_out"}},[t._v("显示")])],1),a("p",{staticStyle:{color:"#999"}},[t._v("不勾选显示,客户端默认隐藏已售完商品,若商品全部售完,客户端隐藏该组件显示")]),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"加购按钮"}},[a("a-checkbox",{model:{value:t.compdata.product_only.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"status",e)},expression:"compdata.product_only.is_show_btn.status"}},[t._v("显示")])],1),t.compdata.product_only.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_only.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"btn_color",e)},expression:"compdata.product_only.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.background_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_only.background_color,callback:function(e){t.$set(t.compdata.product_only,"background_color",e)},expression:"compdata.product_only.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.background_color}})])])],2)],1)],1):t._e(),2==t.compdata.display_type?a("div",[a("a-form-item",{attrs:{label:"展示数量(必填)",required:!0}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabShowNum_"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_tab.show_num}],expression:"[\n `productTabShowNum_${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_tab.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata.product_tab)}}})],1),a("a-form-item",{attrs:{label:"添加商品 Tab"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("最多可添加10个")])]),t._l(t.compdata.product_tab.tabs,(function(e,o){return a("div",{key:"tab_"+o,staticClass:"c-product-tab-wrap"},[t.compdata.product_tab.tabs.length>1?a("div",{staticClass:"ctrl-area"},[0!==o?a("a",{staticClass:"arrow-up",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveUp(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-up"}})],1):t._e(),o!==t.compdata.product_tab.tabs.length-1?a("a",{staticClass:"arrow-down",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveDown(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-down"}})],1):t._e(),a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateDelete(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),a("a-form-item",{attrs:{label:"添加商品(必填)",required:!0}},[a("a-radio-group",{model:{value:e.set_type,callback:function(a){t.$set(e,"set_type",a)},expression:"tab.set_type"}},[a("a-radio",{attrs:{value:1}},[t._v("商品")]),a("a-radio",{attrs:{value:2}},[t._v("选择分类")]),a("a-radio",{attrs:{value:3}},[t._v("选择品牌")])],1)],1),1==e.set_type&&e.product_ids.length?a("div",{staticStyle:{overflow:"hidden","margin-bottom":"8px"}},[a("div",{staticStyle:{float:"left"}},[a("span",{staticStyle:{color:"#1089ff"}},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyProductOnly(e)}}},[t._v("清空商品")])]):t._e(),1==e.set_type?a("div",{staticClass:"c-product-module-products-wrap"},[a("products-image-list",{attrs:{productIds:e.product_ids,globalConfig:t.globalConfig}}),a("ul",[a("li",{staticClass:"icon-product-add",on:{click:function(a){return t.addProducts(e)}}},[a("a-icon",{attrs:{type:"plus"}})],1)]),a("a-form-item",{staticStyle:{clear:"both",margin:"0",padding:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabIds_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请添加商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `productTabIds_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: tab.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),1==e.set_type&&e.product_ids.length?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:function(a){return t.editProductOnly(e)}}},[t._v("查看&编辑")])],1):t._e(),2==e.set_type?a("a-form-item",[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabCateId_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,validator:t.checkCateId}],initialValue:e.product_cat}],expression:"[\n `tabCateId_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n validator: checkCateId\n }\n ],\n initialValue: tab.product_cat\n }\n ]"}],attrs:{placeholder:"请输入分类ID"},on:{input:function(a){return t.setCateId(a,e)}}})],1):t._e(),3==e.set_type?a("a-form-item",[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabBrandId_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,validator:t.checkBrandId}],initialValue:e.brand_id}],expression:"[\n `tabBrandId_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n validator: checkBrandId\n }\n ],\n initialValue: tab.brand_id\n }\n ]"}],attrs:{placeholder:"请输入品牌ID"},on:{input:function(a){return t.setBrandId(a,e)}}})],1):t._e(),a("a-form-item",{attrs:{label:"Tab 名称(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabName_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入 Tab 名称"},{validator:t.checkTabNameLen}],initialValue:e.tab_name}],expression:"[\n `tabName_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入 Tab 名称'\n },\n {\n validator: checkTabNameLen\n }\n ],\n initialValue: tab.tab_name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.setTabName(a,e)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"查看更多图片"}},[a("a-checkbox",{model:{value:e.is_show_more.status,callback:function(a){t.$set(e.is_show_more,"status",a)},expression:"tab.is_show_more.status"}},[t._v("显示")])],1),e.is_show_more.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{class:{"has-error":e.moreImgError},attrs:{label:"图片(必填)",required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",disabled:t.uploadDisabled,headers:t.token},on:{change:function(a){return t.handleTabImgChange(a,e)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.is_show_more.show_more_img_url?[a("img",{staticStyle:{"max-width":"230px"},attrs:{src:e.is_show_more.show_more_img_url,alt:""}})]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),e.moreImgError?a("div",{staticClass:"ant-form-explain"},[t._v(t._s(e.moreImgErrorText))]):t._e(),a("div",[t._v("尺寸400x72像素,不超过50KB,支持jpg/png/gif")])],1),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{attrs:{label:"链接(必填)"}},[1===t.globalConfig.client?a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setTabMoreLink(a,e)}}}):a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"请按小程序路径规则输入"},on:{input:function(a){return t.setTabMoreLink(a,e)}}})],1):a("a-form-item",{attrs:{label:"链接(必填)"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.is_show_more.show_more_img_link,"link-desc":e.is_show_more.link_desc,"link-type":e.is_show_more.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e.is_show_more,"show_more_img_link",a,{tab:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:t.pathSelectError(e.is_show_more)}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(tab.is_show_more)\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e()],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addSingleTab}},[t._v("+ 添加商品 Tab")])],1),a("a-divider"),2===t.compdata.display_type?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e(),a("a-form-item",{attrs:{label:"商品 Tab 样式"}},[a("a-radio-group",{model:{value:t.compdata.product_tab.tab_style,callback:function(e){t.$set(t.compdata.product_tab,"tab_style",e)},expression:"compdata.product_tab.tab_style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")]),a("a-radio",{attrs:{value:4}},[t._v("样式四")])],1)],1),a("a-divider"),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{model:{value:t.compdata.product_tab.is_show_discount,callback:function(e){t.$set(t.compdata.product_tab,"is_show_discount",e)},expression:"compdata.product_tab.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"已售完商品"}},[a("a-checkbox",{model:{value:t.compdata.product_tab.is_hide_sold_out,callback:function(e){t.$set(t.compdata.product_tab,"is_hide_sold_out",e)},expression:"compdata.product_tab.is_hide_sold_out"}},[t._v("显示")])],1),a("p",{staticStyle:{color:"#999"}},[t._v("不勾选显示,客户端默认隐藏已售完商品,若商品全部售完,客户端隐藏该组件显示")]),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"加购按钮"}},[a("a-checkbox",{model:{value:t.compdata.product_tab.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_tab.is_show_btn,"status",e)},expression:"compdata.product_tab.is_show_btn.status"}},[t._v("显示")])],1),t.compdata.product_tab.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_tab.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.product_tab.is_show_btn,"btn_color",e)},expression:"compdata.product_tab.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),a("a-form-item",{attrs:{label:"商品 Tab 选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.tab_selected_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.tab_selected_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_tab.tab_selected_color,callback:function(e){t.$set(t.compdata.product_tab,"tab_selected_color",e)},expression:"compdata.product_tab.tab_selected_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.tab_selected_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.background_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_tab.background_color,callback:function(e){t.$set(t.compdata.product_tab,"background_color",e)},expression:"compdata.product_tab.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.background_color}})])])],2)],1)],2):t._e(),5===t.compdata.tpl_type?[t.compdata.product_only.background_image_url?a("a-form-item",{attrs:{label:"背景图"}},[a("p",[t._v("尺寸750×650像素,大小不超过500KB,支持jpg/png/gif格式")]),a("div",{staticClass:"image-uploader"},[t.compdata.product_only.background_image_url?a("img",{staticClass:"image-preview",attrs:{src:t.compdata.product_only.background_image_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(e){return t.adImageChange(e)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("从本地替换")])],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(e){return t.openImageLib()}}},[t._v("从图片选择器替换")])],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["backgroundImage",{initialValue:t.compdata.product_only.background_image_url}],expression:"[\n 'backgroundImage',\n {\n initialValue: compdata.product_only.background_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0",padding:"0"},attrs:{label:"背景图"}},[a("p",[t._v("尺寸710×710像素,大小不超过500KB,支持jpg/png/gif格式")]),a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(e){return t.adImageChange(e)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("从本地上传")])],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(e){return t.openImageLib()}}},[t._v("从图片选择器上传")])],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["backgroundImage",{initialValue:t.compdata.product_only.background_image_url}],expression:"[\n 'backgroundImage',\n {\n initialValue: compdata.product_only.background_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-divider")]:t._e()],2)],1)],1),a("manage-products",{ref:"productsModal",attrs:{secret:0===t.globalConfig.page_type?1:0,"global-config":t.globalConfig}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},lc=[],dc=a("7531"),uc=a.n(dc),pc=a("55fa"),mc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",t._l(t.product_results,(function(e,o){return a("li",{key:"p-"+o,staticClass:"c-selected-product"},[a("img",{staticClass:"c-selected-product-images",attrs:{alt:e.name,src:e.image_url,title:e.name},on:{error:function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),3===e.status?a("div",{staticClass:"no-stock"},[a("img",{attrs:{src:t.globalConfig.h5_out_of_stock_icon}})]):t._e()])})),0)},fc=[],hc=a("b047"),gc=a.n(hc),_c={props:{productIds:{type:Array,default:function(){return[]}},globalConfig:{type:Object,default:function(){}}},data:function(){return{websiteId:this.$route.params.website_id,product_results:[]}},watch:{productIds:{handler:function(t){if(t.length){var e=this,a=0===e.globalConfig.page_type?1:0;gc()((function(){l["b"].get("/api-cms/cms/product/list?website_id=".concat(e.websiteId,"&product_id=").concat(t.join(","),"&idSort=1&secret=").concat(a)).then((function(t){t.data.results?e.product_results=Object(c["a"])(t.data.results):e.product_results=[]}))}),300)()}else this.product_results=[]},immediate:!0}}},vc=_c,bc=(a("fc34"),Object(v["a"])(vc,mc,fc,!1,null,null,null)),yc=bc.exports;function wc(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Cc(t){for(var e=1;e6?a(i):e.length<1?a(o):a()},handleTabImgChange:function(t,e){"uploading"===t.file.status?(this.uploadDisabled=!0,e.moreImgError=!1):"done"===t.file.status?(e.is_show_more.show_more_img_url=t.file.response.data.src,e.moreImgError=!1,this.uploadDisabled=!1):(this.uploadDisabled=!1,e.moreImgError=!0,e.moreImgErrorText=t.file.response.message)},cateMoveUp:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t-1,0,JSON.parse(a))},cateMoveDown:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t+1,0,JSON.parse(a))},cateDelete:function(t){this.compdata.product_tab.tabs.splice(t,1)},adImageChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a||("done"===a&&200===o.status?(this.compdata.product_only.background_image_url=o.data.src,this.form.setFieldsValue({backgroundImage:o.data.src})):200!==o.status&&this.$message.error(o.message))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")},validatePathSelect:function(t){var e=t.tab,a=t.index;this.form.setFieldsValue(Object(s["a"])({},"morelink_".concat(this.compdata.uuid,"_").concat(a),e.is_show_more.show_more_img_link))},openImageLib:function(t){5!==this.compdata.tpl_type&&(this.currentTab=t),this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){5!==this.compdata.tpl_type?(this.currentTab.is_show_more.show_more_img_url=t,this.currentTab=null):this.compdata.product_only.background_image_url=t}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},watch:{"compdata.product_tab.tabs":{handler:function(t){var e=this;1!==this.compdata.display_type&&this.$nextTick((function(){t.forEach((function(t,a){1===t.set_type&&e.form.setFieldsValue(Object(s["a"])({},"productTabIds_".concat(e.compdata.uuid,"_").concat(a),t.product_ids.join(",")))}))}))},immediate:!0,deep:!0},"compdata.tpl_type":{handler:function(t){5===t&&(this.compdata.display_type=1)}},"compdata.product_only":{deep:!0,handler:function(){var t=this.findRelateMod();t&&(t.product_only.set_type=this.compdata.product_only.set_type,t.product_only.product_ids=this.compdata.product_only.product_ids,t.product_only.cate_id=this.compdata.product_only.product_cat,t.product_only.brand_id=this.compdata.product_only.brand_id,t.product_only.showNum=this.compdata.product_only.show_num)}},"compdata.product_tab":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){t.product_tab.showNum=this.compdata.product_tab.show_num;var e=[];this.compdata.product_tab.tabs.forEach((function(t){e.push({set_type:t.set_type,product_ids:t.product_ids,cate_id:t.product_cat,brand_id:t.brand_id,tab_name:t.tab_name,show_more:{is_show:t.is_show_more.status,image_url:t.is_show_more.show_more_img_url,image_link:t.is_show_more.show_more_img_link}})})),t.product_tab.tabs=e}}}},mounted:function(){var t=this;this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id};try{this.compdata.product_only.brand_id||this.$set(this.compdata.product_only,"brand_id",""),this.compdata.product_tab.tabs.forEach((function(e){e.brand_id||t.$set(e,"brand_id","")}))}catch(e){}}},Sc=xc,Ac=(a("734b"),Object(v["a"])(Sc,cc,lc,!1,null,null,null)),Tc=Ac.exports,Fc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.type,callback:function(e){t.$set(t.compdata,"type",e)},expression:"compdata.type"}},[a("a-select-option",{attrs:{value:1}},[t._v("低图")]),a("a-select-option",{attrs:{value:2}},[t._v("高图模板一")]),1===t.globalConfig.client||3===t.globalConfig.client||5===t.globalConfig.client?a("a-select-option",{attrs:{value:4}},[t._v("高图模板二")]):t._e(),a("a-select-option",{attrs:{value:3}},[t._v("高图(美妆时尚)")])],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加轮播"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("最多添加30张轮播,尺寸"+t._s(["750×340","750×560","750×920","750×800"][t.compdata.type-1])+"像素,大小不超过500KB,支持jpg/png/gif格式")])]),t._l(t.compdata.slides,(function(e,o){return a("div",{key:"slide-"+o,staticClass:"c-carousel-single-option"},[a("a-form-item",{staticStyle:{margin:"0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[e.image_url?a("img",{staticClass:"image-preview",attrs:{src:e.image_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.slideImageChange(a,e,o)}}},[e.image_url?a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地替换\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1):a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地上传\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),e.image_url?a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器替换")]):a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")]),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.slides.length-1,expression:"index !== compdata.slides.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.slides.length>1?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["carouselImage-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.slides[o].image_url}],expression:"[\n `carouselImage-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.slides[index].image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)]),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{staticStyle:{"margin-left":"13px","margin-right":"13px"},attrs:{label:"链接(必填)"}},[1===t.globalConfig.client?a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.image_link}],expression:"[\n `imglink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: slide.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setSlideLink(a,e)}}}):a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.image_link}],expression:"[\n `imglink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: slide.image_link\n }\n ]"}],attrs:{placeholder:"请按小程序路径规则输入"},on:{input:function(a){return t.setSlideLink(a,e)}}})],1):a("a-form-item",{staticStyle:{"margin-left":"13px","margin-right":"13px"},attrs:{label:"链接(必填)"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.image_link,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"image_link",a,{slide:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:t.pathSelectError(e)}],initialValue:e.image_link}],expression:"[\n `imglink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(slide)\n }\n ],\n initialValue: slide.image_link\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-left":"13px","margin-right":"13px"},attrs:{label:"生效时间(必填)"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm"},inputReadOnly:!0,defaultValue:t.initialDate(e),format:"YYYY-MM-DD HH:mm"},on:{ok:function(a){return t.confirmDate(e,o,a)},change:function(a){return t.clearDate(e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["SetDateTime-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择生效时间"}],initialValue:t.initialDate(e).join(",")}],expression:"[\n `SetDateTime-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择生效时间'\n }\n ],\n initialValue: initialDate(slide).join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),a("a-divider"),t.compdata.slides.length<30?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addCarousel}},[t._v("+ 添加轮播图")])],1):t._e(),a("a-form-item",{attrs:{label:"指示器"}},[a("a-radio-group",{model:{value:t.compdata.indicator_type,callback:function(e){t.$set(t.compdata,"indicator_type",e)},expression:"compdata.indicator_type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")])],1)],1)],2):t._e()],1)],1),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},Oc=[],jc={name:"CCarouselForm",mixins:[oc["a"]],props:{compdata:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:null}},data:function(){return{token:{},renderForm:!0,currentSlide:null}},computed:{websiteId:function(){return this.$route.params.website_id}},watch:{"compdata.type":function(t){switch(t){case 1:this.compdata.main_height=340;break;case 2:this.compdata.main_height=560;break;case 3:this.compdata.main_height=920;break;case 4:this.compdata.main_height=800;break;default:this.compdata.main_height=340}}},methods:{addCarousel:function(){var t={image_url:"",image_link:"",start_time:""};this.compdata.slides.push(t)},slideImageChange:function(t,e,a){var o=t.file,i=o.status,r=o.response;"uploading"===i?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid,"-").concat(a),!0):"done"===i&&r&&200===r.status?(e.image_url=r.data.src,this.form.setFieldsValue(Object(s["a"])({},"carouselImage-".concat(this.compdata.uuid,"-").concat(a),r.data.src)),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)]):r&&200!==r.status&&(this.$message.error(r.message),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)])},initialDate:function(t){return t.start_time&&t.end_time?[ri()(t.start_time),ri()(t.end_time)]:[]},confirmDate:function(t,e,a){this.form.setFieldsValue(Object(s["a"])({},"SetDateTime-".concat(this.compdata.uuid,"-").concat(e),[a[0].format("YYYY-MM-DD HH:mm:ss"),a[1].format("YYYY-MM-DD HH:mm:ss")].join(","))),t.start_time=a[0].format("YYYY-MM-DD HH:mm:ss"),t.end_time=a[1].format("YYYY-MM-DD HH:mm:ss")},clearDate:function(t,e){t.start_time="",t.end_time="",this.form.setFieldsValue(Object(s["a"])({},"SetDateTime-".concat(this.compdata.uuid,"-").concat(e),""))},formItemUp:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.slides.splice(t,1);e.compdata.slides.splice(t-1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-403}))}))},formItemDown:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.slides.splice(t,1);e.compdata.slides.splice(t+1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o+403}))}))},formItemDelete:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){e.compdata.slides.splice(t,1),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-403}))}))},handleSubmit:function(){var t=this,e=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,a){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;e.$message.error(i)}}))}))},setSlideLink:function(t,e){e.image_link=t.target.value},validatePathSelect:function(t){var e=t.slide,a=t.index;this.form.setFieldsValue(Object(s["a"])({},"imglink_".concat(this.compdata.uuid,"_").concat(a),e.image_link))},openImageLib:function(t){this.currentSlide=t,this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.currentSlide.image_url=t,this.currentSlide=null}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CCarouselForm"})},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},Ic=jc,Pc=(a("b451"),Object(v["a"])(Ic,Fc,Oc,!1,null,"3917d245",null)),Ec=Pc.exports,Mc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.type,callback:function(e){t.$set(t.compdata,"type",e)},expression:"compdata.type"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一张")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二张")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三张")]),a("a-select-option",{attrs:{value:4}},[t._v("一行四张")]),a("a-select-option",{attrs:{value:11}},[t._v("一行五张")]),a("a-select-option",{attrs:{value:5}},[t._v("一行一张通栏")]),a("a-select-option",{attrs:{value:6}},[t._v("一大二小")]),a("a-select-option",{attrs:{value:7}},[t._v("一大四小")]),a("a-select-option",{attrs:{value:8}},[t._v("大图滑动")]),a("a-select-option",{attrs:{value:9}},[t._v("小图滑动")]),1!==t.globalConfig.client&&5!==t.globalConfig.client?a("a-select-option",{attrs:{value:10}},[t._v("一行三张(美妆时尚)")]):t._e()],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加广告图"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v(t._s(t.adRules[t.compdata.type-1]))])]),t._l(t.compdata.ad_images,(function(e,o){return a("div",{key:"adimg-"+o,staticClass:"c-ads-single-option"},[e.image_url?a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[e.image_url?a("div",{staticClass:"image-uploader",staticStyle:{height:"auto",background:"#f4f6f8"}},[e.image_url?a("img",{staticClass:"image-preview",attrs:{src:e.image_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.adImageChange(a,e,o)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地替换\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器替换")]),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.ad_images.length-1,expression:"index !== compdata.ad_images.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.ad_images.length>1&&6!==t.compdata.type&&7!==t.compdata.type?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1):t._e(),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adImage-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.ad_images[o].image_url}],expression:"[\n `adImage-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.ad_images[index].image_url\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.adImageChange(a,e,o)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地上传\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")]),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.ad_images.length-1,expression:"index !== compdata.ad_images.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.ad_images.length>1&&6!==t.compdata.type&&7!==t.compdata.type?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adImage-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.ad_images[o].image_url}],expression:"[\n `adImage-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.ad_images[index].image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{attrs:{label:"链接"}},[1===t.globalConfig.client?a("a-input",{attrs:{placeholder:"https://"},model:{value:t.compdata.ad_images[o].image_link,callback:function(e){t.$set(t.compdata.ad_images[o],"image_link",e)},expression:"compdata.ad_images[index].image_link"}}):a("a-input",{attrs:{placeholder:"请按小程序路径规则输入"},model:{value:t.compdata.ad_images[o].image_link,callback:function(e){t.$set(t.compdata.ad_images[o],"image_link",e)},expression:"compdata.ad_images[index].image_link"}})],1):a("a-form-item",{attrs:{label:"链接"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.image_link,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"image_link",a)}}})],1),1===t.globalConfig.client?a("a-form-item",{attrs:{label:"跳转楼层"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["LayerSelector-"+t.compdata.uuid+"-"+o,{initialValue:t.getRemark(e)}],expression:"[\n `LayerSelector-${compdata.uuid}-${index}`,\n {\n initialValue: getRemark(ad)\n }\n ]"}],attrs:{placeholder:"请选择",open:!1},nativeOn:{click:function(a){return t.selectLayer(e,o)}}})],1):t._e()],1)})),6!==t.compdata.type&&7!==t.compdata.type?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addAd}},[t._v("+ 添加广告图")])],1):t._e(),a("a-divider"),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),10===t.compdata.type?[a("a-divider"),a("a-form-item",{attrs:{label:"广告图投影"}},[a("a-checkbox",{model:{value:t.compdata.shadow.is_show,callback:function(e){t.$set(t.compdata.shadow,"is_show",e)},expression:"compdata.shadow.is_show"}},[t._v("显示")])],1)]:t._e(),[a("a-divider"),a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)]],2):t._e()],1)],1),a("stair-select",{attrs:{visible:t.modalVisible,ad:t.selectedAd},on:{close:t.closeModal,select:t.selectStair}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},$c=[],Dc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"选择跳转楼层",destroyOnClose:!0,visible:t.visible,width:800},on:{ok:t.selectLayer,cancel:t.cancel}},[a("a-table",{attrs:{"table-layout":"fixed","data-source":t.tableData,columns:t.columns,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:!1,scroll:{y:270}}})],1)},Nc=[],Rc=[{dataIndex:"idx",title:"楼层序号",width:"45%"},{dataIndex:"remark",title:"楼层名称",width:"45%"}],Lc={name:"StairSelect",props:{visible:{type:Boolean,default:!1},ad:{type:Object,default:null}},data:function(){return{tableData:[],columns:Rc,selectedRowKeys:[]}},inject:["eleArrSet"],watch:{visible:function(t){t&&this.formTable()},tableData:function(t){this.ad.jump_anchor?this.selectedRowKeys=[this.ad.jump_anchor.replace("#AzoyaCMSLayer-","")-0]:this.ad.jump_to?this.selectedRowKeys=[this.ad.jump_to.replace("#AzoyaCMSLayer-","")-0]:t.length&&(this.selectedRowKeys=[t[0].key])}},methods:{selectLayer:function(){this.$emit("select",this.selectedRowKeys[0]),this.$emit("close")},cancel:function(){this.$emit("close")},formTable:function(){var t=this.eleArrSet(),e=[];t.forEach((function(t,a){var o={key:t.uuid,idx:a+1,remark:t.remark};e.push(o)})),this.tableData=[].concat(e)},onSelectChange:function(t){this.selectedRowKeys=t}}},Bc=Lc,Vc=Object(v["a"])(Bc,Dc,Nc,!1,null,null,null),zc=Vc.exports;function qc(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Uc(t){for(var e=1;e3)this.compdata.ad_images.splice(3);else for(var a=this.compdata.ad_images.length,o=0;o<3-a;o++)this.compdata.ad_images.push(Uc({},e));if(7===t)if(this.compdata.ad_images.length>5)this.compdata.ad_images.splice(5);else for(var i=this.compdata.ad_images.length,r=0;r<5-i;r++)this.compdata.ad_images.push(Uc({},e))}}},components:{"sketch-picker":p["Sketch"],"stair-select":zc},inject:["eleArrSet"],methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},adImageChange:function(t,e,a){var o=t.file,i=o.status,r=o.response;"uploading"===i?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid,"-").concat(a),!0):"done"===i&&200===r.status?(e.image_url=r.data.src,this.form.setFieldsValue(Object(s["a"])({},"adImage-".concat(a),r.data.src)),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)]):200!==r.status&&(this.$message.error(r.message),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)])},addAd:function(){var t={image_url:"",image_link:"",jump_anchor:""};this.compdata.ad_images.push(t)},formItemUp:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.ad_images.splice(t,1);e.compdata.ad_images.splice(t-1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-232}))}))},formItemDown:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.ad_images.splice(t,1);e.compdata.ad_images.splice(t+1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o+232}))}))},formItemDelete:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.ad_images.splice(t,1),e.renderForm=!0}))},selectLayer:function(t,e){this.selectedAd=t,this.selectedAnchorIndex=e,this.modalVisible=!0},closeModal:function(){this.modalVisible=!1},selectStair:function(t){var e=this.eleArrSet(),a=e.filter((function(e){return e.uuid===t})),o=a[0]["remark"];this.selectedAd.jump_anchor="#AzoyaCMSLayer-".concat(t),this.form.setFieldsValue(Object(s["a"])({},"LayerSelector-".concat(this.compdata.uuid,"-").concat(this.selectedAnchorIndex),o))},getRemark:function(t){var e=t.jump_anchor.replace("#AzoyaCMSLayer-","")-0,a=this.eleArrSet(),o=a.filter((function(t){return t.uuid===e}));if(o.length)return o[0].remark;t.jump_anchor=""},handleSubmit:function(){var t=this,e=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,a){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;e.$message.error(i)}}))}))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")},openImageLib:function(t){this.currentAd=t,this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.currentAd.image_url=t,this.currentAd=null}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},Jc=Yc,Kc=(a("3764"),Object(v["a"])(Jc,Mc,$c,!1,null,"196a0f85",null)),Wc=Kc.exports,Zc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",[a("p",[t._v("同一个页面的空白高度建议保持一致")])]),a("a-form-item",{attrs:{label:"空白高度"}},[a("a-row",[a("a-col",{attrs:{span:16}},[a("a-slider",{attrs:{min:1,max:60},model:{value:t.compdata.blank_height,callback:function(e){t.$set(t.compdata,"blank_height",e)},expression:"compdata.blank_height"}})],1),a("a-col",{attrs:{span:4}},[a("a-input-number",{staticStyle:{"margin-left":"8px"},attrs:{min:1,max:60},model:{value:t.compdata.blank_height,callback:function(e){t.$set(t.compdata,"blank_height",e)},expression:"compdata.blank_height"}})],1)],1)],1),a("a-form-item",{attrs:{label:"空白颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:t.updateTextColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],1)],1)],1)],1)},Qc=[],Xc={props:{compdata:{type:Object,default:function(){return{}}}},components:{"sketch-picker":p["Sketch"]},watch:{"compdata.blank_height":function(t){this.compdata.blank_height=t}},data:function(){return{form:this.$form.createForm(this,{name:"CBlankspaceForm"})}},methods:{handleSubmit:function(t){t&&t.preventDefault()},updateTextColor:function(t){this.compdata.background_color=t.hex}}},tl=Xc,el=Object(v["a"])(tl,Zc,Qc,!1,null,null,null),al=el.exports,ol=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加导航"}}),t._l(t.compdata.anchors,(function(e,o){return a("div",{key:"anchor-"+o,staticClass:"c-anchor-wrap"},[a("a-form-item",{attrs:{label:"跳转楼层(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["anchor-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择跳转楼层"}],initialValue:t.getRemark(e)}],expression:"[\n `anchor-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择跳转楼层'\n }\n ],\n initialValue: getRemark(anchor)\n }\n ]"}],attrs:{type:"hidden"}}),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["LayerSelector-"+t.compdata.uuid+"-"+o,{initialValue:t.getRemark(e)}],expression:"[\n `LayerSelector-${compdata.uuid}-${index}`,\n {\n initialValue: getRemark(anchor)\n }\n ]"}],attrs:{placeholder:"请选择",open:!1},nativeOn:{click:function(a){return t.selectLayer(e,o)}}})],1),a("a-form-item",{attrs:{label:"导航名称(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["layer_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入导航名称"},{validator:t.checkAnchorNameLen}],initialValue:t.getRemark(e)}],expression:"[\n `layer_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入导航名称'\n },\n {\n validator: checkAnchorNameLen\n }\n ],\n // initialValue: compdata.remark\n initialValue: getRemark(anchor)\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.setAnchorName(a,e)}}})],1),a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["RangePicker-"+t.compdata.uuid+"-"+o,{initialValue:t.initialBlockTimer(e)}],expression:"[\n `RangePicker-${compdata.uuid}-${index}`,\n {\n initialValue: initialBlockTimer(anchor)\n }\n ]"}],staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#999"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.anchors.length-1,expression:"index !== compdata.anchors.length - 1"}],staticStyle:{color:"#999"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.anchors.length>1?a("a-icon",{staticStyle:{color:"#999"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addAnchor}},[t._v("+ 添加导航")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"导航样式"}},[a("a-radio-group",{model:{value:t.compdata.type,callback:function(e){t.$set(t.compdata,"type",e)},expression:"compdata.type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:3}},[t._v("样式二")]),a("a-radio",{attrs:{value:4}},[t._v("样式三")])],1)],1),a("a-form-item",{attrs:{label:"导航选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.selected_color},on:{input:function(e){return t.updateColor(e,t.compdata)}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.selected_color,callback:function(e){t.$set(t.compdata,"selected_color",e)},expression:"compdata.selected_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.selected_color}})])])],2)],1)],2)],1)],1),a("stair-select",{attrs:{visible:t.modalVisible,ad:t.selectedAnchor},on:{close:t.closeModal,select:t.selectStair}})],1)},il=[],rl={props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"],"stair-select":zc},data:function(){return{form:this.$form.createForm(this,{name:"CAnchorForm"}),modalVisible:!1,selectedAnchor:null,selectedAnchorIndex:-1,currentRemark:""}},inject:["eleArrSet"],methods:{selectLayer:function(t,e){this.selectedAnchor=t,this.selectedAnchorIndex=e,this.modalVisible=!0},closeModal:function(){this.modalVisible=!1},selectStair:function(t){var e,a=this,o=this.eleArrSet(),i=o.filter((function(e){return e.uuid===t})),r=i[0]["remark"],n=JSON.parse(JSON.stringify(i[0]["block_timer"]));this.selectedAnchor.jump_to="#AzoyaCMSLayer-".concat(t),this.selectedAnchor.name=r,this.form.setFieldsValue((e={},Object(s["a"])(e,"anchor-".concat(this.compdata.uuid,"-").concat(this.selectedAnchorIndex),"#AzoyaCMSLayer-".concat(t)),Object(s["a"])(e,"LayerSelector-".concat(this.compdata.uuid,"-").concat(this.selectedAnchorIndex),r),e)),n?(this.compdata.anchors[this.selectedAnchorIndex].block_timer=n,this.$nextTick((function(){n.start_time&&n.end_time?a.form.setFieldsValue(Object(s["a"])({},"RangePicker-".concat(a.compdata.uuid,"-").concat(a.selectedAnchorIndex),[ri()(n.start_time),ri()(n.end_time)])):a.form.setFieldsValue(Object(s["a"])({},"RangePicker-".concat(a.compdata.uuid,"-").concat(a.selectedAnchorIndex),[]))}))):this.form.setFieldsValue(Object(s["a"])({},"RangePicker-".concat(this.compdata.uuid,"-").concat(this.selectedAnchorIndex),[]))},getRemark:function(t){var e=t.jump_to.replace("#AzoyaCMSLayer-","")-0,a=this.eleArrSet(),o=a.filter((function(t){return t.uuid===e}));if(o.length)return this.currentRemark=o[0].remark,o[0].remark;t.jump_to=""},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},checkAnchorNameLen:function(t,e,a){var o="",i="长度不能超过 6 个字";e.length>6?a(i):(e.length<1&&a(o),a())},setAnchorName:function(t,e){e.name=t.target.value},updateColor:function(t,e){e.selected_color=t.hex},addAnchor:function(){var t={name:"",jump_to:"",block_timer:{start_time:"",end_time:""}};this.compdata.anchors.push(t)},formItemUp:function(t){var e=this;this.$nextTick((function(){var a=e.compdata.anchors.splice(t,1);e.compdata.anchors.splice(t-1,0,a[0])}))},formItemDown:function(t){var e=this;this.$nextTick((function(){var a=e.compdata.anchors.splice(t,1);e.compdata.anchors.splice(t+1,0,a[0])}))},formItemDelete:function(t){var e=this;this.$nextTick((function(){e.compdata.anchors.splice(t,1)}))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")}},mounted:function(){"#f5f5f5"===this.compdata.selected_color&&(this.compdata.selected_color=this.globalConfig.h5_promotion_color)}},nl=rl,sl=(a("3a2b"),Object(v["a"])(nl,ol,il,!1,null,null,null)),cl=sl.exports,ll=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.tpl_type,callback:function(e){t.$set(t.compdata,"tpl_type",e)},expression:"compdata.tpl_type"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一张")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二张")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三张")]),a("a-select-option",{attrs:{value:5}},[t._v("一行一张通栏")])],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加优惠券"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v(t._s(t.couponRules[t.compdata.tpl_type-1]))])]),t._l(t.compdata.coupons,(function(e,o){return a("div",{key:"coupon-"+t.compdata.uuid+"-"+o,staticClass:"c-coupon-single-option"},[e.img_url?a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[e.img_url?a("div",{staticClass:"image-uploader",staticStyle:{height:"auto",background:"#f4f6f8"}},[e.img_url?a("img",{staticClass:"image-preview",attrs:{src:e.img_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.couponImageChange(a,e,o)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地替换\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器替换")]),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.coupons.length-1,expression:"index !== compdata.coupons.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.coupons.length>1?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1):t._e()]):a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.couponImageChange(a,e,o)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地上传\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+o]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")]),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.coupons.length-1,expression:"index !== compdata.coupons.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.coupons.length>1?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["couponImage-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.coupons[o].img_url}],expression:"[\n `couponImage-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.coupons[index].img_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"优惠券(必填)"}},[e.rule_id?a("div",{staticClass:"ant-input coupon-desc"},[t._v("\n "+t._s(e.coupon_desc)+"\n "),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:function(a){return t.editCoupon(e,o)}}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:function(a){return t.deleteCoupon(e,o)}}})],1):a("a-button",{attrs:{block:""},on:{click:function(a){return t.selectCoupon(e,o)}}},[t._v("选择优惠券")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["couponCode-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择优惠券"}],initialValue:e.rule_id}],expression:"[\n `couponCode-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择优惠券'\n }\n ],\n initialValue: coupon.rule_id\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addCoupon}},[t._v("+ 添加优惠券")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),[a("a-divider"),a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)]],2)],1)],1),a("select-coupon",{ref:"selectCoupon",on:{triggerSelectCoupon:t.triggerSelectCoupon}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},dl=[],ul=a("2af9"),pl=a("cbfe"),ml=a("ed3b"),fl={mixins:[ac],props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:function(){}}},components:{"sketch-picker":p["Sketch"],"select-coupon":ul["f"]},data:function(){return{form:this.$form.createForm(this,{name:"CCouponForm"}),token:null,modalVisible:!1,currentCoupon:null,currentCouponIndex:-1,couponRules:["参考尺寸710x200像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","参考尺寸355x220像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","参考尺寸236x300像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","","参考尺寸750x340像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"],currentUploadImageCoupon:null}},computed:{websiteId:function(){return this.$route.params.website_id}},watch:{"compdata.coupons":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){var e=[],a=t.coupons;this.compdata.coupons.forEach((function(t,o){e.push({image_url:a[o]?a[o].image_url:"",coupon_id:t.rule_id,coupon_desc:t.coupon_desc})})),t.coupons=e}}}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},couponImageChange:function(t,e,a){try{var o=t.file,i=o.status,r=o.response;"uploading"===i?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid,"-").concat(a),!0):"done"===i&&200===r.status?(e.img_url=r.data.src,this.form.setFieldsValue(Object(s["a"])({},"couponImage-".concat(this.compdata.uuid,"-").concat(a),r.data.src)),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)]):200!==r.status&&(this.$message.error(r.message),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)])}catch(n){}},addCoupon:function(){var t={img_url:"",rule_id:"",coupon_desc:""};this.compdata.coupons.push(t)},formItemUp:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.$nextTick((function(){var i=e.compdata.coupons.splice(t,1);e.compdata.coupons.splice(t-1,0,i[0]),e.$nextTick((function(){a.scrollTop=o-323}))}))},formItemDown:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.$nextTick((function(){var i=e.compdata.coupons.splice(t,1);e.compdata.coupons.splice(t+1,0,i[0]),e.$nextTick((function(){a.scrollTop=o+323}))}))},formItemDelete:function(t){var e=this;this.$nextTick((function(){e.compdata.coupons.splice(t,1)}))},selectCoupon:function(t,e){this.$refs.selectCoupon.readyShow(),this.currentCoupon=t,this.currentCouponIndex=e},triggerSelectCoupon:function(t){this.currentCoupon.rule_id=t.id,this.getCouponDetail(this.currentCoupon.rule_id),this.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(this.compdata.uuid,"-").concat(this.currentCouponIndex),t.id))},getCouponDetail:function(t){var e=this;Object(pl["s"])({id:t}).then((function(t){var a=t.data;e.currentCoupon.coupon_desc=a.title}))},editCoupon:function(t,e){this.selectCoupon(t,e)},deleteCoupon:function(t,e){var a=this;ml["a"].confirm({content:"确定删除吗?",onOk:function(){t.rule_id="",t.coupon_desc="",a.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(a.compdata.uuid,"-").concat(a.currentCouponIndex),""))}})},close:function(){this.modalVisible=!1},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")},openImageLib:function(t){this.currentUploadImageCoupon=t,this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.currentUploadImageCoupon.img_url=t,this.currentUploadImageCoupon=null}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},hl=fl,gl=(a("c33a"),Object(v["a"])(hl,ll,dl,!1,null,null,null)),_l=gl.exports,vl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"form-wrap"}},[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.tpl_type,callback:function(e){t.$set(t.compdata,"tpl_type",e)},expression:"compdata.tpl_type"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一个")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二个")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三个")])],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加场次"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("若场次名称有填内容时,为了保证前后台显示的统一性,建议所有场次的场次名称都填内容")])]),t._l(t.compdata.rounds,(function(e,o){return a("div",{key:"round-"+o,staticClass:"c-flashsale-single-option"},[t.compdata.rounds.length>1?a("div",{staticClass:"ctrl-area"},[a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.del(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),a("a-form-item",{attrs:{label:"场次名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["RoundName-"+o,{rules:[{max:6,message:"长度不超过6个字"}],initialValue:e.name}],expression:"[\n `RoundName-${index}`,\n {\n rules: [\n {\n max: 6,\n message: '长度不超过6个字'\n }\n ],\n initialValue: round.name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.setName(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"选择限时抢活动"},slot:"label"},[t._v("选择限时抢活动"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择限时抢活动"}],initialValue:e.async_name||void 0}],expression:"[\n `round-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择限时抢活动'\n }\n ],\n initialValue: round.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e,o)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id?a("a-form-item",{attrs:{label:"活动时间(必填)"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `round-time-${compdata.uuid}-${index}`,\n {\n initialValue: round.async_start + '~' + round.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加商品(必填)"}},[a("div",{staticClass:"products-wrap"},[a("products-image-list",{attrs:{productIds:e.product_ids,globalConfig:t.globalConfig}}),a("ul",[a("li",{staticClass:"icon-product-add",on:{click:function(a){return t.addProducts(e)}}},[a("a-icon",{attrs:{type:"plus"}})],1)]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["RoundOfProducts-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请添加商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `RoundOfProducts-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: round.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)]),e.product_ids.length?a("a-button",{staticClass:"edit-products",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")]):t._e()],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addRound}},[t._v("+ 添加场次")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"Tab 背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.tab_bg_color},on:{input:function(e){return t.updateColor(e,"compdata.tab_bg_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.tab_bg_color,callback:function(e){t.$set(t.compdata,"tab_bg_color",e)},expression:"compdata.tab_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.tab_bg_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),a("a-form-item",{attrs:{label:"抢购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1)],2):t._e()],1)],1),a("manage-products",{ref:"productsModal",attrs:{init:t.currentRuleProducts,"hide-input":!0,"global-config":t.globalConfig}})],1)},bl=[];function yl(t,e){function a(){Object(l["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{website_id:t.websiteId,promotion_type:2,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&Gc===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at].join("<-depart->"),text:t.title})})),e(i)}}))}Hc&&(clearTimeout(Hc),Hc=null),Gc=t.title,Hc=setTimeout(a,150)}var wl={mixins:[ac],props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"],"manage-products":pc["a"],"products-image-list":yc},data:function(){return{renderForm:!0,promotionList:[],form:this.$form.createForm(this,{name:"CFlashsaleForm"}),productsList:{},currentRuleProducts:""}},watch:{"compdata.rounds":{handler:function(t){var e=this;yl({websiteId:this.$route.params.website_id},(function(t){return e.promotionList=t}));var a=this.findRelateMod();if(a){var o=[];this.compdata.rounds.forEach((function(t){o.push({name:t.name,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,product_ids:t.product_ids,start_time:t.start_time,end_time:t.end_time})})),a.rounds=o}this.$nextTick((function(){t.forEach((function(t,a){e.form.setFieldsValue(Object(s["a"])({},"RoundOfProducts-".concat(e.compdata.uuid,"-").concat(a),t.product_ids.join(",")))}))}))},immediate:!0,deep:!0}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},addRound:function(){var t={name:"",async_name:"",async_id:"",async_start:"",async_end:"",product_ids:[],start_time:"",end_time:""};this.compdata.rounds.push(t)},getProductListByRule:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["b"])({url:"/api-cms/cms/promotion/product-list",method:"get",params:{rule_id:e,promotion_type:2}});case 2:a=t.sent,o=a.data,o.rows&&(i=[],o.rows.forEach((function(t){i.push({product_id:t.product_id,sales_price:t.sales_price,remain_inventory:t.remain_inventory})})),this.productsList[e]=i);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),del:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.rounds.splice(t,1),e.resetFieldsError(),e.renderForm=!0}))},setName:function(t,e){e.name=t.target.value},addProducts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.async_id,a){t.next=4;break}return this.$message.error("请先选择限时抢活动"),t.abrupt("return");case 4:if(o=this.productsList[a],i=[],o){t.next=10;break}return t.next=9,this.getProductListByRule(a);case 9:o=this.productsList[a];case 10:o.forEach((function(t){i.push(t.product_id)})),this.currentRuleProducts=i.join(","),this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.chooseVisible=!0;case 14:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),editProductIds:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.async_id,o=this.productsList[a],i=[],o){t.next=7;break}return t.next=6,this.getProductListByRule(a);case 6:o=this.productsList[a];case 7:o.forEach((function(t){i.push(t.product_id)})),this.currentRuleProducts=i.join(","),this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.selectedProducts=Object(c["a"])(e.product_ids),this.$refs.productsModal.editVisible=!0;case 12:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleSubmit:function(){for(var t=this,e=this.compdata.rounds,a=1;a");e.async_id=i[1],e.async_name=i[0],e.async_start=i[2],e.async_end=i[3],e.product_ids=[],this.form.setFieldsValue(Object(s["a"])({},"RoundOfProducts-".concat(this.compdata.uuid,"-").concat(a),"")),this.getProductListByRule(i[1]),yl({websiteId:this.websiteId},(function(t){return o.promotionList=t}))},resetFieldsError:function(){for(var t=0;t isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n // {\n // validator: (rule, value, cb) => Number(value) > 500 ? cb('展示数量不能超过500') : cb()\n // },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata.product_only)}}})],1),a("a-divider"),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{model:{value:t.compdata.product_only.is_show_discount,callback:function(e){t.$set(t.compdata.product_only,"is_show_discount",e)},expression:"compdata.product_only.is_show_discount"}},[t._v("显示")])],1),5!==t.compdata.tpl_type?a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"加购按钮"}},[a("a-checkbox",{model:{value:t.compdata.product_only.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"status",e)},expression:"compdata.product_only.is_show_btn.status"}},[t._v("显示")])],1):t._e(),t.compdata.product_only.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_only.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"btn_color",e)},expression:"compdata.product_only.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.background_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_only.background_color,callback:function(e){t.$set(t.compdata.product_only,"background_color",e)},expression:"compdata.product_only.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.background_color}})])])],2)],1)],1)],1)],1)],1)},Wl=[];function Zl(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Ql(t){for(var e=1;e6?a(i):e.length<1?a(o):a()},handleTabImgChange:function(t,e){"uploading"===t.file.status?(this.uploadDisabled=!0,e.moreImgError=!1):"done"===t.file.status?(e.is_show_more.show_more_img_url=t.file.response.data.src,e.moreImgError=!1,this.uploadDisabled=!1):(this.uploadDisabled=!1,e.moreImgError=!0,e.moreImgErrorText=t.file.response.message)},cateMoveUp:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t-1,0,JSON.parse(a))},cateMoveDown:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t+1,0,JSON.parse(a))},cateDelete:function(t){this.compdata.product_tab.tabs.splice(t,1)},adImageChange:function(t){var e=t.file,a=e.status,o=e.response;"done"===a&&200===o.status?(this.compdata.product_only.background_image_url=o.data.src,this.form.setFieldsValue({backgroundImage:o.data.src})):200!==o.status&&this.$message.error(o.message)}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},watch:{"compdata.product_tab.tabs":{handler:function(t){var e=this;t.forEach((function(t,a){1===t.set_type&&e.form.setFieldsValue(Object(s["a"])({},"productTabIds_".concat(a),t.product_ids.join(",")))}))},immediate:!0,deep:!0},"compdata.tpl_type":{handler:function(t){5===t&&(this.compdata.display_type=1)}}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},ed=td,ad=(a("1e04"),Object(v["a"])(ed,Kl,Wl,!1,null,null,null)),od=ad.exports,id=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form,selfUpdate:!0},on:{submit:t.handleSubmit}},[a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加公告"}},[a("p",{staticStyle:{"margin-bottom":"0",color:"rgba(0, 0, 0, .4)"}},[t._v("最多添加10条公告")])]),t._l(t.compdata.notices,(function(e,o){return a("div",{key:"notice-"+t.compdata.uuid+"-"+o,staticClass:"c-single-notice-wrap"},[a("a-form-item",{attrs:{label:"公告内容(必填)"}},[a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["content-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入公告内容"}],initialValue:e.content}],expression:"[\n `content-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入公告内容'\n }\n ],\n initialValue: notice.content\n }\n ]"}],attrs:{placeholder:"请输入"},on:{change:function(a){return t.inputContent(a,e)}}})],1),a("a-form-item",{attrs:{label:"跳转类型(必填)"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["jumptype-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择跳转类型"}],initialValue:e.click_type}],expression:"[\n `jumptype-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择跳转类型'\n }\n ],\n initialValue: notice.click_type\n }\n ]"}],attrs:{placeholder:"请选择"},on:{change:function(a){return t.handleClickTypeChange(e,a)}}},[a("a-select-option",{attrs:{value:0}},[t._v("无跳转")]),a("a-select-option",{attrs:{value:1}},[t._v("弹窗")]),a("a-select-option",{attrs:{value:2}},[t._v("链接")])],1)],1),2===e.click_type?a("div",[1===t.globalConfig.client?a("a-form-item",{attrs:{label:"链接(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.link_url}],expression:"[\n `link-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: notice.link_url\n }\n ]"}],attrs:{placeholder:t.linkMap[t.globalConfig.client]},on:{input:function(a){return t.setLink(a,e)}}})],1):a("a-form-item",{attrs:{label:"链接(必填)"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.link_url,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"link_url",a,{notice:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["link-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:t.pathSelectError(e)}],initialValue:e.link_url}],expression:"[\n `link-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(notice)\n }\n ],\n initialValue: notice.link_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"rgba(0,0,0,.85)"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.compdata.notices.length-1,expression:"index !== compdata.notices.length - 1"}],staticStyle:{color:"rgba(0,0,0,.85)"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(o)}}}),t.compdata.notices.length>1?a("a-icon",{staticStyle:{color:"rgba(0,0,0,.85)"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(o)}}}):t._e()],1)],1)})),t.compdata.notices.length<10?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addNotice}},[t._v("+ 添加公告")])],1):t._e(),a("a-divider"),a("a-form-item",{attrs:{label:"公告图标"}},[a("div",{staticClass:"icon-uploader"},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(e){return t.noticeIconChange(e,t.compdata)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.notice_icon_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.notice_icon_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1)],1),a("p",{staticStyle:{"margin-bottom":"0",color:"rgba(0, 0, 0, .4)"}},[t._v("参考尺寸48x48像素,高度固定,宽度不超过96像素。大小不超过50KB,支持jpg/png/gif格式")])]),a("a-form-item",{attrs:{label:"文字颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.notice_text_color},on:{input:function(e){return t.updateColor(e,"compdata.notice_text_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.notice_text_color,callback:function(e){t.$set(t.compdata,"notice_text_color",e)},expression:"compdata.notice_text_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.notice_text_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],2):t._e()],1),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},rd=[],nd={1:"请输入链接",3:"请输入小程序路径",4:"请输入小程序路径",5:"请输入APP路径"},sd={mixins:[oc["a"]],props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"]},data:function(){return{form:this.$form.createForm(this,{name:"CNoticeForm"}),renderForm:!0,token:{},linkMap:nd}},computed:{websiteId:function(){return this.$route.params.website_id}},methods:{handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},handleClickTypeChange:function(t,e){t.click_type=e},addNotice:function(){var t={content:"",click_type:1,link_url:""};this.compdata.notices.push(t)},formItemUp:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.notices.splice(t,1);e.compdata.notices.splice(t-1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-296}))}))},formItemDown:function(t){var e=this,a=document.getElementById("props-form"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.notices.splice(t,1);e.compdata.notices.splice(t+1,0,i[0]),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o+296}))}))},formItemDelete:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.notices.splice(t,1),e.renderForm=!0}))},inputContent:function(t,e){e.content=t.target.value},noticeIconChange:function(t,e){var a=t.file,o=a.status,i=a.response;"done"===o&&200===i.status?e.notice_icon_url=i.data.src:200!==i.status&&this.$message.error(i.message)},deleteIcon:function(){this.compdata.notice_icon_url=""},updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},setLink:function(t,e){e.link_url=t.target.value},validatePathSelect:function(t){var e=t.notice,a=t.index;this.form.setFieldsValue(Object(s["a"])({},"link-".concat(this.compdata.uuid,"-").concat(a),e.link_url))},openImageLib:function(){this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.compdata.notice_icon_url=t}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},cd=sd,ld=(a("df65"),Object(v["a"])(cd,id,rd,!1,null,"486ac40f",null)),dd=ld.exports,ud=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"回到顶部图标"}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.backTopIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.icon_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.icon_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0"}},[t._v("参考尺寸80x80像素,宽度固定,高度不超过120像素,大小不超过50KB,支持jpg/png/gif格式")])],1)],1)],1)],1),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},pd=[],md={props:{compdata:{type:Object,default:function(){return{}}}},data:function(){return{form:this.$form.createForm(this,{name:"CBackTopForm"}),token:{}}},computed:{websiteId:function(){return this.$route.params.website_id}},methods:{backTopIconChange:function(t){var e=t.file,a=e.status,o=e.response;"done"===a&&200===o.status?this.compdata.icon_url=o.data.src:200!==o.status&&this.$message.error(o.message)},deleteIcon:function(){this.compdata.icon_url=""},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},openImageLib:function(){this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.compdata.icon_url=t}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},fd=md,hd=(a("18f5"),Object(v["a"])(fd,ud,pd,!1,null,null,null)),gd=hd.exports,_d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"添加浮标(必填)",required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.floatIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.image_url?[a("img",{staticClass:"backtop-icon",attrs:{src:t.compdata.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0"}},[t._v("参考尺寸100x120像素,宽度固定,高度不超过240像素,大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["floatAdsImage-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `floatAdsImage-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{attrs:{label:"链接(必填)",required:!0}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+t.compdata.uuid,{rules:[{required:!0,message:"请输入链接"}],initialValue:t.compdata.image_link}],expression:"[\n `imglink_${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: compdata.image_link\n }\n ]"}],attrs:{placeholder:t.placeholder[t.globalConfig.client]},on:{input:function(e){return t.setLink(e)}}})],1):a("a-form-item",{attrs:{label:"链接(必填)",required:!0}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":t.compdata.image_link,"link-desc":t.compdata.link_desc,"link-type":t.compdata.link_type},on:{changeLink:function(e){return t.updateLinkTypeDesc(t.compdata,"image_link",e)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["floatAds-link-"+t.compdata.uuid,{rules:[{required:!0,message:t.pathSelectError(t.compdata)}],initialValue:t.compdata.image_link}],expression:"[\n `floatAds-link-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(compdata)\n }\n ],\n initialValue: compdata.image_link\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"生效时间(必填)"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm"},inputReadOnly:!0,defaultValue:t.initialDate(t.compdata),format:"YYYY-MM-DD HH:mm"},on:{ok:function(e){return t.confirmDate(t.compdata,e)},change:function(e){return t.clearDate(t.compdata,e)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["SetDateTime-"+t.compdata.uuid,{rules:[{required:!0,message:"请选择生效时间"}],initialValue:t.initialDate(t.compdata).join(",")}],expression:"[\n `SetDateTime-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请选择生效时间'\n }\n ],\n initialValue: initialDate(compdata).join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)],1)],1),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},vd=[],bd={mixins:[oc["a"]],props:{compdata:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){}}},data:function(){return{form:this.$form.createForm(this,{name:"CFloatAdsForm"}),token:{},placeholder:{1:"https://",3:"请按微信小程序的路径规则填写",4:"请按小程序的路径规则填写",5:"请按App的路径规则填写"}}},computed:{websiteId:function(){return this.$route.params.website_id}},methods:{floatIconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid),!0):"done"===a&&o&&200===o.status?(this.compdata.image_url=o.data.src,this.form.setFieldsValue(Object(s["a"])({},"floatAdsImage-".concat(this.compdata.uuid),o.data.src)),delete this.compdata["uploading-".concat(this.compdata.uuid)]):o&&200!==o.status&&(this.$message.error(o.message),delete this.compdata["uploading-".concat(this.compdata.uuid)])},deleteIcon:function(){this.compdata.image_url=""},setLink:function(t){this.compdata.image_link=t.target.value},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},initialDate:function(t){return t.start_time&&t.end_time?[ri()(t.start_time),ri()(t.end_time)]:[]},confirmDate:function(t,e){this.form.setFieldsValue(Object(s["a"])({},"SetDateTime-".concat(this.compdata.uuid),[e[0].format("YYYY-MM-DD HH:mm:ss"),e[1].format("YYYY-MM-DD HH:mm:ss")].join(","))),t.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearDate:function(t){t.start_time="",t.end_time="",this.form.setFieldsValue(Object(s["a"])({},"SetDateTime-".concat(this.compdata.uuid),""))},validatePathSelect:function(){this.form.setFieldsValue(Object(s["a"])({},"floatAds-link-".concat(this.compdata.uuid),this.compdata.image_link))},openImageLib:function(){this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.compdata.image_url=t}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},yd=bd,wd=(a("164fb"),Object(v["a"])(yd,_d,vd,!1,null,null,null)),Cd=wd.exports,kd=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),a("a-divider",{staticStyle:{margin:"24px 0"}}),a("wang-editor",{ref:"WangEditor",attrs:{domId:"RichTextCMS",excludes:["redo"]},on:{change:t.handleContentChange}}),a("div",{staticClass:"text-static"},[t._v(t._s(t.textLen)+"/10000")]),a("a-form-item",[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rich-text-"+t.compdata.uuid,{rules:[{required:!0,message:"请输入内容"}],initialValue:t.compdata.pureText}],expression:"[\n `rich-text-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请输入内容'\n }\n ],\n initialValue: compdata.pureText\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)],1)],1)},xd=[],Sd=a("a817"),Ad={mixins:[ac],props:{compdata:{type:Object,default:function(){}}},components:{"sketch-picker":p["Sketch"],WangEditor:Sd["a"]},computed:{textLen:function(){return this.compdata.pureText?this.compdata.pureText.length:0}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},handleContentChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Object(r["a"])(t,2),a=e[0],o=e[1],i=this.findRelateMod();this.compdata.content=a,this.compdata.pureText=o,this.form.setFieldsValue(Object(s["a"])({},"rich-text-".concat(this.compdata.uuid),o)),i&&(i.content=a,i.pureText=o)},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))}},watch:{compdata:{deep:!0,handler:function(t){this.$refs.WangEditor.setVal(t.content),this.form.setFieldsValue(Object(s["a"])({},"rich-text-".concat(this.compdata.uuid),t.pureText))}}},mounted:function(){this.$refs.WangEditor.setVal(this.compdata.content)},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"RichForm"})}},Td=Ad,Fd=(a("4c578"),a("40ed"),a("96a0"),Object(v["a"])(Td,kd,xd,!1,null,"57f8c018",null)),Od=Fd.exports,jd=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px","padding-bottom":"0"},attrs:{required:""}},[a("label",{attrs:{slot:"label",title:"添加图片"},slot:"label"},[t._v("添加图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"8px","font-size":"12px",color:"#999"}},[t._v("参考尺寸750×340像素,宽度固定,高度不过超5000像素,大小不超过1M,支持jpg/png/gif格式")])]),a("div",{staticClass:"hot-spots-wrap"},[t.compdata.image_url?a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[t.compdata.image_url?a("div",{staticClass:"image-uploader",staticStyle:{height:"auto",background:"#f4f6f8"}},[t.compdata.image_url?a("img",{staticClass:"image-preview",attrs:{src:t.compdata.image_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.imageChange}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地替换\n "),t.compdata["uploading-"+t.compdata.uuid+"i"]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:t.openImageLib}},[t._v("从图片选择器替换")])],1):t._e(),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["hotSpotsImageUploadValue-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `hotSpotsImageUploadValue-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0 -24px 0 0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.imageChange}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地上传\n "),t.compdata["uploading-"+t.compdata.uuid]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["hotSpotsImageUploadValue-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `hotSpotsImageUploadValue-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("p",{staticStyle:{"margin-top":"16px"}},[t._v("添加热区")]),a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"spots-num"},[t._v(t._s(t.compdata.hotspots.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.emptySpots}},[t._v("清空热区")])]),a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:t.editSpots}},[t._v("查看&编辑")])],1),a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)],1):t._e()],1)],1),a("hot-spots-editor",{attrs:{visible:t.editorVisible,image:t.compdata.image_url,spots:t.compdata.hotspots},on:{updateSpots:t.updateSpots,close:function(e){t.editorVisible=!1}}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},Id=[],Pd=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{id:"hotspots-editor",title:"编辑热区",width:1070,bodyStyle:{padding:0,maxHeight:"473px",overflow:"hidden"},visible:t.visible,cancelButtonProps:{style:{display:"none"}},destroyOnClose:!0,maskClosable:!1},on:{ok:function(e){return t.$emit("close")},cancel:function(e){return t.$emit("close")}}},[a("div",{staticClass:"editor-wrap"},[a("div",{staticClass:"editor"},[a("div",{staticClass:"image-wrap",style:{height:t.parentHeight+"px"}},[a("img",{attrs:{src:t.image,height:t.parentHeight},on:{"~load":function(e){return t.imageLoaded(e)}}}),t._l(t.spots,(function(e,o){return a("vue-drag-resize",{key:"spot-"+e.display_index,attrs:{w:e.width,h:e.height,x:e.left,y:e.top,z:e.display_index,minw:40,minh:40,parentH:t.parentHeight,parentLimitation:!0},on:{resizing:function(a){return t.resize(e,a)},dragging:function(a){return t.changePos(e,a)}}},[a("span",{staticClass:"title"},[t._v("热区"+t._s(o+1))]),a("a-icon",{staticClass:"close-btn",attrs:{type:"close"},on:{click:function(a){return t.delSpot(e)}}})],1)}))],2)]),a("div",{staticClass:"form-items"},[a("a-form",{attrs:{layout:"vertical",form:t.form}},[a("div",{staticClass:"meta"},[a("b",{staticStyle:{color:"#333"}},[t._v("热区链接")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.emptySpots}},[t._v("清空热区")])]),t._l(t.spots,(function(e,o){return a("a-form-item",{key:"spot-"+e.display_index,attrs:{label:"热区"+(o+1)}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["spot-input-"+e.display_index,{initialValue:e.spot_link}],expression:"[\n `spot-input-${spot.display_index}`,\n {\n initialValue: spot.spot_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputSpotLink(a,e)}}})],1)})),t.spots.length<10?a("a-button",{attrs:{block:""},on:{click:t.addSpot}},[t._v("+ 添加热区")]):t._e()],2)],1)])])},Ed=[],Md=(a("55dd"),a("3b58")),$d=a.n(Md);function Dd(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Nd(t){for(var e=1;et[r].left+t[r].width||a>t[r].top+t[r].height||e+80670)for(var n=JSON.parse(JSON.stringify(this.spotsData)).sort((function(t,e){return t.top-e.top})),s=0;sn[l].left+n[l].width||a>n[l].top+n[l].height||e+80this.parentHeight-80&&(a=this.parentHeight-80),{top:a,left:e,width:80,height:80,spot_link:"",link_type:"",link_desc:""}},addSpot:function(){this.spotsData.push(Nd(Nd({},this.computePostion()),{},{display_index:++this.displayIndex})),this.updateSpots(this.spotsData),this.$nextTick((function(){var t=document.querySelector("#hotspots-editor .ant-modal-body");t.scrollTop>0&&(t.scrollTop=t.scrollTop+93)}))},delSpot:function(t){for(var e=t.display_index,a=-1,o=0;o {\n return event.target.value.trim()\n }\n },\n ]"}],attrs:{placeholder:"https://"},on:{blur:t.eventMvurl}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加封面(必填)",required:!0}},[a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("建议封面尺寸和视频尺寸保持一致,大小不超过500KB,支持jpg/png/gif格式")])]),a("div",{key:"videoimg",staticClass:"c-video-single-option"},[t.compdata.image_url?a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[t.compdata.image_url?a("div",{staticClass:"image-uploader",staticStyle:{height:"auto",background:"#f4f6f8"}},[t.compdata.image_url?a("img",{staticClass:"image-preview",attrs:{src:t.compdata.image_url}}):t._e(),a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload","before-upload":t.beforeUpload,headers:t.token},on:{change:function(e){return t.videoImageChange(e)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地替换\n "),t.compdata["uploading-"+t.compdata.uuid]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:t.openImageLib}},[t._v("从图片选择器替换")])],1):t._e(),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoImage-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `videoImage-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload","before-upload":t.beforeUpload,headers:t.token},on:{change:function(e){return t.videoImageChange(e)}}},[a("a-button",{staticClass:"btn-image-control btn-image-upload"},[t._v("\n 从本地上传\n "),t.compdata["uploading-"+t.compdata.uuid]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("a-button",{staticClass:"btn-image-control btn-image-lib",on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoImage-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `videoImage-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),2===t.compdata.type?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),[a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)]],2):t._e()],1)],1),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}}),a("VideoSelected",{ref:"VideoSelected",on:{videoSuccess:t.selectedVideoFromLib}}),a("a-modal",{attrs:{title:"预览",destroyOnClose:!0,width:"648px",visible:t.previewVisible,footer:null},on:{cancel:function(e){t.previewVisible=!1}}},[a("video",{attrs:{src:t.compdata.upload_video.src,poster:t.compdata.image_url,controls:"controls",width:"600px"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])])],1)},Kd=[],Wd=(a("6b54"),a("2d63")),Zd={mixins:[ac],props:{compdata:{type:Object,default:function(){return{}}}},data:function(){return{token:{},renderForm:!0,previewVisible:!1,spining:!1}},computed:{websiteId:function(){return this.$route.params.website_id}},watch:{"compdata.upload":{handler:function(t){var e=this;2===t&&this.compdata.mv_url.src&&this.$nextTick((function(){e.form.setFieldsValue({mvurl:e.compdata.mv_url.src})}))}},compdata:{deep:!0,handler:function(){var t=this;this.$nextTick((function(){var e=t.findRelateMod();e&&(e.upload=t.compdata.upload,e.mv_url.src=t.compdata.mv_url.src,e.upload_video.url=t.compdata.upload_video.url,e.upload_video.duration=t.compdata.upload_video.duration,e.upload_video.src=t.compdata.upload_video.src)}))}}},components:{uploadVideo:Wd["a"],"sketch-picker":p["Sketch"]},inject:["eleArrSet"],filters:{format:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HH:mm:ss",a=function(t){return t=t.toString(),t[1]?t:"0".concat(t)},o=a(Math.floor(t/86400)),i=a(Math.floor(t/3600%24)),r=a(Math.floor(t/60%60)),n=a(Math.floor(t%60));return e.replace("DD",o).replace("HH",i).replace("mm",r).replace("ss",n)}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},beforeUpload:function(t){var e=this,a=new FileReader;a.readAsDataURL(t),a.onload=function(){var t=new Image;t.src=a.result,t.onload=function(){e.compdata.img_height=t.height}}},videoImageChange:function(t){var e=this,a=t.file,o=a.status,i=a.response;"uploading"===o?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid),!0):"done"===o&&200===i.status?(this.compdata.image_url=i.data.src,this.$nextTick((function(){e.form.setFieldsValue(Object(s["a"])({},"videoImage-".concat(e.compdata.uuid),i.data.src))})),delete this.compdata["uploading-".concat(this.compdata.uuid)]):200!==i.status&&(this.$message.error(i.message),delete this.compdata["uploading-".concat(this.compdata.uuid)])},noticeAddressForVedio:function(t){t.address?this.compdata.upload_video={url:t.relativePath,duration:t.duration,src:t.address}:this.compdata.upload_video={url:"",duration:0,src:""}},eventMvurl:function(t){var e=/^(http|https):.*\.mp4$/i;e.test(t.target.value)?(this.compdata.mv_url={src:t.target.value},this.form.setFieldsValue(Object(s["a"])({},"mvurl-".concat(this.compdata.uuid),t.target.value))):(this.compdata.mv_url={src:""},this.form.setFieldsValue(Object(s["a"])({},"mvurl-".concat(this.compdata.uuid),"")))},handleSubmit:function(){var t=this,e=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,a){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;e.$message.error(i)}}))}))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")},beforeVideoUpload:function(t){var e=["mp4","video/mp4"].includes(t.type);e||(this.errorTips=this.customTypeErrorTip);var a=t.size<209715200;return a||this.form.setFields(Object(s["a"])({},"videoUploader-".concat(this.compdata.uuid),{value:"",errors:["视频大小不能超过200MB"]})),e&&a},handleVideoChange:function(t){var e=t.file,a=e.status,o=e.response;this.spining=!0,"done"===a&&0===o.status?(this.compdata.upload_video.duration=o.data.duration,this.compdata.upload_video.src=o.data.src,this.form.setFieldsValue(Object(s["a"])({},"videoUploader-".concat(this.compdata.uuid),o.data.src)),this.spining=!1):200!==o.status&&(this.$message.error(o.message),this.spining=!1)},openImageLib:function(){this.$refs.ImageSelected.showModal()},openVideoLib:function(){this.$refs.VideoSelected.showModal()},selectedImageFromLib:function(t){this.compdata.image_url=t},selectedVideoFromLib:function(t){this.compdata.upload_video.src=t.url,this.compdata.upload_video.duration=t.duration,this.compdata.upload_video.url=t.cover_url},deleteVideo:function(){this.compdata.upload_video.src="",this.compdata.upload_video.duration=0,this.compdata.upload_video.url=""},showPrevisible:function(){this.previewVisible=!0}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},Qd=Zd,Xd=(a("39e1"),Object(v["a"])(Qd,Jd,Kd,!1,null,"f5e06ce0",null)),tu=Xd.exports,eu=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"form-wrap"}},[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"选择模板(必填)"}},[a("a-select",{model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:1}},[t._v("一场单品")]),a("a-select-option",{attrs:{value:2}},[t._v("一场多品")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加赠品信息"}}),t._l(t.compdata.givings,(function(e,o){return a("div",{key:"giving-"+o,staticClass:"c-givings-single-option"},[t.compdata.givings.length>1?a("div",{staticClass:"ctrl-area"},[0!==o?a("a",{staticClass:"arrow-up",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.moveUp(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-up"}})],1):t._e(),o!==t.compdata.givings.length-1?a("a",{staticClass:"arrow-down",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.moveDown(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-down"}})],1):t._e(),a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.del(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),a("a-form-item",{attrs:{label:"选择满赠活动(必填)"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["giving-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择限时抢活动"}],initialValue:e.async_name||void 0}],expression:"[\n `giving-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择限时抢活动'\n }\n ],\n initialValue: giving.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id&&1!==t.compdata.display_tpl?a("a-form-item",{attrs:{label:"活动标题(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["GivingName-"+o,{rules:[{required:!0,message:"请输入活动标题"}],initialValue:e.name}],expression:"[\n `GivingName-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动标题'\n }\n ],\n initialValue: giving.name\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setName(a,e)}}})],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"活动描述(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["GivingDesc-"+o,{rules:[{required:!0,message:"请输入活动描述"}],initialValue:e.desc}],expression:"[\n `GivingDesc-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动描述'\n }\n ],\n initialValue: giving.desc\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setDesc(a,e)}}})],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"活动时间"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["giving-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `giving-time-${compdata.uuid}-${index}`,\n {\n initialValue: giving.async_start + '~' + giving.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1):t._e()],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addGiving}},[t._v("+ 添加场次")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"立即参与按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],2):t._e()],1)],1)],1)},au=[];function ou(t,e){function a(){Object(l["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{promotion_type:5,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&Ld===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at,t.description].join("<-depart->"),text:t.title})})),e(i)}}))}Rd&&(clearTimeout(Rd),Rd=null),Ld=t.title,Rd=setTimeout(a,150)}var iu,ru,nu={mixins:[ac],props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"]},data:function(){return{renderForm:!0,promotionList:[],form:this.$form.createForm(this,{name:"CGivingsForm"}),productsList:{},currentRuleProducts:""}},watch:{"compdata.givings":{handler:function(t){var e=this;ou({websiteId:this.$route.params.website_id},(function(t){return e.promotionList=t}));var a=this.findRelateMod();if(a){var o=[];this.compdata.givings.forEach((function(t){o.push({name:t.name,desc:t.desc,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,start_time:t.start_time,end_time:t.end_time})})),a.givings=o}},immediate:!0,deep:!0}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},addGiving:function(){var t={async_id:"",async_name:"",async_desc:"",async_start:"",async_end:"",name:"",desc:"",start_time:"",end_time:""};this.compdata.givings.push(t)},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.givings.splice(t,1);e.compdata.givings.splice(t-1,0,a[0]),e.resetFieldsError(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.givings.splice(t,1);e.compdata.givings.splice(t+1,0,a[0]),e.resetFieldsError(),e.renderForm=!0}))},del:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.givings.splice(t,1),e.resetFieldsError(),e.renderForm=!0}))},setName:function(t,e){e.name=t.target.value},setDesc:function(t,e){e.desc=t.target.value},handleSubmit:function(){var t=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(e,a){if(e){var o=Object.keys(e)[0],i=e[o].errors[0].message;t.$message.error(i)}}))}))},handleSearch:function(t){var e=this;t&&ou({websiteId:this.websiteId,title:t},(function(t){return e.promotionList=t}))},handleChange:function(t,e){var a=this,o=t.split("<-depart->");e.async_id=o[1],e.async_name=o[0],e.name=o[0],e.async_desc=o[0],e.desc=o[4],e.async_start=o[2],e.async_end=o[3],ou({websiteId:this.websiteId},(function(t){return a.promotionList=t}))},resetFieldsError:function(){for(var t=0;t1?a("div",{staticClass:"ctrl-area"},[0!==o?a("a",{staticClass:"arrow-up",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveUp(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-up"}})],1):t._e(),o!==t.compdata.rounds.length-1?a("a",{staticClass:"arrow-down",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveDown(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-down"}})],1):t._e(),a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateDelete(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),e.product_ids.length?a("div",{staticStyle:{overflow:"hidden","margin-bottom":"8px"}},[a("div",{staticStyle:{float:"left"}},[a("span",{staticStyle:{color:"#1089ff"}},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyProductOnly(e)}}},[t._v("清空商品")])]):t._e(),a("div",{staticClass:"c-product-module-products-wrap"},[a("products-image-list",{key:"round-product-new-"+t.compdata.uuid+"-"+o,attrs:{productIds:e.product_ids,globalConfig:t.globalConfig}}),a("ul",[a("li",{staticClass:"icon-product-add",on:{click:function(a){return t.addProducts(e)}}},[a("a-icon",{attrs:{type:"plus"}})],1)]),a("a-form-item",{staticStyle:{clear:"both",margin:"0",padding:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabIds_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请添加商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `productTabIds_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: round.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),e.product_ids.length?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:function(a){return t.editProductOnly(e)}}},[t._v("查看&编辑")])],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"查看更多图片"}},[a("a-checkbox",{model:{value:e.is_show_more.status,callback:function(a){t.$set(e.is_show_more,"status",a)},expression:"round.is_show_more.status"}},[t._v("显示")])],1),e.is_show_more.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{class:{"has-error":e.moreImgError},attrs:{label:"图片(必填)",required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",disabled:t.uploadDisabled,headers:t.token},on:{change:function(a){return t.handleTabImgChange(a,e)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.is_show_more.show_more_img_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.is_show_more.show_more_img_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),e.moreImgError?a("div",{staticClass:"ant-form-explain"},[t._v(t._s(e.moreImgErrorText))]):t._e(),a("div",[t._v("尺寸400x72像素,不超过50KB,支持jpg/png/gif")])],1),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{attrs:{required:!0,label:"链接(必填)"}},[1===t.globalConfig.client?a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: round.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setTabMoreLink(a,e)}}}):a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:t.tab.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"请按小程序路径规则输入"},on:{input:function(a){return t.setTabMoreLink(a,e)}}})],1):a("a-form-item",{attrs:{label:"链接(必填)"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.is_show_more.show_more_img_link,"link-desc":e.is_show_more.link_desc,"link-type":e.is_show_more.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e.is_show_more,"show_more_img_link",a,{round:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:t.pathSelectError(e.is_show_more)}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(round.is_show_more)\n }\n ],\n initialValue: round.is_show_more.show_more_img_link\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e()],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.add}},[t._v("+ 添加新人专区")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"选择商品模板(必填)",required:!0}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.tpl_type,callback:function(e){t.$set(t.compdata,"tpl_type",e)},expression:"compdata.tpl_type"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一个")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二个")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三个")]),a("a-select-option",{attrs:{value:4}},[t._v("一行多个滑动")])],1)],1),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{model:{value:t.compdata.is_show_discount,callback:function(e){t.$set(t.compdata,"is_show_discount",e)},expression:"compdata.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"加购按钮"}},[a("a-checkbox",{model:{value:t.compdata.is_show_btn.status,callback:function(e){t.$set(t.compdata.is_show_btn,"status",e)},expression:"compdata.is_show_btn.status"}},[t._v("显示")])],1),t.compdata.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.is_show_btn,"btn_color",e)},expression:"compdata.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),a("a-form-item",{attrs:{label:"优惠券文字颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.coupon_text_color},on:{input:function(e){return t.updateColor(e,"compdata.coupon_text_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.coupon_text_color,callback:function(e){t.$set(t.compdata,"coupon_text_color",e)},expression:"compdata.coupon_text_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.coupon_text_color}})])])],2)],1),a("a-form-item",{attrs:{label:"优惠券颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.coupon_color},on:{input:function(e){return t.updateColor(e,"compdata.coupon_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.coupon_color,callback:function(e){t.$set(t.compdata,"coupon_color",e)},expression:"compdata.coupon_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.coupon_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],2)],1)],1)],1),a("manage-products",{ref:"productsModal",attrs:{"rule-id":t.currentRuleId,"activity-page":t.newUserActivity,"global-config":t.globalConfig}}),a("select-coupon",{ref:"selectCoupon",on:{triggerSelectCoupon:t.triggerSelectCoupon}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},uu=[],pu=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",t._l(t.product_results,(function(t,e){return a("li",{key:"p-"+e,staticClass:"c-selected-product"},[a("img",{staticClass:"c-selected-product-images",attrs:{alt:t.name,src:t.image_url,title:t.name},on:{error:function(e){t.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}})])})),0)},mu=[],fu={props:{productIds:{type:Array,default:function(){return[]}},globalConfig:{type:Object,default:function(){}}},data:function(){return{websiteId:this.$route.params.website_id,product_results:[]}},watch:{productIds:{handler:function(t){if(t.length){var e=this,a=0===e.globalConfig.page_type?1:0;gc()((function(){l["b"].get("/api-cms/cms/product/list?website_id=".concat(e.websiteId,"&product_id=").concat(t.join(","),"&idSort=1&secret=").concat(a)).then((function(t){t.data.results?e.product_results=Object(c["a"])(t.data.results):e.product_results=[]}))}),300)()}else this.product_results=[]},immediate:!0}}},hu=fu,gu=(a("6e00"),Object(v["a"])(hu,pu,mu,!1,null,null,null)),_u=gu.exports,vu=function(){return{coupon:{rule_id:"",coupon_name:"",currency_symbol:"",coupon_value:"",coupon_object:"",type:"",sign:"",async_start:"",async_end:""},start_time:"",end_time:"",product_ids:[],is_show_more:{status:!1,show_more_img_url:"",show_more_img_link:""}}},bu={mixins:[ac,oc["a"]],props:{compdata:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"],"manage-products":pc["a"],"products-image-list":_u,"select-coupon":ul["f"]},data:function(){return{websiteId:this.$route.params.website_id,token:{},selectedProductsIds:[],activeProductsIds:[],currentCoupon:null,currentCouponIndex:-1,imageTitleError:!1,preRuleId:"",currentRuleId:"",uploadDisabled:!1,buttonText:"上传图片",imageTitleErrorText:"请上传图片",newUserActivity:"newUserActivity",currentRound:null}},methods:{handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;2===this.compdata.type.selected&&(this.compdata.image.image_url||(this.imageTitleError=!0,this.imageTitleErrorText="请上传图片",a.$message.error(this.imageTitleErrorText))),this.compdata.rounds.forEach((function(t){!0!==t.is_show_more.status||t.is_show_more.show_more_img_url?!0===t.is_show_more.status&&t.is_show_more.show_more_img_url&&(t.moreImgError=!1):(t.moreImgError=!0,t.moreImgErrorText="请上传图片")})),this.$forceUpdate(),this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},handleTextInput:function(t){var e=this.findRelateMod();this.compdata.text.content=t.target.value,e&&(e.text.content=t.target.value)},updateTextColor:function(t){this.compdata.text.color=t.hex},handleChange:function(t){"uploading"===t.file.status?(this.uploadDisabled=!0,this.imageTitleError=!1):"done"===t.file.status?(this.compdata.image.image_url=t.file.response.data.src,this.uploadDisabled=!1,this.imageTitleError=!1,this.buttonText="替换图片"):(this.uploadDisabled=!1,this.imageTitleError=!0,this.imageTitleErrorText=t.file.response.message)},handleTabImgChange:function(t,e){"uploading"===t.file.status?(this.uploadDisabled=!0,e.moreImgError=!1):"done"===t.file.status?(e.is_show_more.show_more_img_url=t.file.response.data.src,e.moreImgError=!1,this.uploadDisabled=!1):(this.uploadDisabled=!1,e.moreImgError=!0,e.moreImgErrorText=t.file.response.message)},selectCoupon:function(t,e){this.$refs.selectCoupon.readyShow(),this.currentCoupon=t,this.currentCouponIndex=e},editCoupon:function(t,e){this.preRuleId=t.coupon.rule_id,this.selectCoupon(t.coupon,e)},deleteCoupon:function(t,e){var a=this;uc.a.confirm({content:"确定删除吗?",onOk:function(){t.coupon=vu().coupon,t.product_ids=[],a.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(a.compdata.uuid,"-").concat(a.currentCouponIndex),""))},okText:"确认",cancelText:"取消"})},triggerSelectCoupon:function(t){this.currentCoupon.rule_id=t.id,this.currentCoupon.coupon_name=t.item.short_title,this.getCouponDetail(this.currentCoupon.rule_id),this.currentCoupon.async_start=t.item.started_at,this.currentCoupon.async_end=t.item.ended_at,this.currentCoupon.rule_id!==this.preRuleId&&(this.compdata.rounds[this.currentCouponIndex].product_ids=[]),this.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(this.compdata.uuid,"-").concat(this.currentCouponIndex),t.id))},getCouponDetail:function(t){var e=this;Object(pl["t"])({rule_id:t}).then((function(t){var a=t.data;e.currentCoupon.currency_symbol=a.currency_symbol,e.currentCoupon.coupon_value=a.discount,e.currentCoupon.coupon_object=a.type_name,e.currentCoupon.type=a.type,e.currentCoupon.sign=a.sign}))},updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},addProducts:function(t){var e=t.coupon.rule_id;e?(this.currentRuleId=String(e),this.$refs.productsModal.resultContainer=t,this.$refs.productsModal.chooseVisible=!0):this.$message.error("请先选择优惠券")},editProductOnly:function(t){this.currentRuleId=String(t.coupon.rule_id),this.$refs.productsModal.resultContainer=t,this.$refs.productsModal.selectedProducts=Object(c["a"])(t.product_ids),this.$refs.productsModal.editVisible=!0},add:function(){this.compdata.rounds.push(vu())},emptyProductOnly:function(t){var e=this;uc.a.confirm({title:"清空后需要重新配置数据,确认清空吗?",onOk:function(){t.product_ids=[],e.$refs.productsModal.$refs.productsModalChild.allSelectedRowKeys=[],e.$refs.productsModal.$refs.productsModalChild.selectedRowKeys=[],e.$refs.productsModal.selectedProducts=[]},okText:"确认",cancelText:"取消"})},setTabMoreLink:function(t,e){e.is_show_more.show_more_img_link=t.target.value},cateMoveUp:function(t){var e=this.compdata.rounds,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t-1,0,JSON.parse(a))},cateMoveDown:function(t){var e=this.compdata.rounds,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t+1,0,JSON.parse(a))},cateDelete:function(t){this.compdata.rounds.splice(t,1)},adImageChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a||("done"===a&&200===o.status?this.form.setFieldsValue({backgroundImage:o.data.src}):200!==o.status&&this.$message.error(o.message))},validatePathSelect:function(t){var e=t.round,a=t.index;this.form.setFieldsValue(Object(s["a"])({},"morelink_".concat(this.compdata.uuid,"_").concat(a),e.is_show_more.show_more_img_link))},deleteIcon:function(t){t.is_show_more.show_more_img_url=""},openImageLib:function(t){t&&(this.currentRound=t),this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){2===this.compdata.type.selected?this.compdata.image.image_url=t:(this.currentRound.is_show_more.show_more_img_url=t,this.currentRound=null)}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CNewUserForm"})},watch:{"compdata.rounds":{handler:function(t){var e=this;this.$nextTick((function(){t.forEach((function(t,a){e.form.setFieldsValue(Object(s["a"])({},"productTabIds_".concat(e.compdata.uuid,"_").concat(a),t.product_ids.join(",")))}))}))},immediate:!0,deep:!0},compdata:{deep:!0,handler:function(){var t=this.findRelateMod();if(t){var e=[];this.compdata.rounds.forEach((function(t){e.push({coupon:{rule_id:t.coupon.rule_id,coupon_name:t.coupon.coupon_name,currency_symbol:t.coupon.currency_symbol,coupon_value:t.coupon.coupon_value,coupon_object:t.coupon.coupon_object,type:t.coupon.type,sign:t.coupon.sign,async_start:t.coupon.async_start,async_end:t.coupon.async_end},product_ids:t.product_ids,is_show_more:{status:t.is_show_more.status,show_more_img_url:t.is_show_more.show_more_img_url,show_more_img_link:t.is_show_more.show_more_img_link}})})),t.rounds=e}}}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},yu=bu,wu=(a("5434"),Object(v["a"])(yu,du,uu,!1,null,null,null)),Cu=wu.exports,ku=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"form-wrap"}},[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.renderForm?a("a-form",{attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},model:{value:t.compdata.tpl_type,callback:function(e){t.$set(t.compdata,"tpl_type",e)},expression:"compdata.tpl_type"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一个")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二个")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三个")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加场次"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("若场次名称有填内容时,为了保证前后台显示的统一性,建议所有场次的场次名称都填内容")])]),t._l(t.compdata.rounds,(function(e,o){return a("div",{key:"round-"+o,staticClass:"c-flashsale-single-option"},[t.compdata.rounds.length>1?a("div",{staticClass:"ctrl-area"},[0!==o?a("a",{staticClass:"arrow-up",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.moveUp(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-up"}})],1):t._e(),o!==t.compdata.rounds.length-1?a("a",{staticClass:"arrow-down",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.moveDown(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-down"}})],1):t._e(),a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.del(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),a("a-form-item",{attrs:{label:"场次名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["RoundName-"+o,{rules:[{maxlength:6,message:"长度不超过6个字"}],initialValue:e.name}],expression:"[\n `RoundName-${index}`,\n {\n rules: [\n {\n maxlength: 6,\n message: '长度不超过6个字'\n }\n ],\n initialValue: round.name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.setName(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"选择"+t.tagName+"活动"},slot:"label"},[t._v("选择"+t._s(t.tagName)+"活动"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择"+t.tagName+"活动"}],initialValue:e.async_name||void 0}],expression:"[\n `round-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择'+tagName+'活动'\n }\n ],\n initialValue: round.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e,o)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id?a("a-form-item",{attrs:{label:"活动时间(必填)"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `round-time-${compdata.uuid}-${index}`,\n {\n initialValue: round.async_start + '~' + round.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加商品(必填)"}},[a("div",{staticClass:"products-wrap"},[a("products-image-list",{attrs:{productIds:e.product_ids,globalConfig:t.globalConfig}}),a("ul",[a("li",{staticClass:"icon-product-add",on:{click:function(a){return t.addProducts(e)}}},[a("a-icon",{attrs:{type:"plus"}})],1)]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["RoundOfProducts-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请添加商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `RoundOfProducts-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: round.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)]),e.product_ids.length?a("a-button",{staticClass:"edit-products",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")]):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"查看更多图片"}},[a("a-checkbox",{model:{value:e.is_show_more.status,callback:function(a){t.$set(e.is_show_more,"status",a)},expression:"round.is_show_more.status"}},[t._v("显示")])],1),e.is_show_more.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{class:{"has-error":e.moreImgError},attrs:{label:"图片(必填)",required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",disabled:t.uploadDisabled,headers:t.token},on:{change:function(a){return t.handleTabImgChange(a,e)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.is_show_more.show_more_img_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.is_show_more.show_more_img_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),e.moreImgError?a("div",{staticClass:"ant-form-explain"},[t._v(t._s(e.moreImgErrorText))]):t._e(),a("div",[t._v("参考尺寸400x72像素。宽高固定大小不超过50KB,支持jpg/png/gif格式")])],1)],1):t._e()],1)})),t.compdata.rounds.length<10?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addRound}},[t._v("+ 添加场次")])],1):t._e(),a("a-divider"),a("a-form-item",{attrs:{label:"展示数量(必填)",required:!0}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabShowNum_"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>10?a("展示数量不能超过10"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.show_num}],expression:"[\n `productTabShowNum_${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 10 ? cb('展示数量不能超过10') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata)}}})],1),a("a-form-item",{attrs:{label:"倒计时"}},[a("a-checkbox",{model:{value:t.compdata.is_show_count_down,callback:function(e){t.$set(t.compdata,"is_show_count_down",e)},expression:"compdata.is_show_count_down"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"Tab 背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.tab_bg_color},on:{input:function(e){return t.updateColor(e,"compdata.tab_bg_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.tab_bg_color,callback:function(e){t.$set(t.compdata,"tab_bg_color",e)},expression:"compdata.tab_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.tab_bg_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),a("a-form-item",{attrs:{label:"抢购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1)],2):t._e()],1)],1),a("manage-products",{ref:"productsModal",attrs:{"rule-id":t.currentRuleId,"activity-page":t.activities,"global-config":t.globalConfig}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},xu=[];function Su(t,e){function a(){Object(l["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{website_id:t.websiteId,promotion_type:t.activity_type,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&ru===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at].join("<-depart->"),text:t.title})})),e(i)}}))}iu&&(clearTimeout(iu),iu=null),ru=t.title,iu=setTimeout(a,150)}var Au={mixins:[ac,oc["a"]],props:{compdata:{type:Object,default:null},globalConfig:{type:Object,default:null}},components:{"sketch-picker":p["Sketch"],"manage-products":pc["a"],"products-image-list":yc},data:function(){return{renderForm:!0,promotionList:[],form:this.$form.createForm(this,{name:"CActivitiesForm"}),websiteId:"",currentRuleId:"",token:{},uploadDisabled:!1,activities:"activities",currentRound:null}},watch:{"compdata.rounds":{handler:function(t){var e=this;Su({websiteId:this.$route.params.website_id,activity_type:this.compdata.activity_type},(function(t){return e.promotionList=t}));var a=this.findRelateMod();if(a){var o=[];this.compdata.rounds.forEach((function(t){o.push({name:t.name,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,product_ids:t.product_ids,start_time:t.start_time,end_time:t.end_time,is_show_more:{status:!1,show_more_img_url:""}})})),a.rounds=o}this.$nextTick((function(){t.forEach((function(t,a){e.form.setFieldsValue(Object(s["a"])({},"RoundOfProducts-".concat(e.compdata.uuid,"-").concat(a),t.product_ids.join(",")))}))}))},immediate:!0,deep:!0}},methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var o=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[o]=t.hex}},addRound:function(){var t={name:"",async_name:"",async_id:"",async_start:"",async_end:"",product_ids:[],start_time:"",end_time:"",is_show_more:{status:!1,show_more_img_url:""}};this.compdata.rounds.push(t)},handleTabImgChange:function(t,e){"uploading"===t.file.status?(this.uploadDisabled=!0,e.moreImgError=!1):"done"===t.file.status?(e.is_show_more.show_more_img_url=t.file.response.data.src,e.moreImgError=!1,this.uploadDisabled=!1):(this.uploadDisabled=!1,e.moreImgError=!0,e.moreImgErrorText=t.file.response.message)},setShowNum:function(t,e){t.target.value?(e.show_num=Number(t.target.value),this.compdata.show_num=Number(t.target.value)):(e.show_num=0,this.compdata.show_num=0)},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.rounds.splice(t,1);e.compdata.rounds.splice(t-1,0,a[0]),e.resetFieldsError(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.rounds.splice(t,1);e.compdata.rounds.splice(t+1,0,a[0]),e.resetFieldsError(),e.renderForm=!0}))},del:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.rounds.splice(t,1),e.resetFieldsError(),e.renderForm=!0}))},setName:function(t,e){e.name=t.target.value},addProducts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.async_id,a){t.next=4;break}return this.$message.error("请先选择"+this.tagName+"活动"),t.abrupt("return");case 4:this.currentRuleId=a,this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.chooseVisible=!0;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),editProductIds:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.async_id,this.currentRuleId=a,this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.selectedProducts=Object(c["a"])(e.product_ids),this.$refs.productsModal.editVisible=!0;case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleSubmit:function(){var t=this,e=this.compdata.rounds;this.compdata.rounds.forEach((function(t){!0!==t.is_show_more.status||t.is_show_more.show_more_img_url?!0===t.is_show_more.status&&t.is_show_more.show_more_img_url&&(t.moreImgError=!1):(t.moreImgError=!0,t.moreImgErrorText="请上传图片")}));for(var a=1;a");e.async_id=i[1],e.async_name=i[0],e.async_start=i[2],e.async_end=i[3],e.product_ids=[],this.form.setFieldsValue(Object(s["a"])({},"RoundOfProducts-".concat(this.compdata.uuid,"-").concat(a),"")),Su({websiteId:this.websiteId,activity_type:this.compdata.activity_type},(function(t){return o.promotionList=t}))},resetFieldsError:function(){for(var t=0;t50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_only.show_num}],expression:"[\n `productOnlyShowNum_${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata.product_only)}}})],1),1===t.compdata.display_type?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e()],1):t._e(),2==t.compdata.display_type?a("div",[a("a-form-item",{attrs:{label:"展示数量(必填)",required:!0}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabShowNum_"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_tab.show_num}],expression:"[\n `productTabShowNum_${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_tab.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(e){return t.setShowNum(e,t.compdata.product_tab)}}})],1),a("a-form-item",{attrs:{label:"添加商品 Tab"}},[a("p",{staticStyle:{"margin-bottom":"0"}},[t._v("最多可添加10个")])]),t._l(t.compdata.product_tab.tabs,(function(e,o){return a("div",{key:"tab_"+o,staticClass:"c-product-tab-wrap"},[t.compdata.product_tab.tabs.length>1?a("div",{staticClass:"ctrl-area"},[0!==o?a("a",{staticClass:"arrow-up",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveUp(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-up"}})],1):t._e(),o!==t.compdata.product_tab.tabs.length-1?a("a",{staticClass:"arrow-down",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateMoveDown(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"arrow-down"}})],1):t._e(),a("a",{staticClass:"tab-delete",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.cateDelete(o)}}},[a("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"delete"}})],1)]):t._e(),a("a-form-item",{attrs:{label:"添加商品(必填)",required:!0}},[a("a-radio-group",{attrs:{value:1}},[a("a-radio",{attrs:{value:1}},[t._v("商品")])],1)],1),e.product_ids.length?a("div",{staticStyle:{overflow:"hidden","margin-bottom":"8px"}},[a("div",{staticStyle:{float:"left"}},[a("span",{staticStyle:{color:"#1089ff"}},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyProductOnly(e)}}},[t._v("清空商品")])]):t._e(),a("div",{staticClass:"c-product-module-products-wrap"},[a("products-image-list",{attrs:{productIds:e.product_ids,globalConfig:t.globalConfig}}),a("ul",[a("li",{staticClass:"icon-product-add",on:{click:function(a){return t.addProducts(e)}}},[a("a-icon",{attrs:{type:"plus"}})],1)]),a("a-form-item",{staticStyle:{clear:"both",margin:"0",padding:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productTabIds_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请添加商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `productTabIds_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: tab.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),e.product_ids.length?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:function(a){return t.editProductOnly(e)}}},[t._v("查看&编辑")])],1):t._e(),a("a-form-item",{attrs:{label:"Tab 名称(必填)"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabName_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入 Tab 名称"},{validator:t.checkTabNameLen}],initialValue:e.tab_name}],expression:"[\n `tabName_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入 Tab 名称'\n },\n {\n validator: checkTabNameLen\n }\n ],\n initialValue: tab.tab_name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.setTabName(a,e)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"查看更多图片"}},[a("a-checkbox",{model:{value:e.is_show_more.status,callback:function(a){t.$set(e.is_show_more,"status",a)},expression:"tab.is_show_more.status"}},[t._v("显示")])],1),e.is_show_more.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{class:{"has-error":e.moreImgError},attrs:{label:"图片(必填)",required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",disabled:t.uploadDisabled,headers:t.token},on:{change:function(a){return t.handleTabImgChange(a,e)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.is_show_more.show_more_img_url?[a("img",{staticStyle:{"max-width":"230px"},attrs:{src:e.is_show_more.show_more_img_url,alt:""}})]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),e.moreImgError?a("div",{staticClass:"ant-form-explain"},[t._v(t._s(e.moreImgErrorText))]):t._e(),a("div",[t._v("尺寸400x72像素,不超过50KB,支持jpg/png/gif")])],1),1===t.globalConfig.client||4===t.globalConfig.client?a("a-form-item",{attrs:{label:"链接(必填)"}},[1===t.globalConfig.client?a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setTabMoreLink(a,e)}}}):a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{placeholder:"请按小程序路径规则输入"},on:{input:function(a){return t.setTabMoreLink(a,e)}}})],1):a("a-form-item",{attrs:{label:"链接(必填)"}},[a("path-select",{key:"path-"+t.compdata.uuid,attrs:{"global-config":t.globalConfig,"link-url":e.is_show_more.show_more_img_link,"link-desc":e.is_show_more.link_desc,"link-type":e.is_show_more.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e.is_show_more,"show_more_img_link",a,{tab:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["morelink_"+t.compdata.uuid+"_"+o,{rules:[{required:!0,message:t.pathSelectError(e.is_show_more)}],initialValue:e.is_show_more.show_more_img_link}],expression:"[\n `morelink_${compdata.uuid}_${index}`,\n {\n rules: [\n {\n required: true,\n message: pathSelectError(tab.is_show_more)\n }\n ],\n initialValue: tab.is_show_more.show_more_img_link\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e()],1)})),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addSingleTab}},[t._v("+ 添加商品 Tab")])],1)],2):t._e(),a("a-divider"),2===t.compdata.display_type?a("a-form-item",{attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e(),2===t.compdata.display_type?a("a-form-item",{attrs:{label:"商品 Tab 样式"}},[a("a-radio-group",{model:{value:t.compdata.product_tab.tab_style,callback:function(e){t.$set(t.compdata.product_tab,"tab_style",e)},expression:"compdata.product_tab.tab_style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")]),a("a-radio",{attrs:{value:4}},[t._v("样式四")])],1)],1):t._e(),2===t.compdata.display_type?a("a-divider"):t._e(),a("a-form-item",{attrs:{label:"榜单图标"}},[a("a-radio-group",{model:{value:t.compdata.icon_style,callback:function(e){t.$set(t.compdata,"icon_style",e)},expression:"compdata.icon_style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")]),a("a-radio",{attrs:{value:4}},[t._v("样式四")]),a("a-radio",{attrs:{value:5}},[t._v("样式五")])],1)],1),a("a-form-item",{attrs:{label:"品牌名"}},[a("a-checkbox",{model:{value:t.compdata.is_show_brand,callback:function(e){t.$set(t.compdata,"is_show_brand",e)},expression:"compdata.is_show_brand"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"品牌中文名"}},[a("a-checkbox",{model:{value:t.compdata.is_show_brand_cn,callback:function(e){t.$set(t.compdata,"is_show_brand_cn",e)},expression:"compdata.is_show_brand_cn"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"简短描述"}},[a("a-checkbox",{model:{value:t.compdata.is_show_short_description,callback:function(e){t.$set(t.compdata,"is_show_short_description",e)},expression:"compdata.is_show_short_description"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{model:{value:t.compdata.is_show_discount,callback:function(e){t.$set(t.compdata,"is_show_discount",e)},expression:"compdata.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"已售完商品"}},[a("a-checkbox",{model:{value:t.compdata.is_hide_sold_out,callback:function(e){t.$set(t.compdata,"is_hide_sold_out",e)},expression:"compdata.is_hide_sold_out"}},[t._v("显示")]),a("p",{staticStyle:{"margin-bottom":"0",color:"#999"}},[t._v("不勾选显示,客户端默认隐藏已售完商品,若商品全部售完,客户端隐藏该组件显示")])],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"加购按钮"}},[1===t.compdata.display_type?a("a-checkbox",{model:{value:t.compdata.product_only.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"status",e)},expression:"compdata.product_only.is_show_btn.status"}},[t._v("显示")]):t._e(),2===t.compdata.display_type?a("a-checkbox",{model:{value:t.compdata.product_tab.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_tab.is_show_btn,"status",e)},expression:"compdata.product_tab.is_show_btn.status"}},[t._v("显示")]):t._e()],1),1===t.compdata.display_type&&t.compdata.product_only.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_only.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"btn_color",e)},expression:"compdata.product_only.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),2===t.compdata.display_type&&t.compdata.product_tab.is_show_btn.status?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.is_show_btn.btn_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.is_show_btn.btn_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_tab.is_show_btn.btn_color,callback:function(e){t.$set(t.compdata.product_tab.is_show_btn,"btn_color",e)},expression:"compdata.product_tab.is_show_btn.btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.is_show_btn.btn_color}})])])],2)],1)],1):t._e(),2===t.compdata.display_type?a("a-form-item",{attrs:{label:"商品 Tab 选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.tab_selected_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.tab_selected_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.product_tab.tab_selected_color,callback:function(e){t.$set(t.compdata.product_tab,"tab_selected_color",e)},expression:"compdata.product_tab.tab_selected_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.tab_selected_color}})])])],2)],1):t._e(),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":!0},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],1)],1)],1),a("manage-products",{ref:"productsModal",attrs:{secret:0===t.globalConfig.page_type?1:0,"global-config":t.globalConfig}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1)},Iu=[];function Pu(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Eu(t){for(var e=1;e6?a(i):e.length<1?a(o):a()},handleTabImgChange:function(t,e){"uploading"===t.file.status?(this.uploadDisabled=!0,e.moreImgError=!1):"done"===t.file.status?(e.is_show_more.show_more_img_url=t.file.response.data.src,e.moreImgError=!1,this.uploadDisabled=!1):(this.uploadDisabled=!1,e.moreImgError=!0,e.moreImgErrorText=t.file.response.message)},cateMoveUp:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t-1,0,JSON.parse(a))},cateMoveDown:function(t){var e=this.compdata.product_tab.tabs,a=JSON.stringify(e[t]);e.splice(t,1),e.splice(t+1,0,JSON.parse(a))},cateDelete:function(t){this.compdata.product_tab.tabs.splice(t,1)},adImageChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a||("done"===a&&200===o.status?(this.compdata.product_only.background_image_url=o.data.src,this.form.setFieldsValue({backgroundImage:o.data.src})):200!==o.status&&this.$message.error(o.message))},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[ri()(t.block_timer.start_time),ri()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss")},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="")},validatePathSelect:function(t){var e=t.tab,a=t.index;this.form.setFieldsValue(Object(s["a"])({},"morelink_".concat(this.compdata.uuid,"_").concat(a),e.is_show_more.show_more_img_link))},openImageLib:function(t){this.currentTab=t,this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.currentTab.is_show_more.show_more_img_url=t,this.currentTab=null}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},watch:{"compdata.product_tab.tabs":{handler:function(t){var e=this;1!==this.compdata.display_type&&this.$nextTick((function(){t.forEach((function(t,a){1===t.set_type&&e.form.setFieldsValue(Object(s["a"])({},"productTabIds_".concat(e.compdata.uuid,"_").concat(a),t.product_ids.join(",")))}))}))},immediate:!0,deep:!0},"compdata.tpl_type":{handler:function(t){5===t&&(this.compdata.display_type=1)}},"compdata.product_only":{deep:!0,handler:function(){var t=this.findRelateMod();t&&(t.product_only.set_type=this.compdata.product_only.set_type,t.product_only.product_ids=this.compdata.product_only.product_ids,t.product_only.cate_id=this.compdata.product_only.product_cat,t.product_only.brand_id=this.compdata.product_only.brand_id,t.product_only.showNum=this.compdata.product_only.show_num)}},"compdata.product_tab":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){t.product_tab.showNum=this.compdata.product_tab.show_num;var e=[];this.compdata.product_tab.tabs.forEach((function(t){e.push({set_type:t.set_type,product_ids:t.product_ids,cate_id:t.product_cat,brand_id:t.brand_id,tab_name:t.tab_name,show_more:{is_show:t.is_show_more.status,image_url:t.is_show_more.show_more_img_url,image_link:t.is_show_more.show_more_img_link}})})),t.product_tab.tabs=e}}}},mounted:function(){var t=this;this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id};try{this.compdata.product_only.brand_id||this.$set(this.compdata.product_only,"brand_id",""),this.compdata.product_tab.tabs.forEach((function(e){e.brand_id||t.$set(e,"brand_id","")}))}catch(e){}}},Du=$u,Nu=(a("50bf"),Object(v["a"])(Du,ju,Iu,!1,null,null,null)),Ru=Nu.exports,Lu={name:"CRenderProps",props:{currentElement:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){return{}}},relatePage:{type:Array,default:function(){return[]}}},components:{CTitleForm:sc,CProductForm:Tc,CCarouselForm:Ec,CAdsForm:Wc,CBlankspaceForm:al,CAnchorForm:cl,CCouponForm:_l,CFlashsaleForm:xl,CCustomizeForm:Dl,CSearchForm:zl,CJumpMpForm:Jl,CProductRecommendForm:od,CNoticeForm:dd,CBackTopForm:gd,CFloatAdsForm:Cd,CRichTextForm:Od,CHotSpotsForm:Yd,CVideoForm:tu,CGivingsForm:lu,CNewUserForm:Cu,CActivitiesForm:Ou,CAwardListForm:Ru},computed:{currentCompForm:function(){return this.currentElement.name?this.currentElement.name+"Form":""}}},Bu=Lu,Vu=(a("7b6a"),Object(v["a"])(Bu,Qs,Xs,!1,null,null,null)),zu=Vu.exports,qu=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[-1!==t.selectedIndex?a("div",{staticClass:"c-module-tool",style:t.computedTop},[a("ul",[t.hasUp?a("li",{on:{click:t.moveUp}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("上移")])]),a("a-icon",{attrs:{component:t.ArrowTopSVG}})],2)],1):t._e(),t.hasDown?a("li",{on:{click:t.moveDown}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("下移")])]),a("a-icon",{attrs:{component:t.ArrowDownSVG}})],2)],1):t._e(),a("li",{on:{click:t.editRemark}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("名称提示框")])]),a("a-icon",{attrs:{type:"edit"}})],2)],1),t.hasCopy?a("li",{on:{click:t.copyElement}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("复制")])]),a("a-icon",{attrs:{component:t.CopySVG}})],2)],1):t._e(),t.hasChain?a("li",{on:{click:t.chain}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("关联数据")])]),a("a-icon",{attrs:{type:"api",theme:"filled"}})],2)],1):t._e(),a("li",{on:{click:t.deleteElement}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("删除")])]),a("a-icon",{attrs:{component:t.RecycleSVG}})],2)],1)])]):t._e()])},Uu=[],Hu=a("7e83"),Gu=a("b77b"),Yu=a("7896"),Ju=a("4f5f"),Ku={props:{selectedIndex:{type:Number,default:-1},selectedUuid:{type:Number,default:0},elementsLength:{type:Number,default:0},currentElement:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}}},data:function(){return{ArrowTopSVG:Hu["a"],ArrowDownSVG:Gu["a"],CopySVG:Yu["a"],RecycleSVG:Ju["a"]}},computed:{hasUp:function(){return!(0===this.selectedIndex||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name)},hasDown:function(){return!(this.selectedIndex===this.elementsLength-1||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name)},computedTop:function(){var t=document.querySelectorAll(".c-module-wrap"),e=t[this.selectedIndex];return"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?{position:"fixed",top:e.offsetTop+"px",marginLeft:"171px"}:{position:"absolute",top:e.offsetTop+"px",marginLeft:"198px"}},hasCopy:function(){return!("CSearch"===this.currentElement.name||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name)},hasChain:function(){return 1!==this.globalConfig.page_type&&("CTitle"===this.currentElement.name||"CCoupon"===this.currentElement.name||"CFlashsale"===this.currentElement.name||"CProduct"===this.currentElement.name||"CRichText"===this.currentElement.name||"CVideo"===this.currentElement.name||"CActivities"===this.currentElement.name||"CAds"===this.currentElement.name)}},methods:{moveUp:function(){0!==this.selectedIndex&&this.$emit("moveUp")},moveDown:function(){this.selectedIndex!==this.elementsLength-1&&this.$emit("moveDown")},editRemark:function(){this.$emit("editRemark")},copyElement:function(){"CSearch"!==this.currentElement.name&&"CBackTop"!==this.currentElement.name&&"CFloatAds"!==this.currentElement.name&&this.$emit("copyElement")},deleteElement:function(){this.$emit("deleteElement")},chain:function(){this.$emit("chain")}}},Wu=Ku,Zu=(a("2f1d"),Object(v["a"])(Wu,qu,Uu,!1,null,"7bf440b2",null)),Qu=Zu.exports,Xu={CTitle:function(t){if(1===t.type.selected){if(!t.text.content)return t.uuid;if(t.text.isShowMore.status&&!t.text.isShowMore.link)return t.uuid}else if(2===t.type.selected&&!t.image.image_url)return t.uuid;return!0},CProduct:function(t){if(1===t.display_type){if(1===t.product_only.set_type){if(!t.product_only.product_ids.length)return t.uuid}else if(2===t.product_only.set_type){if(!t.product_only.product_cat)return t.uuid}else if(3===t.product_only.set_type&&(!t.product_only.brand_id||!Number(t.product_only.brand_id)))return t.uuid;if(t.product_only.show_num>50||t.product_only.show_num<1)return t.uuid}else if(2===t.display_type){if(t.product_tab.show_num>50||t.product_tab.show_num<1)return t.uuid;for(var e=0;e6)return t.uuid;if(a.is_show_more.status&&(!a.is_show_more.show_more_img_url||!a.is_show_more.show_more_img_link))return t.uuid}}return!0},CCarousel:function(t){for(var e=0;e0&&ri()(a.async_start)10||t.show_num<1)return t.uuid;if(a.is_show_more.status&&(!a.is_show_more.show_more_img_url||!a.is_show_more.show_more_img_link))return t.uuid;if(!a.async_id||!a.product_ids.length)return t.uuid;if(e>0&&ri()(a.async_start)50||t.product_only.show_num<1)return t.uuid}else if(2===t.display_type){if(t.product_tab.show_num>50||t.product_tab.show_num<1)return t.uuid;for(var e=0;e6)return t.uuid;if(a.is_show_more.status&&(!a.is_show_more.show_more_img_url||!a.is_show_more.show_more_img_link))return t.uuid}}return!0}},tp=function(t){if(!t.length)return!1;for(var e=0;e'),u.footer_image&&(e.footerImage=u.footer_image),u.page_data?(m=JSON.parse(u.page_data),f=JSON.parse(JSON.stringify(m)),m.length&&(f.forEach((function(t,a){var o=t.uuid;"CSettings"===t.name?e.settings=t:e.elements.push(t),1===u.is_remove_block_data&&e.resetData(t)&&e.initData.push(Object.assign(JSON.parse(JSON.stringify(e.resetData(t))),{isSelected:!1},{uuid:o}))})),"CSettings"!==f[0].name&&(this.settings.add_cart_color=p.h5_main_color),1===u.is_remove_block_data&&(e.elements=e.initData),e.elements.length&&(h=e.elements.reduce((function(t,e){return Math.max(t,e.uuid)}),0),window.generateUuid(h),e.elements.map((function(t){t.isSelected=!1}))))):this.settings.add_cart_color=p.h5_main_color,u.relation_page_data&&(e.relatePage=JSON.parse(u.relation_page_data)),u.is_page_content_on?e.isShowPublishTip=!1:e.isShowPublishTip=!0,e.relatePageTitle=u.relation_page_title,e.relatePageType=u.relation_page_type,e.globalConfig=Object.assign(p,{is_radius:1===u.page_style?1:0},{client:u.client},{header_type:u.header_type},{page_type:u.page_type}),e.isToolReady=!0,t.next=28;break;case 25:t.prev=25,t.t0=t["catch"](6),e.$message.error(t.t0.message);case 28:case"end":return t.stop()}}),t,this,[[6,25]])})));function e(){return t.apply(this,arguments)}return e}(),beforeCreate:function(){this.form=this.$form.createForm(this,{name:"PageSetting"})}},gp=hp,_p=(a("f729"),Object(v["a"])(gp,o,i,!1,null,null,null));e["default"]=_p.exports},"807c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("92fa"),i=_(o),r=a("41b2"),n=_(r),s=a("6042"),c=_(s),l=a("1178"),d=_(l),u=a("50f6"),p=_(u),m=a("f70b"),f=_(m),h=a("73c8"),g=a("bad7");function _(t){return t&&t.__esModule?t:{default:t}}var v=/^[\u4e00-\u9fa5]{2}$/,b=v.test.bind(v),y=(0,f["default"])();e["default"]={name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:y,inject:{configProvider:{default:function(){return g.ConfigConsumerProps}}},data:function(){return{sizeMap:{large:"lg",small:"sm"},sLoading:!!this.loading,hasTwoCNChar:!1}},computed:{classes:function(){var t,e=this.prefixCls,a=this.type,o=this.shape,i=this.size,r=this.hasTwoCNChar,n=this.sLoading,s=this.ghost,l=this.block,d=this.icon,u=this.$slots,p=this.configProvider.getPrefixCls,m=p("btn",e),f=!1!==this.configProvider.autoInsertSpaceInButton,g="";switch(i){case"large":g="lg";break;case"small":g="sm";break;default:break}var _=n?"loading":d,v=(0,h.filterEmpty)(u["default"]);return t={},(0,c["default"])(t,""+m,!0),(0,c["default"])(t,m+"-"+a,a),(0,c["default"])(t,m+"-"+o,o),(0,c["default"])(t,m+"-"+g,g),(0,c["default"])(t,m+"-icon-only",0===v.length&&_),(0,c["default"])(t,m+"-loading",n),(0,c["default"])(t,m+"-background-ghost",s||"ghost"===a),(0,c["default"])(t,m+"-two-chinese-chars",r&&f),(0,c["default"])(t,m+"-block",l),t}},watch:{loading:function(t,e){var a=this;e&&"boolean"!==typeof e&&clearTimeout(this.delayTimeout),t&&"boolean"!==typeof t&&t.delay?this.delayTimeout=setTimeout((function(){a.sLoading=!!t}),t.delay):this.sLoading=!!t}},mounted:function(){this.fixTwoCNChar()},updated:function(){this.fixTwoCNChar()},beforeDestroy:function(){this.delayTimeout&&clearTimeout(this.delayTimeout)},methods:{fixTwoCNChar:function(){var t=this.$refs.buttonNode;if(t){var e=t.textContent;this.isNeedInserted()&&b(e)?this.hasTwoCNChar||(this.hasTwoCNChar=!0):this.hasTwoCNChar&&(this.hasTwoCNChar=!1)}},handleClick:function(t){var e=this.$data.sLoading;e||this.$emit("click",t)},insertSpace:function(t,e){var a=this.$createElement,o=e?" ":"";if("string"===typeof t.text){var i=t.text.trim();return b(i)&&(i=i.split("").join(o)),a("span",[i])}return t},isNeedInserted:function(){var t=this.$slots,e=this.type,a=(0,h.getComponentFromProp)(this,"icon");return t["default"]&&1===t["default"].length&&!a&&"link"!==e}},render:function(){var t=this,e=arguments[0],a=this.type,o=this.htmlType,r=this.classes,s=this.disabled,c=this.handleClick,l=this.sLoading,u=this.$slots,m=this.$attrs,f=(0,h.getComponentFromProp)(this,"icon"),g={attrs:(0,n["default"])({},m,{disabled:s}),class:r,on:(0,n["default"])({},(0,h.getListeners)(this),{click:c})},_=l?"loading":f,v=_?e(p["default"],{attrs:{type:_}}):null,b=(0,h.filterEmpty)(u["default"]),y=!1!==this.configProvider.autoInsertSpaceInButton,w=b.map((function(e){return t.insertSpace(e,t.isNeedInserted()&&y)}));if(void 0!==m.href)return e("a",(0,i["default"])([g,{ref:"buttonNode"}]),[v,w]);var C=e("button",(0,i["default"])([g,{ref:"buttonNode",attrs:{type:o||"button"}}]),[v,w]);return"link"===a?C:e(d["default"],[C])}}},8170:function(t,e,a){},8181:function(t,e,a){t.exports=a.p+"img/app_order_list_empty_icon.9a5ad017.png"},"81b0":function(t,e,a){"use strict";function o(t){return t.directive("ant-portal",{inserted:function(t,e){var a=e.value,o="function"===typeof a?a(t):a;o!==t.parentNode&&o.appendChild(t)},componentUpdated:function(t,e){var a=e.value,o="function"===typeof a?a(t):a;o!==t.parentNode&&o.appendChild(t)}})}Object.defineProperty(e,"__esModule",{value:!0}),e.antPortal=o,e["default"]={install:function(t){o(t)}}},"81e3":function(t,e,a){},"824d":function(t,e,a){t.exports=a.p+"img/pc-activity-4.b5d19999.jpg"},"83a8":function(t,e,a){"use strict";a("214d")},"83ca":function(t,e,a){"use strict";a("8aef")},"846a":function(t,e,a){},8494:function(t,e,a){},"851e":function(t,e,a){"use strict";a("511c")},"855a":function(t,e,a){},86823:function(t,e,a){t.exports=a.p+"img/message_center.26f6fe73.jpg"},"86bc":function(t,e,a){},"86bd":function(t,e,a){"use strict";a("3765")},"86db":function(t,e,a){},8719:function(t,e,a){"use strict";a("9f09")},8726:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("41b2"),i=l(o),r=a("b655"),n=l(r),s=a("ba1d"),c=l(s);function l(t){return t&&t.__esModule?t:{default:t}}var d={lang:(0,i["default"])({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},n["default"]),timePickerLocale:(0,i["default"])({},c["default"])};e["default"]=d},"875e":function(t,e,a){"use strict";a("ae70")},"877f":function(t,e,a){},"87cd":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAEvElEQVRYCe2YTUxcVRTHOx/MjJ1kYosxIK2pG7U1qSs3kohUNErVjQntThORwcEhIaFdmUhM1RBQuxiQT5cuUFOTxoXawEIDujBaNJo0MU1a5ENC2sLMCDPMjL9zffeFGeaDmXlTWPCS9869556P/z3367xrO7BLTyAQOJpIJEbEPTQwNjZ2PR8UW7bGtra2g3a7/VAymTwCvSebTDYesrbNzc14U1PTTEtLSyKbjPBSqZStvb3dD/3EkJl1uVwvhEKh+Vw6aUAnJiYcU1NTT+DsXZvN1oCSK5diPj4AztXV1V3s6enZzCXn9/tPIPcD7YdEBn9fOxyOs4ODg+FsOnbNxKh9cnLyHMNwBaVn4ZcEUuwR2fr5+fm0IGg/mg4NDf2Jnzepx4UH6NPxePz9YDDo1jJbqVNXlpeXX2KoL1B3CA8jYd7fMbCqZXZIbzEivePj4wpALh1spwjOl3ToIWQ+EDl4wVgs9hcjG8qcOqrXHR0d1fRmGtmHRYGIfMP7ltvt/hunSeHt9Kmurk7kG/JMO8h6FhYWQgTkdaNtnfKZkZGRy9IZLa+AMrFfIZpfCJPGa8yVBubKohaqNGW4fUTyEgBPGRj+YQo2sxP8rH0roKzyd2D0GMzQ8PBw59beaOFyKdFzRaNR99ramtPj8Sjf2ubGxsZhRu8y9UeFh/8/CNjzBOym1NUchemjN1KX54bVICVi6+vrZxjiZuw/jq/7I5GIR3lL/5iLGxnZFS7QuTd4YwoojLTepeuWXsOBfWlp6RTR+pDOn8RPUcYY/uPhcLgKpZjZg6Is7EBYOr+4uPgazr5C/GSGym2A38z3oj+LzsW+vr6o6KqIZhixpMpOUo+zjzHmFYOAuk29z+l0fsdcvMZJlDe8dDA5MDAQQU/JVQRod3e3lwXzHsB8BsirLIwAjme0Y+EXelhIpkhFhh6QDYB8yvASYesL4HS6GJAmQqNgOVAAysI8rR1R/5TNe0bXS6WWA+3s7HQBTp1wAooo/lhOJHXHLAfKViS5wn3aAYvnF10uh1oO1OfzEUCbuUhZ3f+WA1DrWg5UGy6XSvLOgWF2eE8CJUl6kVH5lhQwBFh11O45oJI4s50FWZD1jIp/ZWXlERmdPQeUfFa2Nznf1UP6d1AKew7o//C2f/eBbo9JeZxKRVT/2KXIgnL+MhcD3XKgq6urMQB8zvYi/+eX+EG8VQwgkZUTI1PHcqAkIPHa2tpetpfHOD5f7e/vj2Q6LVRHd1uuau78hZSLaWeTll/sG8XoFJK1PKKFHJbavg+01Mjl0tuPaK7IlMrXETWTW3YGdV9ZqsFy9Ujt7Gyj926xo/7rFVB+Za/rBspP6hxQ8+4m5Y/gQYJ1XHwCOMq7IGUFlIYrlNU9KLlgA3dE57u6unZ8JS6Gyn3AYGttbT3C9ecAtlSyLLhqamoULnVUEUE7Ie9GoFc7pCffU/6J947mVZgexf5zgDtm+LlD+enR0dFfpW6eqXK7wTn9GbyXDcHdJDGm4NtcWvQTMHWc6sV0QM5kr9d7FnTnee9WFLMF47eqqqrmxsbGjzRIETIjqjVkGszNzT3A1fgz8I5Bs91janFLKOtCXaJBZwE3TWKzm4Eqr0//Abpw6/U4jMIqAAAAAElFTkSuQmCC"},"88d4":function(t,e,a){t.exports=a.p+"img/app_share_image_site_icon.befcd98b.png"},"88ed":function(t,e,a){"use strict";a("d8a9c")},8917:function(t,e,a){},8946:function(t,e,a){},8986:function(t,e,a){t.exports=a.p+"img/staffed.4bdfb49f.jpg"},"89c8":function(t,e,a){"use strict";a("c5c8")},"8a54":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"website_logo",platform:"web",routerType:"pc"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"pc-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("aa34")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"website_logo",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_website_logo").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("站点logo")]),o("websiteLogoForm",{ref:"websiteLogoForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"websiteLogoForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"websiteLogoForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.websiteLogoForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&(t.isEmpty?o.items.push({id:t.id,config_value:""}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("4fee"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"4699b88c",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],websiteLogoForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.websiteLogoForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.websiteLogoForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("f04f"),Object(g["a"])(k,o,i,!1,null,"68711c38",null));e["default"]=x.exports},"8a56":function(t,e,a){t.exports=a.p+"img/miniapp_wechat_official_subscribe_url.41e9fe59.png"},"8ac6":function(t,e,a){},"8aef":function(t,e,a){},"8be6":function(t,e,a){},"8c20":function(t,e,a){t.exports=a.p+"img/wap-award-tab.50fe719d.png"},"8c5e":function(t,e,a){"use strict";a("b880")},"8c69":function(t,e,a){},"8ca1":function(t,e,a){},"8cb8":function(t,e,a){},"8cc3":function(t,e,a){"use strict";a("336d")},"8cd8":function(t,e,a){t.exports=a.p+"img/h5_search_result_empty_icon.cc3f1afe.png"},"8d0f":function(t,e,a){t.exports=a.p+"img/shopping_checkout.ffbf2d30.png"},"8d4f":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("PC")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"personal_center",platform:"web",routerType:"pc"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"pc-preview-panel",staticStyle:{"margin-top":"0px"},on:{click:function(e){t.siderPropShow=!0}}},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/786257/27bd9111da8b1b0d5dbaf7f6780530d0.jpg"}}),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value&&(JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[0]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[0].img||JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[1]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[1].img)?a("div",{staticClass:"content-adver-box-left"},[t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[0]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[0].img?a("img",{staticClass:"content-adver-img-top",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[0].img}}):a("img",{staticClass:"content-adver-img-top",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/44059/c3156f7a736d633213f7d2cd889e1ac4.jpg"}}),t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[1]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[1].img?a("img",{staticClass:"content-adver-img-bottom",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ac_ad").config_value)[1].img}}):a("img",{staticClass:"content-adver-img-bottom",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/44059/c3156f7a736d633213f7d2cd889e1ac4.jpg"}})]):t._e(),t.compdata&&t.compdata.length>0&&t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value)[0]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value)[0].img?a("div",{staticClass:"content-adver-box-right"},[t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value)[0]&&JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value)[0].img?a("img",{staticClass:"content-adver-img",attrs:{src:JSON.parse(t.findCurrentFormFun(t.compdata,"pc_block_member_ad").config_value)[0].img}}):a("img",{staticClass:"content-adver-img",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/71735/211a9ec968817a89e7e4625e0b81fb12.jpg"}})]):t._e()])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("个人中心")]),a("personalCenterForm",{ref:"personalCenterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"personalCenterForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("renderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"personalCenterForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.personalCenterForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("5198"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"08cd836a",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],PersonalCenterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.personalCenterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.personalCenterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("d4c7"),Object(g["a"])(k,o,i,!1,null,"0ca952f3",null));e["default"]=x.exports},"8d59":function(t,e,a){t.exports=a.p+"img/shopping_car.92c7bb92.jpg"},"8d84":function(t,e,a){},"8df7":function(t,e,a){},"8ebe":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"perch",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("ca61")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e()]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("b94f")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"app_global_default_product_img").config_value,alt:""}}):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("占位图")]),t.compdata&&t.compdata.length>0?o("perchForm",{ref:"perchForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"perchForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("用于所有页面商品主图未完全加载时所展示的图片")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"perchForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.perchForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("86bd"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"eab4a40c",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],perchForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.perchForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.perchForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("11a4c"),Object(g["a"])(k,o,i,!1,null,"4fc9256a",null));e["default"]=x.exports},"8fb3":function(t,e,a){},"8fd5":function(t,e,a){"use strict";a("0cc6")},9058:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("单品打折@2x")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"单品打折"}},[a("path",{attrs:{d:"M106,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,95 L229,95",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"109",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"98",width:"18",height:"12",rx:"6"}}),a("g",{attrs:{id:"编组-5",transform:"translate(72.000000, 47.000000)"}},[a("rect",{attrs:{id:"矩形",fill:"#555555",x:"37",y:"127",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"77",y:"51",width:"18",height:"12",rx:"6"}}),a("path",{attrs:{d:"M33.6628733,136 L12,136 C5.372583,136 8.11624501e-16,130.627417 0,124 L0,50 C-8.11624501e-16,43.372583 5.372583,38 12,38 L75,38 C81.0751322,38 86,42.9248678 86,49 L86,49 L86,49",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"16",y:"0",width:"55",height:"38",rx:"4"}})]),a("path",{attrs:{d:"M217.455428,136.248947 L143.025272,210.677203 C141.54686,212.156901 141.54686,214.554386 143.025272,216.034083 C143.773835,216.783297 144.746967,217.139174 145.720099,217.139174 C146.693231,217.139174 147.666363,216.783297 148.414926,216.034083 L222.807654,141.624558 C224.286066,140.12613 224.286066,137.728645 222.807654,136.248947 C221.329242,134.76925 218.93384,134.76925 217.455428,136.248947 Z",id:"路径",stroke:"#555555","stroke-width":"12","fill-rule":"nonzero"}}),a("circle",{attrs:{id:"椭圆形",stroke:"#555555","stroke-width":"15",cx:"152",cy:"145",r:"16"}}),a("circle",{attrs:{id:"椭圆形",stroke:"#555555","stroke-width":"15",cx:"211",cy:"211",r:"16"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},"90b5":function(t,e,a){},"90ef":function(t,e,a){t.exports=a.p+"img/pc_main_color.31af072b.png"},"912c7":function(t,e,a){"use strict";a("dd63")},9185:function(t,e,a){t.exports=a.p+"img/app_promotion_color.cc2cce8c.png"},9222:function(t,e,a){},"92a4":function(t,e,a){t.exports=a.p+"img/pc-flashsale.6f75df81.jpg"},"934d":function(t,e,a){t.exports=a.p+"img/pc_user_center_icones.bfe5dbaa.png"},9360:function(t,e,a){t.exports=a.p+"img/perch_1.6ea1a067.jpg"},93623:function(t,e,a){"use strict";a("b0f7")},9367:function(t,e,a){},"93cc":function(t,e,a){},"93d1":function(t,e,a){},"940f":function(t,e,a){t.exports=a.p+"img/miniapp_favorite_no_result_icon.23a9bdd3.png"},"943f":function(t,e,a){"use strict";a("32ac")},9450:function(t,e,a){"use strict";a("748a")},9479:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("7b44"),i=n(o),r=a("73c8");function n(t){return t&&t.__esModule?t:{default:t}}var s={visible:i["default"].bool,hiddenClassName:i["default"].string,forceRender:i["default"].bool};e["default"]={props:s,render:function(){var t=arguments[0];return t("div",{on:(0,r.getListeners)(this)},[this.$slots["default"]])}}},"94a5":function(t,e,a){"use strict";a("8c69")},"94b1":function(t,e,a){},"94ef":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("d46a"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e["default"]=i["default"]},9503:function(t,e,a){},9517:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("92fa"),i=x(o),r=a("6042"),n=x(r),s=a("41b2"),c=x(s),l=a("73c8"),d=a("af09c"),u=x(d),p=a("af8e"),m=x(p),f=a("9479"),h=x(f),g=a("48bb"),_=x(g),v=a("5c25"),b=x(v),y=a("3a3f"),w=x(y),C=a("9a8b"),k=x(C);function x(t){return t&&t.__esModule?t:{default:t}}var S=(0,k["default"])(),A=0;function T(){}function F(t,e){var a=t["page"+(e?"Y":"X")+"Offset"],o="scroll"+(e?"Top":"Left");if("number"!==typeof a){var i=t.document;a=i.documentElement[o],"number"!==typeof a&&(a=i.body[o])}return a}function O(t,e){var a=t.style;["Webkit","Moz","Ms","ms"].forEach((function(t){a[t+"TransformOrigin"]=e})),a["transformOrigin"]=e}function j(t){var e=t.getBoundingClientRect(),a={left:e.left,top:e.top},o=t.ownerDocument,i=o.defaultView||o.parentWindow;return a.left+=F(i),a.top+=F(i,!0),a}var I={};e["default"]={mixins:[_["default"]],props:(0,l.initDefaultProps)(S,{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),data:function(){return{destroyPopup:!1}},provide:function(){return{dialogContext:this}},watch:{visible:function(t){var e=this;t&&(this.destroyPopup=!1),this.$nextTick((function(){e.updatedCallback(!t)}))}},beforeMount:function(){this.inTransition=!1,this.titleId="rcDialogTitle"+A++},mounted:function(){var t=this;this.$nextTick((function(){t.updatedCallback(!1),(t.forceRender||!1===t.getContainer&&!t.visible)&&t.$refs.wrap&&(t.$refs.wrap.style.display="none")}))},beforeDestroy:function(){var t=this.visible,e=this.getOpenCount;!t&&!this.inTransition||e()||this.switchScrollingEffect(),clearTimeout(this.timeoutId)},methods:{getDialogWrap:function(){return this.$refs.wrap},updatedCallback:function(t){var e=this.mousePosition,a=this.mask,o=this.focusTriggerAfterClose;if(this.visible){if(!t){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var i=this.$refs.dialog.$el;if(e){var r=j(i);O(i,e.x-r.left+"px "+(e.y-r.top)+"px")}else O(i,"")}}else if(t&&(this.inTransition=!0,a&&this.lastOutSideFocusNode&&o)){try{this.lastOutSideFocusNode.focus()}catch(n){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},tryFocus:function(){(0,m["default"])(this.$refs.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.$refs.sentinelStart.focus())},onAnimateLeave:function(){var t=this.afterClose,e=this.destroyOnClose;this.$refs.wrap&&(this.$refs.wrap.style.display="none"),e&&(this.destroyPopup=!0),this.inTransition=!1,this.switchScrollingEffect(),t&&t()},onDialogMouseDown:function(){this.dialogMouseDown=!0},onMaskMouseUp:function(){var t=this;this.dialogMouseDown&&(this.timeoutId=setTimeout((function(){t.dialogMouseDown=!1}),0))},onMaskClick:function(t){Date.now()-this.openTime<300||t.target!==t.currentTarget||this.dialogMouseDown||this.close(t)},onKeydown:function(t){var e=this.$props;if(e.keyboard&&t.keyCode===u["default"].ESC)return t.stopPropagation(),void this.close(t);if(e.visible&&t.keyCode===u["default"].TAB){var a=document.activeElement,o=this.$refs.sentinelStart;t.shiftKey?a===o&&this.$refs.sentinelEnd.focus():a===this.$refs.sentinelEnd&&o.focus()}},getDialogElement:function(){var t=this.$createElement,e=this.closable,a=this.prefixCls,o=this.width,r=this.height,s=this.title,d=this.footer,u=this.bodyStyle,p=this.visible,m=this.bodyProps,f=this.forceRender,g=this.dialogStyle,_=this.dialogClass,v=(0,c["default"])({},g);void 0!==o&&(v.width="number"===typeof o?o+"px":o),void 0!==r&&(v.height="number"===typeof r?r+"px":r);var y=void 0;d&&(y=t("div",{key:"footer",class:a+"-footer",ref:"footer"},[d]));var w=void 0;s&&(w=t("div",{key:"header",class:a+"-header",ref:"header"},[t("div",{class:a+"-title",attrs:{id:this.titleId}},[s])]));var C=void 0;if(e){var k=(0,l.getComponentFromProp)(this,"closeIcon");C=t("button",{attrs:{type:"button","aria-label":"Close"},key:"close",on:{click:this.close||T},class:a+"-close"},[k||t("span",{class:a+"-close-x"})])}var x=v,S={width:0,height:0,overflow:"hidden"},A=(0,n["default"])({},a,!0),F=this.getTransitionName(),O=t(h["default"],{directives:[{name:"show",value:p}],key:"dialog-element",attrs:{role:"document",forceRender:f},ref:"dialog",style:x,class:[A,_],on:{mousedown:this.onDialogMouseDown}},[t("div",{attrs:{tabIndex:0,"aria-hidden":"true"},ref:"sentinelStart",style:S}),t("div",{class:a+"-content"},[C,w,t("div",(0,i["default"])([{key:"body",class:a+"-body",style:u,ref:"body"},m]),[this.$slots["default"]]),y]),t("div",{attrs:{tabIndex:0,"aria-hidden":"true"},ref:"sentinelEnd",style:S})]),j=(0,b["default"])(F,{afterLeave:this.onAnimateLeave});return t("transition",(0,i["default"])([{key:"dialog"},j]),[p||!this.destroyPopup?O:null])},getZIndexStyle:function(){var t={},e=this.$props;return void 0!==e.zIndex&&(t.zIndex=e.zIndex),t},getWrapStyle:function(){return(0,c["default"])({},this.getZIndexStyle(),this.wrapStyle)},getMaskStyle:function(){return(0,c["default"])({},this.getZIndexStyle(),this.maskStyle)},getMaskElement:function(){var t=this.$createElement,e=this.$props,a=void 0;if(e.mask){var o=this.getMaskTransitionName();if(a=t(h["default"],(0,i["default"])([{directives:[{name:"show",value:e.visible}],style:this.getMaskStyle(),key:"mask",class:e.prefixCls+"-mask"},e.maskProps])),o){var r=(0,b["default"])(o);a=t("transition",(0,i["default"])([{key:"mask"},r]),[a])}}return a},getMaskTransitionName:function(){var t=this.$props,e=t.maskTransitionName,a=t.maskAnimation;return!e&&a&&(e=t.prefixCls+"-"+a),e},getTransitionName:function(){var t=this.$props,e=t.transitionName,a=t.animation;return!e&&a&&(e=t.prefixCls+"-"+a),e},switchScrollingEffect:function(){var t=this.getOpenCount,e=t();if(1===e){if(I.hasOwnProperty("overflowX"))return;I={overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY,overflow:document.body.style.overflow},(0,w["default"])(),document.body.style.overflow="hidden"}else e||(void 0!==I.overflow&&(document.body.style.overflow=I.overflow),void 0!==I.overflowX&&(document.body.style.overflowX=I.overflowX),void 0!==I.overflowY&&(document.body.style.overflowY=I.overflowY),I={},(0,w["default"])(!0))},close:function(t){this.__emit("close",t)}},render:function(){var t=arguments[0],e=this.prefixCls,a=this.maskClosable,o=this.visible,r=this.wrapClassName,n=this.title,s=this.wrapProps,c=this.getWrapStyle();return o&&(c.display=null),t("div",{class:e+"-root"},[this.getMaskElement(),t("div",(0,i["default"])([{attrs:{tabIndex:-1,role:"dialog","aria-labelledby":n?this.titleId:null},on:{keydown:this.onKeydown,click:a?this.onMaskClick:T,mouseup:a?this.onMaskMouseUp:T},class:e+"-wrap "+(r||""),ref:"wrap",style:c},s]),[this.getDialogElement()])])}}},9518:function(t,e,a){t.exports=a.p+"img/app_detail_promotion.bdb88ef1.png"},"952a":function(t,e,a){t.exports=a.p+"img/common_question_icon.64464384.png"},9589:function(t,e,a){},"95c7":function(t,e,a){"use strict";a("d142")},"95d7":function(t,e,a){},"95e7":function(t,e,a){},9610:function(t,e,a){t.exports=a.p+"img/miniapp_main_color.c3d07550.png"},9632:function(t,e,a){},9681:function(t,e,a){"use strict";a("5b11")},"968a":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("H5")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"site_style",platform:"mobile_web",routerType:"h5"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"h5-preview-panel",staticStyle:{width:"770px"},on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("6c92")}}),o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.compdata,"h5_main_color").config_value})])]),o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,staticClass:"box box-1"},[o("div",{staticClass:"box-item-1"},[o("div",{staticClass:"pic"},[o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),e%2===1?o("div",{staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")]):t._e()]),o("div",{staticClass:"tag"},[o("div",e%2===1?[o("span",{staticClass:"tag-box"},[t._v("新品")]),o("span",{staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{staticClass:"tag-box"},[t._v("商品打标")]),o("span",{staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{staticClass:"eng"},[t._v("品牌名")]),o("span",{staticClass:"line"},[t._v("/")]),o("span",{staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[o("div",{staticClass:"line-1"},[t._v("此处为商品标题")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:e%2===1?"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value:"color: "+t.findCurrentFormFun(t.compdata,"h5_sale_price_color").config_value},[t._v("AU$112.8")]),e%2===1?o("span",{staticClass:"right-price"},[t._v("AU$134")]):t._e()]),o("div",{staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{staticClass:"add-icon"},[o("img",{attrs:{src:"https://cms-resource-test.azoyacdn.com/decoration/product-list-add-cart.png",alt:""}})])])])})),0)]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("2ed4")}}),o("div",{staticClass:"tab-color",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_main_color").config_value},[t._v("产品描述"),o("div",{staticClass:"bottom-style",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_main_color").config_value})]),o("div",{staticClass:"tiem_shop",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("限时购")]),o("div",{staticClass:"time_background",style:"background: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("距结束仅剩:01天20小时20分20秒 "),o("img",{attrs:{src:a("1801"),alt:""}})]),o("div",{staticClass:"price",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("AU$"),o("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v("199.99")])]),o("div",{staticClass:"active",style:"color: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("Physician's Formula 用码[JAN33] 67折")]),o("div",{staticClass:"add_cart",style:"background: "+t.findCurrentFormFun(t.compdata,"h5_promotion_color").config_value},[t._v("加入购物车")])]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("站点风格")]),t.compdata&&t.compdata.length>0?o("siteStyleForm",{ref:"siteStyleForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("fb02"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"siteStyleForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"siteStyleForm"}),groupId:this.$route.params.id,loading:!1,isChange:!1}},methods:{updateItem:function(){var t=this;this.$refs.siteStyleForm.onSubmit();var e=this.form.validateFields;e((function(e,a){if(!e){if(!0===t.loading)return;var o={items:[]};t.compdata.forEach((function(t){o.items.push({id:t.id,config_value:t.config_value})})),t.loading=!0,Object(p["h"])(o).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.isChange=!1):t.$message.error(e.message),t.loading=!1}))}}))},handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("53be"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"8533a6a2",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],siteStyleForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.siteStyleForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.siteStyleForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("f753"),Object(g["a"])(k,o,i,!1,null,"0f32337e",null));e["default"]=x.exports},"96a0":function(t,e,a){"use strict";a("ee29")},"96d1":function(t,e,a){"use strict";a("f297")},"97ce":function(t,e,a){},"97ec":function(t,e,a){"use strict";a("15a8")},9810:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"product_detail","active-name":"商品详情"}},[a("template",{slot:"content"},[a("page-render",{on:{onSet:t.onSet}})],1),a("template",{slot:"form"},[a("c-form",{ref:"cForm"})],1)],2)],1)},i=[],r=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=a("2f62"),s=a("b332"),c=a("59a9"),l=a("ecd9"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("page-form",{ref:"pageForm"})],1)],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("96cf"),a("1da1")),m=a("6077"),f=a("37ab");function h(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function g(t){for(var e=1;e200?a("展示数量不能超过200"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_only.showNum}],expression:"[\n `product-only-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 200 ? cb('展示数量不能超过200') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.showNum\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputProductOnlyShowNum}})],1):t._e(),1===t.compdata.type?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e()],1):2===t.compdata.type?a("div",[1!==t.pageType?a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-num-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>200?a("展示数量不能超过200"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_tab.showNum}],expression:"[\n `product-tab-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 200 ? cb('展示数量不能超过200') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_tab.showNum\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputProductTabShowNum}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"添加商品Tab"},slot:"label"},[t._v("添加商品Tab"),a("br"),a("span",{staticStyle:{color:"#999"}},[t._v("最多添加10个")])])]),t._l(t.compdata.product_tab.tabs,(function(e,o){return a("div",{key:"product-tab-"+t.compdata.uuid+"-"+o,staticClass:"tab-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o)}}}):t._e(),o!==t.compdata.product_tab.tabs.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o)}}}):t._e(),t.compdata.product_tab.tabs.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{style:1===e.set_type?"margin-bottom: 0":"margin-bottom: 8px",attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"添加商品"},slot:"label"},[t._v("添加商品"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-radio-group",{on:{change:t.updateModule},model:{value:e.set_type,callback:function(a){t.$set(e,"set_type",a)},expression:"tab.set_type"}},[a("a-radio",{attrs:{value:1}},[t._v("商品")]),a("a-radio",{attrs:{value:2}},[t._v("选择分类")]),a("a-radio",{attrs:{value:3}},[t._v("选择品牌")])],1)],1),1===e.set_type?a("div",{staticClass:"tab-products"},[a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"select-num"},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyProductIds(e)}}},[t._v("清空商品")])]),a("a-form-item",{staticClass:"image-list-wrap",staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("product-image-list",{key:"product-tab-list-"+t.compdata.uuid+"-"+o,attrs:{"product-ids":e.product_ids,limit:Number(t.compdata.product_tab.showNum)},on:{add:function(a){return t.addProducts(e)},loaded:function(e){return t.setHiddenProducts("tab",e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-list-"+t.compdata.uuid+"-"+o+"-validator",{rules:[{required:!0,message:"请添加商品"}],initialValue:t.compdata.product_only.product_ids.join(",")}],expression:"[\n `product-tab-list-${compdata.uuid}-${index}-validator`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: compdata.product_only.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{staticClass:"meta"},[a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")])],1)],1):2===e.set_type?a("a-form-item",[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-cate-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入分类ID"}],initialValue:e.cate_id}],expression:"[\n `product-tab-cate-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入分类ID'\n }\n ],\n initialValue: tab.cate_id\n }\n ]"}],attrs:{placeholder:"请输入分类ID"},on:{input:function(a){return t.inputProductTabCateId(a,e)}}})],1):3===e.set_type?a("a-form-item",[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-brand-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入品牌ID"}],initialValue:e.brand_id}],expression:"[\n `product-tab-brand-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入品牌ID'\n }\n ],\n initialValue: tab.brand_id\n }\n ]"}],attrs:{placeholder:"请输入品牌ID"},on:{input:function(a){return t.inputProductTabBrandId(a,e)}}})],1):t._e(),1===t.pageType&&5===t.compdata.display_tpl&&2===t.compdata.type?a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"添加左图"},slot:"label"},[t._v("添加左图"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("固定尺寸466×370像素,大小不超过300KB,支持jpg/png/gif格式")])]):t._e(),1===t.pageType&&5===t.compdata.display_tpl&&2===t.compdata.type?a("div",{staticStyle:{width:"calc(100% + 24px)","margin-left":"-12px",padding:"16px 4.16666667% 8px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("image-uploader",{key:"tabLeftImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.left_image_url,"custom-style":"margin-bottom: 0"},on:{imageUploaded:function(a){return t.leftImageChange(a,e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabLeftImage-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.left_image_url}],expression:"[\n `tabLeftImage-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: tab.left_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tabLeftLink-"+t.compdata.uuid+"-"+o,{initialValue:e.left_image_link}],expression:"[\n `tabLeftLink-${compdata.uuid}-${index}`,\n {\n initialValue: tab.left_image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.leftLinkChange(a,e)}}})],1)],1):t._e(),a("a-form-item",[a("label",{attrs:{slot:"label",title:"Tab名称"},slot:"label"},[t._v("Tab名称"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入Tab名称"}],initialValue:e.tab_name}],expression:"[\n `product-tab-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入Tab名称'\n }\n ],\n initialValue: tab.tab_name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.inputProductTabName(a,e)}}})],1),a("a-form-item",{style:e.show_more.is_show?"margin-bottom: 0":"",attrs:{label:"查看更多图片"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:e.show_more.is_show,callback:function(a){t.$set(e.show_more,"is_show",a)},expression:"tab.show_more.is_show"}},[t._v("显示")])],1),e.show_more.is_show?a("div",{staticStyle:{"margin-bottom":"12px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.moreImageChange(a,e,o)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(a,e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.show_more.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.show_more.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e,o)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),1===t.pageType?a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸240×60像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]):a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸990×80像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-more-image-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.show_more.image_url}],expression:"[\n `product-tab-more-image-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: tab.show_more.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-more-link-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.show_more.image_link}],expression:"[\n `product-tab-more-link-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.show_more.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputProductTabMoreLink(a,e)}}})],1)],1):t._e()],1)})),t.compdata.product_tab.tabs.length<10?a("a-button",{style:{marginBottom:1===t.pageType?"24px":0},attrs:{block:""},on:{click:t.addTab}},[t._v("+ 添加商品Tab")]):t._e()],2):t._e(),5!==t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{attrs:{label:"商品行数"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.product_line,callback:function(e){t.$set(t.compdata,"product_line",e)},expression:"compdata.product_line"}},[a("a-radio",{attrs:{value:1}},[t._v("一行")]),a("a-radio",{attrs:{value:2}},[t._v("二行")])],1)],1):t._e(),5!==t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{style:{marginBottom:t.compdata.is_show_switch?0:"24px"},attrs:{label:"切换按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_switch,callback:function(e){t.$set(t.compdata,"is_show_switch",e)},expression:"compdata.is_show_switch"}},[t._v("显示")])],1):t._e(),1===t.pageType&&t.compdata.is_show_switch&&5!==t.compdata.display_tpl?a("div",{staticStyle:{padding:"16px 8px 0",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["home-show-num-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.home_show_num}],expression:"[\n `home-show-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.home_show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputHomeShowNum}}),a("p",{staticStyle:{margin:"8px auto 0","font-size":"12px",color:"#999"}},[t._v("建议输入值为"+t._s(t.homeShowNumTips[t.compdata.display_tpl])+"的倍数")])],1)],1):t._e(),1===t.compdata.type&&5===t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"添加左图"},slot:"label"},[t._v("添加左图"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("固定尺寸466×370像素,大小不超过300KB,支持jpg/png/gif格式")])]):t._e(),1===t.compdata.type&&5===t.compdata.display_tpl&&1===t.pageType?a("div",{staticStyle:{width:"calc(100% + 8.33333333%)","margin-left":"-4.16666667%",padding:"16px 4.16666667% 8px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("image-uploader",{key:"leftImageUploader-"+t.compdata.uuid,attrs:{"img-url":t.compdata.product_only.left_image_url,"custom-style":"margin-bottom: 0"},on:{imageUploaded:function(e){return t.leftImageChange(e,t.compdata.product_only)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productOnlyLeftImage-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.product_only.left_image_url}],expression:"[\n `productOnlyLeftImage-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.product_only.left_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productOnlyLeftLink-"+t.compdata.uuid,{initialValue:t.compdata.product_only.left_image_link}],expression:"[\n `productOnlyLeftLink-${compdata.uuid}`,\n {\n initialValue: compdata.product_only.left_image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.leftLinkChange(e,t.compdata.product_only)}}})],1)],1):t._e(),a("a-divider"),2===t.compdata.type?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e(),2===t.compdata.type?a("a-form-item",{attrs:{label:"商品Tab样式"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.product_tab.style,callback:function(e){t.$set(t.compdata.product_tab,"style",e)},expression:"compdata.product_tab.style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")])],1)],1):t._e(),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_discount,callback:function(e){t.$set(t.compdata,"is_show_discount",e)},expression:"compdata.is_show_discount"}},[t._v("显示")])],1),1!==t.pageType?a("a-form-item",{attrs:{label:"简短描述"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_short_des,callback:function(e){t.$set(t.compdata,"is_show_short_des",e)},expression:"compdata.is_show_short_des"}},[t._v("显示")])],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"已售完商品"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_hide_sold_out,callback:function(e){t.$set(t.compdata,"is_hide_sold_out",e)},expression:"compdata.is_hide_sold_out"}},[t._v("显示")])],1),a("p",{staticStyle:{color:"#999"}},[t._v("不勾选显示,客户端默认隐藏已售完商品,若商品全部售完,客户端隐藏该组件显示")]),1===t.pageType?a("a-form-item",{style:{marginBottom:t.compdata.home_add_btn.is_show?0:"24px"},attrs:{label:"加购图标"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.home_add_btn.is_show,callback:function(e){t.$set(t.compdata.home_add_btn,"is_show",e)},expression:"compdata.home_add_btn.is_show"}},[t._v("显示")])],1):t._e(),t.compdata.home_add_btn&&t.compdata.home_add_btn.is_show&&1===t.pageType?a("div",{staticStyle:{padding:"8px 8px 0",background:"#f7f7f7"}},[a("a-form-item",[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.addIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.home_add_btn.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.home_add_btn.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteAddIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0","font-size":"12px",color:"#999"}},[t._v("参考尺寸36×36像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["home-add-btn-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.home_add_btn.image_url}],expression:"[\n `home-add-btn-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.home_add_btn.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),1!==t.pageType?a("a-form-item",{style:t.compdata.is_show_add_btn?"margin-bottom: 0":"",attrs:{label:"加购按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_add_btn,callback:function(e){t.$set(t.compdata,"is_show_add_btn",e)},expression:"compdata.is_show_add_btn"}},[t._v("显示")])],1):t._e(),t.compdata.is_show_add_btn&&1!==t.pageType?a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1):t._e(),2===t.compdata.type?a("a-form-item",{attrs:{label:"商品Tab选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.selected_tab_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.selected_tab_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.product_tab.selected_tab_color,callback:function(e){t.$set(t.compdata.product_tab,"selected_tab_color",e)},expression:"compdata.product_tab.selected_tab_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.selected_tab_color}})])])],2)],1):t._e(),1===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),a("manage-products",{ref:"productsModal",attrs:{secret:0===t.pageType?1:0},on:{update:t.updateModule}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1):t._e()},le=[],de=a("2909"),ue=(a("c5f6"),a("55fa")),pe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"selected-products"},[t._l(t.products,(function(e,o){return a("div",{key:o,staticClass:"thumb"},[a("img",{attrs:{src:e.image_url},on:{error:function(a){e.image_url=t.defaultImg}}})])})),a("div",{staticClass:"thumb add",on:{click:function(e){return t.$emit("add")}}},[a("a-icon",{attrs:{type:"plus"}})],1)],2)},me=[],fe=a("b775"),he=function(){return ge.apply(this,arguments)};function ge(){return ge=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a,o,i,r,n,s,c,l,d,u,p,m,f,h,g,_,v,b=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=b.length>0&&void 0!==b[0]?b[0]:{},a=e.product_ids,o=void 0===a?[]:a,i=e.cate_id,r=void 0===i?"":i,n=e.brand_id,s=void 0===n?"":n,c=e.limit,l=void 0===c?20:c,d=e.website_id,u=void 0===d?"":d,p=e.secret,m=void 0===p?0:p,f=e.stock,h=void 0===f?0:f,u){t.next=3;break}return t.abrupt("return");case 3:if(!o.length){t.next=12;break}return t.next=6,fe["b"].get("/api-cms/cms/product/list?website_id=".concat(u,"&limit=").concat(l,"&product_id=").concat(o.join(","),"&idSort=1&secret=").concat(m,"&stock=").concat(h));case 6:if(g=t.sent,!g.data.results){t.next=11;break}return t.abrupt("return",Object(de["a"])(g.data.results));case 11:return t.abrupt("return",[]);case 12:if(!r){t.next=21;break}return t.next=15,fe["b"].get("/api-cms/cms/product/list?website_id=".concat(u,"&limit=").concat(l,"&cid=").concat(r,"&secret=").concat(m,"&stock=").concat(h));case 15:if(_=t.sent,!_.data.results){t.next=20;break}return t.abrupt("return",Object(de["a"])(_.data.results));case 20:return t.abrupt("return",[]);case 21:if(!s){t.next=30;break}return t.next=24,fe["b"].get("/api-cms/cms/product/list?website_id=".concat(u,"&limit=").concat(l,"&brand_id=").concat(s,"&secret=").concat(m,"&stock=").concat(h));case 24:if(v=t.sent,!v.data.results){t.next=29;break}return t.abrupt("return",Object(de["a"])(v.data.results));case 29:return t.abrupt("return",[]);case 30:return t.abrupt("return",[]);case 31:case"end":return t.stop()}}),t)}))),ge.apply(this,arguments)}function _e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function ve(t){for(var e=1;e1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"adImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.adImageChange(a,e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adImageUploadValue-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `adImageUploadValue-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: ad.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adsLink-"+t.compdata.uuid+"-"+o,{initialValue:t.compdata.ads[o].image_link}],expression:"[\n `adsLink-${compdata.uuid}-${index}`,\n {\n initialValue: compdata.ads[index].image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.changeImageLink(e,o)}}})],1),1!==t.pageType?a("a-form-item",{attrs:{label:"跳转楼层"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["ad-jump-"+t.compdata.uuid+"-"+o,{initialValue:t.getRemark(e)}],expression:"[\n `ad-jump-${compdata.uuid}-${index}`,\n {\n initialValue: getRemark(ad)\n }\n ]"}],attrs:{placeholder:"请选择"},nativeOn:{click:function(a){return t.selectLayer(e,o)}}})],1):t._e()],1)})),a("a-button",{style:{marginBottom:1===t.pageType?"0":"24"},attrs:{block:""},on:{click:t.add}},[t._v("+ 添加广告图")]),1===t.pageType?a("a-divider"):t._e(),1===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),1===t.pageType?[a("a-divider"),a("a-form-item",{attrs:{label:"鼠标移入效果"}},[a("p",{staticStyle:{"margin-bottom":"8px","font-size":"12px",color:"#999"}},[t._v("鼠标移入图片显示的透明度效果")]),a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_hover,callback:function(e){t.$set(t.compdata,"is_show_hover",e)},expression:"compdata.is_show_hover"}},[t._v("显示")])],1)]:t._e(),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1),a("stair-select",{attrs:{visible:t.modalVisible,ad:t.selectedAd},on:{close:t.closeModal,select:t.selectStair}})],2):t._e()},Ie=[],Pe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"选择跳转楼层",destroyOnClose:!0,visible:t.visible,width:800,maskStyle:{zIndex:10040},zIndex:10041},on:{ok:t.selectLayer,cancel:t.cancel}},[a("a-table",{attrs:{"table-layout":"fixed","data-source":t.tableData,columns:t.columns,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:!1,scroll:{y:270}}})],1)},Ee=[];function Me(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function $e(t){for(var e=1;e1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"跳转楼层"},slot:"label"},[t._v("跳转楼层"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav-jump-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择跳转楼层"}],initialValue:t.getRemark(e)}],expression:"[\n `nav-jump-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择跳转楼层'\n }\n ],\n initialValue: getRemark(nav)\n }\n ]"}],attrs:{placeholder:"请选择"},nativeOn:{click:function(a){return t.selectLayer(e,o)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"导航名称"},slot:"label"},[t._v("导航名称"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav-title-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入导航名称"}],initialValue:e.title}],expression:"[\n `nav-title-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入导航名称'\n }\n ],\n initialValue: nav.title\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.inputNavTitle(a,e)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"生效时间"},slot:"label"},[t._v("生效时间")]),a("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["RangePicker-"+t.compdata.uuid+"-"+o,{initialValue:t.initialBlockTimer(e)}],expression:"[\n `RangePicker-${compdata.uuid}-${index}`,\n {\n initialValue: initialBlockTimer(nav)\n }\n ]"}],staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1)],1)})),a("a-button",{attrs:{block:""},on:{click:t.add}},[t._v("+ 添加导航")]),a("a-divider"),a("a-form-item",{style:t.compdata.top_image.is_show?"margin-bottom: 0":"",attrs:{label:"导航栏顶图"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.top_image.is_show,callback:function(e){t.$set(t.compdata.top_image,"is_show",e)},expression:"compdata.top_image.is_show"}},[t._v("显示")])],1),t.compdata.top_image.is_show?a("div",{staticStyle:{"margin-bottom":"24px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.topIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(e){return t.openImageLib(e,"top")}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.top_image.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.top_image.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteTopImage}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0"}},[t._v("参考尺寸120×60像素,宽度固定,高度不超过150像素,大小不超过100KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav-top-img-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.top_image.image_url}],expression:"[\n `nav-top-img-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.top_image.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["top-image-"+t.compdata.uuid,{initialValue:t.compdata.top_image.image_link}],expression:"[\n `top-image-${compdata.uuid}`,\n {\n initialValue: compdata.top_image.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:t.inputTopImageLink}})],1)],1):t._e(),a("a-form-item",{style:t.compdata.bottom_image.is_show?"margin-bottom: 0":"",attrs:{label:"导航栏底图"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.bottom_image.is_show,callback:function(e){t.$set(t.compdata.bottom_image,"is_show",e)},expression:"compdata.bottom_image.is_show"}},[t._v("显示")])],1),t.compdata.bottom_image.is_show?a("div",{staticStyle:{"margin-bottom":"24px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[t.compdata.bottom_image.image_url?t._e():a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.bottomIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(e){return t.openImageLib(e,"bottom")}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.bottom_image.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.bottom_image.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteBottomImage}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0"}},[t._v("参考尺寸120×120像素,宽度固定,高度不超过150像素,大小不超过100KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nav-bottom-img-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.bottom_image.image_url}],expression:"[\n `nav-bottom-img-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.bottom_image.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["bottom-image-"+t.compdata.uuid,{initialValue:t.compdata.bottom_image.image_link}],expression:"[\n `bottom-image-${compdata.uuid}`,\n {\n initialValue: compdata.bottom_image.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:t.inputBottomImageLink}})],1)],1):t._e(),a("a-form-item",{attrs:{label:"导航名称颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.text_color},on:{input:function(e){return t.updateColor(e,"compdata.text_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.text_color,callback:function(e){t.$set(t.compdata,"text_color",e)},expression:"compdata.text_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.text_color}})])])],2)],1),a("a-form-item",{attrs:{label:"导航名称选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.text_hl_color},on:{input:function(e){return t.updateColor(e,"compdata.text_hl_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.text_hl_color,callback:function(e){t.$set(t.compdata,"text_hl_color",e)},expression:"compdata.text_hl_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.text_hl_color}})])])],2)],1),a("a-form-item",{attrs:{label:"导航按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.text_bg_color},on:{input:function(e){return t.updateColor(e,"compdata.text_bg_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.text_bg_color,callback:function(e){t.$set(t.compdata,"text_bg_color",e)},expression:"compdata.text_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.text_bg_color}})])])],2)],1),a("a-form-item",{attrs:{label:"导航按钮选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.text_bg_hl_color},on:{input:function(e){return t.updateColor(e,"compdata.text_bg_hl_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.text_bg_hl_color,callback:function(e){t.$set(t.compdata,"text_bg_hl_color",e)},expression:"compdata.text_bg_hl_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.text_bg_hl_color}})])])],2)],1),a("stair-select",{attrs:{visible:t.modalVisible,ad:t.selectedAd},on:{close:t.closeModal,select:t.selectStair}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],2):t._e()},ra=[];function na(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function sa(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[],e=Object(r["a"])(t,2),a=e[0],o=e[1],i=this.findRelateMod();this.compdata.content=a,this.compdata.pureText=o,this.updateModule(),i&&(i.content=a,i.pureText=o,this.updateRelateModule(i))}},watch:{compdata:{deep:!0,handler:function(t){this.$refs.WangEditor.setVal(t.content),this.form.setFieldsValue(Object(s["a"])({},"richtext-".concat(this.compdata.uuid),t.pureText))}}},mounted:function(){this.$refs.WangEditor.setVal(this.compdata.content)},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"RichForm"})}},wa=ya,Ca=(a("4442"),a("0b8f"),a("f0f0"),Object(g["a"])(wa,_a,va,!1,null,"d4878830",null)),ka=Ca.exports,xa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"选择模板"},slot:"label"},[t._v("选择模板"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},on:{change:t.updateModule},model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一张")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二张")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三张")])],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加优惠券"}},[a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v(t._s(t.couponRules[t.compdata.display_tpl]))])]),t._l(t.compdata.coupons,(function(e,o){return a("div",{key:"coupon-"+t.compdata.uuid+"-"+o,staticClass:"coupon-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o)}}}):t._e(),o!==t.compdata.coupons.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o)}}}):t._e(),t.compdata.coupons.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"couponImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.couponImageChange(a,e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["couponImageUrl-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `couponImageUrl-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: coupon.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"选择优惠券"},slot:"label"},[t._v("选择优惠券"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),e.coupon_id?a("div",{staticClass:"ant-input coupon-desc"},[t._v("\n "+t._s(e.coupon_desc)+"\n "),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:function(a){return t.editCoupon(e,o)}}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:function(a){return t.deleteCoupon(e,o)}}})],1):a("a-button",{attrs:{block:""},on:{click:function(a){return t.selectCoupon(e,o)}}},[t._v("选择优惠券")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["couponCode-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择优惠券"}],initialValue:e.coupon_id}],expression:"[\n `couponCode-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择优惠券'\n }\n ],\n initialValue: coupon.coupon_id\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),a("a-button",{staticStyle:{"margin-bottom":"24px"},attrs:{block:""},on:{click:t.add}},[t._v("+ 添加优惠券")]),1===t.pageType?[a("a-divider",{staticStyle:{"margin-top":"0"}}),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)]:t._e(),[a("a-divider",{staticStyle:{"margin-top":"0"}}),a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)],a("select-coupon",{ref:"selectCoupon",on:{triggerSelectCoupon:t.triggerSelectCoupon}})],2):t._e()},Sa=[],Aa=a("2af9"),Ta=a("ed3b"),Fa=a("cbfe"),Oa={image_url:"",coupon_id:"",coupon_desc:""},ja={mixins:[kt],components:{"select-coupon":Aa["f"]},data:function(){return{modalVisible:!1,currentCoupon:null,currentCouponIndex:-1}},computed:{couponRules:function(){return 1===this.pageType?["","参考尺寸1190×220像素。宽度固定,高度不超过1200像素。大小不超过800KB,支持jpg/png/gif格式","参考尺寸595 X 220px像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","参考尺寸396 x200px像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"]:0===this.pageType?["","参考尺寸990×220像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","参考尺寸495×200像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式","参考尺寸330×180像素。宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式"]:[]}},watch:{"compdata.coupons":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){var e=[],a=t.coupons;this.compdata.coupons.forEach((function(t,o){e.push({img_url:a[o]?a[o].img_url:"",rule_id:t.coupon_id,coupon_desc:t.coupon_desc})})),t.coupons=e,this.updateRelateModule(t)}}}},methods:{couponImageChange:function(t,e,a){e.image_url=t,this.form.setFieldsValue(Object(s["a"])({},"couponImageUrl-".concat(this.compdata.uuid,"-").concat(a),t)),this.updateModule()},add:function(){this.compdata.coupons.push(JSON.parse(JSON.stringify(Oa))),this.updateModule()},selectCoupon:function(t,e){this.$refs.selectCoupon.readyShow(),this.currentCoupon=t,this.currentCouponIndex=e},triggerSelectCoupon:function(t){this.currentCoupon.coupon_id=t.id,this.getCouponDetail(this.currentCoupon.coupon_id),this.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(this.compdata.uuid,"-").concat(this.currentCouponIndex),t.id)),this.updateModule()},getCouponDetail:function(t){var e=this;Object(Fa["s"])({id:t}).then((function(t){var a=t.data;e.currentCoupon.coupon_desc=a.title,e.updateModule()}))},editCoupon:function(t,e){this.selectCoupon(t,e)},deleteCoupon:function(t,e){var a=this;Ta["a"].confirm({content:"确定删除吗?",onOk:function(){t.coupon_id="",t.coupon_desc="",a.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(a.compdata.uuid,"-").concat(a.currentCouponIndex),"")),a.updateModule()}})},close:function(){this.modalVisible=!1},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.coupons.splice(t,1);e.compdata.coupons.splice(t-1,0,a[0]),e.updateModule(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.coupons.splice(t,1);e.compdata.coupons.splice(t+1,0,a[0]),e.updateModule(),e.renderForm=!0}))},del:function(t){var e=this;this.$confirm({title:"确定要删除这个优惠券吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.coupons.splice(t,1),e.updateModule(),e.renderForm=!0}))},onCancel:function(){}})},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[oe()(t.block_timer.start_time),oe()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss"),this.updateModule()},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="",this.updateModule())}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CouponForm"})}},Ia=ja,Pa=(a("a63b"),Object(g["a"])(Ia,xa,Sa,!1,null,"03e0df42",null)),Ea=Pa.exports,Ma=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},on:{change:t.updateModule},model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一个")]),a("a-select-option",{attrs:{value:2}},[t._v("一行二个")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三个")]),a("a-select-option",{attrs:{value:4}},[t._v("一行四个")]),a("a-select-option",{attrs:{value:5}},[t._v("一行五个")])],1)],1),a("a-divider"),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加场次"}}),t._l(t.compdata.rounds,(function(e,o){return a("div",{key:"round-"+t.compdata.uuid+"-"+o,staticClass:"round-wrap"},[a("div",{staticClass:"ctrl-widgets"},[t.compdata.rounds.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{attrs:{label:"场次名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-name-"+t.compdata.uuid+"-"+o,{initialValue:e.name}],expression:"[\n `round-name-${compdata.uuid}-${index}`,\n {\n initialValue: round.name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.inputRoundName(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"选择限时抢活动"},slot:"label"},[t._v("选择限时抢活动"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择限时抢活动"}],initialValue:e.async_name||void 0}],expression:"[\n `round-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择限时抢活动'\n }\n ],\n initialValue: round.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e,o)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id?a("a-form-item",{attrs:{label:"活动时间"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `round-time-${compdata.uuid}-${index}`,\n {\n initialValue: round.async_start + '~' + round.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),e.async_id?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"选择商品"},slot:"label"},[t._v("选择商品"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])])]),a("div",{staticClass:"round-products"},[a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"select-num"},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyRoundProducts(e)}}},[t._v("清空商品")])]),a("product-image-list",{key:"round-product-list-"+t.compdata.uuid+"-"+o,attrs:{"product-ids":e.product_ids},on:{add:function(a){return t.addProducts(e)},loaded:function(e){return t.setHiddenProducts(e,o)}}}),a("a-form-item",{staticStyle:{margin:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-product-list-area-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `round-product-list-area-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择商品'\n }\n ],\n initialValue: round.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{staticClass:"meta"},[a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")])],1)],1)],1)})),a("a-button",{attrs:{block:""},on:{click:t.add}},[t._v("+ 添加场次")]),a("a-divider"),1!==t.pageType?a("a-form-item",{attrs:{label:"简短描述"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_short_des,callback:function(e){t.$set(t.compdata,"is_show_short_des",e)},expression:"compdata.is_show_short_des"}},[t._v("显示")])],1):t._e(),a("a-form-item",{attrs:{label:"Tab背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.tab_bg_color},on:{input:function(e){return t.updateColor(e,"compdata.tab_bg_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.tab_bg_color,callback:function(e){t.$set(t.compdata,"tab_bg_color",e)},expression:"compdata.tab_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.tab_bg_color}})])])],2)],1),0===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),a("a-form-item",{attrs:{label:"抢购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1),a("manage-products",{ref:"productsModal",attrs:{init:t.currentRuleProducts,"hide-input":!0},on:{update:t.updateModule}})],2):t._e()},$a=[],Da={name:"",async_name:"",async_id:"",async_start:"",async_end:"",product_ids:[],start_time:"",end_time:""};function Na(t,e){function a(){Object(fe["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{website_id:t.websiteId,promotion_type:2,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&la===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at].join("<-depart->"),text:t.title})})),e(i)}}))}ca&&(clearTimeout(ca),ca=null),la=t.title,ca=setTimeout(a,150)}var Ra={mixins:[kt],components:{"manage-products":ue["a"],"product-image-list":xe},data:function(){return{promotionList:[],productsList:{},currentRuleProducts:""}},watch:{"compdata.rounds":{deep:!0,handler:function(){var t=this;Na({websiteId:this.websiteId},(function(e){return t.promotionList=e}));var e=this.findRelateMod();if(e){var a=[];this.compdata.rounds.forEach((function(t){a.push({name:t.name,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,product_ids:t.product_ids,start_time:t.start_time,end_time:t.end_time})})),e.rounds=a,this.updateRelateModule(e)}}}},methods:{handleSubmit:function(){for(var t=this,e=this.compdata.rounds,a=1;a");e.async_id=i[1],e.async_name=i[0],e.async_start=i[2],e.async_end=i[3],e.product_ids=[],this.updateModule(),this.form.setFieldsValue(Object(s["a"])({},"round-product-list-area-".concat(this.compdata.uuid,"-").concat(a),"")),this.getProductListByRule(i[1]),Na({websiteId:this.websiteId},(function(t){return o.promotionList=t}))},getProductListByRule:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(fe["b"])({url:"/api-cms/cms/promotion/product-list",method:"get",params:{rule_id:e,promotion_type:2}});case 2:a=t.sent,o=a.data,o.rows&&(i=[],o.rows.forEach((function(t){i.push({product_id:t.product_id,sales_price:t.sales_price,remain_inventory:t.remain_inventory})})),this.productsList[e]=i);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),del:function(t){var e=this;this.$confirm({title:"确定删除这个场次吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.rounds.splice(t,1),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},onCancel:function(){}})},emptyRoundProducts:function(t){var e=this;this.$confirm({title:"清空后需要重新配置数据,确认清空吗?",okText:"确定",cancelText:"取消",onOk:function(){t.product_ids=[],e.updateModule()},onCancel:function(){}})},addProducts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.async_id,a){t.next=4;break}return this.$message.error("请先选择限时抢活动"),t.abrupt("return");case 4:if(o=this.productsList[a],i=[],o){t.next=10;break}return t.next=9,this.getProductListByRule(a);case 9:o=this.productsList[a];case 10:o.forEach((function(t){i.push(t.product_id)})),this.currentRuleProducts=i.join(","),this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.chooseVisible=!0;case 14:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),editProductIds:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.async_id,o=this.productsList[a],i=[],o){t.next=7;break}return t.next=6,this.getProductListByRule(a);case 6:o=this.productsList[a];case 7:o.forEach((function(t){i.push(t.product_id)})),this.currentRuleProducts=i.join(","),this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.selectedProducts=Object(de["a"])(e.product_ids),this.$refs.productsModal.editVisible=!0;case 12:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),resetFieldsError:function(){for(var t=0;t1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"slideImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.slideImageChange(a,e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["slideImageUploadValue-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `slideImageUploadValue-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: slide.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["slideLink-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:t.compdata.slides[o].image_link}],expression:"[\n `slideLink-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: compdata.slides[index].image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.changeImageLink(e,o)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"生效时间"},slot:"label"},[t._v("生效时间"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialDate(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmDate(e,o,a)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["setDateTime-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择生效时间"}],initialValue:t.initialDate(e).join(",")}],expression:"[\n `setDateTime-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择生效时间'\n }\n ],\n initialValue: initialDate(slide).join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),t.compdata.slides.length<30?a("a-button",{staticStyle:{"margin-bottom":"24px"},attrs:{block:""},on:{click:t.add}},[t._v("+ 添加轮播图")]):t._e(),a("a-form-item",{attrs:{label:"指示器"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.indicator_type,callback:function(e){t.$set(t.compdata,"indicator_type",e)},expression:"compdata.indicator_type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")])],1)],1),a("a-form-item",{attrs:{label:"切换按钮"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.button_type,callback:function(e){t.$set(t.compdata,"button_type",e)},expression:"compdata.button_type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")])],1)],1)],2):t._e()},qa=[],Ua={image_url:"",image_link:"",start_time:"",end_time:""},Ha={mixins:[kt],data:function(){return{imageRect:[[1920,400],[1920,500],[1920,640],[1190,400]]}},methods:{changeImageLink:function(t,e){this.compdata.slides[e].image_link=t.target.value,this.updateModule()},add:function(){this.compdata.slides.push(JSON.parse(JSON.stringify(Ua))),this.updateModule()},slideImageChange:function(t,e,a){e.image_url=t,this.form.setFieldsValue(Object(s["a"])({},"slideImageUploadValue-".concat(this.compdata.uuid,"-").concat(a),t)),this.updateModule()},moveUp:function(t){var e=this,a=document.getElementById("form-wrap"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.slides.splice(t,1);e.compdata.slides.splice(t-1,0,i[0]),e.updateModule(),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-403}))}))},moveDown:function(t){var e=this,a=document.getElementById("form-wrap"),o=a.scrollTop;this.renderForm=!1,this.$nextTick((function(){var i=e.compdata.slides.splice(t,1);e.compdata.slides.splice(t+1,0,i[0]),e.updateModule(),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o+403}))}))},del:function(t){var e=this,a=document.getElementById("form-wrap"),o=a.scrollTop;this.$confirm({title:"确定要删除这个广告图?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.slides.splice(t,1),e.updateModule(),e.renderForm=!0,e.$nextTick((function(){a.scrollTop=o-403}))}))},onCancel:function(){}})},initialDate:function(t){return t.start_time&&t.end_time?[oe()(t.start_time),oe()(t.end_time)]:[]},confirmDate:function(t,e,a){t.start_time=a[0].format("YYYY-MM-DD HH:mm:ss"),t.end_time=a[1].format("YYYY-MM-DD HH:mm:ss"),this.form.setFieldsValue(Object(s["a"])({},"setDateTime-".concat(this.compdata.uuid,"-").concat(e),t.start_time+","+t.end_time)),this.updateModule()}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CarouselForm"})}},Ga=Ha,Ya=(a("4017"),Object(g["a"])(Ga,za,qa,!1,null,"45f2d028",null)),Ja=Ya.exports,Ka=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode},disabled:""},on:{change:t.updateModule},model:{value:t.compdata.tpl_type,callback:function(e){t.$set(t.compdata,"tpl_type",e)},expression:"compdata.tpl_type"}},[a("a-select-option",{attrs:{value:5}},[t._v("一行五个")])],1)],1),a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recommendShowNum-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_only.show_num}],expression:"[\n `recommendShowNum-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputShowNum}})],1),a("a-divider"),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.product_only.is_show_discount,callback:function(e){t.$set(t.compdata.product_only,"is_show_discount",e)},expression:"compdata.product_only.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{style:{marginBottom:t.compdata.product_only.is_show_btn.status?0:"24px"},attrs:{label:"加购图标"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.product_only.is_show_btn.status,callback:function(e){t.$set(t.compdata.product_only.is_show_btn,"status",e)},expression:"compdata.product_only.is_show_btn.status"}},[t._v("显示")])],1),t.compdata.product_only.is_show_btn.status?a("div",{staticStyle:{padding:"8px 8px 0",background:"#f7f7f7"}},[a("a-form-item",{attrs:{required:!0}},[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.addIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.product_only.is_show_btn.btn_image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.product_only.is_show_btn.btn_image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0","font-size":"12px",color:"#999"}},[t._v("参考尺寸120x120像素,宽度固定,高度不超过120像素,大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["add-icon-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.product_only.is_show_btn.btn_image_url}],expression:"[\n `add-icon-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.product_only.is_show_btn.btn_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),1===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_only.background_color},on:{input:function(e){return t.updateColor(e,"compdata.product_only.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.product_only.background_color,callback:function(e){t.$set(t.compdata.product_only,"background_color",e)},expression:"compdata.product_only.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_only.background_color}})])])],2)],1):t._e(),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1):t._e()},Wa=[],Za={mixins:[kt],data:function(){return{renderForm:!0,uploading:!1}},methods:{inputShowNum:function(t){var e=t.target.value;this.compdata.product_only.show_num=e,this.updateModule()},addIconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.uploading=!0:"done"===a&&200===o.status?(this.compdata.product_only.is_show_btn.btn_image_url=o.data.src,this.uploading=!1,this.updateModule()):200!==o.status&&(this.$message.error(o.message),this.uploading=!1)},deleteIcon:function(){this.compdata.product_only.is_show_btn.btn_image_url="",this.updateModule(),this.form.setFieldsValue(Object(s["a"])({},"add-icon-".concat(this.compdata.uuid),""))},openImageLib:function(){this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.compdata.product_only.is_show_btn.btn_image_url=t,this.updateModule(),this.form.setFieldsValue(Object(s["a"])({},"add-icon-".concat(this.compdata.uuid),t))}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"RecommendForm"})},mounted:function(){this.websiteId=this.$route.params.website_id,this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.websiteId}}},Qa=Za,Xa=(a("3a84"),Object(g["a"])(Qa,Ka,Wa,!1,null,"e9621e42",null)),to=Xa.exports,eo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{attrs:{label:"选择模板"}},[a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},on:{change:t.updateModule},model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:2}},[t._v("一行二张")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三张")])],1)],1),a("a-divider"),a("a-form-item",{attrs:{label:"显示样式"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.style_type,callback:function(e){t.$set(t.compdata,"style_type",e)},expression:"compdata.style_type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")])],1)],1),a("a-form-item",{attrs:{label:"添加图文"}},[2===t.compdata.display_tpl?a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("默认尺寸586×330像素,宽度不限,高度不超过1200像素,大小不超过800KB,支持jpg/png/gif格式")]):t._e(),3===t.compdata.display_tpl?a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("默认尺寸386×290像素,宽度不限,高度不超过1200像素,大小不超过800KB,支持jpg/png/gif格式")]):t._e()]),1===t.compdata.style_type?a("div",[t._l(t.compdata.group_one,(function(e,o){return a("div",{key:"group-one-"+t.compdata.uuid+"-"+o,staticClass:"group-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o,1)}}}):t._e(),o!==t.compdata.group_one.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o,1)}}}):t._e(),t.compdata.group_one.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o,1)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"oneImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.imageChange(a,e,1,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["oneImageUploadValue-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `oneImageUploadValue-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: group.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupOneLink-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.image_link}],expression:"[\n `groupOneLink-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: group.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputLink(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"描述"},slot:"label"},[t._v("描述"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupOneDesc-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入描述"}],initialValue:e.description}],expression:"[\n `groupOneDesc-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入描述'\n }\n ],\n initialValue: group.description\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.inputDesc(a,e)}}})],1),a("a-form-item",{attrs:{label:"按钮名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupOneBtnText-"+t.compdata.uuid+"-"+o,{initialValue:e.btn_text}],expression:"[\n `groupOneBtnText-${compdata.uuid}-${index}`,\n {\n initialValue: group.btn_text\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.inputBtnText(a,e)}}})],1)],1)})),t.compdata.group_one.length<30?a("a-button",{attrs:{block:""},on:{click:function(e){return t.addGroup(1)}}},[t._v("+ 添加图文")]):t._e()],2):2===t.compdata.style_type?a("div",[t._l(t.compdata.group_two,(function(e,o){return a("div",{key:"group-one-"+t.compdata.uuid+"-"+o,staticClass:"group-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o,2)}}}):t._e(),o!==t.compdata.group_two.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o,2)}}}):t._e(),t.compdata.group_two.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o,2)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"twoImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.imageChange(a,e,2,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["twoImageUploadValue-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `twoImageUploadValue-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: group.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupTwoLink-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.image_link}],expression:"[\n `groupTwoLink-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: group.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputLink(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"第一行标题"},slot:"label"},[t._v("第一行标题"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupTitleOne-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入"}],initialValue:e.title_one}],expression:"[\n `groupTitleOne-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入'\n }\n ],\n initialValue: group.title_one\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.inputTitle(a,e,1)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"第二行标题"},slot:"label"},[t._v("第二行标题"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupTitleTwo-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入"}],initialValue:e.title_two}],expression:"[\n `groupTitleTwo-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入'\n }\n ],\n initialValue: group.title_two\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.inputTitle(a,e,2)}}})],1),a("a-form-item",{attrs:{label:"按钮名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupOneBtnText-"+t.compdata.uuid+"-"+o,{initialValue:e.btn_text}],expression:"[\n `groupOneBtnText-${compdata.uuid}-${index}`,\n {\n initialValue: group.btn_text\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.inputBtnText(a,e)}}})],1)],1)})),t.compdata.group_two.length<30?a("a-button",{attrs:{block:""},on:{click:function(e){return t.addGroup(2)}}},[t._v("+ 添加图文")]):t._e()],2):t._e(),a("a-divider"),1===t.compdata.style_type?a("a-form-item",{attrs:{label:"描述字号"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.desc_font_size,callback:function(e){t.$set(t.compdata,"desc_font_size",e)},expression:"compdata.desc_font_size"}},[a("a-radio",{attrs:{value:16}},[t._v("16"),a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("(推荐)")])])],1)],1):t._e(),2===t.compdata.style_type?a("a-form-item",{attrs:{label:"第一行标题字号"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.line_one_font_size,callback:function(e){t.$set(t.compdata,"line_one_font_size",e)},expression:"compdata.line_one_font_size"}},[a("a-radio",{attrs:{value:24}},[t._v("24"),a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("(推荐)")])])],1)],1):t._e(),2===t.compdata.style_type?a("a-form-item",{attrs:{label:"第二行标题字号"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.line_two_font_size,callback:function(e){t.$set(t.compdata,"line_two_font_size",e)},expression:"compdata.line_two_font_size"}},[a("a-radio",{attrs:{value:16}},[t._v("16"),a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("(推荐)")])])],1)],1):t._e(),a("a-form-item",{attrs:{label:"按钮字号"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.btn_font_size,callback:function(e){t.$set(t.compdata,"btn_font_size",e)},expression:"compdata.btn_font_size"}},[a("a-radio",{attrs:{value:16}},[t._v("16"),a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("(推荐)")])])],1)],1),a("a-form-item",{attrs:{label:"按钮样式"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.btn_style_type,callback:function(e){t.$set(t.compdata,"btn_style_type",e)},expression:"compdata.btn_style_type"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1),a("a-divider"),1===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),1===t.pageType?a("a-form-item",{attrs:{label:"按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.btn_background_color},on:{input:function(e){return t.updateColor(e,"compdata.btn_background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.btn_background_color,callback:function(e){t.$set(t.compdata,"btn_background_color",e)},expression:"compdata.btn_background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.btn_background_color}})])])],2)],1):t._e()],1):t._e()},ao=[],oo={mixins:[kt],data:function(){return{renderForm:!0}},methods:{moveUp:function(t,e){var a=this;this.renderForm=!1,this.$nextTick((function(){if(1===e){var o=a.compdata.group_one.splice(t,1);a.compdata.group_one.splice(t-1,0,o[0])}else if(2===e){var i=a.compdata.group_two.splice(t,1);a.compdata.group_two.splice(t-1,0,i[0])}a.updateModule(),a.renderForm=!0}))},moveDown:function(t,e){var a=this;this.renderForm=!1,this.$nextTick((function(){if(1===e){var o=a.compdata.group_one.splice(t,1);a.compdata.group_one.splice(t+1,0,o[0])}else if(2===e){var i=a.compdata.group_two.splice(t,1);a.compdata.group_two.splice(t+1,0,i[0])}a.updateModule(),a.renderForm=!0}))},del:function(t,e){var a=this;this.$confirm({title:"确定要删除这个图文?",okText:"确定",cancelText:"取消",onOk:function(){a.renderForm=!1,a.$nextTick((function(){1===e?a.compdata.group_one.splice(t,1):2===e&&a.compdata.group_two.splice(t,1),a.updateModule(),a.renderForm=!0}))},onCancel:function(){}})},imageChange:function(t,e,a,o){e.image_url=t,1===a?this.form.setFieldsValue(Object(s["a"])({},"oneImageUploadValue-".concat(this.compdata.uuid,"-").concat(o),t)):2===a&&this.form.setFieldsValue(Object(s["a"])({},"twoImageUploadValue-".concat(this.compdata.uuid,"-").concat(o),t)),this.updateModule()},inputLink:function(t,e){var a=t.target.value;e.image_link=a,this.updateModule()},inputDesc:function(t,e){var a=t.target.value;e.description=a,this.updateModule()},addGroup:function(t){var e={image_url:"",image_link:"",description:"",btn_text:""},a={image_url:"",image_link:"",title_one:"",title_two:"",btn_text:""};switch(t){case 1:this.compdata.group_one.push(JSON.parse(JSON.stringify(e)));break;case 2:this.compdata.group_two.push(JSON.parse(JSON.stringify(a)));break}this.updateModule()},inputTitle:function(t,e,a){var o=t.target.value;switch(a){case 1:e.title_one=o;break;case 2:e.title_two=o}this.updateModule()},inputBtnText:function(t,e){var a=t.target.value;e.btn_text=a,this.updateModule()},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[oe()(t.block_timer.start_time),oe()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss"),this.updateModule()},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="",this.updateModule())}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"PicTextForm"})}},io=oo,ro=(a("d4e6"),Object(g["a"])(io,eo,ao,!1,null,"8bf31d90",null)),no=ro.exports,so=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:function(e){t.visible=!0}}},[t._v("编辑代码")])],1),a("a-modal",{attrs:{title:"编辑自定义代码",width:878,visible:t.visible,borderStyle:{padding:"0 0 24px"},destroyOnClose:!0},on:{ok:function(e){t.visible=!1},cancel:t.quitCode}},[a("a-textarea",{attrs:{placeholder:"请输入规范的 HTML 代码","auto-size":{minRows:10,maxRows:10},value:t.compdata.code},on:{change:t.handleChange}})],1)],1):t._e()},co=[],lo={mixins:[kt],data:function(){return{visible:!1,lastCode:""}},watch:{visible:function(t){!0===t&&(this.lastCode=this.compdata.code)}},methods:{handleChange:function(t){var e=t.target.value;this.compdata.code=e,this.updateModule()},quitCode:function(){this.compdata.code=this.lastCode,this.updateModule(),this.visible=!1}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CodeForm"})}},uo=lo,po=Object(g["a"])(uo,so,co,!1,null,null,null),mo=po.exports,fo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px","padding-bottom":"0"},attrs:{required:""}},[a("label",{attrs:{slot:"label",title:"添加图片"},slot:"label"},[t._v("添加图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"8px","font-size":"12px",color:"#999"}},[t._v("参考尺寸1920×350像素,宽度固定,高度不过超1200像素,大小不超过1M,支持jpg/png/gif格式")])]),a("div",{staticClass:"hot-spots-wrap"},[a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("image-uploader",{key:"hotSpotImageUploader-"+t.compdata.uuid,attrs:{"img-url":t.compdata.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-bottom: 14px; margin-left: -12px;"},on:{imageUploaded:function(e){return t.hotSpotImageChange(e)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["hotSpotsImageUploadValue-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `hotSpotsImageUploadValue-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("p",[t._v("添加热区")]),a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"spots-num"},[t._v(t._s(t.compdata.hotspots.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.emptySpots}},[t._v("清空热区")])]),a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:t.editSpots}},[t._v("查看&编辑")])],1),a("hot-spots-editor",{attrs:{visible:t.editorVisible,image:t.compdata.image_url,spots:t.compdata.hotspots},on:{updateSpots:t.updateSpots,close:function(e){t.editorVisible=!1}}}),[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)]],2):t._e()},ho=[],go=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{id:"hotspots-editor",title:"编辑热区",width:1070,bodyStyle:{padding:0,maxHeight:"473px",overflowY:"hidden"},visible:t.visible,cancelButtonProps:{style:{display:"none"}},destroyOnClose:!0,maskClosable:!1},on:{ok:function(e){return t.$emit("close")},cancel:function(e){return t.$emit("close")}}},[a("div",{staticClass:"editor-wrap"},[a("div",{staticClass:"editor"},[a("div",{staticClass:"image-wrap",style:{height:t.parentHeight+"px"}},[a("img",{attrs:{src:t.image,height:t.parentHeight},on:{"~load":function(e){return t.imageLoaded(e)}}}),t._l(t.spots,(function(e,o){return a("vue-drag-resize",{key:"spot-"+e.display_index,attrs:{w:e.width,h:e.height,x:e.left,y:e.top,z:e.display_index,minw:40,minh:40,parentH:t.parentHeight,parentLimitation:!0},on:{resizing:function(a){return t.resize(e,a)},dragging:function(a){return t.changePos(e,a)}}},[a("span",{staticClass:"title"},[t._v("热区"+t._s(o+1))]),a("a-icon",{staticClass:"close-btn",attrs:{type:"close"},on:{click:function(a){return t.delSpot(e)}}})],1)}))],2)]),a("div",{staticClass:"form-items"},[a("a-form",{attrs:{layout:"vertical",form:t.form}},[a("div",{staticClass:"meta"},[a("b",{staticStyle:{color:"#333"}},[t._v("热区链接")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.emptySpots}},[t._v("清空热区")])]),t._l(t.spots,(function(e,o){return a("a-form-item",{key:"spot-"+e.display_index,attrs:{label:"热区"+(o+1)}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["spot-input-"+e.display_index,{initialValue:e.spot_link}],expression:"[\n `spot-input-${spot.display_index}`,\n {\n initialValue: spot.spot_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputSpotLink(a,e)}}})],1)})),t.spots.length<10?a("a-button",{attrs:{block:""},on:{click:t.addSpot}},[t._v("+ 添加热区")]):t._e()],2)],1)])])},_o=[],vo=(a("55dd"),a("3b58")),bo=a.n(vo);function yo(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function wo(t){for(var e=1;et[r].left+t[r].width||a>t[r].top+t[r].height||e+80670)for(var n=JSON.parse(JSON.stringify(this.spotsData)).sort((function(t,e){return t.top-e.top})),s=0;sn[l].left+n[l].width||a>n[l].top+n[l].height||e+80this.parentHeight-80&&(a=this.parentHeight-80),{top:a,left:e,width:80,height:80,spot_link:"",link_type:"",link_desc:""}},addSpot:function(){this.spotsData.push(wo(wo({},this.computePostion()),{},{display_index:++this.displayIndex})),this.updateSpots(this.spotsData),this.$nextTick((function(){var t=document.querySelector("#hotspots-editor .ant-modal-body");t.scrollTop>0&&(t.scrollTop=t.scrollTop+93)}))},delSpot:function(t){for(var e=t.display_index,a=-1,o=0;o {\n return event.target.value.trim()\n }\n },\n ]"}],attrs:{placeholder:"https://"},on:{blur:t.eventMvurl}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"添加封面"},slot:"label"},[t._v("添加封面"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("建议封面尺寸和视频尺寸保持一致,大小不超过500KB,支持jpg/png/gif格式")])]),a("div",{key:"video-"+t.compdata.uuid,staticClass:"expo-wrap"},[a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"},attrs:{required:!0}},[a("image-uploader",{key:"videoImageUploader-"+t.compdata.uuid,attrs:{"img-url":t.compdata.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageInfo:t.imageInfo,imageUploaded:function(e){return t.videoImageChange(e)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoImageUploadValue-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.image_url}],expression:"[\n `videoImageUploadValue-${compdata.uuid}`,\n { rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),1!==t.pageType?[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1)]:t._e()],2):t._e(),a("VideoSelected",{ref:"VideoSelected",on:{videoSuccess:t.selectedVideoFromLib}}),a("a-modal",{attrs:{title:"预览",destroyOnClose:!0,width:"648px",visible:t.previewVisible,footer:null},on:{cancel:function(e){t.previewVisible=!1}}},[a("video",{attrs:{src:t.compdata.upload_video.src,poster:t.compdata.image_url,controls:"controls",width:"600px"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])])],1)},Eo=[],Mo=(a("6b54"),a("6762"),a("2fdb"),a("2d63"));function $o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Do(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"HH:mm:ss",a=function(t){return t=t.toString(),t[1]?t:"0".concat(t)},o=a(Math.floor(t/86400)),i=a(Math.floor(t/3600%24)),r=a(Math.floor(t/60%60)),n=a(Math.floor(t%60));return e.replace("DD",o).replace("HH",i).replace("mm",r).replace("ss",n)}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"VideoForm"})},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},zo=Vo,qo=(a("f936"),Object(g["a"])(zo,Po,Eo,!1,null,"8e28185a",null)),Uo=qo.exports,Ho=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("p",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("用于PC首页弹窗的设置,页面弹窗对每个用户一天弹一次")]),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"添加弹窗图片"},slot:"label"},[t._v("添加弹窗图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("参考尺寸990×500像素,宽度不超过1190,高度不超过900像素,大小不超过800KB,支持jpg/png/gif格式")])]),t._l(t.compdata.popups,(function(e,o){return a("div",{key:"popup-"+t.compdata.uuid+"-"+o,staticClass:"popup-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o)}}}):t._e(),o!==t.compdata.popups.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o)}}}):t._e(),t.compdata.popups.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("image-uploader",{key:"popupImageUploader-"+t.compdata.uuid+"-"+o,attrs:{"img-url":e.image_url,"custom-style":"width: calc(100% + 24px); margin-top: -1px; margin-left: -12px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;"},on:{imageUploaded:function(a){return t.popupImageChange(a,e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["popupImageUploadValue-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.image_url}],expression:"[\n `popupImageUploadValue-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: popup.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["popupLink-"+t.compdata.uuid+"-"+o,{initialValue:t.compdata.popups[o].image_link}],expression:"[\n `popupLink-${compdata.uuid}-${index}`,\n {\n initialValue: compdata.popups[index].image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.changeImageLink(e,o)}}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1)],1)})),a("a-button",{staticStyle:{"margin-bottom":"24px"},attrs:{block:""},on:{click:t.add}},[t._v("\n + 添加广告图\n ")])],2):t._e()},Go=[],Yo=function(){return{image_url:"",image_link:"",start_time:"",end_time:""}},Jo={mixins:[kt],methods:{add:function(){this.compdata.popups.push(Yo()),this.updateModule()},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.popups.splice(t,1);e.compdata.popups.splice(t-1,0,a[0]),e.updateModule(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.popups.splice(t,1);e.compdata.popups.splice(t+1,0,a[0]),e.updateModule(),e.renderForm=!0}))},del:function(t){var e=this;this.$confirm({title:"确定要删除这个广告图?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.popups.splice(t,1),e.updateModule(),e.renderForm=!0}))},onCancel:function(){}})},popupImageChange:function(t,e,a){e.image_url=t,this.form.setFieldsValue(Object(s["a"])({},"popupImageUploadValue-".concat(this.compdata.uuid,"-").concat(a),t)),this.updateModule()},changeImageLink:function(t,e){this.compdata.popups[e].image_link=t.target.value,this.updateModule()},initialBlockTimer:function(t){return t.start_time&&t.end_time||(t.start_time="",t.end_time=""),t.start_time&&t.end_time?[oe()(t.start_time),oe()(t.end_time)]:[]},confirmBlockTimer:function(t,e){t.start_time&&t.end_time||(t.start_time="",t.end_time=""),t.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.end_time=e[1].format("YYYY-MM-DD HH:mm:ss"),this.updateModule()},clearBlockTimer:function(t,e){e.length||(t.start_time="",t.end_time="",this.updateModule())}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"PopupsForm"})}},Ko=Jo,Wo=(a("0cd1"),Object(g["a"])(Ko,Ho,Go,!1,null,"7aebd6c4",null)),Zo=Wo.exports,Qo=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderForm?a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"选择模板"},slot:"label"},[t._v("\n 选择模板\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{on:{change:t.updateModule},model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:1}},[t._v("一行一场")]),a("a-select-option",{attrs:{value:3}},[t._v("一行三场")]),a("a-select-option",{attrs:{value:5}},[t._v("一行五场")])],1)],1),a("p",[t._v("添加赠品信息")]),t._l(t.compdata.givings,(function(e,o){return a("div",{key:"giving-"+t.compdata.uuid+"-"+o,staticClass:"giving-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o)}}}):t._e(),o!==t.compdata.givings.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o)}}}):t._e(),t.compdata.givings.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{style:{marginBottom:e.async_id?"24px":0}},[a("label",{attrs:{slot:"label",title:"选择满赠活动"},slot:"label"},[t._v("\n 选择满赠活动\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["giving-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择满赠活动"}],initialValue:e.async_name||void 0}],expression:"[\n `giving-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择满赠活动'\n }\n ],\n initialValue: giving.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e,o)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id&&1===t.compdata.display_tpl?a("a-form-item",[a("label",{attrs:{slot:"label",title:"活动标题"},slot:"label"},[t._v("\n 活动标题\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["GivingName-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入活动标题"}],initialValue:e.name}],expression:"[\n `GivingName-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动标题'\n }\n ],\n initialValue: giving.name\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setName(a,e)}}})],1):t._e(),e.async_id?a("a-form-item",[a("label",{attrs:{slot:"label",title:"活动描述"},slot:"label"},[t._v("\n 活动描述\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["GivingDesc-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入活动描述"}],initialValue:e.desc}],expression:"[\n `GivingDesc-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动描述'\n }\n ],\n initialValue: giving.desc\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setDesc(a,e)}}})],1):t._e(),e.async_id?a("a-form-item",[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("\n 链接\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["GivingLink-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入活动链接"}],initialValue:e.link_url}],expression:"[\n `GivingLink-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动链接'\n }\n ],\n initialValue: giving.link_url\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setLink(a,e)}}})],1):t._e(),e.async_id?a("a-form-item",{attrs:{label:"活动时间"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["giving-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `giving-time-${compdata.uuid}-${index}`,\n {\n initialValue: giving.async_start + '~' + giving.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialDate(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmDate(e,o,a)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["setDateTime-"+t.compdata.uuid+"-"+o,{initialValue:t.initialDate(e).join(",")}],expression:"[\n `setDateTime-${compdata.uuid}-${index}`,\n {\n initialValue: initialDate(giving).join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),a("a-button",{attrs:{block:""},on:{click:t.add}},[t._v("+ 添加赠品信息")]),a("a-divider"),a("a-form-item",{attrs:{label:"立即参与按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1)],2):t._e()},Xo=[],ti=function(){return{async_id:"",async_name:"",async_desc:"",async_start:"",async_end:"",name:"",desc:"",link_url:"",start_time:"",end_time:""}};function ei(t,e){function a(){Object(fe["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{website_id:t.websiteId,promotion_type:5,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&Ro===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at,t.description].join("<-depart->"),text:t.title})})),e(i)}}))}No&&(clearTimeout(No),No=null),Ro=t.title,No=setTimeout(a,150)}var ai,oi,ii={mixins:[kt],data:function(){return{promotionList:[],productsList:{},currentRuleProducts:""}},watch:{"compdata.givings":{deep:!0,handler:function(){var t=this;ei({websiteId:this.websiteId},(function(e){return t.promotionList=e}));var e=this.findRelateMod();if(e){var a=[];this.compdata.givings.forEach((function(t){a.push({name:t.name,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,desc:t.desc,start_time:t.start_time,end_time:t.end_time})})),e.givings=a,this.updateRelateModule(e)}}}},methods:{moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.givings.splice(t,1);e.compdata.givings.splice(t-1,0,a[0]),e.updateModule(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.givings.splice(t,1);e.compdata.givings.splice(t+1,0,a[0]),e.updateModule(),e.renderForm=!0}))},del:function(t){var e=this;this.$confirm({title:"确定删除这个场次吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.givings.splice(t,1),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},onCancel:function(){}})},add:function(){this.compdata.givings.push(ti()),this.updateModule()},setName:function(t,e){e.name=t.target.value,this.updateModule()},setDesc:function(t,e){e.desc=t.target.value,this.updateModule()},setLink:function(t,e){e.link_url=t.target.value,this.updateModule()},initialDate:function(t){return t.start_time&&t.end_time?[oe()(t.start_time),oe()(t.end_time)]:[]},confirmDate:function(t,e,a){t.start_time=a[0].format("YYYY-MM-DD HH:mm:ss"),t.end_time=a[1].format("YYYY-MM-DD HH:mm:ss"),this.form.setFieldsValue(Object(s["a"])({},"setDateTime-".concat(this.compdata.uuid,"-").concat(e),t.start_time+","+t.end_time)),this.updateModule()},handleSearch:function(t){var e=this;t&&ei({websiteId:this.websiteId,title:t},(function(t){return e.promotionList=t}))},handleChange:function(t,e,a){var o=this,i=t.split("<-depart->");e.async_id=i[1],e.async_name=i[0],e.name=i[0],e.async_start=i[2],e.async_end=i[3],e.async_desc=i[4],e.desc=i[4],this.updateModule(),ei({websiteId:this.websiteId},(function(t){return o.promotionList=t}))},resetFieldsError:function(){for(var t=0;t1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{attrs:{label:"场次名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-name-"+t.compdata.uuid+"-"+o,{rules:[{maxlength:6,message:"长度不超过6个字"}],initialValue:e.name}],expression:"[\n `round-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n maxlength: 6,\n message: '长度不超过6个字'\n }\n ],\n initialValue: round.name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字","allow-clear":""},on:{input:function(a){return t.inputRoundName(a,e)}}})],1),a("a-form-item",[a("label",{attrs:{slot:"label",title:"选择"+t.tagName+"活动"},slot:"label"},[t._v("选择"+t._s(t.tagName)+"活动"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-async-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请先选择"+t.tagName+"活动"}],initialValue:e.async_name||void 0}],expression:"[\n `round-async-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请先选择'+tagName+'活动'\n }\n ],\n initialValue: round.async_name || undefined\n }\n ]"}],attrs:{"show-search":"",placeholder:"请选择",getPopupContainer:function(t){return t.parentNode},"default-active-first-option":!1,"filter-option":!1},on:{search:t.handleSearch,change:function(a){return t.handleChange(a,e,o)}}},t._l(t.promotionList,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.text))])})),1)],1),e.async_id?a("a-form-item",{attrs:{label:"活动时间"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.async_start+" ~ "+e.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-time-"+t.compdata.uuid+"-"+o,{initialValue:e.async_start+"~"+e.async_end}],expression:"[\n `round-time-${compdata.uuid}-${index}`,\n {\n initialValue: round.async_start + '~' + round.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e(),e.async_id?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid+"-"+o,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(e),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(a){return t.confirmBlockTimer(e,a)},change:function(a){return t.clearBlockTimer(e,a)}}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"选择商品"},slot:"label"},[t._v("选择商品"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])])]),a("div",{staticClass:"round-products"},[a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"select-num"},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyRoundProducts(e)}}},[t._v("清空商品")])]),a("product-image-list",{key:"round-product-list-"+t.compdata.uuid+"-"+o,attrs:{"product-ids":e.product_ids},on:{add:function(a){return t.addProducts(e)},loaded:function(e){return t.setHiddenProducts(e,o)}}}),a("a-form-item",{staticStyle:{margin:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-product-list-area-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `round-product-list-area-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择商品'\n }\n ],\n initialValue: round.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{staticClass:"meta"},[a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")])],1)],1),a("a-form-item",{style:e.show_more.is_show?"margin-bottom: 0":"",attrs:{label:"查看更多图片"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:e.show_more.is_show,callback:function(a){t.$set(e.show_more,"is_show",a)},expression:"round.show_more.is_show"}},[t._v("显示")])],1),e.show_more.is_show?a("div",{staticStyle:{"margin-bottom":"12px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.moreImageChange(a,e,o)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(a,e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.show_more.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.show_more.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),1===t.pageType?a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸240×60像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]):a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸990×80像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-more-image-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.show_more.image_url}],expression:"[\n `product-tab-more-image-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: round.show_more.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("\n 链接\n "),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ActivityLink-"+o,{rules:[{required:!0,message:"请输入活动链接"}],initialValue:e.show_more.image_link}],expression:"[\n `ActivityLink-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入活动链接'\n }\n ],\n initialValue: round.show_more.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setLink(a,e)}}})],1)],1):t._e()],1)})),t.compdata.rounds.length<10?a("a-button",{staticStyle:{"margin-bottom":"24px"},attrs:{block:""},on:{click:t.addActivity}},[t._v("+ 添加场次")]):t._e(),a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-num-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.show_num}],expression:"[\n `product-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputProductShowNum}})],1),a("a-form-item",{attrs:{label:"倒计时"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_count_down,callback:function(e){t.$set(t.compdata,"is_show_count_down",e)},expression:"compdata.is_show_count_down"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"Tab背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.tab_bg_color},on:{input:function(e){return t.updateColor(e,"compdata.tab_bg_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.tab_bg_color,callback:function(e){t.$set(t.compdata,"tab_bg_color",e)},expression:"compdata.tab_bg_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.tab_bg_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),a("a-form-item",{attrs:{label:"抢购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1),a("manage-products",{ref:"productsModal",attrs:{"rule-id":t.currentRuleId,"activity-page":t.activities},on:{update:t.updateModule}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],2):t._e()},li=[],di={name:"",async_name:"",async_id:"",async_start:"",async_end:"",show_more:{image_url:"",image_link:""},product_ids:[],start_time:"",end_time:""};function ui(t,e){function a(){Object(fe["b"])({url:"/api-cms/cms/promotion/list",method:"get",params:{website_id:t.websiteId,promotion_type:t.activity_type,title:t.title}}).then((function(a){var o=a.data;if(o.rows&&oi===t.title){var i=[];o.rows.forEach((function(t){i.push({value:[t.title,t.rule_id,t.started_at,t.ended_at].join("<-depart->"),text:t.title})})),e(i)}}))}ai&&(clearTimeout(ai),ai=null),oi=t.title,ai=setTimeout(a,150)}var pi={mixins:[kt],components:{"manage-products":ue["a"],"product-image-list":xe},data:function(){return{promotionList:[],websiteId:this.$route.params.website_id,currentRuleId:"",inputTimer:null,activities:"activities",currentRound:null,currentRoundIndex:-1}},watch:{"compdata.rounds":{deep:!0,handler:function(){var t=this;ui({websiteId:this.websiteId,activity_type:this.compdata.activity_type},(function(e){return t.promotionList=e}));var e=this.findRelateMod();if(e){var a=[];this.compdata.rounds.forEach((function(t){a.push({name:t.name,async_name:t.async_name,async_id:t.async_id,async_start:t.async_start,async_end:t.async_end,show_more:{image_url:"",image_link:""},product_ids:t.product_ids,link_url:"",start_time:t.start_time,end_time:t.end_time})})),e.rounds=a,this.updateRelateModule(e)}}}},methods:{moreImageChange:function(t,e,a){var o=t.file,i=o.status,r=o.response;"uploading"===i?(this.uploading=!0,this.$set(e,"uploading",!0)):"done"===i&&200===r.status?(e.show_more.image_url=r.data.src,this.form.setFieldsValue(Object(s["a"])({},"product-tab-more-image-".concat(this.compdata.uuid,"-").concat(a),r.data.src)),this.$delete(e,"uploading"),this.updateModule()):200!==r.status&&(this.$message.error(r.message),this.$delete(e,"uploading"))},handleSubmit:function(){for(var t=this,e=this.compdata.rounds,a=1;a");e.async_id=i[1],e.async_name=i[0],e.async_start=i[2],e.async_end=i[3],e.product_ids=[],this.updateModule(),this.form.setFieldsValue(Object(s["a"])({},"round-product-list-area-".concat(this.compdata.uuid,"-").concat(a),"")),ui({websiteId:this.websiteId,activity_type:this.compdata.activity_type},(function(t){return o.promotionList=t}))},del:function(t){var e=this;this.$confirm({title:"确定删除这个场次吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.rounds.splice(t,1),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},onCancel:function(){}})},emptyRoundProducts:function(t){var e=this;this.$confirm({title:"清空后需要重新配置数据,确认清空吗?",okText:"确定",cancelText:"取消",onOk:function(){t.product_ids=[],e.updateModule()},onCancel:function(){}})},addProducts:function(t){var e=t.async_id;e?(this.currentRuleId=e,this.$refs.productsModal.resultContainer=t,this.$refs.productsModal.chooseVisible=!0):this.$message.error("请先选择"+this.tagName+"活动")},editProductIds:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.async_id,this.currentRuleId=a,this.$refs.productsModal.resultContainer=e,this.$refs.productsModal.selectedProducts=Object(de["a"])(e.product_ids),this.$refs.productsModal.editVisible=!0;case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),deleteIcon:function(t,e){t.show_more.image_url="",this.form.setFieldsValue(Object(s["a"])({},"product-tab-more-image-".concat(this.compdata.uuid,"-").concat(e),"")),this.updateModule()},setLink:function(t,e){var a=t.target.value;this.$set(e["show_more"],"image_link",a),this.updateModule()},resetFieldsError:function(){for(var t=0;t1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("label",{attrs:{slot:"label",title:"选择优惠券"},slot:"label"},[t._v("选择优惠券"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),e.coupon.rule_id?a("div",{staticClass:"ant-input coupon-desc"},[t._v("\n "+t._s(e.coupon.coupon_name)+"\n "),a("a-icon",{staticStyle:{position:"absolute",right:"30px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"form"},on:{click:function(a){return t.editCoupon(e,o)}}}),a("a-icon",{staticStyle:{position:"absolute",right:"6px",top:"7px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete"},on:{click:function(a){return t.deleteCoupon(e,o)}}})],1):a("a-button",{attrs:{block:""},on:{click:function(a){return t.selectCoupon(e.coupon,o)}}},[t._v("+ 选择优惠券")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["couponCode-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请添加优惠券"}],initialValue:e.coupon.rule_id}],expression:"[\n `couponCode-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请添加优惠券'\n }\n ],\n initialValue: product.coupon.rule_id\n }\n ]"}],attrs:{type:"hidden"}})],1),[e.coupon.rule_id?a("a-form-item",{attrs:{label:"活动时间"}},[a("a-tooltip",{attrs:{placement:"bottom",getPopupContainer:function(t){return t.parentNode}}},[a("template",{slot:"title"},[a("span",[t._v(t._s("活动时间:"+e.coupon.async_start+" ~ "+e.coupon.async_end))])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["new-user-time-"+t.compdata.uuid+"-"+o,{initialValue:e.coupon.async_start+"~"+e.coupon.async_end}],expression:"[\n `new-user-time-${compdata.uuid}-${index}`,\n {\n initialValue: product.coupon.async_start + '~' + product.coupon.async_end\n }\n ]"}],attrs:{"read-only":""}})],2)],1):t._e()],a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"选择商品"},slot:"label"},[t._v("选择商品"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])])]),a("div",{staticClass:"round-products"},[a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"select-num"},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyRoundProducts(e,o)}}},[t._v("清空商品")])]),a("product-image-list",{key:"round-product-list-"+t.compdata.uuid+"-"+o,attrs:{"product-ids":e.product_ids},on:{add:function(a){return t.addProducts(e)},loaded:function(e){return t.setHiddenProducts(e,o)}}}),a("a-form-item",{staticStyle:{margin:"0"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["round-product-list-area-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请选择商品"}],initialValue:e.product_ids.join(",")}],expression:"[\n `round-product-list-area-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请选择商品'\n }\n ],\n initialValue: product.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{staticClass:"meta"},[a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")])],1)],1),a("a-form-item",{style:e.show_more.is_show?"margin-bottom: 0":"",attrs:{label:"查看更多图片"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:e.show_more.is_show,callback:function(a){t.$set(e.show_more,"is_show",a)},expression:"product.show_more.is_show"}},[t._v("显示")])],1),e.show_more.is_show?a("div",{staticStyle:{"margin-bottom":"12px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.moreImageChange(a,e,o)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(a,e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.show_more.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.show_more.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e,o)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),1===t.pageType?a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸240×60像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]):a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸990×80像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-more-image-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.show_more.image_url}],expression:"[\n `product-more-image-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: product.show_more.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-more-link-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.show_more.image_link}],expression:"[\n `product-more-link-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: product.show_more.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputProductTabMoreLink(a,e)}}})],1)],1):t._e()],2)})),a("a-button",{staticStyle:{"margin-bottom":"24px"},attrs:{block:""},on:{click:t.add}},[t._v("+ 添加新人专区")]),a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"选择商品模板"},slot:"label"},[t._v("选择商品模板"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-select",{attrs:{getPopupContainer:function(t){return t.parentNode}},on:{change:t.updateModule},model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:2}},[t._v("一行三个")]),a("a-select-option",{attrs:{value:3}},[t._v("一行四个")]),a("a-select-option",{attrs:{value:4}},[t._v("一行五个")])],1)],1),a("a-form-item",{attrs:{label:"商品行数"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.product_line,callback:function(e){t.$set(t.compdata,"product_line",e)},expression:"compdata.product_line"}},[a("a-radio",{attrs:{value:1}},[t._v("一行")]),a("a-radio",{attrs:{value:2}},[t._v("二行")])],1)],1),a("a-form-item",{attrs:{label:"切换按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_switch,callback:function(e){t.$set(t.compdata,"is_show_switch",e)},expression:"compdata.is_show_switch"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_discount,callback:function(e){t.$set(t.compdata,"is_show_discount",e)},expression:"compdata.is_show_discount"}},[t._v("显示")])],1),1===t.pageType?a("a-form-item",{style:{marginBottom:t.compdata.home_add_btn.is_show?0:"24px"},attrs:{label:"加购图标"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.home_add_btn.is_show,callback:function(e){t.$set(t.compdata.home_add_btn,"is_show",e)},expression:"compdata.home_add_btn.is_show"}},[t._v("显示")])],1):t._e(),t.compdata.home_add_btn&&t.compdata.home_add_btn.is_show&&1===t.pageType?a("div",{staticStyle:{padding:"8px 8px 0",background:"#f7f7f7"}},[a("a-form-item",[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.addIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.home_add_btn.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.home_add_btn.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteAddIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0","font-size":"12px",color:"#999"}},[t._v("参考尺寸36×36像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["home-add-btn-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.home_add_btn.image_url}],expression:"[\n `home-add-btn-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.home_add_btn.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),1!==t.pageType?a("a-form-item",{style:t.compdata.is_show_add_btn?"margin-bottom: 0":"",attrs:{label:"加购按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_add_btn,callback:function(e){t.$set(t.compdata,"is_show_add_btn",e)},expression:"compdata.is_show_add_btn"}},[t._v("显示")])],1):t._e(),t.compdata.is_show_add_btn&&1!==t.pageType?a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1):t._e(),a("a-form-item",{attrs:{label:"优惠券文字颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.coupon_text_color},on:{input:function(e){return t.updateColor(e,"compdata.coupon_text_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.coupon_text_color,callback:function(e){t.$set(t.compdata,"coupon_text_color",e)},expression:"compdata.coupon_text_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.coupon_text_color}})])])],2)],1),a("a-form-item",{attrs:{label:"优惠券颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.coupon_color},on:{input:function(e){return t.updateColor(e,"compdata.coupon_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.coupon_color,callback:function(e){t.$set(t.compdata,"coupon_color",e)},expression:"compdata.coupon_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.coupon_color}})])])],2)],1),a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1),a("manage-products",{ref:"productsModal",attrs:{"rule-id":t.currentRuleId,secret:0===t.pageType?1:0,"activity-page":t.newUserActivity},on:{update:t.updateModule}}),a("select-coupon",{ref:"selectCoupon",on:{triggerSelectCoupon:t.triggerSelectCoupon}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],2):t._e()},_i=[],vi={coupon:{rule_id:"",coupon_name:"",currency_symbol:"",coupon_value:"",coupon_object:"",type:"",sign:"",async_start:"",async_end:""},show_more:{is_show:!1,image_url:"",image_link:""},product_ids:[]},bi={mixins:[kt],components:{"manage-products":ue["a"],"product-image-list":xe,"select-coupon":Aa["f"]},data:function(){return{websiteId:2,selectedProductsIds:[],activeProductsIds:[],uploading:!1,homeShowNumTips:[0,0,3,4,5,3],inputTimer:null,currentRuleId:"",preRuleId:"",currentCoupon:null,imageTitleErrorText:"请上传图片",currentCouponIndex:-1,newUserActivity:"newUserActivity",currentProduct:null}},watch:{compdata:function(){this.uploading=!1},"compdata.rounds":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){var e=[];this.compdata.rounds.forEach((function(t){e.push({product_ids:t.product_ids})})),t.rounds=e,this.updateRelateModule(t)}}}},methods:{textChange:function(t){var e=this.findRelateMod();this.compdata.text.content=t.target.value,e&&(e.text.content=t.target.value,this.updateRelateModule(e)),this.updateModule()},add:function(){this.compdata.rounds.push(JSON.parse(JSON.stringify(vi))),this.updateModule()},emptyRoundProducts:function(t,e){var a=this;this.$confirm({title:"清空后需要重新配置数据,确认清空吗?",okText:"确定",cancelText:"取消",onOk:function(){t.product_ids=[],a.updateModule(),a.form.setFieldsValue(Object(s["a"])({},"round-product-list-area-".concat(a.compdata.uuid,"-").concat(e),""))},onCancel:function(){}})},selectCoupon:function(t,e){this.$refs.selectCoupon.readyShow(),this.currentCoupon=t,this.currentCouponIndex=e},editCoupon:function(t,e){this.preRuleId=t.coupon.rule_id,this.selectCoupon(t.coupon,e)},deleteCoupon:function(t,e){var a=this;this.$confirm({title:"确定删除吗?",okText:"确定",cancelText:"取消",onOk:function(){t.coupon=vi.coupon,a.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(a.compdata.uuid,"-").concat(a.currentCouponIndex),"")),t.product_ids=[],a.updateModule()},onCancel:function(){}})},triggerSelectCoupon:function(t){this.currentCoupon.rule_id=t.id,this.currentCoupon.coupon_name=t.item.short_title,this.currentRuleId=String(t.id),this.getCouponDetail(this.currentCoupon.rule_id),this.currentCoupon.async_start=t.item.started_at,this.currentCoupon.async_end=t.item.ended_at,this.currentCoupon.rule_id!==this.preRuleId&&(this.compdata.rounds[this.currentCouponIndex].product_ids=[],this.updateModule()),this.form.setFieldsValue(Object(s["a"])({},"couponCode-".concat(this.compdata.uuid,"-").concat(this.currentCouponIndex),t.id)),this.updateModule()},getCouponDetail:function(t){var e=this;Object(Fa["t"])({rule_id:t}).then((function(t){var a=t.data;e.currentCoupon.currency_symbol=a.currency_symbol,e.currentCoupon.coupon_value=a.discount,e.currentCoupon.coupon_object=a.type_name,e.currentCoupon.type=a.type,e.currentCoupon.sign=a.sign,e.updateModule()}))},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.rounds.splice(t,1);e.compdata.rounds.splice(t-1,0,a[0]),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.rounds.splice(t,1);e.compdata.rounds.splice(t+1,0,a[0]),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},del:function(t){var e=this;this.$confirm({title:"确定删除这个场次吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.rounds.splice(t,1),e.updateModule(),e.resetFieldsError(),e.renderForm=!0}))},onCancel:function(){}})},resetFieldsError:function(){for(var t=0;t200?a("展示数量不能超过200"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_only.showNum}],expression:"[\n `product-only-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 200 ? cb('展示数量不能超过200') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_only.showNum\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputProductOnlyShowNum}})],1):t._e(),1===t.compdata.type?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e()],1):2===t.compdata.type?a("div",[1!==t.pageType?a("a-form-item",{attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-num-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>200?a("展示数量不能超过200"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.product_tab.showNum}],expression:"[\n `product-tab-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 200 ? cb('展示数量不能超过200') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.product_tab.showNum\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputProductTabShowNum}})],1):t._e(),a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"添加商品Tab"},slot:"label"},[t._v("添加商品Tab"),a("br"),a("span",{staticStyle:{color:"#999"}},[t._v("最多添加10个")])])]),t._l(t.compdata.product_tab.tabs,(function(e,o){return a("div",{key:"product-tab-"+t.compdata.uuid+"-"+o,staticClass:"tab-wrap"},[a("div",{staticClass:"ctrl-widgets"},[0!==o?a("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-up",title:"上移"},on:{click:function(e){return t.moveUp(o)}}}):t._e(),o!==t.compdata.product_tab.tabs.length-1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"arrow-down",title:"下移"},on:{click:function(e){return t.moveDown(o)}}}):t._e(),t.compdata.product_tab.tabs.length>1?a("a-icon",{staticStyle:{"margin-left":"2px","font-size":"18px",cursor:"pointer"},attrs:{type:"delete",title:"删除"},on:{click:function(e){return t.del(o)}}}):t._e()],1),a("a-form-item",{style:1===e.set_type?"margin-bottom: 0":"margin-bottom: 8px",attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"添加商品"},slot:"label"},[t._v("添加商品"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-radio-group",{on:{change:t.updateModule},model:{value:e.set_type,callback:function(a){t.$set(e,"set_type",a)},expression:"tab.set_type"}},[a("a-radio",{attrs:{value:1}},[t._v("商品")])],1)],1),1===e.set_type?a("div",{staticClass:"tab-products"},[a("div",{staticClass:"meta"},[a("span",[a("b",{staticClass:"select-num"},[t._v(t._s(e.product_ids.length))]),t._v("个")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.emptyProductIds(e)}}},[t._v("清空商品")])]),a("a-form-item",{staticClass:"image-list-wrap",staticStyle:{"margin-bottom":"0","padding-bottom":"0"}},[a("product-image-list",{key:"product-tab-list-"+t.compdata.uuid+"-"+o,attrs:{"product-ids":e.product_ids,limit:Number(t.compdata.product_tab.showNum)},on:{add:function(a){return t.addProducts(e)},loaded:function(e){return t.setHiddenProducts("tab",e,o)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-list-"+t.compdata.uuid+"-"+o+"-validator",{rules:[{required:!0,message:"请添加商品"}],initialValue:t.compdata.product_only.product_ids.join(",")}],expression:"[\n `product-tab-list-${compdata.uuid}-${index}-validator`,\n {\n rules: [\n {\n required: true,\n message: '请添加商品'\n }\n ],\n initialValue: compdata.product_only.product_ids.join(',')\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{staticClass:"meta"},[a("a-button",{staticClass:"edit-btn",attrs:{block:""},on:{click:function(a){return t.editProductIds(e)}}},[t._v("查看&编辑")])],1)],1):t._e(),a("a-form-item",[a("label",{attrs:{slot:"label",title:"Tab名称"},slot:"label"},[t._v("Tab名称"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-name-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入Tab名称"}],initialValue:e.tab_name}],expression:"[\n `product-tab-name-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入Tab名称'\n }\n ],\n initialValue: tab.tab_name\n }\n ]"}],attrs:{placeholder:"建议不超过6个字"},on:{input:function(a){return t.inputProductTabName(a,e)}}})],1),a("a-form-item",{style:e.show_more.is_show?"margin-bottom: 0":"",attrs:{label:"查看更多图片"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:e.show_more.is_show,callback:function(a){t.$set(e.show_more,"is_show",a)},expression:"tab.show_more.is_show"}},[t._v("显示")])],1),e.show_more.is_show?a("div",{staticStyle:{"margin-bottom":"12px",padding:"15px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{required:!0}},[a("label",{attrs:{slot:"label",title:"图片"},slot:"label"},[t._v("图片"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:function(a){return t.moreImageChange(a,e,o)}}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:function(a){return t.openImageLib(a,e)}}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[e.show_more.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:e.show_more.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e,o)}}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),1===t.pageType?a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸240×60像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]):a("p",{staticStyle:{margin:"0","font-size":"12px"}},[t._v("参考尺寸990×80像素,宽度固定,大小不超过500KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-more-image-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请上传图片"}],initialValue:e.show_more.image_url}],expression:"[\n `product-tab-more-image-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: tab.show_more.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"链接"},slot:"label"},[t._v("链接"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["product-tab-more-link-"+t.compdata.uuid+"-"+o,{rules:[{required:!0,message:"请输入链接"}],initialValue:e.show_more.image_link}],expression:"[\n `product-tab-more-link-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请输入链接'\n }\n ],\n initialValue: tab.show_more.image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.inputProductTabMoreLink(a,e)}}})],1)],1):t._e()],1)})),t.compdata.product_tab.tabs.length<10?a("a-button",{style:{marginBottom:1===t.pageType?"24px":0},attrs:{block:""},on:{click:t.addTab}},[t._v("+ 添加商品Tab")]):t._e()],2):t._e(),5!==t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{attrs:{label:"商品行数"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.product_line,callback:function(e){t.$set(t.compdata,"product_line",e)},expression:"compdata.product_line"}},[a("a-radio",{attrs:{value:1}},[t._v("一行")]),a("a-radio",{attrs:{value:2}},[t._v("二行")])],1)],1):t._e(),5!==t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{style:{marginBottom:t.compdata.is_show_switch?0:"24px"},attrs:{label:"切换按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_switch,callback:function(e){t.$set(t.compdata,"is_show_switch",e)},expression:"compdata.is_show_switch"}},[t._v("显示")])],1):t._e(),1===t.pageType&&t.compdata.is_show_switch&&5!==t.compdata.display_tpl?a("div",{staticStyle:{padding:"16px 8px 0",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"展示数量"},slot:"label"},[t._v("展示数量"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["home-show-num-"+t.compdata.uuid,{rules:[{validator:function(t,e,a){return isNaN(Number(e))?a("请输入展示数量"):a()}},{validator:function(t,e,a){return Number(e)>50?a("展示数量不能超过50"):a()}},{validator:function(t,e,a){return Number(e)<1?a("请输入展示数量"):a()}}],initialValue:t.compdata.home_show_num}],expression:"[\n `home-show-num-${compdata.uuid}`,\n {\n rules: [\n {\n validator: (rule, value, cb) => isNaN(Number(value)) ? cb('请输入展示数量') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) > 50 ? cb('展示数量不能超过50') : cb()\n },\n {\n validator: (rule, value, cb) => Number(value) < 1 ? cb('请输入展示数量') : cb()\n }\n ],\n initialValue: compdata.home_show_num\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:t.inputHomeShowNum}}),a("p",{staticStyle:{margin:"8px auto 0","font-size":"12px",color:"#999"}},[t._v("建议输入值为"+t._s(t.homeShowNumTips[t.compdata.display_tpl])+"的倍数")])],1)],1):t._e(),1===t.compdata.type&&5===t.compdata.display_tpl&&1===t.pageType?a("a-form-item",{staticStyle:{"margin-bottom":"0"}},[a("label",{attrs:{slot:"label",title:"添加左图"},slot:"label"},[t._v("添加左图"),a("span",{staticStyle:{color:"#999"}},[t._v("(必填)")])]),a("p",{staticStyle:{"margin-bottom":"0","font-size":"12px",color:"#999"}},[t._v("固定尺寸466×370像素,大小不超过300KB,支持jpg/png/gif格式")])]):t._e(),1===t.compdata.type&&5===t.compdata.display_tpl&&1===t.pageType?a("div",{staticStyle:{padding:"16px 16px 8px",background:"#f7f7f7"}},[a("a-form-item",{staticStyle:{"margin-bottom":"8px"}},[a("image-uploader",{key:"leftImageUploader-"+t.compdata.uuid,attrs:{"img-url":t.compdata.product_only.left_image_url,"custom-style":"margin-bottom: 0"},on:{imageUploaded:function(e){return t.leftImageChange(e,t.compdata.product_only)}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productOnlyLeftImage-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.product_only.left_image_url}],expression:"[\n `productOnlyLeftImage-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.product_only.left_image_url\n }\n ]"}],attrs:{type:"hidden"}})],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["productOnlyLeftLink-"+t.compdata.uuid,{initialValue:t.compdata.product_only.left_image_link}],expression:"[\n `productOnlyLeftLink-${compdata.uuid}`,\n {\n initialValue: compdata.product_only.left_image_link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(e){return t.leftLinkChange(e,t.compdata.product_only)}}})],1)],1):t._e(),a("a-divider"),2===t.compdata.type?a("a-form-item",{staticStyle:{"margin-bottom":"8px"},attrs:{label:"生效时间"}},[a("a-range-picker",{key:"RangePicker-"+t.compdata.uuid,staticClass:"range-picker-custom",staticStyle:{width:"100%"},attrs:{popupStyle:{zIndex:10030},"show-time":{format:"HH:mm:ss"},inputReadOnly:!0,defaultValue:t.initialBlockTimer(t.compdata),format:"YYYY-MM-DD HH:mm:ss"},on:{ok:function(e){return t.confirmBlockTimer(t.compdata,e)},change:function(e){return t.clearBlockTimer(t.compdata,e)}}})],1):t._e(),2===t.compdata.type?a("a-form-item",{attrs:{label:"商品Tab样式"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.product_tab.style,callback:function(e){t.$set(t.compdata.product_tab,"style",e)},expression:"compdata.product_tab.style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")])],1)],1):t._e(),2===t.compdata.type?a("a-divider"):t._e(),a("a-form-item",{attrs:{label:"榜单图标"}},[a("a-radio-group",{on:{change:t.updateModule},model:{value:t.compdata.icon_style,callback:function(e){t.$set(t.compdata,"icon_style",e)},expression:"compdata.icon_style"}},[a("a-radio",{attrs:{value:1}},[t._v("样式一")]),a("a-radio",{attrs:{value:2}},[t._v("样式二")]),a("a-radio",{attrs:{value:3}},[t._v("样式三")]),a("a-radio",{attrs:{value:4}},[t._v("样式四")]),a("a-radio",{attrs:{value:5}},[t._v("样式五")])],1)],1),a("a-form-item",{attrs:{label:"品牌名"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_brand,callback:function(e){t.$set(t.compdata,"is_show_brand",e)},expression:"compdata.is_show_brand"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"品牌中文名"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_brand_cn,callback:function(e){t.$set(t.compdata,"is_show_brand_cn",e)},expression:"compdata.is_show_brand_cn"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"简短描述"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_short_des,callback:function(e){t.$set(t.compdata,"is_show_short_des",e)},expression:"compdata.is_show_short_des"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"折扣标识"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_discount,callback:function(e){t.$set(t.compdata,"is_show_discount",e)},expression:"compdata.is_show_discount"}},[t._v("显示")])],1),a("a-form-item",{attrs:{label:"已售完商品"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_hide_sold_out,callback:function(e){t.$set(t.compdata,"is_hide_sold_out",e)},expression:"compdata.is_hide_sold_out"}},[t._v("显示")]),a("p",{staticStyle:{"margin-bottom":"0",color:"#999"}},[t._v("不勾选显示,客户端默认隐藏已售完商品,若商品全部售完,客户端隐藏该组件显示")])],1),1===t.pageType?a("a-form-item",{style:{marginBottom:t.compdata.home_add_btn.is_show?0:"24px"},attrs:{label:"加购按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.home_add_btn.is_show,callback:function(e){t.$set(t.compdata.home_add_btn,"is_show",e)},expression:"compdata.home_add_btn.is_show"}},[t._v("显示")])],1):t._e(),t.compdata.home_add_btn&&t.compdata.home_add_btn.is_show&&1===t.pageType?a("div",{staticStyle:{padding:"8px 8px 0",background:"#f7f7f7"}},[a("a-form-item",[a("a-dropdown",{attrs:{placement:"topCenter",getPopupContainer:function(t){return t.parentNode},"overlay-style":{width:"140px"}}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/media/image_upload",headers:t.token},on:{change:t.addIconChange}},[t._v("从本地上传")])],1),a("a-menu-item",{on:{click:t.openImageLib}},[t._v("从图片选择器上传")])],1),a("div",{staticClass:"simple-add-image"},[t.compdata.home_add_btn.image_url?[a("img",{staticClass:"notice-icon",attrs:{src:t.compdata.home_add_btn.image_url,alt:""}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:t.deleteAddIcon}})],1)]:[a("a-icon",{attrs:{type:"plus"}}),a("span",{staticClass:"ant-upload-text"},[t._v("上传")])]],2)],1),a("p",{staticStyle:{margin:"0","font-size":"12px",color:"#999"}},[t._v("参考尺寸36×36像素,宽高固定,大小不超过50KB,支持jpg/png/gif格式")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["home-add-btn-"+t.compdata.uuid,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.home_add_btn.image_url}],expression:"[\n `home-add-btn-${compdata.uuid}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.home_add_btn.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):t._e(),1!==t.pageType?a("a-form-item",{style:t.compdata.is_show_add_btn?"margin-bottom: 0":"",attrs:{label:"加购按钮"}},[a("a-checkbox",{on:{change:t.updateModule},model:{value:t.compdata.is_show_add_btn,callback:function(e){t.$set(t.compdata,"is_show_add_btn",e)},expression:"compdata.is_show_add_btn"}},[t._v("显示")])],1):t._e(),t.compdata.is_show_add_btn&&1!==t.pageType?a("a-form-item",{attrs:{label:"加购按钮颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.add_btn_color},on:{input:function(e){return t.updateColor(e,"compdata.add_btn_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.add_btn_color,callback:function(e){t.$set(t.compdata,"add_btn_color",e)},expression:"compdata.add_btn_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.add_btn_color}})])])],2)],1):t._e(),2===t.compdata.type?a("a-form-item",{attrs:{label:"商品Tab选中颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.product_tab.selected_tab_color},on:{input:function(e){return t.updateColor(e,"compdata.product_tab.selected_tab_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.product_tab.selected_tab_color,callback:function(e){t.$set(t.compdata.product_tab,"selected_tab_color",e)},expression:"compdata.product_tab.selected_tab_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.product_tab.selected_tab_color}})])])],2)],1):t._e(),1===t.pageType?a("a-form-item",{attrs:{label:"背景颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click",overlayStyle:{zIndex:10030}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background_color},on:{input:function(e){return t.updateColor(e,"compdata.background_color")}}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background_color,callback:function(e){t.$set(t.compdata,"background_color",e)},expression:"compdata.background_color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background_color}})])])],2)],1):t._e(),a("manage-products",{ref:"productsModal",attrs:{secret:0===t.pageType?1:0},on:{update:t.updateModule}}),a("ImageSelected",{ref:"ImageSelected",on:{imgSuccess:t.selectedImageFromLib}})],1):t._e()},xi=[],Si={set_type:1,product_ids:[],cate_id:"",brand_id:"",tab_name:"",show_more:{is_show:!1,image_url:"",image_link:""},left_image_url:"",left_image_link:""},Ai={mixins:[kt],components:{"manage-products":ue["a"],"product-image-list":xe},data:function(){return{websiteId:2,selectedProductsIds:[],activeProductsIds:[],uploading:!1,homeShowNumTips:[0,0,3,4,5,3],inputTimer:null,currentTab:null}},watch:{compdata:function(){this.uploading=!1},"compdata.product_only":{deep:!0,handler:function(){var t=this.findRelateMod();t&&(t.product_only.set_type=this.compdata.product_only.set_type,t.product_only.product_ids=this.compdata.product_only.product_ids,t.product_only.product_cat=this.compdata.product_only.cate_id,t.product_only.brand_id=this.compdata.product_only.brand_id,t.product_only.show_num=this.compdata.product_only.showNum,this.updateRelateModule(t))}},"compdata.product_tab":{deep:!0,handler:function(){var t=this.findRelateMod();if(t){t.product_tab.show_num=this.compdata.product_tab.showNum;var e=[];this.compdata.product_tab.tabs.forEach((function(t){e.push({set_type:t.set_type,product_ids:t.product_ids,product_cat:t.cate_id,brand_id:t.brand_id,tab_name:t.tab_name,is_show_more:{status:t.show_more.is_show,show_more_img_url:t.show_more.image_url,show_more_img_link:t.show_more.image_link}})})),t.product_tab.tabs=e,this.updateRelateModule(t)}}}},methods:{moreImageChange:function(t,e,a){var o=t.file,i=o.status,r=o.response;"uploading"===i?(this.uploading=!0,this.$set(e,"uploading",!0)):"done"===i&&200===r.status?(e.show_more.image_url=r.data.src,this.form.setFieldsValue(Object(s["a"])({},"product-tab-more-image-".concat(this.compdata.uuid,"-").concat(a),r.data.src)),this.$delete(e,"uploading"),this.updateModule()):200!==r.status&&(this.$message.error(r.message),this.$delete(e,"uploading"))},deleteIcon:function(t,e){t.show_more.image_url="",this.form.setFieldsValue(Object(s["a"])({},"product-tab-more-image-".concat(this.compdata.uuid,"-").concat(e),"")),this.updateModule()},inputProductOnlyShowNum:function(t){var e=this,a=Number(t.target.value);clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){e.compdata.product_only.showNum=a,e.updateModule()}),300)},inputProductOnlyCateId:function(t){var e=this,a=t.target.value;a&&(clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){e.compdata.product_only.cate_id=a,e.updateModule()}),300))},inputProductOnlyBrandId:function(t){var e=this,a=t.target.value;a&&(clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){e.compdata.product_only.brand_id=a,e.updateModule()}),300))},inputProductTabShowNum:function(t){var e=this,a=Number(t.target.value);clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){e.compdata.product_tab.showNum=a,e.updateModule()}),300)},inputProductTabCateId:function(t,e){var a=this,o=t.target.value;o&&(clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){a.$set(e,"cate_id",o),a.updateModule()}),300))},inputProductTabBrandId:function(t,e){var a=this,o=t.target.value;o&&(clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){a.$set(e,"brand_id",o),a.updateModule()}),300))},inputProductTabName:function(t,e){var a=t.target.value;a&&(this.$set(e,"tab_name",a),this.updateModule())},inputProductTabMoreLink:function(t,e){var a=t.target.value;a&&(this.$set(e["show_more"],"image_link",a),this.updateModule())},inputHomeShowNum:function(t){var e=this,a=t.target.value;clearTimeout(this.inputTimer),this.inputTimer=setTimeout((function(){e.compdata.home_show_num=a,e.updateModule()}),300)},addTab:function(){this.compdata.product_tab.tabs.push(JSON.parse(JSON.stringify(Si))),this.updateModule()},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.product_tab.tabs.splice(t,1);e.compdata.product_tab.tabs.splice(t-1,0,a[0]),e.updateModule(),e.renderForm=!0}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.product_tab.tabs.splice(t,1);e.compdata.product_tab.tabs.splice(t+1,0,a[0]),e.updateModule(),e.renderForm=!0}))},del:function(t){var e=this;this.$confirm({title:"确定要删除这个Tab吗?",okText:"确定",cancelText:"取消",onOk:function(){e.renderForm=!1,e.$nextTick((function(){e.compdata.product_tab.tabs.splice(t,1),e.updateModule(),e.renderForm=!0}))},onCancel:function(){}})},addProducts:function(t){this.$refs.productsModal.resultContainer=t,this.$refs.productsModal.chooseVisible=!0},editProductIds:function(t){this.$refs.productsModal.resultContainer=t,this.$refs.productsModal.selectedProducts=Object(de["a"])(t.product_ids),this.$refs.productsModal.editVisible=!0},emptyProductIds:function(t){var e=this;this.$confirm({title:"清空后需要重新配置数据,确认清空吗?",okText:"确定",cancelText:"取消",onOk:function(){t.product_ids=[],e.$refs.productsModal.$refs.productsModalChild.allSelectedRowKeys=[],e.$refs.productsModal.$refs.productsModalChild.selectedRowKeys=[],e.$refs.productsModal.selectedProducts=[],e.updateModule()},onCancel:function(){}})},addIconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.uploading=!0:"done"===a&&200===o.status?(this.compdata.home_add_btn.image_url=o.data.src,this.form.setFieldsValue(Object(s["a"])({},"home-add-btn-".concat(this.compdata.uuid),o.data.src)),this.uploading=!1,this.updateModule()):200!==o.status&&(this.$message.error(o.message),this.uploading=!1)},deleteAddIcon:function(){this.compdata.home_add_btn.image_url="",this.updateModule()},leftImageChange:function(t,e,a){e.left_image_url=t,1===this.compdata.type&&this.form.setFieldsValue(Object(s["a"])({},"productOnlyLeftImage-".concat(this.compdata.uuid),t)),2===this.compdata.type&&this.form.setFieldsValue(Object(s["a"])({},"tabLeftImage-".concat(this.compdata.uuid,"-").concat(a),t)),this.updateModule()},leftLinkChange:function(t,e){var a=t.target.value;a&&(e.left_image_link=a,this.updateModule())},setHiddenProducts:function(t,e,a){switch(t){case"only":this.form.setFieldsValue(Object(s["a"])({},"product-only-list-".concat(this.compdata.uuid,"-validator"),e));break;case"tab":this.form.setFieldsValue(Object(s["a"])({},"product-tab-list-".concat(this.compdata.uuid,"-").concat(a,"-validator"),e));break}},initialBlockTimer:function(t){return t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time&&t.block_timer.end_time?[oe()(t.block_timer.start_time),oe()(t.block_timer.end_time)]:[]},confirmBlockTimer:function(t,e){t.block_timer||(t.block_timer={start_time:"",end_time:""}),t.block_timer.start_time=e[0].format("YYYY-MM-DD HH:mm:ss"),t.block_timer.end_time=e[1].format("YYYY-MM-DD HH:mm:ss"),this.updateModule()},clearBlockTimer:function(t,e){e.length||(t.block_timer.start_time="",t.block_timer.end_time="",this.updateModule())},openImageLib:function(t,e){e&&(this.currentTab=e),this.$refs.ImageSelected.showModal()},selectedImageFromLib:function(t){this.currentTab?(this.currentTab.show_more.image_url=t,this.currentTab=null):this.compdata.home_add_btn.image_url=t,this.updateModule()}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"ProductForm"})},mounted:function(){this.compdata.add_btn_color||(this.compdata.add_btn_color=this.pageSettings.add_cart_color),this.websiteId=this.$route.params.website_id,this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.websiteId}}},Ti=Ai,Fi=(a("0eb8"),Object(g["a"])(Ti,ki,xi,!1,null,"e17c12a4",null)),Oi=Fi.exports;function ji(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function Ii(t){for(var e=1;e")])]):t._e(),t.config.text.show_more.is_show&&2===t.config.text.show_more.type?a("a",{staticClass:"view-more",style:{color:"rgba("+t.hexToRgb(t.config.text.color)+", .6)"},attrs:{href:t.config.text.show_more.link}},[a("b",[t._v(">")])]):t._e()]):3===t.config.type&&"center"===t.config.text.align?a("div",{staticClass:"title-text-wrap two-lines",style:{backgroundColor:t.config.text.bg_color}},[a("h2",{style:{marginBottom:0,fontWeight:t.config.text.font_weight,fontSize:t.config.text.font_size+"px",color:t.config.text.color,textAlign:t.config.text.align}},[t._v("\n "+t._s(t.config.text.content)+"\n ")]),a("p",{staticClass:"sub-and-more"},[a("span",{staticClass:"sub-title",style:{color:t.config.text.sub_color}},[t._v(t._s(t.config.text.sub_content))]),t.config.text.show_more.is_show?a("span",{style:{color:t.config.text.sub_color,opacity:.5}},[t._v(" | ")]):t._e(),t.config.text.show_more.is_show?a("a",{staticClass:"view-more",style:{color:"rgba("+t.hexToRgb(t.config.text.color)+", .6)"},attrs:{href:t.config.text.show_more.link}},[t._v("查看更多"),a("b",[t._v(">")])]):t._e()])]):a("div",{staticClass:"title-image-wrap"},[a("a",{staticClass:"title-image-link",attrs:{href:t.config.image.image_link}},[a("img",{staticClass:"title-image",attrs:{src:t.config.image.image_url}})])]),a("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[a("tip-tool",{attrs:{"cur-data":t.config}})],1)])},zi=[],qi={mixins:[kt]},Ui=qi,Hi=(a("5ec2"),Object(g["a"])(Ui,Vi,zi,!1,null,"7abadc84",null)),Gi=Hi.exports,Yi=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-product",class:{"c-module-selected":t.config.isSelected},style:{backgroundColor:t.config.background_color}},[t.products.length?[t.hasTab?o("div",{staticClass:"tab-wrap",class:"tab-style-"+t.tabStyle,style:{borderBottom:1!==t.pageType?null:1===t.tabStyle?"1px solid rgba("+t.hexToRgb(t.config.product_tab.selected_tab_color)+", .15)":null}},t._l(t.tabNames,(function(e,a){return o("a",{key:"tab-name-"+a,staticClass:"tab",class:0===a?"active":"",style:0===a?{borderBottom:1!==t.pageType?null:1===t.tabStyle?"3px solid "+t.config.product_tab.selected_tab_color:"1px solid "+t.config.product_tab.selected_tab_color,backgroundColor:1===t.pageType?3===t.tabStyle?t.config.product_tab.selected_tab_color:null:1===t.tabStyle?t.config.product_tab.selected_tab_color:"inherit",borderColor:1===t.pageType&&3===t.tabStyle?t.config.product_tab.selected_tab_color:null,color:1!==t.pageType?1!==t.tabStyle?t.config.product_tab.selected_tab_color:"":3!==t.tabStyle?t.config.product_tab.selected_tab_color:""}:{borderColor:1!==t.pageType?null:3===t.tabStyle?"rgba("+t.hexToRgb(t.config.product_tab.selected_tab_color)+", .2)":null}},[o("span",{class:0===a?"active":""},[t._v("\n "+t._s(e)+"\n "),0===a?o("b",{staticClass:"underline",style:{backgroundColor:t.config.product_tab.selected_tab_color}}):t._e()])])})),0):t._e(),0===t.pageType?o("div",{staticClass:"product-wrap"},[1===t.col?[t.limitedProducts.length?[o("div",{staticClass:"row row-2"},[o("product-card-mid",{attrs:{data:t.productsGroupByTwoAndFour.lead[0],"product-conf":t.productConf,col:2}}),t.productsGroupByTwoAndFour.lead[1]?o("product-card-mid",{attrs:{data:t.productsGroupByTwoAndFour.lead[1],"product-conf":t.productConf,col:2}}):t._e()],1),t._l(t.productsGroupByTwoAndFour.rest,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-4"},t._l(e,(function(e,i){return o("product-card",{key:"product-"+a+"-"+i,attrs:{col:4,data:e,"product-conf":t.productConf}})})),1)}))]:t._e()]:3===t.col&&1!==t.pageType?[t.productsGroupByThree?t._l(t.productsGroupByThree,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-3"},t._l(e,(function(e,i){return o("product-card",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1)})):t._e()]:3===t.col&&1===t.pageType?[t.productsGroupByThree?t._l(t.productsGroupByThree,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-3 horizontal"},t._l(e,(function(e,i){return o("product-card-horizon",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1)})):t._e()]:4===t.col?[t.productsGroupByFour?t._l(t.productsGroupByFour,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-4",class:{"home-use":1===t.pageType}},t._l(e,(function(e,i){return o("product-card",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1)})):t._e()]:5===t.col?[t.productsGroupByFive.length?t._l(t.productsGroupByFive,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-5",class:{"home-use":1===t.pageType}},t._l(e,(function(e,i){return o("product-card",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1)})):t._e()]:t._e(),t.isTabShowMore?o("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[o("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2):1===t.pageType&&5===t.config.display_tpl?o("div",{staticClass:"product-wrap"},[13===t.col?[t.productsGroupByOnePlusThree?[o("div",{staticClass:"product-with-lead"},[o("div",{staticClass:"lead-pic-wrap"},[t.hasTab?[o("a",{staticClass:"lead-link",attrs:{href:t.config.product_tab.tabs[0].left_image_link?t.config.product_tab.tabs[0].left_image_link:"javascript:void(0)"}},[o("img",{staticClass:"lead-pic",attrs:{src:t.config.product_tab.tabs[0].left_image_url},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})])]:[o("a",{staticClass:"lead-link",attrs:{href:t.config.product_only.left_image_link?t.config.product_only.left_image_link:"javascript:void(0)"}},[o("img",{staticClass:"lead-pic",attrs:{src:t.config.product_only.left_image_url},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})])]],2),o("div",{staticClass:"row row-5"},t._l(t.productsGroupByOnePlusThree,(function(e,a){return o("product-card",{key:"product-13-"+a,attrs:{col:5,data:e,"product-conf":t.productConf}})})),1)])]:t._e()]:t._e(),t.isTabShowMore?o("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[o("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2):1===t.pageType&&5!==t.config.display_tpl?o("div",{staticClass:"product-wrap"},[3===t.col?[t.productsGroupByThree?[o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[0],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByThree[1]&&2===t.config.product_line?o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[1],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e()]:t._e(),4===t.col?[t.productsGroupByFour?[o("div",{staticClass:"row row-4"},t._l(t.productsGroupByFour[0],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByFour[1]&&2===t.config.product_line?o("div",{staticClass:"row row-4"},t._l(t.productsGroupByFour[1],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e()]:t._e(),5===t.col?[t.productsGroupByFive?[o("div",{staticClass:"row row-5"},t._l(t.productsGroupByFive[0],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByFive[1]&&2===t.config.product_line?o("div",{staticClass:"row row-5"},t._l(t.productsGroupByFive[1],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e()]:t._e(),t.config.is_show_switch?o("div",{staticClass:"arrow left-arrow"}):t._e(),t.config.is_show_switch?o("div",{staticClass:"arrow right-arrow"}):t._e(),t.isTabShowMore?o("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[o("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2):t._e()]:o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("3d2f")}}),o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)],2)},Ji=[],Ki=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShowProduct?a("div",{staticClass:"product-card",class:"product-style-"+t.col+(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(1!==t.pageType?"":" home-use")+(t.productConf.isActivities?" activity-use":"")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.data.product_tags?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.data.product_tags))]):t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})]),1!==t.data.status&&t.productConf.isHideSoldOut?a("div",{staticClass:"no-stock"},[t._v("已售罄")]):t._e(),a("div",{staticClass:"tags-and-desc"},[a("div",{staticClass:"tags-wrap",class:t.data.short_description?void 0:"no-info"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag",style:{borderColor:t.globalConfig.promotionColor,color:t.globalConfig.promotionColor}},[t._v(t._s(e))])})),0),t.productConf.isShowShortDes&&t.data.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.data.short_description))]):t._e()])]),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"price-wrap"},[a("span",{style:{color:t.globalConfig.promotionColor}},[a("span",{staticClass:"currency",style:{color:t.globalConfig.promotionColor}},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price))]),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),a("div",{staticClass:"ref-store",class:t.data.store_name?"hasStore":""},[t.isShowCny?a("span",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e(),t.data.store_name?a("span",{staticClass:"store"},[t._v(t._s(t.data.store_name))]):t._e()])]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),t.productConf.isShowAddBtn&&1!==t.pageType?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t.productConf.isShowAddBtn&&1===t.pageType?a("a",{staticClass:"add-cart",style:{backgroundImage:"none"},attrs:{href:"javascript:void(0)"}},[a("img",{staticClass:"img",attrs:{src:t.productConf.btnImage},on:{error:t.imgLoadError,load:t.imgLoaded}})]):t.productConf.isActivities?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.isActivities,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()]):t._e()},Wi=[],Zi={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}},isShowProduct:function(){return!(!this.productConf.isHideSoldOut&&3===this.data.status&&!this.productConf.isHideSoldOut)}},methods:{imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")}}},Qi=Zi,Xi=(a("5cce"),Object(g["a"])(Qi,Ki,Wi,!1,null,"5f6d0652",null)),tr=Xi.exports,er=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShowProduct?a("div",{staticClass:"product-card-big",class:(t.productConf.isShowAddBtn?"":" noBtn")+(t.productData.store_name?"":" noStore")+(1!==t.pageType?"":" home-use")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.productData.product_url}},[t.productData.product_tags?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.productData.product_tags))]):t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.productData.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.productData.image_url},on:{error:function(e){t.productData.image_url=t.defaultImg}}})])]),a("div",{staticClass:"product-info"},[t.productConf.isShowShortDes&&t.productData.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.productData.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.productData.product_url}},[t._v(t._s(t.productData.name))]),a("div",{staticClass:"tags-wrap"},t._l(t.productData.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag",style:{borderColor:t.globalConfig.promotionColor,color:t.globalConfig.promotionColor}},[t._v(t._s(e))])})),0),a("div",{staticClass:"bottom-area"},[a("div",{staticClass:"price-wrap"},[a("span",{style:{color:t.globalConfig.promotionColor}},[a("span",{staticClass:"currency",style:{color:t.globalConfig.promotionColor}},[t._v(t._s(t.productData.merchant_currency))]),t._v(t._s(t.productData.final_price))]),t.productData.price>t.productData.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.productData.merchant_currency)+t._s(t.productData.price))]):t._e(),t.isShowCny?a("div",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.productData.reference_currency)+t._s(t.productData.reference_price))]):t._e()]),a("div",{staticClass:"vip-price-store"},[t.productData.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.productData.merchant_currency)+t._s(t.productData.vip_price))]):t._e()]),a("div",{staticClass:"btn-wrap"},[t.productData.store_name?a("span",{staticClass:"store"},[t._v(t._s(t.productData.store_name))]):t._e(),t.productConf.isShowAddBtn?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])])])]):t._e()},ar=[],or={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1}},data:function(){return{productData:{}}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.productData.sales){if(1===this.discountStyle)return 100===this.productData.sales?"":((100-this.productData.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.productData.sales?"":this.productData.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}},isShowProduct:function(){return!((!this.productConf.isHideSoldOut||1!==this.productData.status)&&this.productConf.isHideSoldOut)}},watch:{data:function(t){this.productData=t}},mounted:function(){this.productData=this.data}},ir=or,rr=(a("a148"),Object(g["a"])(ir,er,ar,!1,null,"7b3ec2fe",null)),nr=rr.exports,sr=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShowProduct?a("div",{staticClass:"product-card product-card-horizontal",class:"product-style-"+t.col+(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(1!==t.pageType?"":" home-use")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.data.product_tags?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.data.product_tags))]):t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})]),1!==t.data.status&&t.productConf.isHideSoldOut?a("div",{staticClass:"no-stock"},[t._v("已售罄")]):t._e()]),a("div",{staticClass:"product-info-wrap"},[t.productConf.isShowShortDes&&t.data.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.data.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"price-wrap"},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),a("div",{staticClass:"ref-store"},[t.isShowCny?a("span",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()])]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"tags-and-desc"},[a("div",{staticClass:"tags-wrap no-info"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag"},[t._v(t._s(e))])})),0)]),t.data.store_name?a("p",{staticClass:"store"},[t._v(t._s(t.data.store_name))]):t._e()]),t.productConf.isShowAddBtn&&1!==t.pageType?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t.productConf.isShowAddBtn&&1===t.pageType?a("a",{staticClass:"add-cart",style:{backgroundImage:"none"},attrs:{href:"javascript:void(0)"}},[a("img",{staticClass:"img",attrs:{src:t.productConf.btnImage},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})]):t._e()]):t._e()},cr=[],lr={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}},isShowProduct:function(){return!(!this.productConf.isHideSoldOut&&3===this.data.status&&!this.productConf.isHideSoldOut)}},methods:{imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")}}},dr=lr,ur=(a("0908"),Object(g["a"])(dr,sr,cr,!1,null,"c6622a12",null)),pr=ur.exports,mr=a("2ef0"),fr=a.n(mr),hr={mixins:[kt],components:{"product-card":tr,"product-card-mid":nr,"product-card-horizon":pr},data:function(){return{products:[],limitedProducts:[],productsGroupByOnePlusThree:[],notFirstLoad:!1}},computed:{hasTab:function(){return 2===this.config.type},uuid:function(){return this.config.uuid},col:function(){switch(this.config.display_tpl){case 1:return 1;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 13;default:return 4}},productConf:function(){return{addBtnColor:this.config.add_btn_color,isShowAddBtn:1!==this.pageType?this.config.is_show_add_btn:this.config.home_add_btn.is_show,isShowDiscount:this.config.is_show_discount,isShowShortDes:this.config.is_show_short_des,isHideSoldOut:this.config.is_hide_sold_out,btnImage:this.config.home_add_btn&&this.config.home_add_btn.image_url}},tabStyle:function(){return this.config.product_tab.style},tabNames:function(){var t=[];return this.config.product_tab.tabs.forEach((function(e){t.push(e.tab_name)})),t},productsGroupByTwoAndFour:function(){var t=[this.limitedProducts[0],this.limitedProducts[1]?this.limitedProducts[1]:{}],e=fr.a.chunk(this.limitedProducts.slice(2),4);return{lead:t,rest:e}},productsGroupByThree:function(){return fr.a.chunk(this.limitedProducts,3)},productsGroupByFour:function(){return fr.a.chunk(this.limitedProducts,4)},productsGroupByFive:function(){return fr.a.chunk(this.limitedProducts,5)},isTabShowMore:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.is_show")},tabShowMoreLink:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.image_link")},tabShowMoreImage:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.image_url")}},watch:{config:{deep:!0,handler:function(){this.hasTab?this.getTabProducts():this.getNormalProducts()}},products:function(t){if(this.notFirstLoad&&t&&!t.length&&this.$message.error("无商品数据"),this.notFirstLoad=!0,1!==this.pageType)if(this.hasTab){for(var e=Number(this.config.product_tab.showNum)||10,a=0;at.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),t.isShowCny?a("div",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"btn-wrap"},[t.data.store_name?a("span",{staticClass:"store"},[t._v(t._s(t.data.store_name))]):t._e(),t.productConf.isShowAddBtn||t.productConf.isActivities?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])])])])},Xr=[],tn={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},en=tn,an=(a("3387"),Object(g["a"])(en,Qr,Xr,!1,null,"72c7d2ee",null)),on=an.exports,rn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-card-big",class:(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")},[a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[t.data.product_tags?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.data.product_tags))]):t.sales&&t.productConf.isShowDiscount?a("div",{staticClass:"discount-tag",style:{backgroundColor:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})])]),a("div",{staticClass:"product-info"},[t.productConf.isShowShortDes&&t.data.short_description?a("div",{staticClass:"promotion-info"},[t._v(t._s(t.data.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"tags-wrap"},t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"tag-"+o,staticClass:"tag",style:{borderColor:t.globalConfig.promotionColor,color:t.globalConfig.promotionColor}},[t._v(t._s(e))])})),0),a("div",{staticClass:"bottom-area"},[a("div",{staticClass:"price-wrap"},[a("span",{style:{color:t.globalConfig.promotionColor}},[a("span",{staticClass:"currency",style:{color:t.globalConfig.promotionColor}},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price))]),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),t.isShowCny?a("div",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"btn-wrap"},[t.data.store_name?a("span",{staticClass:"store"},[t._v(t._s(t.data.store_name))]):t._e(),t.productConf.isShowAddBtn||t.productConf.isActivities?a("a",{staticClass:"add-cart",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t._e()])])])])},nn=[],sn={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){if(!isNaN(Number(this.data.remain_inventory))&&0===Number(this.data.remain_inventory))return"已抢光";switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}}}},cn=sn,ln=(a("3536"),Object(g["a"])(cn,rn,nn,!1,null,"d1929c5a",null)),dn=ln.exports,un={mixins:[kt],components:{"product-card":tr,"product-card-mid-flash":on,"product-card-big-flash":dn},data:function(){return{products:[],tabs:[],shownProductIds:[]}},computed:{hasArrow:function(){return this.tabs.length>5},shownTabs:function(){var t=JSON.parse(JSON.stringify(this.tabs));return t.splice(0,5)},shownRuleId:function(){for(var t=-1,e=0;e=o&&e=i&&(r=2),t.push({startData:oe()(o).format("MMMDo HH:mm"),status:r,statusText:0===r?"即将开始":1===r?"抢购中":"已结束",name:a.name})):t.push({startData:"",status:0,statusText:""})}));for(var a=0;a5?a("div",{staticClass:"arrows"},[a("div",{staticClass:"left-arrow"}),a("div",{staticClass:"right-arrow"})]):t._e()],2),a("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[a("tip-tool",{attrs:{"cur-data":t.config}})],1)])},Cn=[],kn={1:"猜你喜欢"},xn={mixins:[kt],components:{"product-card":tr},data:function(){return{recommendType:kn,products:[],limitedProducts:[]}},computed:{productConf:function(){return{addBtnColor:"#000",isShowAddBtn:this.config.product_only.is_show_btn.status,isShowDiscount:this.config.product_only.is_show_discount,btnImage:this.config.product_only.is_show_btn.btn_image_url}},productsGroupByFive:function(){return fr.a.chunk(this.limitedProducts,5)}},watch:{products:function(){if(this.products){var t=Number(this.config.product_only.show_num)||10;this.limitedProducts=this.products.slice(0,t)}},"config.product_only.show_num":{handler:function(){this.getNormalProducts()}}},methods:{getNormalProducts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.config.product_only,a=e.show_num>5?5:e.show_num,t.next=4,this.getProducts({website_id:this.websiteId,limit:a});case 4:this.products=t.sent;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getProducts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a,o,i,r,n,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a=e.limit,o=void 0===a?20:a,i=e.website_id,r=void 0===i?"":i,t.next=3,fe["b"].get("/api-cms/cms/product/list?website_id=".concat(r,"&limit=").concat(o));case 3:if(n=t.sent,!n.data.results){t.next=8;break}return t.abrupt("return",Object(de["a"])(n.data.results));case 8:return t.abrupt("return",[]);case 9:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){this.websiteId=this.$route.params.website_id,this.getNormalProducts()}},Sn=xn,An=(a("a8d6"),Object(g["a"])(Sn,wn,Cn,!1,null,"0311e4d3",null)),Tn=An.exports,Fn=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-pictext",class:{"c-module-selected":t.config.isSelected},style:{backgroundColor:t.config.background_color}},[t.isShowExample?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("9cd4")}}):o("div",{staticClass:"pic-text-wrap",class:"col-"+t.config.display_tpl},[1===t.config.style_type?t._l(t.config.group_one,(function(e,a){return o("div",{key:"group-one-"+a,staticClass:"pic-text"},[o("div",{staticClass:"img-wrap"},[o("a",{staticClass:"img-link",attrs:{href:e.image_link||"javascript:void(0)"}},[o("img",{staticClass:"img",attrs:{src:e.image_url},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})])]),o("div",{staticClass:"text-wrap"},[o("p",{staticClass:"desc",style:{fontSize:t.config.desc_font_size}},[t._v(t._s(e.description))]),o("a",{staticClass:"btn",class:"type-"+t.config.btn_style_type,style:{borderColor:t.config.btn_background_color,color:3!==t.config.btn_style_type?t.config.btn_background_color:"#fff",backgroundColor:3===t.config.btn_style_type?t.config.btn_background_color:null},attrs:{href:e.image_link||"javascript:void(0)"}},[t._v(t._s(e.btn_text))])])])})):2===t.config.style_type?t._l(t.config.group_two,(function(e,a){return o("div",{key:"group-two-"+a,staticClass:"pic-text"},[o("div",{staticClass:"img-wrap"},[o("a",{staticClass:"img-link",attrs:{href:e.image_link||"javascript:void(0)"}},[o("img",{staticClass:"img",attrs:{src:e.image_url},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})])]),o("div",{staticClass:"text-wrap"},[o("p",{staticClass:"title-1",style:{fontSize:t.config.line_one_font_size}},[t._v(t._s(e.title_one))]),o("p",{staticClass:"title-2",style:{fontSize:t.config.line_two_font_size}},[t._v(t._s(e.title_two))]),o("a",{staticClass:"btn",class:"type-"+t.config.btn_style_type,style:{borderColor:t.config.btn_background_color,color:3!==t.config.btn_style_type?t.config.btn_background_color:"#fff",backgroundColor:3===t.config.btn_style_type?t.config.btn_background_color:null},attrs:{href:e.image_link||"javascript:void(0)"}},[t._v(t._s(e.btn_text))])])])})):t._e()],2),o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)])},On=[],jn={mixins:[kt],data:function(){return{isShowExample:!0}},watch:{config:{deep:!0,handler:function(){this.computeExampleShow()}}},methods:{imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")},computeExampleShow:function(){if(1===this.config.style_type){if(1!==this.config.group_one.length)return void(this.isShowExample=!1);this.config.group_one[0].image_url?this.isShowExample=!1:this.isShowExample=!0}else if(2===this.config.style_type){if(1!==this.config.group_two.length)return void(this.isShowExample=!1);this.config.group_two[0].image_url?this.isShowExample=!1:this.isShowExample=!0}}},mounted:function(){this.computeExampleShow()}},In=jn,Pn=(a("04e4"),Object(g["a"])(In,Fn,On,!1,null,"0ddbdaf8",null)),En=Pn.exports,Mn=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-code",class:{"c-module-selected":t.config.isSelected}},[t.config.code?o("div",{domProps:{innerHTML:t._s(t.config.code)}}):o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("2c1d")}}),o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)])},$n=[],Dn={mixins:[kt]},Nn=Dn,Rn=Object(g["a"])(Nn,Mn,$n,!1,null,null,null),Ln=Rn.exports,Bn=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-hotspots",class:{"c-module-selected":t.config.isSelected},style:{height:t.parentHeight+"px"}},[t.config.image_url?o("img",{staticClass:"hotspots-image",class:{"img-error":t.imgLoadedError},attrs:{src:t.config.image_url,height:t.parentHeight},on:{load:t.imgLoaded,error:t.imgError}}):o("img",{staticClass:"hotspots-image",class:{"img-error":t.imgLoadedError},attrs:{src:a("f580"),height:t.parentHeight},on:{load:t.imgLoaded,error:t.imgError}}),1===t.pageType?o("div",{staticClass:"home-hot-spots",style:{height:t.parentHeight+"px"}},t._l(t.config.hotspots,(function(e,a){return o("a",{key:"spots-"+a,staticClass:"spot",style:{width:e.width*t.homeRatio+"px",height:e.height*t.homeRatio+"px",top:e.top*t.homeRatio+"px",left:e.left*t.homeRatio+"px",zIndex:e.display_index},attrs:{href:e.spot_link}})})),0):o("div",{staticClass:"act-hot-spots",style:{height:t.parentHeight+"px"}},t._l(t.config.hotspots,(function(e,a){return o("a",{key:"spots-"+a,staticClass:"spot",style:{width:e.width*t.actRatio+"px",height:e.height*t.actRatio+"px",top:e.top*t.actRatio+"px",left:e.left*t.actRatio+"px",zIndex:e.display_index},attrs:{href:e.spot_link}})})),0),o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)])},Vn=[],zn={mixins:[kt],data:function(){return{imgLoadedError:!1,parentHeight:0,homeRatio:1190/750,actRatio:1.32}},methods:{imgError:function(){this.imgLoadedError=!0},imgLoaded:function(t){var e=t.composedPath();this.imgLoadedError=!1,1===this.pageType?e[0].naturalWidth<=1190?this.parentHeight=e[0].naturalHeight*(1190/e[0].naturalWidth):this.parentHeight=e[0].naturalHeight:e[0].naturalWidth<=990?this.parentHeight=e[0].naturalHeight*(990/e[0].naturalWidth):this.parentHeight=e[0].naturalHeight}}},qn=zn,Un=(a("7ef9"),Object(g["a"])(qn,Bn,Vn,!1,null,"3c12d3bc",null)),Hn=Un.exports,Gn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-wrap c-module-expo wide"},[a("div",{staticClass:"cvideo"},[a("div",{staticClass:"bpc",class:{"video-big":1===t.config.display_tpl&&!t.hasVideo,"video-center":2===t.config.display_tpl&&!t.hasVideo,"video-small":3===t.config.display_tpl&&!t.hasVideo}},[t.hasVideo?[a("video",{attrs:{src:t.videoSrc,poster:t.config.image_url?t.config.image_url:"",controls:"controls",width:t.videoWidth,height:"auto"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])]:t._e()],2)]),a("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[a("tip-tool",{attrs:{"cur-data":t.config}})],1)])},Yn=[],Jn={mixins:[kt],data:function(){return{imgHeight:[]}},computed:{hasVideo:function(){var t=!1;return this.config.upload_video.src&&1===this.config.upload&&(t=!0),this.config.mv_url.src&&2===this.config.upload&&(t=!0),t},videoSrc:function(){var t=1===this.config.upload?this.config.upload_video.src:this.config.mv_url.src;return t},videoWidth:function(){var t=1===this.config.display_tpl?"990px":2===this.config.display_tpl?"720px":"360px";return t}},methods:{getImageHeight:function(t,e){var a=t.composedPath(),o=a[0],i=o.height,r=a[1];this.$set(this.imgHeight,e,i),r.className=r.className.replace("img-load-error","")},imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")}}},Kn=Jn,Wn=(a("f801"),Object(g["a"])(Kn,Gn,Yn,!1,null,"7e309c93",null)),Zn=Wn.exports,Qn=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-popup",class:{"c-module-selected":t.config.isSelected}},[o("img",{staticClass:"pop-eg",attrs:{src:a("9a31")}}),o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)])},Xn=[],ts={mixins:[kt]},es=ts,as=(a("c74e"),Object(g["a"])(es,Qn,Xn,!1,null,"1ca942c8",null)),os=as.exports,is=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-wrap c-module-givings",class:{"c-module-selected":t.config.isSelected},style:{backgroundColor:t.config.background_color}},[t.isShowExample?a("img",{staticClass:"givings-example",style:{width:1===t.pageType?"1190px":"990px"},attrs:{src:t.exampleImageUrl}}):1===t.config.display_tpl?t._l(t.config.givings,(function(e,o){return a("div",{key:"giving-"+o,staticClass:"givings-wrap"},[a("div",{staticClass:"givings-header"},[a("div",{staticClass:"content-part"},[a("h3",{staticClass:"givings-title"},[t._v(t._s(e.name))]),a("p",{staticClass:"givings-description"},[t._v(t._s(e.desc))]),a("p",{staticClass:"givings-period"},[t._v(t._s(t.moment(e.async_start).format("YYYY-MM-DD HH:mm"))+" ~ "+t._s(t.moment(e.async_end).format("YYYY-MM-DD HH:mm")))])]),a("div",{staticClass:"control-part"},[a("a",{staticClass:"giving-link",style:{backgroundColor:t.config.add_btn_color},attrs:{href:e.link_url,target:"_blank"}},[t._v("立即参与")])])]),a("div",{staticClass:"givings-products"},[a("OneLineOnePcs",{attrs:{"rule-id":e.async_id,globalConfig:t.globalConfig,"is-home":Boolean(t.pageType),data:t.giftsInfo}})],1)])})):3!==t.config.display_tpl||t.pageType?3===t.config.display_tpl&&1===t.pageType?[a("div",{staticClass:"givings-wrap-3"},[a("div",{staticClass:"inner-wrap"},t._l(t.config.givings,(function(e,o){return a("OneLineMultiPcsHorizontal",{key:"giving-3-"+o,staticClass:"three-per-line home-use",attrs:{"rule-id":e.async_id,globalConfig:t.globalConfig,data:t.giftsInfo,config:t.config}})})),1)])]:5===t.config.display_tpl?[a("div",{staticClass:"givings-wrap-5"},[a("div",{staticClass:"inner-wrap",class:{"home-use":1===t.pageType}},t._l(t.config.givings,(function(e,o){return a("OneLineMultiPcs",{key:"giving-5-"+o,staticClass:"five-per-line",attrs:{"rule-id":e.async_id,globalConfig:t.globalConfig,data:t.giftsInfo,config:t.config,"is-home":Boolean(t.pageType)}})})),1)])]:t._e():[a("div",{staticClass:"givings-wrap-3"},t._l(t.config.givings,(function(e,o){return a("OneLineMultiPcs",{key:"giving-3-"+o,staticClass:"three-per-line",attrs:{"rule-id":e.async_id,globalConfig:t.globalConfig,data:t.giftsInfo,config:t.config}})})),1)],a("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[a("tip-tool",{attrs:{"cur-data":t.config}})],1)],2)},rs=[],ns=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"givings-products-wrap"},[t._l(t.productsGroupByThree[0],(function(e,o){return a("div",{key:"giving-products-"+o,staticClass:"givings-product",class:{"home-use":t.isHome}},[a("div",{staticClass:"product-image-wrap"},[a("a",{attrs:{href:"#"}},[a("img",{staticClass:"product-image",attrs:{src:e.image_url},on:{"~error":function(t){e.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}})]),a("span",{staticClass:"tag"},[t._v("赠")])]),a("div",{staticClass:"product-name"},[a("a",{staticStyle:{color:"inherit"},attrs:{href:"#"}},[t._v(t._s(e.name))])])])})),t.productsGroupByThree.length>1?a("div",{staticClass:"arrow left-arrow"}):t._e(),t.productsGroupByThree.length>1?a("div",{staticClass:"arrow right-arrow"}):t._e()],2)},ss=[],cs={props:{ruleId:{type:String,default:""},isHome:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}}},data:function(){return{products:[]}},watch:{ruleId:function(){this.getGiftProducts()}},computed:{productsGroupByThree:function(){return fr.a.chunk(this.products,3)}},methods:{getGiftProducts:function(){var t=this,e=this.data.filter((function(e){return e.rule_id===Number(t.ruleId)}));e.length&&(this.products=e[0].products)}},mounted:function(){this.getGiftProducts()}},ls=cs,ds=(a("ef39"),Object(g["a"])(ls,ns,ss,!1,null,"042fe3d1",null)),us=ds.exports,ps=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-wrap"},[a("div",{staticClass:"product-image-wrap"},[a("img",{staticClass:"product-image",attrs:{src:t.product.image_url},on:{"~error":function(e){t.product.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),a("span",{staticClass:"badge",style:{backgroundColor:t.globalConfig.promotionColor}},[t._v("赠")])]),a("p",{staticClass:"title"},[t._v(t._s(t.product.name))]),a("p",{staticClass:"desc"},[t._v(t._s(t.giving.desc))]),t.giving.async_id&&3===t.config.display_tpl?a("p",{staticClass:"time"},[t._v(t._s(t.moment(t.giving.async_start).format("YYYY-MM-DD HH:mm"))+" ~ "+t._s(t.moment(t.giving.async_end).format("YYYY-MM-DD HH:mm")))]):t.giving.async_id&&5===t.config.display_tpl?a("p",{staticClass:"time"},[t._v(t._s(t.moment(t.giving.async_start).format("YYYY-MM-DD"))+"~"+t._s(t.moment(t.giving.async_end).format("YYYY-MM-DD")))]):t._e(),t.isHome?a("a",{staticClass:"btn-link",style:{borderColor:t.config.add_btn_color,color:t.config.add_btn_color},attrs:{href:"#"}},[t._v("立即参与")]):a("a",{staticClass:"btn-link",style:{backgroundColor:t.config.add_btn_color},attrs:{href:"#"}},[t._v("立即参与")])])},ms=[],fs={props:{ruleId:{type:String,default:""},data:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){}},isHome:{type:Boolean,default:!1},globalConfig:{type:Object,default:function(){}}},data:function(){return{product:{},giving:{}}},watch:{ruleId:function(){this.getGiftInfo(),this.getGiftProducts()}},methods:{moment:oe.a,getGiftProducts:function(){var t=this,e=this.data.filter((function(e){return e.rule_id===Number(t.ruleId)}));e.length&&(this.product=e[0].products[0])},getGiftInfo:function(){var t=this,e=this.config.givings.filter((function(e){return e.async_id===t.ruleId}));e.length&&(this.giving=e[0])}},mounted:function(){this.getGiftInfo(),this.getGiftProducts()}},hs=fs,gs=(a("0c00"),Object(g["a"])(hs,ps,ms,!1,null,"955f540c",null)),_s=gs.exports,vs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"giving-products-wrap"},[a("div",{staticClass:"product-image-wrap"},[a("img",{staticClass:"product-image",attrs:{src:t.product.image_url},on:{"~error":function(e){t.product.image_url="https://cms-resource.azoyacdn.com/img/no_thumb.jpg"}}}),a("span",{staticClass:"badge",style:{backgroundColor:t.globalConfig.promotionColor}},[t._v("赠")])]),a("div",{staticClass:"infos-wrap"},[a("p",{staticClass:"title"},[t._v(t._s(t.product.name))]),a("p",{staticClass:"desc"},[t._v(t._s(t.giving.desc))]),t.giving.async_id?a("p",{staticClass:"time"},[t._v(t._s(t.moment(t.giving.async_start).format("YYYY-MM-DD"))+"~"+t._s(t.moment(t.giving.async_end).format("YYYY-MM-DD")))]):t._e(),a("a",{staticClass:"btn-link",style:{backgroundColor:t.config.add_btn_color},attrs:{href:"#"}},[t._v("立即参与")])])])},bs=[],ys={props:{ruleId:{type:String,default:""},data:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){}},isHome:{type:Boolean,default:!1},globalConfig:{type:Object,default:function(){}}},data:function(){return{product:{},giving:{}}},watch:{ruleId:function(){this.getGiftInfo(),this.getGiftProducts()}},methods:{moment:oe.a,getGiftProducts:function(){var t=this,e=this.data.filter((function(e){return e.rule_id===Number(t.ruleId)}));e.length&&(this.product=e[0].products[0])},getGiftInfo:function(){var t=this,e=this.config.givings.filter((function(e){return e.async_id===t.ruleId}));e.length&&(this.giving=e[0])}},mounted:function(){this.getGiftInfo(),this.getGiftProducts()}},ws=ys,Cs=(a("5962"),Object(g["a"])(ws,vs,bs,!1,null,"34b3faa8",null)),ks=Cs.exports,xs=a("e373"),Ss=a.n(xs),As=a("36eb"),Ts=a.n(As),Fs={mixins:[kt],components:{OneLineOnePcs:us,OneLineMultiPcs:_s,OneLineMultiPcsHorizontal:ks},data:function(){return{giftsInfo:[]}},computed:{isShowExample:function(){var t=this.config.givings.filter((function(t){return!!t.async_id}));return!t.length},exampleImageUrl:function(){return 1===this.pageType?Ss.a:Ts.a}},watch:{config:{deep:!0,handler:function(){this.getGiftsInfo()}}},methods:{moment:oe.a,getGiftsInfo:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.config.givings.forEach((function(t){e.push(Number(t.async_id))})),t.prev=2,t.next=5,fe["b"].post("/api-cms/cms/promotion/gifts",{rule_ids:e});case 5:a=t.sent,o=a.data.gifts,this.giftsInfo=o,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:case"end":return t.stop()}}),t,this,[[2,10]])})));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){this.getGiftsInfo()}},Os=Fs,js=(a("121d"),Object(g["a"])(Os,is,rs,!1,null,"1dc65ea1",null)),Is=js.exports,Ps=a("237a"),Es=a.n(Ps),Ms=a("cf66"),$s=a.n(Ms),Ds=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-wrap c-module-flashsale",class:{"c-module-selected":t.config.isSelected},style:{backgroundColor:t.config.background_color}},[1!==t.config.rounds.length||t.config.rounds[0].async_id?[a("div",{staticClass:"time-tab",style:{backgroundColor:t.config.tab_bg_color}},t._l(t.shownTabs,(function(e,o){return a("div",{key:"tab-"+o,staticClass:"tab",class:{active:e.isHighlight}},[a("p",{staticClass:"time"},[a("span",{staticClass:"center"},[t._v(t._s(e.name||e.startData))])]),a("p",{staticClass:"status"},[a("span",{staticClass:"center",style:{color:t.config.tab_bg_color}},[t._v(t._s(e.statusText))])])])})),0),a("div",{staticClass:"arrows-wapper"},[t.hasArrow?a("div",{staticClass:"arrows"},[a("div",{staticClass:"arrow-left",style:{color:t.config.tab_bg_color}},[a("a-icon",{attrs:{type:"left"}})],1),a("div",{staticClass:"arrow-right",style:{color:t.config.tab_bg_color}},[a("a-icon",{attrs:{type:"right"}})],1)]):t._e()]),a("div",{staticClass:"product-wrap",class:{"home-product-wrap":1===t.pageType}},[1===t.col?[t.limitedProducts.length?t._l(t.limitedProducts,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-1"},[a("product-card-big-flash",{attrs:{data:e,"product-conf":t.productConf,col:1,"btn-status":t.btnStatus}})],1)})):t._e()]:2===t.col?[t.productsGroupByTwo.length?t._l(t.productsGroupByTwo,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-2"},t._l(e,(function(e,i){return a("product-card-mid-flash",{key:"product-"+o+"-"+i,attrs:{data:e,"product-conf":t.productConf,col:2,"btn-status":t.btnStatus}})})),1)})):t._e()]:3===t.col?[t.productsGroupByThree.length?t._l(t.productsGroupByThree,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-3"},t._l(e,(function(e,i){return a("product-card",{key:"product-"+o+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,"btn-status":t.btnStatus}})})),1)})):t._e()]:4===t.col?[t.productsGroupByFour.length?t._l(t.productsGroupByFour,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-4"},t._l(e,(function(e,i){return a("product-card",{key:"product-"+o+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,"btn-status":t.btnStatus}})})),1)})):t._e()]:5===t.col?[t.productsGroupByFive.length?t._l(t.productsGroupByFive,(function(e,o){return a("div",{key:"row-"+o,staticClass:"row row-5"},t._l(e,(function(e,i){return a("product-card",{key:"product-"+o+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,"btn-status":t.btnStatus}})})),1)})):t._e()]:t._e(),t.isShowMore?a("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[a("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2)]:a("img",{staticClass:"pc-example-placeholder",attrs:{src:t.exampleDiagram}}),a("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[a("tip-tool",{attrs:{"cur-data":t.config}})],1)],2)},Ns=[],Rs=a("49cd"),Ls=a.n(Rs),Bs=a("824d"),Vs=a.n(Bs),zs=a("edff"),qs=a.n(zs),Us=a("a87a"),Hs=a.n(Us),Gs=a("b191"),Ys=a.n(Gs),Js=a("9a33"),Ks=a.n(Js),Ws=a("b245"),Zs=a.n(Ws),Qs={mixins:[kt],components:{"product-card":tr,"product-card-mid-flash":on,"product-card-big-flash":dn},data:function(){return{products:[],limitedProducts:[],tabs:[],shownProductIds:[],notFirstLoad:!1}},computed:{hasArrow:function(){return this.tabs.length>5},shownTabs:function(){var t=JSON.parse(JSON.stringify(this.tabs));return t.splice(0,5)},shownRuleId:function(){for(var t=-1,e=0;e=i&&a=r&&(s=2),t.config.is_show_count_down&&(n="抢购中 距结束 :00:20:30"),e.push({startData:oe()(i).format("MMMDo HH:mm"),status:s,statusText:0===s?"即将开始":1===s?n:"已结束",name:o.name})):e.push({startData:"",status:0,statusText:""})}));for(var o=0;o1&&t.isShowSwitch?o("div",{staticClass:"arrow left-arrow",class:{"home-arrow":1===t.pageType}}):t._e(),t.productsGroupByThree.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow right-arrow",class:{"home-arrow":1===t.pageType}}):t._e()],2)},rc=[],nc=null,sc={props:{globalConfig:{type:Object,default:function(){}},config:{type:Object,default:function(){}},data:{type:Object,default:function(){return{}}},productConf:{type:Object,default:function(){}},isShowSwitch:{type:Boolean,default:!0},pageType:{type:Number,default:0},productLine:{type:Number,default:0}},data:function(){return{products:[],websiteId:this.$route.params.website_id,notFirstLoad:!1}},methods:{getProductsByIds:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.productIds.length){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,he({website_id:this.websiteId,product_ids:this.productIds,limit:10,secret:0===this.globalConfig.page_type?1:0});case 4:this.products=t.sent;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},computed:{productIds:function(){return this.data?this.data.product_ids:[]}},watch:{productIds:{handler:function(t){if(t.length){var e=this;nc&&clearTimeout(nc),nc=setTimeout((function(){e.loading=!0,e.getProductsByIds(),this.products&&e.$message.error("无商品数据")}),500)}}}},mounted:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getProductsByIds();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},cc={mixins:[sc],components:{"product-card":tr},computed:{productsGroupByThree:function(){return fr.a.chunk(this.products,3)}},data:function(){return{col:3}}},lc=cc,dc=(a("6244"),Object(g["a"])(lc,ic,rc,!1,null,"7f1ab599",null)),uc=dc.exports,pc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return 0===t.products.length?o("div",{staticClass:"new-user-products-wrap"},[1===t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a611")}}):t._e(),1!=t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a46b")}}):t._e()]):o("div",{staticClass:"new-user-products-wrap"},[t.productsGroupByThree?[o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[0],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByThree[1]&&2===t.productLine?o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[1],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e(),t.productsGroupByThree.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow left-arrow",class:{"home-arrow":1===t.pageType}}):t._e(),t.productsGroupByThree.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow right-arrow",class:{"home-arrow":1===t.pageType}}):t._e()],2)},mc=[],fc={mixins:[sc],components:{"product-card-horizon":pr},data:function(){return{col:3}},computed:{productsGroupByThree:function(){return fr.a.chunk(this.products,3)}}},hc=fc,gc=(a("51e4"),Object(g["a"])(hc,pc,mc,!1,null,"e0486a10",null)),_c=gc.exports,vc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return 0===t.products.length?o("div",{staticClass:"new-user-products-wrap"},[1===t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a611")}}):t._e(),1!=t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a46b")}}):t._e()]):o("div",{staticClass:"new-user-products-wrap"},[t.productsGroupByFour.length?[o("div",{staticClass:"row row-4"},t._l(t.productsGroupByFour[0],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByFour[1]&&2===t.productLine?o("div",{staticClass:"row row-4"},t._l(t.productsGroupByFour[1],(function(e,a){return o("product-card",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e(),t.productsGroupByFour.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow left-arrow",class:{"home-arrow":1===t.pageType}}):t._e(),t.productsGroupByFour.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow right-arrow",class:{"home-arrow":1===t.pageType}}):t._e()],2)},bc=[],yc={mixins:[sc],components:{"product-card":tr},data:function(){return{col:4}},computed:{productsGroupByFour:function(){return fr.a.chunk(this.products,4)}}},wc=yc,Cc=(a("e62c"),Object(g["a"])(wc,vc,bc,!1,null,"9e3f2afe",null)),kc=Cc.exports,xc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return 0===t.products.length?o("div",{staticClass:"new-user-products-wrap"},[1===t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a611")}}):t._e(),1!=t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("a46b")}}):t._e()]):o("div",{staticClass:"new-user-products-wrap"},[t.productsGroupByFive.length?[o("div",{staticClass:"row row-5",class:{"home-use":1===t.pageType}},t._l(t.productsGroupByFive[0],(function(e,a){return o("product-card",{key:"row-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1),t.productsGroupByFive[1]&&2===t.productLine?o("div",{staticClass:"row row-5"},t._l(t.productsGroupByFive[1],(function(e,a){return o("product-card",{key:"row-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1):t._e()]:t._e(),t.productsGroupByFive.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow left-arrow",class:{"home-arrow":1===t.pageType}}):t._e(),t.productsGroupByFive.length>1&&t.isShowSwitch?o("div",{staticClass:"arrow right-arrow",class:{"home-arrow":1===t.pageType}}):t._e()],2)},Sc=[],Ac={mixins:[sc],components:{"product-card":tr},data:function(){return{col:5}},computed:{productsGroupByFive:function(){return fr.a.chunk(this.products,5)}}},Tc=Ac,Fc=(a("7a02"),Object(g["a"])(Tc,xc,Sc,!1,null,"3eca56ee",null)),Oc=Fc.exports,jc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"coupon-wrap-pc",class:{"with-radius":1===t.globalConfig.is_radius,"home-page":1===t.pageType},style:{backgroundColor:t.bg,color:t.textColor}},[a("div",{staticClass:"bg-decoration-top",style:{backgroundColor:t.decorationBg}}),a("div",{staticClass:"bg-decoration-bottom",style:{backgroundColor:t.decorationBg}}),a("div",{staticClass:"coupon-left"},[2===t.data.type||4===t.data.type?a("span",{staticClass:"coupon-symbol"},[t._v(t._s(t.data.currency_symbol))]):t._e(),a("span",{staticClass:"coupon-quota"},[t._v(t._s(t.data.coupon_value)+t._s(1===t.data.type||3===t.data.type?"折":""))]),a("span",{staticClass:"coupon-name"},[t._v(t._s(t.data.coupon_object))])]),a("div",{staticClass:"bg-decoration-line left",style:{backgroundColor:t.textColor}}),a("div",{staticClass:"coupon-middle"},[a("p",[t._v(t._s(t.data.coupon_name))]),a("p",{staticClass:"coupon-time"},[t._v(t._s(t.data.async_start)+" ~ "+t._s(t.data.async_end))])]),a("div",{staticClass:"bg-decoration-line right",style:{backgroundColor:t.textColor}}),a("div",{staticClass:"coupon-btn"},[t._v("\n 立即领取\n ")])])},Ic=[],Pc={props:{data:{type:Object,default:function(){}},globalConfig:{type:Object,default:null},bg:{type:String,default:function(){return""}},textColor:{type:String,default:function(){return""}},decorationBg:{type:String,default:function(){return""}},pageType:{type:Number,default:0}}},Ec=Pc,Mc=(a("7390"),Object(g["a"])(Ec,jc,Ic,!1,null,null,null)),$c=Mc.exports,Dc={mixins:[kt],components:{OneLineThreePcs:uc,OneLineFourPcs:kc,OneLineFivePcs:Oc,OneLineThreeHorizonPcs:_c,CouponNew:$c},computed:{uuid:function(){return this.config.uuid},col:function(){switch(this.config.display_tpl){case 2:return 3;case 3:return 4;case 4:return 5;default:return 4}},productConf:function(){return{isShowAddBtn:1!==this.pageType?this.config.is_show_add_btn:this.config.home_add_btn.is_show,isShowDiscount:this.config.is_show_discount,btnImage:this.config.home_add_btn&&this.config.home_add_btn.image_url}}},methods:{imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")}},mounted:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.websiteId=this.$route.params.website_id;case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},Nc=Dc,Rc=(a("1515"),Object(g["a"])(Nc,ac,oc,!1,null,"2810b8e3",null)),Lc=Rc.exports,Bc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-module-wrap c-module-product",class:{"c-module-selected":t.config.isSelected},style:{background:1===t.pageType?t.config.background_color:"none"}},[t.products.length?[t.hasTab?o("div",{staticClass:"tab-wrap",class:"tab-style-"+t.tabStyle,style:{borderBottom:1!==t.pageType?null:1===t.tabStyle?"1px solid rgba("+t.hexToRgb(t.config.product_tab.selected_tab_color)+", .15)":null}},t._l(t.tabNames,(function(e,a){return o("a",{key:"tab-name-"+a,staticClass:"tab",class:0===a?"active":"",style:0===a?{borderBottom:1!==t.pageType?null:1===t.tabStyle?"3px solid "+t.config.product_tab.selected_tab_color:"1px solid "+t.config.product_tab.selected_tab_color,backgroundColor:1===t.pageType?3===t.tabStyle?t.config.product_tab.selected_tab_color:null:1===t.tabStyle?t.config.product_tab.selected_tab_color:"inherit",borderColor:1===t.pageType&&3===t.tabStyle?t.config.product_tab.selected_tab_color:null,color:1!==t.pageType?1!==t.tabStyle?t.config.product_tab.selected_tab_color:"":3!==t.tabStyle?t.config.product_tab.selected_tab_color:""}:{borderColor:1!==t.pageType?null:3===t.tabStyle?"rgba("+t.hexToRgb(t.config.product_tab.selected_tab_color)+", .2)":null}},[o("span",{class:0===a?"active":""},[t._v("\n "+t._s(e)+"\n "),0===a?o("b",{staticClass:"underline",style:{backgroundColor:t.config.product_tab.selected_tab_color}}):t._e()])])})),0):t._e(),0===t.pageType?o("div",{staticClass:"product-wrap"},[1===t.col?[t.limitedProducts.length?t._l(t.productsGroupByTwo,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-2"},t._l(e,(function(e,i){return o("product-card-horizon",{key:"product-"+a+"-"+i,attrs:{col:2,data:e,"product-conf":t.productConf,index:2*a+i}})})),1)})):t._e()]:3===t.col&&1!==t.pageType?[t.productsGroupByThree?t._l(t.productsGroupByThree,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-3"},t._l(e,(function(e,i){return o("product-card",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf}})})),1)})):t._e()]:3===t.col&&1===t.pageType?[t.productsGroupByThree?t._l(t.productsGroupByThree,(function(e,a){return o("div",{key:"row-"+a,staticClass:"row row-3 horizontal"},t._l(e,(function(e,i){return o("product-card-horizon",{key:"product-"+a+"-"+i,attrs:{col:t.col,data:e,"product-conf":t.productConf,index:3*a+i}})})),1)})):t._e()]:t._e(),t.isTabShowMore?o("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[o("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2):1===t.pageType&&5!==t.config.display_tpl?o("div",{staticClass:"product-wrap"},[3===t.col?[t.productsGroupByThree?[o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[0],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf,index:a}})})),1),t.productsGroupByThree[1]&&2===t.config.product_line?o("div",{staticClass:"row row-3"},t._l(t.productsGroupByThree[1],(function(e,a){return o("product-card-horizon",{key:"product-"+a,attrs:{col:t.col,data:e,"product-conf":t.productConf,index:a+3}})})),1):t._e()]:t._e()]:t._e(),t.config.is_show_switch?o("div",{staticClass:"arrow left-arrow"}):t._e(),t.config.is_show_switch?o("div",{staticClass:"arrow right-arrow"}):t._e(),t.isTabShowMore?o("a",{staticClass:"view-more-block",attrs:{href:t.tabShowMoreLink||"javascript:void(0)"}},[o("img",{attrs:{src:t.tabShowMoreImage}})]):t._e()],2):t._e()]:[t.hasTab?[1===t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("c04e")}}):o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("50e3")}})]:[1===t.pageType?o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("d8b5")}}):o("img",{staticClass:"pc-example-placeholder",attrs:{src:a("fda1")}})]],o("div",{staticClass:"c-module-mask",on:{click:function(e){return t.selectModule(t.config.uuid)}}},[o("tip-tool",{attrs:{"cur-data":t.config}})],1)],2)},Vc=[],zc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShowProduct?a("div",{staticClass:"product-card product-card-horizontal",class:"product-style-"+t.col+(t.productConf.isShowAddBtn?"":" noBtn")+(t.data.store_name?"":" noStore")+(1!==t.pageType?"":" home-use")+t.heightClass},[a("div",{staticClass:"badge",class:"style-"+t.productConf.iconStyle+" top-"+(t.index+1)},[a("span",[t._v("TOP")]),a("strong",{staticClass:"class"},[t._v(t._s(t.index+1))])]),a("div",{staticClass:"product-thumb-wrap",attrs:{href:t.data.product_url}},[a("a",{staticClass:"product-img-link",attrs:{href:t.data.product_url}},[a("img",{staticClass:"product-thumb",attrs:{src:t.data.image_url},on:{error:function(e){t.data.image_url=t.defaultImg}}})]),1!==t.data.status&&t.productConf.isHideSoldOut?a("div",{staticClass:"no-stock"},[t._v("已售罄")]):t._e()]),a("div",{staticClass:"product-info-wrap"},[a("div",{staticClass:"brand-wrap",class:{hide:!t.productConf.isShowBrand&&!t.productConf.isShowCnBrand||!t.data.brand_name&&!t.data.brand_cn_name||t.productConf.isShowBrand&&!t.data.brand_name&&!t.productConf.isShowCnBrand||!t.productConf.isShowBrand&&t.productConf.isShowCnBrand&&!t.data.brand_cn_name}},[t.productConf.isShowBrand&&t.data.brand_name?a("strong",[t._v(t._s(t.data.brand_name))]):t._e(),t.productConf.isShowBrand&&t.productConf.isShowCnBrand&&t.data.brand_name&&t.data.brand_cn_name?a("span",[t._v(" / ")]):t._e(),t.productConf.isShowCnBrand&&t.data.brand_cn_name?a("span",[t._v(t._s(t.data.brand_cn_name))]):t._e()]),t.productConf.isShowShortDes&&t.data.short_description?a("div",{staticClass:"promotion-info",class:{"no-top":!t.productConf.isShowBrand&&!t.productConf.isShowCnBrand||!t.data.brand_name&&!t.data.brand_cn_name||t.productConf.isShowBrand&&!t.data.brand_name&&!t.productConf.isShowCnBrand||!t.productConf.isShowBrand&&t.productConf.isShowCnBrand&&!t.data.brand_cn_name}},[t._v(t._s(t.data.short_description))]):t._e(),a("a",{staticClass:"product-name",attrs:{href:t.data.product_url}},[t._v(t._s(t.data.name))]),a("div",{staticClass:"price-wrap",style:{color:t.promoColor}},[a("span",{staticClass:"currency"},[t._v(t._s(t.data.merchant_currency))]),t._v(t._s(t.data.final_price)+"\n "),t.data.price>t.data.final_price?a("del",{staticClass:"old-price"},[t._v(t._s(t.data.merchant_currency)+t._s(t.data.price))]):t._e(),a("div",{staticClass:"ref-store"},[t.isShowCny?a("span",{staticClass:"referrence-price"},[t._v("参考价:"+t._s(t.data.reference_currency)+t._s(t.data.reference_price))]):t._e()])]),a("div",{staticClass:"vip-price-store"},[t.data.vip_price?a("span",{staticClass:"vip-price"},[t._v("会员价:"+t._s(t.data.merchant_currency)+t._s(t.data.vip_price))]):t._e()]),a("div",{staticClass:"tags-and-desc"},[a("div",{staticClass:"tags-wrap no-info"},[t.sales&&t.productConf.isShowDiscount?a("span",{staticClass:"tag coupon-tag",style:{borderColor:"rgba("+t.hexToRgb(t.promoColor)+", .3)",color:t.promoColor}},[t._v(t._s(t.sales))]):t._e(),t._l(t.data.coupon_tags,(function(e,o){return a("span",{key:"couponTag-"+o,staticClass:"tag coupon-tag",style:{borderColor:"rgba("+t.hexToRgb(t.promoColor)+", .3)",color:t.promoColor}},[t._v(t._s(e))])})),t._l(t.data.sales_tags,(function(e,o){return a("span",{key:"salesTag-"+o,staticClass:"tag sales-tag",style:{borderColor:"rgba("+t.hexToRgb(t.promoColor)+", .1)",backgroundColor:"rgba("+t.hexToRgb(t.promoColor)+", .1)",color:t.promoColor}},[t._v(t._s(e))])}))],2)]),t.data.store_name?a("p",{staticClass:"store"},[t._v(t._s(t.data.store_name))]):t._e()]),t.productConf.isShowAddBtn&&1!==t.pageType?a("a",{staticClass:"add-cart-text",style:{backgroundColor:t.productConf.addBtnColor,opacity:2===t.btnStatus?.215:1},attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.btnText))]):t.productConf.isShowAddBtn&&1===t.pageType?a("a",{staticClass:"add-cart",style:{backgroundImage:"none"},attrs:{href:"javascript:void(0)"}},[a("img",{staticClass:"img",attrs:{src:t.productConf.btnImage},on:{"~error":function(e){return t.imgLoadError(e)},load:t.imgLoaded}})]):t._e()]):t._e()},qc=[],Uc={mixins:[kt],props:{data:{type:Object,default:function(){}},col:{type:Number,default:4},productConf:{type:Object,default:function(){}},btnStatus:{type:Number,default:-1},index:{type:Number,default:0}},computed:{discountStyle:function(){return this.globalConfig.discountStyle},isShowCny:function(){return this.globalConfig.isShowCny},sales:function(){if(this.data.sales){if(1===this.discountStyle)return 100===this.data.sales?"":((100-this.data.sales)/10).toFixed(1)+"折";if(2===this.discountStyle)return 100===this.data.sales?"":this.data.sales+"%OFF"}return""},mainColor:function(){return this.globalConfig.mainColor},promoColor:function(){return this.globalConfig.promotionColor},defaultImg:function(){return this.globalConfig.defaultProductImage},btnText:function(){switch(this.btnStatus){case-1:return"加入购物车";case 0:return"即将开始";case 1:return"立即抢购";case 2:return"已结束";default:return"加入购物车"}},isShowProduct:function(){return!(!this.productConf.isHideSoldOut&&3===this.data.status&&!this.productConf.isHideSoldOut)},heightClass:function(){var t=this.productConf.isShowBrand||this.productConf.isShowCnBrand;return t&&this.productConf.isShowShortDes?" height-1":t&&!this.productConf.isShowShortDes?" height-2":!t&&this.productConf.isShowShortDes?" height-3":""}},methods:{imgLoadError:function(t){var e=t.composedPath(),a=e[1];a.className+=" img-load-error"},imgLoaded:function(t){var e=t.composedPath(),a=e[1];a.className=a.className.replace("img-load-error","")},hexToRgb:function(t){var e=t.replace("#","");if(e=e.match(/.{1,2}/g),3===e.length){var a=[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)];return a.join(",")}}}},Hc=Uc,Gc=(a("c09d"),Object(g["a"])(Hc,zc,qc,!1,null,"07007202",null)),Yc=Gc.exports,Jc={mixins:[kt],components:{"product-card":tr,"product-card-mid":nr,"product-card-horizon":Yc},data:function(){return{products:[],limitedProducts:[],productsGroupByOnePlusThree:[],notFirstLoad:!1}},computed:{hasTab:function(){return 2===this.config.type},uuid:function(){return this.config.uuid},col:function(){switch(this.config.display_tpl){case 1:return 1;case 2:return 3;default:return 1}},productConf:function(){return{addBtnColor:this.config.add_btn_color,isShowAddBtn:1!==this.pageType?this.config.is_show_add_btn:this.config.home_add_btn.is_show,isShowDiscount:this.config.is_show_discount,isShowShortDes:this.config.is_show_short_des,isHideSoldOut:this.config.is_hide_sold_out,btnImage:this.config.home_add_btn&&this.config.home_add_btn.image_url,isShowBrand:this.config.is_show_brand,isShowCnBrand:this.config.is_show_brand_cn,iconStyle:this.config.icon_style}},tabStyle:function(){return this.config.product_tab.style},tabNames:function(){var t=[];return this.config.product_tab.tabs.forEach((function(e){t.push(e.tab_name)})),t},productsGroupByTwo:function(){return fr.a.chunk(this.limitedProducts,2)},productsGroupByThree:function(){return fr.a.chunk(this.limitedProducts,3)},productsGroupByFour:function(){return fr.a.chunk(this.limitedProducts,4)},productsGroupByFive:function(){return fr.a.chunk(this.limitedProducts,5)},isTabShowMore:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.is_show")},tabShowMoreLink:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.image_link")},tabShowMoreImage:function(){return fr.a.get(this.config.product_tab.tabs[0],"show_more.image_url")}},watch:{config:{deep:!0,handler:function(){this.hasTab?this.getTabProducts():this.getNormalProducts()}},products:function(t){if(this.notFirstLoad&&t&&!t.length&&this.$message.error("无商品数据"),this.notFirstLoad=!0,1!==this.pageType)if(this.hasTab){for(var e=Number(this.config.product_tab.showNum)||10,a=0;a200||Number(o.showNum)<1))return t.uuid;if(1===o.set_type){if(!o.product_ids.length)return t.uuid}else if(2===o.set_type){if(!o.cate_id)return t.uuid}else if(3===o.set_type&&!o.brand_id)return t.uuid}else if(2===t.type){var i=t.product_tab;if(1!==a&&(isNaN(Number(i.showNum))||Number(i.showNum)>200||Number(i.showNum)<1))return t.uuid;for(var r=0;r50))return t.uuid;if(t.home_add_btn.is_show&&!t.home_add_btn.image_url)return t.uuid;if(5===t.display_tpl)if(1===t.type){if(!t.product_only.left_image_url)return t.uuid}else if(2===t.type)for(var s=0;s0&&oe()(a.async_start)50||Number(t.product_only.show_num)<1?t.uuid:!t.product_only.is_show_btn.status||(!!t.product_only.is_show_btn.btn_image_url||t.uuid):t.uuid},PCCode:function(){return!0},PCHotSpots:function(t){return!!t.image_url||t.uuid},PCVideo:function(t){if(1===t.upload){if(!t.upload_video.src||!t.image_url)return t.uuid}else if(2===t.upload&&(!t.mv_url.src||!t.image_url))return t.uuid;return!0},PCPopups:function(t){for(var e=0;e50||t.show_num<1)return t.uuid;if(!a.async_id||!a.product_ids.length)return t.uuid;if(e>0&&oe()(a.async_start)200||Number(o.showNum)<1))return t.uuid;if(1===o.set_type&&!o.product_ids.length)return t.uuid}else if(2===t.type){var i=t.product_tab;if(1!==a&&(isNaN(Number(i.showNum))||Number(i.showNum)>200||Number(i.showNum)<1))return t.uuid;for(var r=0;r50))return t.uuid;if(t.home_add_btn.is_show&&!t.home_add_btn.image_url)return t.uuid}return!0}},sl=function(t,e){if(1===t.length)return!1;for(var a=1;a0?a("div",{staticClass:"top-box",style:"color: "+t.findCurrentFormFun(t.compdata,"pc_top_notice_title_color").config_value+";background-color: "+t.findCurrentFormFun(t.compdata,"pc_top_notice_bg_color").config_value+";"},[a("div",{staticClass:"title"},[t.findCurrentFormFun(t.compdata,"pc_top_notice_title").config_value?a("div",{staticClass:"title-content"},[t._v(t._s(t.findCurrentFormFun(t.compdata,"pc_top_notice_title").config_value))]):a("div",{staticClass:"title-content"},[t._v("标题")]),a("div",{staticClass:"right-part"},[t._v(t._s(t.findCurrentFormFun(t.compdata,"pc_top_notice_unfold").config_value)),a("i",{staticClass:"down",style:"border-color: "+t.findCurrentFormFun(t.compdata,"pc_top_notice_title_color").config_value})])])]):t._e(),t.compdata&&t.compdata.length>0?a("div",{staticClass:"bottom-box"},[t.findCurrentFormFun(t.compdata,"pc_top_notice_content").config_value?a("div",{staticClass:"content",domProps:{innerHTML:t._s(t.findCurrentFormFun(t.compdata,"pc_top_notice_content").config_value)}}):a("div",{staticClass:"content"},[a("p",[t._v("详细内容")]),a("p",[t._v("详细内容"),a("br")]),a("p",[t._v("详细内容"),a("br")]),a("p",[t._v("详细内容"),a("br")]),a("p",[t._v("详细内容"),a("br")])])]):t._e()])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("顶部通知")]),a("topNoticeForm",{ref:"topNoticeForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"topNoticeForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"topNoticeForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.topNoticeForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&("pc_top_notice_show"===t.decoration_code?(t.config_value.forEach((function(t){t.checked=!1})),e.checkboxValue.forEach((function(e){t.config_value.forEach((function(t){e===t.value&&(t.checked=!0)}))})),o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)})):t.isEmpty?o.items.push({id:t.id,config_value:""}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!1},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("b525"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"26324136",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],topNoticeForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,"pc_top_notice_show"===t.decoration_code?(t.config_value=JSON.parse(t.config_value),t.initialValue=[],t.config_value.forEach((function(e){e.checked&&t.initialValue.push(e.value)})),a.$refs.topNoticeForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):a.$refs.topNoticeForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.topNoticeForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("df45"),Object(g["a"])(k,o,i,!1,null,"3c72be0a",null));e["default"]=x.exports},"9c64":function(t,e,a){"use strict";a("ce2b")},"9ca1":function(t,e,a){"use strict";a("f6e8")},"9cb6":function(t,e,a){},"9cd4":function(t,e,a){t.exports=a.p+"img/pc-pic-text.48061edd.jpg"},"9d0e":function(t,e,a){},"9d26":function(t,e,a){},"9dee":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("1318"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e["default"]=i["default"]},"9e0b":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fixtures-cart-style"},[a("short-title-modal",{ref:"shortTitleModal",attrs:{width:"pc"===t.routerType?"1200px":"940px",routerType:t.routerType}}),t._l(t.compdata,(function(e,o){return a("div",{key:o,staticClass:"form-box"},["radio"===e.sort?a("div",[a("a-form-item",{attrs:{label:e.decoration_name}},[a("a-radio-group",{on:{change:function(a){return t.changeRadio(e)}},model:{value:e.config_value,callback:function(a){t.$set(e,"config_value",a)},expression:"item.config_value"}},[a("a-radio",{attrs:{value:"1"}},[t._v("是")]),a("a-radio",{attrs:{value:"0"}},[t._v("否")])],1)],1)],1):"styleRadio"===e.sort?a("div",[a("a-form-item",{attrs:{label:e.decoration_name}},[a("a-radio-group",{on:{change:function(a){return t.changeRadio(e)}},model:{value:e.config_value,callback:function(a){t.$set(e,"config_value",a)},expression:"item.config_value"}},t._l(e.arrayValue,(function(e,o){return a("a-radio",{key:o,attrs:{value:e.value,disabled:e.isDisabled}},[t._v(t._s(e.name))])})),1)],1)],1):"customRadio"===e.sort?a("div",[a("a-form-item",{attrs:{label:e.decoration_name}},[a("a-radio-group",{attrs:{"default-value":e.initialValue},on:{change:function(a){return t.changeCustomRadio(a,e)}}},t._l(e.config_value,(function(e){return a("a-radio",{key:e.value,attrs:{value:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)],1):"checkbox"===e.sort?a("div",[a("a-form-item",{attrs:{required:e.required,label:e.decoration_name}},["global_is_show_cny"===e.decoration_code?a("div",[a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_name,{rules:[{required:e.required,message:e.errorTips}],initialValue:e.initialValue}],expression:"[\n item.decoration_name,\n {\n rules: [{ required: item.required, message: item.errorTips }],\n initialValue: item.initialValue\n }\n ]"}],attrs:{disabled:!0},on:{change:function(a){return t.changeCheckbox(a,e)}}},t._l(e.config_value,(function(o){return a("a-checkbox",{key:o.value,staticStyle:{"margin-left":"0px","margin-right":"8px"},attrs:{value:o.value},on:{change:function(t){e.isChange=!0}}},[t._v("\n "+t._s(o.name)+"\n ")])})),1),a("span",{staticStyle:{"margin-left":"10px"}},[a("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list"}}},[t._v("\n 去设置\n ")])],1),a("div",{staticStyle:{"margin-top":"10px",color:"#999","font-size":"12px"}},[t._v("\n 人民币参考价不支持单个客户端单个页面配置,配置后所有客户端首页/商品列表/商品详情同时生效\n ")])],1):"store_card_show"===e.decoration_code?a("div",[a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_name,{rules:[{required:e.required,message:e.errorTips}],initialValue:e.initialValue}],expression:"[\n item.decoration_name,\n {\n rules: [{ required: item.required, message: item.errorTips }],\n initialValue: item.initialValue\n }\n ]"}],attrs:{disabled:!0},on:{change:function(a){return t.changeCheckbox(a,e)}}},t._l(e.config_value,(function(o){return a("a-checkbox",{key:o.value,staticStyle:{"margin-left":"0px","margin-right":"8px"},attrs:{value:o.value},on:{change:function(t){e.isChange=!0}}},[t._v("\n "+t._s(o.name)+"\n ")])})),1),a("span",{staticStyle:{"margin-left":"10px"}},[a("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list"}}},[t._v("\n 去设置\n ")])],1),a("div",{staticStyle:{"margin-top":"10px",color:"#999","font-size":"12px"}},[t._v("\n 店铺卡片不支持单个客户端配置,配置后所有客户端搜索商品列表页同时生效。\n ")])],1):a("div",[a("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_name,{rules:[{required:e.required,message:e.errorTips}],initialValue:e.initialValue}],expression:"[\n item.decoration_name,\n {\n rules: [{ required: item.required, message: item.errorTips }],\n initialValue: item.initialValue\n }\n ]"}],on:{change:function(a){return t.changeCheckbox(a,e)}}},t._l(e.config_value,(function(o){return a("a-checkbox",{key:o.value,staticStyle:{"margin-left":"0px","margin-right":"8px"},attrs:{value:o.value},on:{change:function(t){e.isChange=!0}}},[t._v("\n "+t._s(o.name)+"\n ")])})),1)],1)])],1):"discountSort"===e.sort?a("div",{staticClass:"discount-style"},[a("span",{staticClass:"set-style"},[t._v("折扣标样式: "+t._s("1"===e.config_value?"XX折":"XX%OFF"))]),a("span",[a("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list"}}},[t._v("\n 去设置\n ")])],1),a("div",{staticClass:"content"},[t._v("折扣标样式支持“XX折”、“XX%OFF”,此设置项不支持单个客户端单个页面设置,设置后所有客户端首页、活动页、商品列表、商品详情、个性化推荐同时生效")])]):"link"===e.sort?a("div",[a("c-Input",{attrs:{formConfig:e,routerType:t.routerType},on:{changeInput:t.isChangeAction}})],1):"rich"===e.sort?a("div",[a("c-Rich",{attrs:{formConfig:e},on:{changeInput:t.isChangeAction}})],1):"color"===e.sort?a("div",[a("a-form-item",{attrs:{required:e.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.decoration_name)),a("span",{staticStyle:{color:"#999999"}},[t._v(t._s(e.required?"(必填)":""))])]),e.isShowEffect?a("span",{style:t.isMoreRight(e),on:{click:function(a){return t.showEffect(e)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e(),a("a-popover",{attrs:{placement:"top",trigger:"click"},on:{click:function(a){return t.activeColorItem(e)}}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:e.config_value},on:{input:t.updateColor}})],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_code,{rules:[{required:e.required,message:"请选择颜色"}]}],expression:"[\n item.decoration_code,\n { rules: [{ required: item.required, message: '请选择颜色' }] }\n ]"}],attrs:{"read-only":!0}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:e.config_value}})])])],2)],1)],1):"lgUpload"===e.sort?a("div",[a("a-form-item",{staticClass:"cart-item",attrs:{required:e.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(e.required?"(必填)":""))]),e.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(a){return t.showEffect(e)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()]),e.isEmpty?a("a-upload",{staticClass:"float-icon-uploader big-size",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!0,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.compdata["uploading-"+e.decoration_code]},on:{change:t.iconChange}},[a("a-button",{staticClass:"upload-button",on:{click:function(a){return t.setItem(e)}}},[t._v("上传图片\n "),t.compdata["uploading-"+e.decoration_code]?a("a-spin",{staticClass:"ads-upload-spin",staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1):a("div",{staticClass:"uploaded-preview big-size"},[a("img",{attrs:{src:e.config_value}}),a("div",{staticClass:"control-del big-size",staticStyle:{top:"0px",left:"0px"}},[a("div",{staticClass:"delete-button",on:{click:function(a){return t.deleteIcon(e)}}},[t._v("删除")]),a("div",{staticClass:"reset-button",on:{click:function(a){return t.resetIcon(e)}}},[t._v("重置")])])]),a("p",{staticClass:"tips",staticStyle:{"margin-bottom":"0px"}},[t._v(t._s(e.sizeTip))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_code,{rules:[{required:e.required,message:"请上传图片"}],initialValue:e.config_value}],expression:"[\n item.decoration_code,\n {\n rules: [\n {\n required: item.required,\n message: '请上传图片'\n }\n ],\n initialValue: item.config_value\n }\n ]"}],attrs:{type:"hidden"}})],1)],1):"select"===e.sort?a("div",[a("a-form-item",{attrs:{required:e.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.decoration_name)),a("span",{staticStyle:{color:"#999999"}},[t._v(t._s(e.required?"(必填)":""))])]),a("a-select",{attrs:{defaultValue:e.initialValue,getPopupContainer:function(t){return t.parentNode}},on:{change:function(a){return t.changeSelect(a,e)}}},t._l(e.config_value,(function(e){return a("a-select-option",{key:e.value,attrs:{value:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)],1):"key_placeholder"===e.sort?a("div",[a("a-form-item",{attrs:{label:e.decoration_name}},[a("a-input",{attrs:{placeholder:"请输入","allow-clear":""},on:{change:function(a){return t.changeInput(e)}},model:{value:e.config_value,callback:function(a){t.$set(e,"config_value",a)},expression:"item.config_value"}})],1)],1):"textarea"===e.sort?a("div",[a("c-textarea",{attrs:{formConfig:e},on:{changeTextarea:t.isChangeAction}})],1):"conentGroup"===e.sort?a("div",[a("c-conent-group",{attrs:{"form-config":e,form:t.form},on:{isChangeAction:t.isChangeAction}})],1):"advertise"===e.sort?a("div",[a("c-advertise",{attrs:{formConfig:e,form:t.form},on:{isChangeAction:t.isChangeAction}})],1):"bottomList"===e.sort?a("div",[a("c-bottom-list",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig},on:{isChangeAction:t.isChangeAction}})],1):"activeInfomation"===e.sort?a("div",[a("c-active-infomation",{attrs:{"form-config":e,form:t.form,"global-config":t.globalConfig,routerType:t.routerType},on:{isChangeAction:t.isChangeAction}})],1):"recommend"===e.sort?a("div",[a("c-recommend",{attrs:{form:t.form,"form-config":e,"global-config":t.globalConfig}})],1):"cUpload"===e.sort?a("div",[a("c-upload",{attrs:{"form-config":e,form:t.form},on:{isChangeAction:t.isChangeAction}})],1):a("div",["hide"!==e.sort?[a("a-form-item",{staticClass:"cart-item",class:{"upload-bg":e.decoration_code.indexOf("scan_img_url")>-1||e.decoration_code.indexOf("_list_page_add_icon")>-1,"hide-upload":e.decoration_code.indexOf("scan_img_url")>-1&&!e.isShowScanImg||e.decoration_code.indexOf("_list_page_add_icon")>-1&&!e.isShowAddImg},attrs:{required:e.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(e.required?"(必填)":""))]),e.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(a){return t.showEffect(e)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()]),e.isEmpty?a("a-upload",{staticClass:"float-icon-uploader",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.compdata["uploading-"+e.decoration_code]},on:{change:t.iconChange}},[a("span",{staticClass:"uploader-text before-upload",on:{click:function(a){return t.setItem(e)}}},[a("a-icon",{attrs:{type:"plus"}}),t._v("上传")],1)]):a("div",{staticClass:"uploaded-preview"},[a("img",{attrs:{src:e.config_value}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(a){return t.deleteIcon(e)}}})],1)]),e.noReset?t._e():a("div",{staticClass:"resetIcon",on:{click:function(a){return t.resetIcon(e)}}},[t._v("重置")]),a("p",{staticClass:"tips",staticStyle:{"margin-bottom":"0px"},style:e.decoration_code.indexOf("_list_page_add_icon")>-1?"width: 270px":""},[t._v(t._s(e.sizeTip))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.decoration_code,{rules:[{required:e.required,message:"请上传图片"}],initialValue:e.config_value}],expression:"[\n item.decoration_code,\n {\n rules: [\n {\n required: item.required,\n message: '请上传图片'\n }\n ],\n initialValue: item.config_value\n }\n ]"}],attrs:{type:"hidden"}})],1),a("div",{class:{"upload-border":e.decoration_code.indexOf("scan_img_url")>-1,"hide-upload":e.decoration_code.indexOf("scan_img_url")>-1&&!e.isShowScanImg}})]:t._e()],2)])}))],2)},i=[],r=(a("7514"),a("ade3")),n=a("c345a"),s=a("9424"),c=a("06dc"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-textarea"},[a("a-form-item",{attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)+"\n "),a("a-tooltip",{attrs:{title:t.formConfig.tips}},[t.formConfig.tips?a("a-icon",{attrs:{type:"info-circle"}}):t._e()],1),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))])],1),a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:t.formConfig.requireMessage}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: formConfig.requireMessage\n }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],staticStyle:{"word-break":"break-all"},attrs:{rows:t.row,placeholder:"请输入"},on:{input:t.handleInput}})],1)],1)},d=[],u=(a("c5f6"),{props:{row:{type:Number,default:4},formConfig:{type:Object,default:function(){}}},data:function(){return{value:""}},methods:{handleInput:function(t){this.$parent.form.setFieldsValue(Object(r["a"])({},"".concat(this.formConfig.decoration_code),t.target.value)),this.formConfig.config_value=t.target.value,this.formConfig.isChange=!0,this.$emit("changeTextarea")}}}),p=u,m=a("2877"),f=Object(m["a"])(p,l,d,!1,null,null,null),h=f.exports,g=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-tool-bottom-list"},[o("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:t.formConfig.required}},[o("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),o("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))])])]),t.renderForm?t._l(t.positionData,(function(e,i){return o("div",{key:"li-item-"+i,staticClass:"item"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.positionData.length>1,expression:"positionData.length > 1"}],staticClass:"topLine"},[o("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==i,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.moveUp(i)}}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:i!==t.positionData.length-1,expression:"index !== positionData.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.moveDown(i)}}}),o("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.onDel(i)}}})],1),t.formConfig.pointsAd?o("div",[o("img",{attrs:{src:a("524f"),width:"100%",height:"105"}})]):o("a-form-item",{staticStyle:{margin:"12px"},attrs:{required:t.formConfig.required,label:"标题内容"}},[o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["list_item_"+i,{rules:[{required:t.formConfig.required,message:"请输入标题内容"}],initialValue:e.title}],expression:"[\n `list_item_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请输入标题内容'\n }\n ],\n initialValue: item.title\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setItemTitle(a,e)}}})],1),t.formConfig.isSelectLink?o("a-form-item",{staticStyle:{margin:"0 12px 16px 12px"},attrs:{required:t.formConfig.required,label:"链接"}},[o("path-select",{key:"path-"+i,attrs:{"global-config":t.globalConfig,"link-url":e.link,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"link",a,{item:e,index:i})}}}),o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+i,{rules:[{required:t.formConfig.required,message:t.pathSelectError(e)}],initialValue:e.link}],expression:"[\n `imglink_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: pathSelectError(item)\n }\n ],\n initialValue: item.link\n }\n ]"}],attrs:{type:"hidden"}})],1):o("a-form-item",{staticStyle:{margin:"0 12px 16px 12px"},attrs:{required:t.formConfig.required,label:"链接"}},[o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imgLink_"+i,{rules:[{required:t.formConfig.required,message:"请输入链接"}],initialValue:e.link}],expression:"[\n `imgLink_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请输入链接'\n }\n ],\n initialValue: item.link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setItemLink(a,e)}}})],1)],1)})):t._e(),t.formConfig.pointsAd?t._e():o("a-form-item",[o("a-button",{attrs:{block:""},on:{click:t.addItem}},[t._v("+ 添加")])],1)],2)},_=[],v=(a("b54a"),a("3178")),b=a("3046"),y={props:{form:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}},formConfig:{type:Object,default:function(){}}},mixins:[v["a"],b["a"]],data:function(){return{renderForm:!0,defaultForm:{title:"",link:"",link_desc:"",link_type:""}}},methods:{addItem:function(){var t={title:"",link:"",link_desc:"",link_type:""};this.onPositionAdd(t)},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionUp(t),e.renderForm=!0,e.fetchRenderData()}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionDown(t),e.renderForm=!0,e.fetchRenderData()}))},onDel:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionDelete(t),e.renderForm=!0,e.fetchRenderData()}))},setItemTitle:function(t,e){e.title=t.target.value,this.fetchRenderData()},setItemLink:function(t,e){e.link=t.target.value,this.fetchRenderData()},validatePathSelect:function(t){var e=t.item,a=t.index;this.form.setFieldsValue(Object(r["a"])({},"imglink_".concat(a),e.link)),this.fetchRenderData()},fetchRenderData:function(){var t=this.positionData.filter((function(t){return t.link}));this.formConfig.config_value=JSON.stringify(t),this.formConfig.isChange=!0,this.$emit("isChangeAction",!0)}},mounted:function(){var t=this.formConfig.config_value;t||t.length?this.positionData=JSON.parse(t):this.positionData=[this.defaultForm]}},w=y,C=(a("2e56"),Object(m["a"])(w,g,_,!1,null,"d687210a",null)),k=C.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-bottom-list"},[a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))]),t.formConfig.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()])]),t.renderForm?t._l(t.positionData,(function(e,o){return a("div",{key:"li-item-"+o,staticClass:"item"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.positionData.length>1,expression:"positionData.length > 1"}],staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==o,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.moveUp(o)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:o!==t.positionData.length-1,expression:"index !== positionData.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.moveDown(o)}}}),a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.onDel(o)}}})],1),a("a-form-item",{staticStyle:{margin:"12px"},attrs:{required:t.formConfig.required,label:"活动标题"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["list_item_"+o,{rules:[{required:t.formConfig.required,message:"请输入"},{max:30,message:"最多支持30个字"}],initialValue:e.title}],expression:"[\n `list_item_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请输入'\n },\n { max: 30, message: '最多支持30个字' }\n ],\n initialValue: item.title\n }\n ]"}],attrs:{placeholder:"请输入"},on:{input:function(a){return t.setItemTitle(a,e)}}})],1),t.formConfig.isSelectLink?a("a-form-item",{staticStyle:{margin:"0 12px 16px 12px"},attrs:{required:t.formConfig.required,label:"落地页"}},[a("path-select",{key:"path-"+o,attrs:{"global-config":t.globalConfig,"link-url":e.link,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"link",a,{item:e,index:o})}}}),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imglink_"+o,{rules:[{required:t.formConfig.required,message:t.pathSelectError(e)}],initialValue:e.link}],expression:"[\n `imglink_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: pathSelectError(item)\n }\n ],\n initialValue: item.link\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0 12px 16px 12px"},attrs:{required:t.formConfig.required,label:"链接"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["imgLink_"+o,{rules:[{required:t.formConfig.required,message:"请输入链接"}],initialValue:e.link}],expression:"[\n `imgLink_${index}`,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请输入链接'\n }\n ],\n initialValue: item.link\n }\n ]"}],attrs:{placeholder:"https://"},on:{input:function(a){return t.setItemLink(a,e)}}})],1)],1)})):t._e(),a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addItem}},[t._v("+ 添加")])],1),a("short-title-modal",{ref:"shortTitleModal",attrs:{width:"pc"===t.routerType?"1200px":"940px",routerType:t.routerType}})],2)},S=[],A={props:{form:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}},formConfig:{type:Object,default:function(){}},routerType:{type:String,default:"pc"}},mixins:[v["a"],b["a"]],data:function(){return{renderForm:!0,defaultForm:{title:"",link:"",link_desc:"",link_type:""}}},components:{shortTitleModal:c["a"]},methods:{addItem:function(){var t={title:"",link:"",link_desc:"",link_type:""};this.onPositionAdd(t)},moveUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionUp(t),e.renderForm=!0,e.fetchRenderData()}))},moveDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionDown(t),e.renderForm=!0,e.fetchRenderData()}))},onDel:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.onPositionDelete(t),e.renderForm=!0,e.fetchRenderData()}))},setItemTitle:function(t,e){e.title=t.target.value,this.fetchRenderData()},setItemLink:function(t,e){e.link=t.target.value,this.fetchRenderData()},validatePathSelect:function(t){var e=t.item,a=t.index;this.form.setFieldsValue(Object(r["a"])({},"imglink_".concat(a),e.link)),this.fetchRenderData()},fetchRenderData:function(){var t=this.positionData.filter((function(t){return t.title}));this.formConfig.config_value=JSON.stringify(t),this.formConfig.isChange=!0,this.$emit("isChangeAction",!0)},showEffect:function(t){this.$refs.shortTitleModal.showModal(t)}},mounted:function(){var t=this.formConfig.config_value;this.positionData=t?JSON.parse(t):[this.defaultForm]}},T=A,F=(a("d7ba"),Object(m["a"])(T,x,S,!1,null,"6d487964",null)),O=F.exports,j=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"c-tool-advertise"},[t.renderForm?[o("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"0"},attrs:{required:t.formConfig.required}},[o("p",{staticClass:"tips"},[t._v(t._s(t.formConfig.sizeTip))]),o("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),o("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))]),t.formConfig.isShowEffect?o("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[o("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()])]),t._l(t.positionData,(function(e,i){return o("div",{key:"li-item-"+i,staticClass:"item"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.positionData.length>1,expression:"positionData.length > 1"}],staticClass:"topLine"},[o("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==i,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.moveOpertion("up",i)}}}),o("a-icon",{directives:[{name:"show",rawName:"v-show",value:i!==t.positionData.length-1,expression:"index !== positionData.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.moveOpertion("down",i)}}}),o("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.moveOpertion("delete",i)}}})],1),t.formConfig.pointsAd?o("div",[o("img",{attrs:{src:a("524f"),width:"100%",height:"105"}})]):o("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"0","margin-top":"0"},attrs:{required:e.required}},[e.isEmpty?o("a-upload",{staticClass:"float-icon-uploader-box big-size",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.isDisabled},on:{change:function(e){return t.loadChange(e)}}},[o("a-button",{staticClass:"upload-button",on:{click:function(a){return t.setItem(e)}}},[t._v("上传图片\n "),t.formConfig["uploading-"+e.new_decoration_code]?o("a-spin",{staticClass:"ads-upload-spin",staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[o("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1):o("div",{staticClass:"uploaded-preview-box big-size"},[o("img",{attrs:{src:e.img}}),o("div",{staticClass:"control-del big-size"},[o("a-button",{staticClass:"delete-button",on:{click:function(a){return t.deleteIcon(e)}}},[t._v("删除")]),o("div",{staticClass:"reset-button"},[o("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",action:"/api-cms/cms/file/upload",showUploadList:!1,data:{website_id:t.websiteId},headers:t.token,disabled:t.isDisabled},on:{change:t.editChange}},[o("a-button",{staticClass:"upload-button",on:{click:function(a){return t.setItem(e)}}},[t._v("\n 替换\n "),t.formConfig["uploading-"+e.new_decoration_code]?o("a-spin",{staticClass:"ads-upload-spin",staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[o("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1)],1)],1)]),o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[e.new_decoration_code,{rules:[{required:e.required,message:"请上传图片"}],initialValue:e.img}],expression:"[\n item.new_decoration_code,\n {\n rules: [\n {\n required: item.required,\n message: '请上传图片'\n }\n ],\n initialValue: item.img\n }\n ]"}],attrs:{type:"hidden"}})],1),o("div",{staticClass:"link"},[t.formConfig.isSelectLink?o("a-form-item",{staticStyle:{margin:"0 12px"},attrs:{label:"链接"}},[o("path-select",{key:"path-"+i,attrs:{"global-config":t.formConfig.isApp?{client:5}:{client:3},"link-url":e.link,"link-desc":e.link_desc,"link-type":e.link_type},on:{changeLink:function(a){return t.updateLinkTypeDesc(e,"link",a,{item:e})}}})],1):o("a-form-item",{staticStyle:{margin:"0 12px"},attrs:{required:!1,label:"链接"}},[o("a-input",{attrs:{placeholder:"https://"},on:{change:function(a){return t.inputChange(e)}},model:{value:e.link,callback:function(a){t.$set(e,"link",a)},expression:"item.link"}})],1)],1)],1)}))]:t._e(),t.positionData.length-1)){t.next=11;break}return this.editGroupIndex=e,o=a.name,i=a.items,r=a.status,this.positionData=i,this.groupStatus=r,t.next=9,this.$nextTick();case 9:this.groupForm.setFieldsValue({name:o}),this.groupTitle="编辑分组";case 11:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}(),close:function(){this.groupVisible=!1,this.groupStatus=!0,this.editGroupIndex=-1,this.positionData=[],this.groupForm.resetFields()},onGroupOk:function(){var t=this,e=this.groupForm.validateFields;e((function(e,a){if(!e){var o={name:a.name,items:t.positionData,status:t.groupStatus,key:""};t.$emit("changeGroup",{index:t.editGroupIndex,item:o}),t.close()}}))},contentOpen:function(){var t=Object(z["a"])(regeneratorRuntime.mark((function t(){var e,a,o,i,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=r.length>0&&void 0!==r[0]?r[0]:-1,a=r.length>1?r[1]:void 0,this.contentVisible=!0,!(e>-1)){t.next=12;break}return this.editContentIndex=e,o=a.title,i=a.url,this.contentTitle="编辑详细内容",t.next=9,this.$nextTick();case 9:this.contentForm.setFieldsValue({title:o,url:i}),t.next=13;break;case 12:this.contentTitle="添加详细内容";case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onContentClose:function(){this.contentVisible=!1,this.editContentIndex=-1,this.contentForm.resetFields()},onContentOk:function(){var t=this,e=this.contentForm.validateFields;e((function(e,a){e||(t.editContentIndex>-1?t.onPositionEdit(t.editContentIndex,a):t.onPositionAdd(a),t.onContentClose())}))}},watch:{positionData:function(t){if(t.length){var e=this.groupForm.getFieldValue("items");if(e)return;this.groupForm.setFieldsValue({items:t.join(",")})}else this.groupForm.setFieldsValue({items:""})}}},U=q,H=(a("2505"),Object(m["a"])(U,B,V,!1,null,"a642531c",null)),G=H.exports,Y={components:{"c-modal":G},mixins:[v["a"]],props:{form:{type:Object,default:function(){}},formConfig:{type:Object,default:function(){}}},methods:{addGroup:function(t,e){this.$refs.cModal.open(t,e)},moveUp:function(t){this.onPositionUp(t),this.fetchRenderData()},moveDown:function(t){this.onPositionDown(t),this.fetchRenderData()},onDel:function(t){this.onPositionDelete(t),this.fetchRenderData()},changeGroup:function(t){var e=t.index,a=t.item;e>-1?this.onPositionEdit(e,a):this.onPositionAdd(a),this.fetchRenderData()},fetchRenderData:function(){this.positionData.forEach((function(t,e){t.key="item-".concat(e+1)})),this.formConfig.config_value=JSON.stringify({tabs:this.positionData}),this.formConfig.isChange=!0,this.$emit("isChangeAction",!0)}},mounted:function(){var t=this.formConfig.config_value;this.positionData=t?JSON.parse(t).tabs:[]},watch:{positionData:function(t){if(t.length){var e=this.form.getFieldValue("groups");if(e)return;this.form.setFieldsValue({groups:t.join(",")})}else this.form.setFieldsValue({groups:""})}}},J=Y,K=(a("e0ec"),Object(m["a"])(J,R,L,!1,null,"c33c8d8a",null)),W=K.exports,Z=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-form-item",{attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))]),t.formConfig.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:t.formConfig.requireMessage},{max:t.formConfig.maxLength?t.formConfig.maxLength:"",message:t.formConfig.maxLengthMessage?t.formConfig.maxLengthMessage:""}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: formConfig.requireMessage\n },\n { max: formConfig.maxLength ? formConfig.maxLength : '', message: formConfig.maxLengthMessage ? formConfig.maxLengthMessage : '' }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],attrs:{placeholder:t.formConfig.placeholder||"请输入"},on:{change:t.changeInput}}),a("short-title-modal",{ref:"shortTitleModal",attrs:{width:"pc"===t.routerType?"1200px":"940px",routerType:t.routerType}})],1)},Q=[],X={props:{formConfig:{type:Object,default:function(){return{required:!0,decoration_name:"",config_value:"",isChange:!1,placeholder:"请输入"}}},routerType:{type:String,default:function(){return""}}},data:function(){return{value:""}},components:{shortTitleModal:c["a"]},methods:{changeInput:function(t){this.formConfig.config_value=t.target.value,this.formConfig.isChange=!0,this.formConfig.isEmpty=!1,this.$emit("isChangeAction")},showEffect:function(t){this.$refs.shortTitleModal.showModal(t)}}},tt=X,et=Object(m["a"])(tt,Z,Q,!1,null,null,null),at=et.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-form-item",{attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))])]),a("wang-editor",{ref:"WangEditor",attrs:{domId:"RichTextCMS",excludes:["redo"]},on:{change:t.handleContentChange}})],1)},it=[],rt=a("3835"),nt=a("a817"),st={components:{WangEditor:nt["a"]},props:{formConfig:{type:Object,default:function(){return{required:!0,decoration_name:"",config_value:"",isChange:!1,placeholder:"请输入"}}}},data:function(){return{isFirst:!0}},methods:{handleContentChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Object(rt["a"])(t,2),a=e[0];e[1];this.isFirst?(this.isFirst=!1,this.formConfig.config_value=a):(this.formConfig.config_value=a,this.formConfig.isChange=!0,this.formConfig.isEmpty=!1,this.$emit("changeInput",this.formConfig))}},watch:{compdata:{handler:function(t){this.$refs.WangEditor.setVal(t.config_value)}}},mounted:function(){this.$refs.WangEditor.setVal(this.formConfig.config_value)}},ct=st,lt=(a("d431"),a("6a02"),a("353e4"),Object(m["a"])(ct,ot,it,!1,null,"3ad4c3c1",null)),dt=lt.exports,ut=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-upload"},[a("a-form-item",{staticClass:"cart-item",attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))])]),a("div",{staticClass:"image-preview-overlay"}),t.formConfig.isEmpty?a("a-upload",{staticClass:"float-icon-uploader-box big-size",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token},on:{change:t.loadChange}},[a("a-button",{staticClass:"upload-button"},[t._v("上传图片\n "),t.formConfig["uploading-"+t.formConfig.decoration_code]?a("a-spin",{staticClass:"ads-upload-spin",staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1):a("div",{staticClass:"uploaded-preview-box big-size"},[a("img",{attrs:{src:t.formConfig.config_value}}),a("div",{staticClass:"control-del"},[a("a-button",{staticClass:"delete-button",on:{click:function(e){return t.deleteIcon(t.formConfig)}}},[t._v("删除")]),a("div",{staticClass:"reset-button"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",action:"/api-cms/cms/file/upload",showUploadList:!1,data:{website_id:t.websiteId},headers:t.token},on:{change:t.loadChange}},[a("a-button",{staticClass:"upload-button"},[t._v("\n 替换\n "),t.formConfig["uploading-"+t.formConfig.decoration_code]?a("a-spin",{staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1)],1)],1)]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.formConfig.decoration_code,{rules:[{required:t.formConfig.required,message:"请上传图片"}],initialValue:t.formConfig.config_value}],expression:"[\n formConfig.decoration_code,\n {\n rules: [\n {\n required: formConfig.required,\n message: '请上传图片'\n }\n ],\n initialValue: formConfig.config_value\n }\n ]"}],attrs:{type:"hidden"}}),a("p",{staticClass:"tips"},[t._v(t._s(t.formConfig.sizeTip))])],1)],1)},pt=[],mt={props:{form:{type:Object,default:function(){}},formConfig:{type:Object,default:function(){}}},data:function(){return{websiteId:this.$route.params.websiteId,token:{}}},methods:{loadChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.formConfig,"uploading-".concat(this.formConfig.decoration_code),!0):"done"===a&&o&&200===o.status?(this.$emit("isChangeAction",!0),this.formConfig.config_value=o.data.src,this.formConfig.isEmpty=!1,this.formConfig.isChange=!0,this.form.setFieldsValue(Object(r["a"])({},"".concat(this.formConfig.decoration_code),o.data.src)),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)]):o&&200!==o.status&&(this.$message.error(o.message),delete this.formConfig["uploading-".concat(this.formConfig.decoration_code)])},deleteIcon:function(t){this.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),"")),t.config_value="",t.isChange=!0,t.isEmpty=!0,this.$emit("isChangeAction",!0)}},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId}}},ft=mt,ht=(a("5ba8"),Object(m["a"])(ft,ut,pt,!1,null,"26398828",null)),gt=ht.exports,_t=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-tool-recommend"},[a("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"0"},attrs:{required:t.formConfig.required}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.formConfig.decoration_name)),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v(t._s(t.formConfig.required?"(必填)":""))]),t.formConfig.isShowEffect?a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.showEffect(t.formConfig)}}},[a("a-icon",{attrs:{type:"eye"}}),t._v(" 效果展示")],1):t._e()])]),a("div",{staticClass:"recommend-content"},[a("a-form-item",{staticStyle:{"margin-top":"0px"},attrs:{required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("标题")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recommend_title",{rules:[{required:!0,message:"请输入标题"},{max:14,message:"最多支持14个字"}],initialValue:t.formConfigData.title}],expression:"[\n 'recommend_title',\n {\n rules: [\n {\n required: true,\n message: '请输入标题'\n },\n { max: 14, message: '最多支持14个字' }\n ],\n initialValue: formConfigData.title\n }\n ]"}],attrs:{placeholder:"请输入"},on:{change:t.changeTitleInput}})],1),a("a-form-item",{attrs:{required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("描述")]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recommend_content",{rules:[{required:!0,message:"请输入描述"},{max:20,message:"最多支持20个字"}],initialValue:t.formConfigData.content}],expression:"[\n 'recommend_content',\n {\n rules: [\n {\n required: true,\n message: '请输入描述'\n },\n { max: 20, message: '最多支持20个字' }\n ],\n initialValue: formConfigData.content\n }\n ]"}],attrs:{placeholder:"请输入"},on:{change:t.changeContentInput}})],1),a("a-form-item",{staticClass:"cart-item",staticStyle:{"margin-bottom":"15px"},attrs:{required:!0}},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("图标"),a("span",{staticStyle:{color:"#999999","margin-right":"10px"}},[t._v("(必填)")])]),t.formConfigData.image_url?a("div",{staticClass:"uploaded-preview"},[a("img",{attrs:{src:t.formConfigData.image_url}}),a("div",{staticClass:"control-del"},[a("a-icon",{staticClass:"icon-del",attrs:{type:"delete"},on:{click:function(e){return t.deleteIcon()}}})],1)]):a("a-upload",{staticClass:"float-icon-uploader",attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,action:"/api-cms/cms/file/upload",data:{website_id:t.websiteId},headers:t.token,disabled:t.formConfig["uploading"]},on:{change:t.iconChange}},[a("span",{staticClass:"uploader-text before-upload"},[a("a-icon",{attrs:{type:"plus"}}),t._v("上传")],1)]),a("div",{staticClass:"resetIcon",on:{click:function(e){return t.resetIcon()}}},[t._v("重置")]),a("p",{staticClass:"tips",staticStyle:{"margin-bottom":"0px"}},[t._v(t._s("参考尺寸100*100像素,大小不超过10k,仅支持jpg、jpeg、png格式。"))]),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recommend_image",{rules:[{required:!0,message:"请上传图片"}],initialValue:t.formConfigData.image_url}],expression:"[\n 'recommend_image',\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: formConfigData.image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1),a("short-title-modal",{ref:"shortTitleModal",attrs:{width:"pc"===t.routerType?"1200px":"940px",routerType:t.routerType}})],1)},vt=[],bt={props:{formConfig:{type:Object,default:function(){return{required:!1,decoration_name:"广告位",isEmpty:!0,decoration_code:"advertise",config_value:'{title:"111",content:"111",image_url:"1111"}',sizeTip:"参考尺寸750x120像素,宽度固定,高度不限。大小不超过500KB,支持jpg/png/gif格式",isShowEffect:!1,countLimit:1}}},form:{type:Object,default:function(){}},routerType:{type:String,default:"app"},globalConfig:{type:Object,default:function(){}}},data:function(){return{renderForm:!0,websiteId:this.$route.params.websiteId,token:{},isDisabled:!1,key:0,activeItem:{},formConfigData:{}}},components:{shortTitleModal:c["a"]},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId},""!==this.formConfig.config_value&&(this.formConfigData=JSON.parse(this.formConfig.config_value))},methods:{changeTitleInput:function(t){this.formConfigData.title=t.target.value,this.parseData()},changeContentInput:function(t){this.formConfigData.content=t.target.value,this.parseData()},iconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.formConfig,"uploading",!0):"done"===a&&o&&200===o.status?(this.formConfigData.image_url=o.data.src,this.form.setFieldsValue({recommend_image:o.data.src}),delete this.formConfig["uploading"]):o&&200!==o.status&&(this.$message.error(o.message),delete this.formConfig["uploading"]),this.parseData()},deleteIcon:function(){this.form.setFieldsValue({recommend_image:""}),this.formConfigData.image_url="",this.parseData()},resetIcon:function(){this.formConfigData.image_url=this.formConfig.init_config_value,this.form.setFieldsValue({recommend_image:this.formConfig.init_config_value}),this.parseData()},parseData:function(){this.formConfig.config_value=JSON.stringify(this.formConfigData),this.formConfig.isChange=!0},showEffect:function(t){this.$refs.shortTitleModal.showModal(t)}}},yt=bt,wt=(a("37ff"),Object(m["a"])(yt,_t,vt,!1,null,"925a7b86",null)),Ct=wt.exports,kt={props:{compdata:{type:Array,default:function(){return[]}},isChange:{type:Boolean,default:function(){return!1}},loading:{type:Boolean,default:function(){return!1}},form:{type:Object,default:function(){}},routerType:{type:String,default:"pc"},globalConfig:{type:Object,default:function(){}}},components:{"sketch-picker":n["Sketch"],uploadImg:s["a"],shortTitleModal:c["a"],CTextarea:h,CBottomList:k,CActiveInfomation:O,CAdvertise:N,CConentGroup:W,CInput:at,CRich:dt,CUpload:gt,CRecommend:Ct},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.websiteId}},data:function(){return{addUploadAddress:"/api-cms/cms/file/upload",websiteId:this.$route.params.websiteId,token:{},isShowScanImg:!0}},methods:{showEffect:function(t){this.$refs.shortTitleModal.showModal(t)},setItem:function(t){this.activeItem=t},iconChange:function(t){var e=t.file,a=e.status,o=e.response;"uploading"===a?this.$set(this.compdata,"uploading-".concat(this.activeItem.decoration_code),!0):"done"===a&&o&&200===o.status?(this.$emit("isChangeAction",!0),this.activeItem.config_value=o.data.src,this.activeItem.isEmpty=!1,this.activeItem.isChange=!0,this.form.setFieldsValue(Object(r["a"])({},"".concat(this.activeItem.decoration_code),o.data.src)),delete this.compdata["uploading-".concat(this.activeItem.decoration_code)]):o&&200!==o.status&&(this.$message.error(o.message),delete this.compdata["uploading-".concat(this.activeItem.decoration_code)])},deleteIcon:function(t){this.$emit("isChangeAction",!0),this.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),"")),this.compdata[t.index].isChange=!0,this.compdata[t.index].isEmpty=!0},resetIcon:function(t){this.$emit("isChangeAction",!0),this.compdata[t.index].config_value=t.init_config_value,this.compdata[t.index].isChange=!0,this.compdata[t.index].isEmpty=!1,this.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),t.init_config_value))},activeColorItem:function(t){this.activeItemLine=t},updateColor:function(t){this.form.setFieldsValue(Object(r["a"])({},"".concat(this.activeItemLine.decoration_code),t.hex)),this.activeItemLine.config_value=t.hex,this.activeItemLine.isChange=!0,this.activeItemLine.isEmpty=!1,this.$emit("isChangeAction",!0)},isMoreRight:function(t){return t.isMoreRight?"color: #1890ff;cursor: pointer;position: absolute;top: -35px;right: ".concat(t.moreRight,"px"):"color: #1890ff;cursor: pointer;position: absolute;top: -35px;right: 100px;"},changeRadio:function(t){t.isChange=!0,"app_product_list_style"!==t.decoration_code&&"miniapp_product_list_style"!==t.decoration_code&&"h5_product_list_style"!==t.decoration_code||this.$emit("changeStyle",t),"app_product_list_layout_style"!==t.decoration_code&&"miniapp_product_list_layout_style"!==t.decoration_code&&"h5_product_list_layout_style"!==t.decoration_code||this.$emit("changeLayoutStyle",t),this.$emit("isChangeAction",!0)},changeCustomRadio:function(t,e){e.isChange=!0,e.config_value.map((function(e){e.value===t.target.value?e.checked=!0:e.checked=!1})),this.$emit("isChangeAction",!0),this.$emit("checkRadioAction",t.target.value)},changeInput:function(t){t.isChange=!0,t.isEmpty=!1,this.$emit("isChangeAction",!0)},changeCheckbox:function(t,e){var a=this.compdata.find((function(t){return t.decoration_code.indexOf("scan_img_url")>-1})),o=this.compdata.find((function(t){return t.decoration_code.indexOf("_list_page_add_icon")>-1}));e.decoration_code.indexOf("scan_show")>-1?(e.config_value.map((function(e){t.length?e.checked=!0:e.checked=!1})),t.length?(a.required=!0,a.isShowScanImg=!0):(a.required=!1,a.isShowScanImg=!1)):e.decoration_code.indexOf("_product_list_cart_show")>-1?(e.config_value.map((function(e){t.length?e.checked=!0:e.checked=!1})),t.length?(o.required=!0,o.isShowAddImg=!0):(o.required=!1,o.isShowAddImg=!1)):e.config_value.map((function(e){t.length?e.checked=!0:e.checked=!1})),this.$emit("checkboxValueAction",t),this.$emit("isChangeAction",!0)},changeSelect:function(t,e){e.isChange=!0,e.config_value.map((function(e){e.checked=e.value===t})),this.$emit("selectValueAction",t,e),this.$emit("isChangeAction",!0)},isChangeAction:function(){this.$emit("isChangeAction",!0)}}},xt=kt,St=(a("af18"),a("6887"),Object(m["a"])(xt,o,i,!1,null,"6a7c2a13",null));e["a"]=St.exports},"9e3d":function(t,e,a){},"9f09":function(t,e,a){},"9f86":function(t,e,a){"use strict";a("2e59")},"9f96":function(t,e,a){"use strict";a("acff")},"9fbed":function(t,e,a){},a001:function(t,e,a){"use strict";a("0ae8")},a017:function(t,e,a){"use strict";a("cbe4")},a01f:function(t,e,a){"use strict";a("25684")},a03c:function(t,e,a){},a0de:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},a148:function(t,e,a){"use strict";a("5110")},a23b:function(t,e,a){t.exports=a.p+"img/pc_wechat_qrcode.08cbef1b.png"},a2f9:function(t,e,a){t.exports=a.p+"img/h5_detail_favorite_icon.33004042.png"},a308:function(t,e,a){"use strict";a("d2e6")},a375:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.destroyFns=void 0;var o=a("6042"),i=A(o),r=a("41b2"),n=A(r),s=a("4d26"),c=A(s),l=a("9dee"),d=A(l),u=a("7b44"),p=A(u),m=a("3355"),f=A(m),h=a("7074"),g=a("50f6"),_=A(g),v=a("c4c6"),b=A(v),y=a("f70b"),w=A(y),C=a("3f5f"),k=A(C),x=a("73c8"),S=a("bad7");function A(t){return t&&t.__esModule?t:{default:t}}var T=(0,w["default"])().type,F=null,O=function(t){F={x:t.pageX,y:t.pageY},setTimeout((function(){return F=null}),100)};function j(){}"undefined"!==typeof window&&window.document&&window.document.documentElement&&(0,f["default"])(document.documentElement,"click",O,!0);var I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={prefixCls:p["default"].string,visible:p["default"].bool,confirmLoading:p["default"].bool,title:p["default"].any,closable:p["default"].bool,closeIcon:p["default"].any,afterClose:p["default"].func.def(j),centered:p["default"].bool,width:p["default"].oneOfType([p["default"].string,p["default"].number]),footer:p["default"].any,okText:p["default"].any,okType:T,cancelText:p["default"].any,icon:p["default"].any,maskClosable:p["default"].bool,forceRender:p["default"].bool,okButtonProps:p["default"].object,cancelButtonProps:p["default"].object,destroyOnClose:p["default"].bool,wrapClassName:p["default"].string,maskTransitionName:p["default"].string,transitionName:p["default"].string,getContainer:p["default"].func,zIndex:p["default"].number,bodyStyle:p["default"].object,maskStyle:p["default"].object,mask:p["default"].bool,keyboard:p["default"].bool,wrapProps:p["default"].object,focusTriggerAfterClose:p["default"].bool};return(0,x.initDefaultProps)(e,t)};e.destroyFns=[];e["default"]={name:"AModal",inheritAttrs:!1,model:{prop:"visible",event:"change"},props:I({width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),data:function(){return{sVisible:!!this.visible}},watch:{visible:function(t){this.sVisible=t}},inject:{configProvider:{default:function(){return S.ConfigConsumerProps}}},methods:{handleCancel:function(t){this.$emit("cancel",t),this.$emit("change",!1)},handleOk:function(t){this.$emit("ok",t)},renderFooter:function(t){var e=this.$createElement,a=this.okType,o=this.confirmLoading,i=(0,x.mergeProps)({on:{click:this.handleCancel}},this.cancelButtonProps||{}),r=(0,x.mergeProps)({on:{click:this.handleOk},props:{type:a,loading:o}},this.okButtonProps||{});return e("div",[e(b["default"],i,[(0,x.getComponentFromProp)(this,"cancelText")||t.cancelText]),e(b["default"],r,[(0,x.getComponentFromProp)(this,"okText")||t.okText])])}},render:function(){var t=arguments[0],e=this.prefixCls,a=this.sVisible,o=this.wrapClassName,r=this.centered,s=this.getContainer,l=this.$slots,u=this.$scopedSlots,p=this.$attrs,m=u["default"]?u["default"]():l["default"],f=this.configProvider,g=f.getPrefixCls,v=f.getPopupContainer,b=g("modal",e),y=t(k["default"],{attrs:{componentName:"Modal",defaultLocale:(0,h.getConfirmLocale)()},scopedSlots:{default:this.renderFooter}}),w=(0,x.getComponentFromProp)(this,"closeIcon"),C=t("span",{class:b+"-close-x"},[w||t(_["default"],{class:b+"-close-icon",attrs:{type:"close"}})]),S=(0,x.getComponentFromProp)(this,"footer"),A=(0,x.getComponentFromProp)(this,"title"),T={props:(0,n["default"])({},this.$props,{getContainer:void 0===s?v:s,prefixCls:b,wrapClassName:(0,c["default"])((0,i["default"])({},b+"-centered",!!r),o),title:A,footer:void 0===S?y:S,visible:a,mousePosition:F,closeIcon:C}),on:(0,n["default"])({},(0,x.getListeners)(this),{close:this.handleCancel}),class:(0,x.getClass)(this),style:(0,x.getStyle)(this),attrs:p};return t(d["default"],T,[m])}}},a3fa:function(t,e,a){},a42c:function(t,e,a){t.exports=a.p+"img/rule_params_icon.78be54b3.png"},a46b:function(t,e,a){t.exports=a.p+"img/new-activity-line-1.3c4355ed.png"},a47a:function(t,e,a){"use strict";a("0a78")},a4819:function(t,e,a){t.exports=a.p+"img/buy_notice_cycle_icon.22aa457d.png"},a483:function(t,e,a){"use strict";a("0802")},a611:function(t,e,a){t.exports=a.p+"img/new-home-1-line-1.7eb7cef8.png"},a62b:function(t,e,a){"use strict";a("606e")},a63b:function(t,e,a){"use strict";a("b39e")},a655:function(t,e,a){t.exports=a.p+"img/mniniapp_share_image_site_icon.befcd98b.png"},a6d3:function(t,e,a){},a707:function(t,e,a){},a73e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAsCAYAAACe/vh+AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABd6ADAAQAAAABAAAALAAAAADsobnRAAALfElEQVR4Ae2dV6gUSxCG25yzmCOCKOb0oGJAxQRiQjCCYhZUxIRZERP6YHgyISL4IooJFCOIiijmnAMmBBVz9l6/9vbYZ++e3Z3dmfXMbBXMmdTT0/1399/VVTV7cv3zS5SIICAICAKCQKgQyB2q2khlBAFBQBAQBDQCQu7SEQQBQUAQCCECQu4hbFSpkiAgCAgCQu7SBwQBQUAQCCECQu4hbFSpkiAgCAgCecMMwY8fPxTbz58/FUFBZgtznaVugkBORSBXrlzKbLlz51Z58uTRW04tb9DLlStsoZAQ+Ldv39T37981mQe9gaT8gkCYEYDs8+bNq/Lly6eJP8x1TXfdQkXukDobBI/Y2oHRGNgHWczqg729MglynaTsggDjEoJnE/EGgVCQO0T35csXTXbAwnIvf/78mty9gSln54LZ6evXr079c3ZppXSCQPYIMHYLFCggWnz2ECV8J/DkDrF//vxZ29WZ/ekYdJBMFDR5JjkwEREEgooAK+6CBQsKwafYgIEmd5vYpUP87gk2Jin2DXlcEPhrCMh4Th36QIdCoqVikpCO8KcjsHpB6wETEUEgqAgwrhnfIskjEFgGwHGKGcKQGXuR3wgIJtITwoAA45txLpIcAr6TOyGJs2bNUiNGjEiuhFGewvRgGl2cL1EA+nUJggcbEUEgyAjY0W/J1APuMRzBmDDjguthF19t7hD7tGnT1LFjx1SPHj3UvHnzPMGTyBAaHccpJohE5MmTJzrMqly5ck5y8nn37p16+/atqlmzpnM91sHDhw/17erVq8dKpt6/f6+KFi0aM006buJsRgMSEQSCigDhkUS/JSMQ+7Nnz1Tp0qWdx1+9eqUqVqzomH3WrFmjXr586dw3B2XKlFHjx483p4Hb+/aFqk3snTp1UrNnz/YMHPJG3DT4qVOnVLFixVTnzp3VvXv31MaNG1WpUqVUu3bt1M2bN9Xx48f1vl69emrAgAE6f4jx/v37+tj8YaJC2rZtay7pPZODmWjoTExkaAdMAsuXL1dmUsjy0K+TGjVqqClTpkRe9uwcjD59+uRZfpKRIJBuBBjvbsa6XT4UOJvYucc518MuvpB7JLEvWrTIs/BEtFDMMjgMk3UaHj58WPXu3Vs1b95cnTlzRrfxkCFD9Gpg/vz5Tpt/+PBBnThxwjnn4Pbt2/o8MtySFYEhd7SCpUuXqsWLF6uhQ4eqqVOnZsnDPhk1apR96vmxwQkHlYggEEQEGO+M+8gx51Vdgqydx8LAc3L3k9ipiDExJNrQpEdLv3btmra9GQ88GvjTp0/18ox8T5486RA358jly5cdwv595c9qwRC5uU7a9u3bm1OtHUDwaP/cM5OISVCiRAnVt29fc5rtno5NOStUqJClc1Ov58+fq0qVKsWNBwYrIfdsIZYbAUDAT3JfvXq1wlRjC9r9hAkT7EuBO/aU3P0mdtA1JJUouZMO7Xj79u2OWWb9+vWqe/fuqk6dOg7ptmrVSrVo0ULZmvvu3bvVnDlzHNs5dvs7d+5oP4L9mTT29YULF2pyv379utq7d6/uCK1bt1bki6mHd9mCYycRYTLCbISpp0mTJprg6ejnz5/XvgLsgpETTWS+YGAc0JH35FwQCAICZty7LSvmHIjbNs1wbpt5OLbPeUfkudv35oT0npF7OogdwNBkkUTJUSeO8gfTzNWrV9WDBw/UixcvNPlDmrYUL15ca/sQOZr+gQMH1OTJk1XhwoXVo0eP1L59+9To0aN1Guz5CCaZLl26qFu3bqkrV65ocsc0gtPWlJ10Jj3HsQTirl+/vs4LQm/YsKG6dOmSzo/r8YidvFPFKlb55J4gkA4E7LHj5n34sxiTto0d4rb9XGPGjHGTpau0lHvr1q36mYEDBzpj0e11Vy/9L7Fn5D537lxNgDhPvbSxR1bKNHIyhIUGfO7cOdW/f3/HUYqXnIgZM7MPGjTIeaXR4leuXKmOHj2qunbtqjZv3qywxaOtQ/QIZL9gwQJ9XLJkScWGpnH69Gl9jT8jR45UtWvX1ud3795VM2bMUI0aNXLuxzrAnm8IHh8AGHBuR/7Eej4ZrGLlJ/cEgXQjYMa92/fCRWx/SyD2wYMHO683/OL2upOBiwPPyB3CQho3bpzFNuyiLL4kJVIEDXvHjh2qSpUq2rmJho6tGnn9+rUma3OOth4pOEVpIOzyhw4dUh06dFC9evXS2j7RMDhm40n58uWdTrZhw4Z4yf93H/MLk4gJseRcRBAQBASB7BDwjNxXrVqlTRQrVqzQ5N6vX7/s3pnSdbRQZnG2RDRSzCFo0awoKleurMqWLasOHjyoli1bprp166bLSj5MAJhomADsJRv2OUwy+/fvV02bNlXjxo3T8bEQfZEiRdSSJUsUdec5v8TY2D9+/KiqVaumHj9+rG3uxgYf773Jaj3x8pX7gkC6EEhkrEcrC+HIcFI0s0w6NHpMMUZSOTZ5uNl7+hET0RvYoHE8Tp8+XflB8OajHGzNiTpVAcR2qHLOsujGjRvanELHQSOeNGmS7ghEshjZuXOntp9jpzMfRECyHTt21HZztOlNmzbpWHbb/n3hwgVtlkHr59lhw4YpjhEmF7DBLIOzd926dfp6tD8Q89mzZx0bO6YYfATY81llNGvWLO4kx+QAbiKCQFARYKzb4yvRepgxa8yuPIfClgkfMXn68wOE661du1ZryGjG27ZtS7QNEk5nYtsjnZ8JZ/BfQj5UosMQ5UIEDNo65G4TO0kxv2BbRzMfPny4/ggKpyaRNdjq0Z75QCtax8PJPHPmTN2ZyIeIFzbs5awiEhGiZTAt2TZ2Y4PnugntjJVXqljFylvuCQLpQMCMe7fvko+Y3CIWI70heDR4CB7xUoM3YX1uCSuaaaJnz56amDG5TJw4UdWqVStLzXgG8wtaPiYcOzyKaBecsXjamSiwqdsC8e7atUuHVqI18K5IwVwUrVx2OiaNNm3a2Jf0MQSfqEPVLVb/e5lcEAT+MgJuVuluixrWj5g8NcvYoPpposEsAikWKlQo7leqpMWZumfPHk3k/N7Lli1btGkDRyi2eLR1HKVExHB/7NixqmrVqlqTb9CggerTp4+OgOEnCo4cOaK4xheuCPlD/mjkxMQbIVKGCaBu3brmkrPHto/Zhp9EwLSCdu+XMIEw0YgIAkFFALMp5s9khGejKVD29Wi/LRP035UBK9/Incxtgif0L5EvMnkunrDUcvPDYRcvXlQ0FqaVN2/e6A3HZDSBpCHlaD/6hWOVjtKyZcssWny0fGJdw+ZHrDrvILqIfxDslxgfhV/5S76CgN8I/I0fDhNyT6BVDcFjGjBfbibwWMwkECzaKHvMFn4u2WIWJIffBHNxpObwRpLixUQADZsVOvtk5G9HyyRTZq+e8VVzN4Xkox+cj9jjvRI0dzT4VBvfq/LktHzsCTCnlU3KIwgkigB+LvunPhJ9TtL5bJbxG2BjcsCTjgaf7OzudznTnT/EDjbY20UEgaAiwIo8WhRaUOuT7nJ7GgqZ7sITwwqxQ2KQGaSW6SLEnuk9IBz1Z1wzvkWSRyAtZpnkixf/SZvM0NzpEJlqg8fGTty7THLx+42kyLkIyErcm7YJPLkDA2QGqZl4bsgdWx2dJBOElQv+B1P/TKiz1DGcCDB2UdDExJp6+4aC3A0MOFnZjOYKudNZ2OgsZjPpg7inbmaDzNnEth7ElpQy2wgwNnGcivPURiW141CRO1BAfBA8n/4bkk8NInlaEBAE/EIAUuc7D0idYxHvEAgdudvQ2Jqt0XaF8G2E5FgQSB8CZuXM3l5Vp68EmfWmUJN7ZjWl1FYQEAQEgT8IZIbH8U995UgQEAQEgYxAQMg9I5pZKikICAKZhoCQe6a1uNRXEBAEMgIBIfeMaGappCAgCGQaAkLumdbiUl9BQBDICAT+BZAGZ4FjCTzlAAAAAElFTkSuQmCC"},a7e2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetWarned=void 0;var o=a("1db9"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e.resetWarned=o.resetWarned,e["default"]=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";(0,i["default"])(t,"[antdv: "+e+"] "+a)}},a820:function(t,e,a){"use strict";a("30fb")},a836:function(t,e,a){},a87a:function(t,e,a){t.exports=a.p+"img/pc-activity-7.dd3ee830.jpg"},a8d6:function(t,e,a){"use strict";a("d1a8")},a8e1:function(t,e,a){"use strict";a("bbe1")},a8e2:function(t,e,a){"use strict";a("07a3")},a961:function(t,e,a){t.exports=a.p+"img/pc_top_img.ce77eba6.png"},a974:function(t,e,a){"use strict";a("b65d")},a996:function(t,e,a){},aa34:function(t,e,a){t.exports=a.p+"img/website_logo.ec61e782.png"},aa53:function(t,e,a){},aa6e:function(t,e,a){"use strict";a("32d0")},aaa5:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 255.5 200"}},[a("title",[t._v("文本")]),a("g",{attrs:{id:"图层_1","data-name":"图层 1"}},[a("path",{staticClass:"cls-1",attrs:{d:"M482.09,27.33H384.74a5.41,5.41,0,0,0,0,10.82H428v91.94a5.41,5.41,0,1,0,10.81,0V38.15h43.27a5.41,5.41,0,1,0,0-10.82Z",transform:"translate(-232 64.5)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M432-54.5a10,10,0,0,0-10-10H242a10,10,0,0,0-10,10,10,10,0,0,0,10,10h80v170a10,10,0,0,0,20,0v-170h80A10,10,0,0,0,432-54.5Z",transform:"translate(-232 64.5)"}})])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},aaa9:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:t.activeItem,platform:"mobile_web",routerType:"h5"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"h5-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t._t("content")],2)])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:function(e){t.siderPropShow=!1}}},[t._v(t._s(t.activeName))]),t._t("form")],2)])],1)},i=[],r=a("fb02"),n=a("41a2"),s=a("052c"),c={props:{activeItem:{type:String,default:""},activeName:{type:String,default:""}},components:{"c-sider-title":n["a"],"c-tool-group":s["a"]},data:function(){return{PainterSVG:r["a"],siderToolShow:!0,siderPropShow:!0}},methods:{toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},closeTool:function(){this.siderToolShow=!1}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}}},l=c,d=(a("ea44"),a("2877")),u=Object(d["a"])(l,o,i,!1,null,"016b5f44",null);e["a"]=u.exports},ab4f:function(t,e,a){},ab6b:function(t,e,a){},ab92:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=c;var o=a("c449"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}var n=0,s={};function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=n++,o=e;function r(){o-=1,o<=0?(t(),delete s[a]):s[a]=(0,i["default"])(r)}return s[a]=(0,i["default"])(r),a}c.cancel=function(t){void 0!==t&&(i["default"].cancel(s[t]),delete s[t])},c.ids=s},ac44:function(t,e,a){},ac60:function(t,e,a){"use strict";a("dfd9")},ac61:function(t,e,a){"use strict";a("b144")},ac7b:function(t,e,a){"use strict";a("7d35")},aca1:function(t,e,a){"use strict";a("f2f1")},acc7:function(t,e,a){},acda:function(t,e,a){},acff:function(t,e,a){},ad7a:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"perch",platform:"mini_app",routerType:"applet"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"applet-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0?o("div",{staticClass:"left-part"},[o("img",{attrs:{src:a("9360")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e()]):t._e(),t.compdata&&t.compdata.length>0?o("div",{staticClass:"right-part"},[o("img",{attrs:{src:a("79a8")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_global_default_product_img").config_value,alt:""}}):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("占位图")]),t.compdata&&t.compdata.length>0?o("perchForm",{ref:"perchForm",attrs:{compdata:t.compdata}}):t._e()],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"perchForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"perchForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.perchForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("e8ff"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"965ac814",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],perchForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.perchForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.perchForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("3393"),Object(g["a"])(k,o,i,!1,null,"52a7c246",null));e["default"]=x.exports},adae:function(t,e,a){},adc7:function(t,e,a){"use strict";a("a836")},adff:function(t,e,a){},ae70:function(t,e,a){},aef1:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("H5")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"product_list",platform:"mobile_web",routerType:"h5"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[t.compdata.length>0?o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"h5-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"h5_product_list_style").config_value?o("img",{attrs:{src:a("6c92")}}):o("img",{attrs:{src:a("a73e")}}),o("img",{staticStyle:{cursor:"pointer"},attrs:{src:a("0276")},on:{click:t.showManage}}),t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"h5_category_filter_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"h5_category_filter_style").config_value&&"1"!==t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("61bf")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value+";border-radius: 0px"},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"h5_category_filter_style").config_value&&"1"===t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("fb43")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"h5_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"h5_product_list_style").config_value?o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])]),o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'h5_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"h5_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"h5_list_page_add_icon").config_value,alt:""}}):t._e()])])])})),0):o("div",{staticClass:"content-box-horizontal"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"left"},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"h5_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])])]),o("div",{staticClass:"right"},[o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'h5_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"h5_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"h5_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"h5_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'h5_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"h5_list_page_add_icon").config_value,alt:""}}):t._e()])])])])})),0)])]):t._e()],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("商品列表")]),o("productListForm",{ref:"productListForm",attrs:{compdata:t.compdata},on:{changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1)])],1),o("card-page-result-show",{ref:"cardPageResultShow",attrs:{width:"1200px"}},[o("div",[o("p",[t._v(t._s("分类商品/品牌商品/搜索商品/店铺商品列表富文本内容效果展示如下:"))]),o("div",[t._v("分类商品列表说明:支持设置图片、标题、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/category/operateCategory"}}},[t._v("商品-商品管理-运营分类-内容管理tab")]),t._v(")")],1),o("div",[t._v("品牌商品列表说明:支持设置图片、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/brand/list"}}},[t._v("商品-商品管理-品牌管理")]),t._v(")")],1),o("div",[t._v("搜索商品列表说明:支持设置是否显示店铺卡片(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list?query=productSetting"}}},[t._v("设置-系统设置-商品设置-店铺卡片")]),t._v(")")],1),o("div",[t._v("店铺商品列表说明:支持设置图片、店铺LOGO、店铺名称、店铺简介、店铺描述(设置路径:"),o("span",{staticStyle:{color:"#096dd9"}},[t._v("设置-店铺管理")]),t._v(" )")]),o("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[o("img",{staticStyle:{width:"1100px"},attrs:{src:"https://img-resource.azoyacdn.com/media/b78385d8293078f5b3378a52bb10a5af/195649/a3b93484bd87a3998c56d714aea17501.jpg"}})])])])],1)},i=[],r=a("ade3"),n=(a("96cf"),a("1da1")),s=(a("ac6a"),a("fb02")),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("商品列表包含分类商品列表、品牌商品列表、搜索商品列表、店铺商品列表")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction,changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&("h5_list_page_add_icon"!==t.decoration_code&&"h5_search_result_empty_icon"!==t.decoration_code&&Array.isArray(t.config_value)?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},changeStyle:function(t){this.$emit("changeStyle",t)},changeLayoutStyle:function(t){this.$emit("changeLayoutStyle",t)}}},h=f,g=(a("f207"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"3966b36e",null),v=_.exports,b=a("de6a"),y=a("0b75"),w=a("ea1b"),C=a("d1e4"),k={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],productListForm:v,cardPageResultShow:C["a"]},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],styleValue:!0,layoutStyleValue:!1,colorAry:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},isShowTag:function(){if(!(this.compdata.length<1))return!0===this.findCurrentFormFunStr(this.compdata,"h5_product_list_new_tag_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"h5_product_list_sale_num_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"h5_product_list_tag_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"h5_product_list_cart_num_show").checked?"height: 21px":""},boxStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box box-1":"2"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box box-2":"3"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box box-3":"4"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box box-4":"5"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box box-5":"box box-1"},cardStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box-item-1":"2"===this.findCurrentFormFun(this.compdata,"h5_product_list_layout_style").config_value?"box-item-2":"box-item-1"}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)},findCurrentFormFunStr:function(t,e){return Object(w["a"])(t,e).config_value[0]},changeStyle:function(t){this.compdata.forEach((function(e){"h5_product_list_layout_style"===e.decoration_code&&("2"===t.config_value?e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}])}))},changeLayoutStyle:function(t){this.compdata.forEach((function(e){"h5_product_list_style"===e.decoration_code&&("5"===t.config_value?e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))},showManage:function(){this.$refs.cardPageResultShow.showModal()}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(e,o){e.index=o,e.isChange=!1,"h5_product_image_suffix"!==e.decoration_code&&"h5_list_page_add_icon"!==e.decoration_code&&"h5_search_result_empty_icon"!==e.decoration_code&&Array.isArray(JSON.parse(e.config_value))&&(e.config_value=JSON.parse(e.config_value),e.initialValue=[],e.config_value.map((function(t){t.checked&&e.initialValue.push(t.value)}))),e.sizeTip=Object(y["b"])(e),e.config_value?("h5_list_page_add_icon"===e.decoration_code&&(e.isShowAddImg=a.findCurrentFormFun(t.data.rows,"h5_product_list_cart_show").config_value[0].checked,e.required=a.findCurrentFormFun(t.data.rows,"h5_product_list_cart_show").config_value[0].checked),e.isEmpty=!1,a.$refs.productListForm.form.setFieldsValue(Object(r["a"])({},"".concat(e.decoration_code),a.compdata[o].config_value))):e.isEmpty=!0,"h5_product_list_style"===e.decoration_code&&(a.styleValue="2"===e.config_value&&"2"===e.config_value),"h5_product_list_layout_style"===e.decoration_code&&(a.layoutStyleValue="5"===e.config_value&&"5"===e.config_value)})),a.compdata.forEach((function(t){"h5_product_list_layout_style"===t.decoration_code&&(a.styleValue?t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}]),"h5_product_list_style"===t.decoration_code&&(a.layoutStyleValue?t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))})))}));case 4:return t.next=6,Object(p["c"])({config:"h5_main_color,h5_promotion_color,h5_secondary_color,h5_highlight_color,h5_sale_price_color"}).then((function(t){t&&-400!==t.status&&(a.colorAry=t.data.rows)}));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.productListForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},x=k,S=(a("89c8"),Object(g["a"])(x,o,i,!1,null,"94a7bf3e",null));e["default"]=S.exports},af09c:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=o.F1&&e<=o.F12)return!1;switch(e){case o.ALT:case o.CAPS_LOCK:case o.CONTEXT_MENU:case o.CTRL:case o.DOWN:case o.END:case o.ESC:case o.HOME:case o.INSERT:case o.LEFT:case o.MAC_FF_META:case o.META:case o.NUMLOCK:case o.NUM_CENTER:case o.PAGE_DOWN:case o.PAGE_UP:case o.PAUSE:case o.PRINT_SCREEN:case o.RIGHT:case o.SHIFT:case o.UP:case o.WIN_KEY:case o.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=o.ZERO&&t<=o.NINE)return!0;if(t>=o.NUM_ZERO&&t<=o.NUM_MULTIPLY)return!0;if(t>=o.A&&t<=o.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case o.SPACE:case o.QUESTION_MARK:case o.NUM_PLUS:case o.NUM_MINUS:case o.NUM_PERIOD:case o.NUM_DIVISION:case o.SEMICOLON:case o.DASH:case o.EQUALS:case o.COMMA:case o.PERIOD:case o.SLASH:case o.APOSTROPHE:case o.SINGLE_QUOTE:case o.OPEN_SQUARE_BRACKET:case o.BACKSLASH:case o.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};e["default"]=o},af0d:function(t,e,a){},af18:function(t,e,a){"use strict";a("f105")},af28:function(t,e,a){"use strict";a("4fa0")},af64:function(t,e,a){"use strict";a("4613")},af8e:function(t,e,a){"use strict";function o(t,e){var a=e;while(a){if(a===t)return!0;a=a.parentNode}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=o},afce:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"personal_center",platform:"app",routerType:"app"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[a("div",{staticClass:"scroll-view"},[a("img",{staticClass:"bg-image",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/187312/11481d092bd37ed4b953db5a189e9b34.jpg"}}),t.compdata&&t.compdata.length>0?a("img",{staticClass:"default-avatar-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_default_avatar").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-pending-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_order_pending_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-paid-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_order_paid_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-shipping-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_order_shipping_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-completed-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_order_completed_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-canceled-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_order_canceled_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"user-center-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_user_center_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-address-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_address_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"customer-service-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_customer_service_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-comment-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_comment_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"share-commission-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_share_commission_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"rec-to-friend-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_rec_to_friend_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"app_my_award_icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_my_award_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-security-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_security_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-setting-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_homepage_setting_icon").config_value,alt:""}}):t._e(),a("div",{staticClass:"list-wrapper"},[t.bottomTerms.length?a("div",{staticClass:"list-box"},t._l(t.bottomTerms,(function(e,o){return a("div",{key:o,staticClass:"list-item"},[t._v(t._s(e.title))])})),0):a("div",{staticClass:"list-box"},[a("div",{staticClass:"list-item"},[t._v("此处为底部条款文案")])]),a("div",{staticClass:"nav-box"})])]),a("img",{staticClass:"bottom-navigation",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/15741/493fb15dbd917d5c27656c487dabf046.jpg",alt:""}})])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("个人中心")]),a("personalCenterForm",{ref:"personalCenterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"personalCenterForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,globalConfig:{client:5},form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"personalCenterForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.personalCenterForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("1934"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"58f2b49c",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],personalCenterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},bottomTerms:function(){var t=Object(w["a"])(this.compdata,"app_user_bottom_terms").config_value;return t?JSON.parse(t):[]}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.personalCenterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.personalCenterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("562f"),Object(g["a"])(k,o,i,!1,null,"7acb4c6b",null));e["default"]=x.exports},afdb:function(t,e,a){"use strict";a("f5da")},b026:function(t,e,a){"use strict";a("b719")},b030:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABGCAYAAACDkrchAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAANKADAAQAAAABAAAARgAAAADerV6sAAAK4ElEQVRoBe1aCVRU1xn+Zhh2FRUcBgQVAmjC5q4JKBDUamJjYxJjXXJMPKLWpmn1xJicRNuck2OTtmprEqvVRA21Ji4xdQEhbkHbHqtRHEERXNjBgGyyw7ze/8J78x7MwAxgGHv8z5l37/vv///3+95d3r33jQqdSHBwsENjacn7giC8IgBenZjzYhVU2zKLi5d2ZBvo6blVgBDXkY1YpgIKVSrVbnt3j7VpaWkNot5UqjGllOuIjEEQ3pLrLMhP7CEbHoYeJHugbzEsdL+mo9iMfMcS6KktoIABOm/EhoZ3aJyWm42z19NbbNRYkFV49++mHAK8tPNhQDyVRY54AsG+Q02ZSboT+lRkFRWAWiqz+K63VGAi02kLid2MyCydOt1ECKOqur4eczb8HoVl96Ay4FMGHG1JERkqY3HhNWAg1s9fBFdHR2MQMzkiJGIxY8LVnRLqyLltGQH77Us/x9Jtn1Dl/agV2FhZzez+02o7UTAIYUSGhGwtIdNibdlVbZmZ5VbjAoKwNW4Ff/rkxQY+IyDEtf7CSEctQzZk29PSoy0kgiOgX61cgy/OnMTptCvIaxnM8PUYhKgnQrEw6ukebxmx7gdCiIJTV1o2bQb/iZX9GGmPd7kfA3RHdfzfEVJ0uRGDBwc1GwyhKkEIFWAIFQSEdvQ0eqMswFN7Q6WCXgW1XlCp9HZqtf56fv4NEQsnNNzbO8JgaNrR1NQ4nArEaVU0srE0kD3oQPbAZxPQJkMzAnXaDLVaszijoOCceoy/v1tzc9NRZsTJiOB1ffpi3OAh4q3NpISJsMmFsBMH4qKprK2NZYVuZPBiSDhG6nzg6+YGR40995n75S6eWnq5UViAnae+xc/GT8T41vfMiu1bUFpViS1LfoEBDExReRne3rMLi6KnsGk8xNLQ3G5VZAxP65sakVtRgctFedh/NZV0bsRFrUKz1MNGe/kiwN1DIsM9rbz0c3bGSVbBJ4lHuWd9YyMu3MxESdV9ToaUW44fQ+qd23BzcbEyutGcHjhhJcyiEBc1VJproiKnokzMdimtaWhAHydnzBwzHjkld5FZmI+Lt7LQ2NyM0CFDcb+uDj9UVuBsRjpflNKCl3y6I9mstUVRqTTpmvCIiMxLKd/VQRCccmSFopE16aKPN/JVsejz8saPxCzOpOsxea1xF0KrcronUl+tNOolBwszuWIjqFR1YRERWZp9+/Y1B+i0tOYf3V1CU8NHInyYnwSlqrYGSamX0Jd1w2nhoyW9PKNl47U7YsQspBMXPm2zfYaeDaTROZXl3YmNJbE/UfhvOHyI38+fFI24KR1vPRSOVtyImIkDuckJobKulv/6sXFgrSz562ZFdyN/NuvwMPFnTuEfZ8+YDUnd7m/LXjdbbq5AxEvlCkIGtUaP5ibuR4xDukDIx90dbJXBY5RUViLvXgnYOQDvguyMgevpIpYN6ueGwQPduZ58uyJi65Av58BS3kL29vb6RpEQmxhCtBadhSgwrHtpHr+/kJWJ1fGf8/x7L8zl7yO5YSUbV69s3oDiinK8HfUiooP5FkluYnHeOH4A4kCOnNC17OzCQJ1nKTuIcJdmDYvDthjSlLzz9LfYdfoEb6kxjwXA2cEBxy9/3y7SjFFjsTU5Aat2f4Y5T0Uijo09euFaKyJW1hNKiQP5c0KUYZMCMYzOKbd+YsgoyMdytu0ur6kGzVpO9g64eDOL/yi2KXFhZGnD9+W5FBy5cB67X18FP62nKVOzOhErw35FNJIIse5+ha2JovPYGGIGsl4vmppPA728MVSrxUzfYVjKNnXp7PSnoKwM8SmncLOoEKtnvcBay1EKsOHI1xjg2gdfMBJbkxNRxSYja8kQRsJKQqtvnmEXOSGaulHf1ITi+1XtFoCig6lUzSLuWP4GKCWhLfj1gjzcKi7iY2RuxGSF24ff7Ed/F1do7OywYvqzijJLbwgjYSWRE5I2eEKzkaV8sFlagUiG7KvYdL3+4D62+BCwKIbWvkYpr76POrbccXN1NSq7kJNjlGOXCDl4eKSxuNRIyKm414UqWlz+lXEN8/78B+hz7uDZ0WMRNmSYFKu2oR7bTyTxe38rx4sUpDUjwyi0YuclUpdjZ8b32RnabXbc5J/bhYmBom1OOIzP2daBZMGkGPxm5izeSrHvvwsiQ0+rga2+SaKCu7cZFjGyd9xtws6DsotEiBSsQhpc/l1ddS+cHMMngddip7KW8aOQXGZPeBJXWIuR0GTwPNsrjRzmz++7ehExtmKWwigI0fKBGcwqYpuxBvaidbBTFEtO5jL9GdhNr7b/oPDL6TPNuXRJT9gIIwlhlgeRxhAp2cDmhdQ18tm+xVaFsBFGEnZQIr2D6F5BSFCrpUL5LEKGtiTyTZ2anfrIsSkI0WaPLSPqycCWCeW2bkQJK2E2S4g2SKwR+QeeHLZ4tFUxYmvZ1MlxKlqICsRZw5ZbSMQmYu2QEJ1IkkFFPW326uS2NpEnTISNRMQqB9auhexaZzoyEpfncofezssxybGKuFRBOt0Mg2DYwxT9ReXDmLIVQymbJBaq2EfhPNYXBz+MJNpiZqvuPI2cTGhwEKIix7e1s+n7A/9MQmHhXY6RLe59FGubmpo6rFi2wKYJyMGVl1di62d75SrlSuHm7RzcyLqtMLDlm2+OnkBjY8smT8TZbpY7lnhGLLP5dP/XiRyjW1/job9ESOveMsklHH84CF3WX0PWzWxOKMjfR3r4EiG/ITquzMkrxNV06QufZGhrmQOtrWNnp0agn7cETyLk76vjJ51UYuutVFNbB3FoRI4NgbPsrzUSIRdnR4Q/7seZJiSnSIxtMXMs8TSIFMlzUyYoICqm7djIUbicfovP65dSr2FU+OMKY0tvqG8nnzoHQ1PLWXdbP7VGjakxEQh4bGjbIovuxcmAxv2EUSOQnpUj+SkIPf1kGDZuPwiDQUBC0ukuE1r+xjrk5RdJlZjKHDyUhOQjO00VdajLzLqDVP11bvNMzDio2UdVuUhdjpQD3PpiTEggL09MSuEnNnJjS/MxURNYRYrQClcqI5uuyIFDxyW3n7bpblSgaCFSTJ00Cv+9cgM/lNzD4YSTeO4Z5UEh2XQm77y5HPTraamoqMJBttQhGRcWBC/twHZVtHuM0yaPgW7QAG748afxaGo9bm3n2QuKv2zZjaqqal7z/OdjTCJoR8jBXoPFL7d8PszNL8Sa9/7IxpTpwW0y4gNSJiZ9h737Wv4qEDkuGOPDFf8TkWptR4hKZkSPRcjwYdzoKJsif/3mB7hX1jvHWvQwd+85hJVr1vMH6+TogF+9OotjM3VpN4bIiGaOjWvjsPL9bdBn3EHyyXM4+++LmDdnJiY9NRZ+fr7QDnI3Fa9HdNU1tbiTncdmswzsij+InNwCHrePqzP+9O4S+Og8zNZjkhBZuzo7YeO6ZfjdpniknL+KWvYi27FrP/+ZjfYAC2hcf/TOYgQMNS5zTFVnlhAZuzg54MM1r+Eqa6Xte4/jfGqGqRgPVOejc8fC2bGYwd459D2pM+mQkOhM42nTuqWoZhvA4tJytuyoR2NTs3QcK9r1VOqgsUM/tiVw68N+fa37jmQRIRGoq4sT/F1aVuWiztZSk7OcrYG0Bs8jQtY8rd6wfdRCvfHUranzUQtZ87R6w1Z6D31/Nas36u+ROuXYVexP3Ll0JtwjkXs5CB3Ws3W1Oo4yvYyl29UTB+LyP1Uh77kBddxmAAAAAElFTkSuQmCC"},b076:function(t,e,a){},b0f7:function(t,e,a){},b0fb:function(t,e,a){t.exports=a.p+"img/personal_register.4ac80c0d.png"},b12b:function(t,e,a){"use strict";a("e3ad")},b144:function(t,e,a){},b16b:function(t,e,a){},b191:function(t,e,a){t.exports=a.p+"img/pc-activity-8.6f0c5276.jpg"},b1cbf:function(t,e,a){"use strict";a("60ac")},b245:function(t,e,a){t.exports=a.p+"img/pc-activity-16.0fe282d8.jpg"},b2ef:function(t,e,a){},b2f7:function(t,e,a){},b30c:function(t,e,a){t.exports=a.p+"img/app_bottom_tab_home_checked_icon.6dc86573.png"},b332:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1)},i=[],r={methods:{toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})}}},n=r,s=(a("a974"),a("2877")),c=Object(s["a"])(n,o,i,!1,null,"544efb8e",null);e["a"]=c.exports},b37f:function(t,e,a){t.exports=a.p+"img/pc-coupon.929bba78.jpg"},b398:function(t,e,a){t.exports=a.p+"img/personal_center.bae0265f.png"},b39e:function(t,e,a){},b428:function(t,e,a){},b451:function(t,e,a){"use strict";a("7a7b")},b4aa:function(t,e,a){"use strict";a("5c33")},b4f7:function(t,e,a){},b525:function(t,e,a){"use strict";a("d61d")},b53c:function(t,e,a){},b54e:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"top_nav",platform:"mini_app",routerType:"applet"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"mini-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("be0b")}}),t.compdata&&t.compdata.length>0?o("div",{staticClass:"c-search"},[1*t.type===1?o("div",{staticClass:"applet-search-type-1",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"miniapp_background_color").config_value}},[o("div",{staticClass:"logo"},[t.findCurrentFormFun(t.compdata,"miniapp_site_logo_image_url").config_value?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_site_logo_image_url").config_value}}):o("span",{staticClass:"logo-placeholder"})]),o("div",{staticClass:"depart"},[t._v(" ")]),t._v("\n "+t._s(t.findCurrentFormFun(t.compdata,"miniapp_searchbox_color").searchbox_color)+"\n "),o("div",{staticClass:"search-box",style:{backgroundColor:1*t.searchColor==1?"#f4f4f4":"#fff"}},[o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_search_icon_url").config_value+")"}}),t.findCurrentFormFun(t.compdata,"miniapp_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_scan_img_url").config_value+")"}}):t._e()])]):t._e(),1*t.type===2?o("div",{staticClass:"applet-search-type-2",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"miniapp_background_color").config_value}},[o("div",{staticClass:"logo"},[t.findCurrentFormFun(t.compdata,"miniapp_site_logo_image_url").config_value?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_site_logo_image_url").config_value}}):o("span",{staticClass:"logo-placeholder"})]),t.findCurrentFormFun(t.compdata,"miniapp_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_scan_img_url").config_value+")"}}):t._e(),o("div",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_search_icon_url").config_value+")"}})]):t._e(),1*t.type===3?o("div",{staticClass:"applet-search-type-3",style:{backgroundColor:t.findCurrentFormFun(t.compdata,"miniapp_background_color").config_value}},[o("div",{staticClass:"search-box",style:{backgroundColor:1==t.searchColor?"#f4f4f4":"#fff"}},[t.findCurrentFormFun(t.compdata,"miniapp_scan_show").config_value[0].checked?o("span",{staticClass:"search-scan",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_scan_img_url").config_value+")"}}):t._e(),o("span",{staticClass:"search-icon",style:{backgroundImage:"url("+t.findCurrentFormFun(t.compdata,"miniapp_search_icon_url").config_value+")"}})])]):t._e()]):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("顶部导航")]),o("topNavForm",{ref:"topNavForm",attrs:{compdata:t.compdata},on:{selectType:t.selectType}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("6b54"),a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"topNavForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{selectValueAction:t.selectValueAction,isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"topNavForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.topNavForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.map((function(t){t.isChange&&("miniapp_searchbox_color"===t.decoration_code||"miniapp_type"===t.decoration_code||"miniapp_scan_show"===t.decoration_code?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1})).catch((function(t){e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},selectValueAction:function(t,e){this.$emit("selectType",t,e),"miniapp_type"===e.decoration_code&&(1*t===1?(this.$set(this.compdata[1],"sort",""),this.$set(this.compdata[1],"sizeTip","参考尺寸80x80像素,宽度不超过300像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")):1*t===2?(this.$set(this.compdata[1],"sort",""),this.$set(this.compdata[1],"sizeTip","参考尺寸90x90像素,宽度不超过400像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")):this.$set(this.compdata[1],"sort","hide"),this.$forceUpdate())}}},h=f,g=(a("0941"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"4246a95e",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],topNavForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],type:1,searchColor:1}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},selectType:function(t,e){"miniapp_type"===e.decoration_code?this.type=t:"miniapp_searchbox_color"===e.decoration_code&&(this.searchColor=t)},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(e,o){e.index=o,e.isChange=!1,e.sizeTip=Object(y["b"])(e),e.config_value?(e.isEmpty=!1,"miniapp_type"!==e.decoration_code&&"miniapp_searchbox_color"!==e.decoration_code&&"miniapp_scan_show"!==e.decoration_code||(e.config_value=JSON.parse(e.config_value),e.initialValue=[],e.config_value.map((function(t){t.checked&&e.initialValue.push(t.value)}))),"miniapp_type"===e.decoration_code&&(a.type=1*e.initialValue.toString()),"miniapp_site_logo_image_url"===e.decoration_code&&(3===a.type?(e.sort="hide",a.$forceUpdate()):2===a.type&&(e.sizeTip="参考尺寸90x90像素,宽度不超过400像素,高度固定,大小不超过50KB,支持jpg/png/gif格式")),"miniapp_scan_img_url"===e.decoration_code&&(e.isShowScanImg=a.findCurrentFormFun(t.data.rows,"miniapp_scan_show").config_value[0].checked,e.required=a.findCurrentFormFun(t.data.rows,"miniapp_scan_show").config_value[0].checked),a.$refs.topNavForm.form.setFieldsValue(Object(r["a"])({},"".concat(e.decoration_code),a.compdata[o].config_value))):e.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.topNavForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("16b6"),Object(g["a"])(k,o,i,!1,null,"2e8c4844",null));e["default"]=x.exports},b5e2:function(t,e,a){t.exports=a.p+"img/staffed.ced4a4ef.jpg"},b655:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}},b65d:function(t,e,a){},b6c7:function(t,e,a){"use strict";a("1daa")},b6e0:function(t,e,a){t.exports=a.p+"img/buy_notice_icon.908c0b04.png"},b719:function(t,e,a){},b75b:function(t,e,a){},b766:function(t,e,a){t.exports=a.p+"img/pc_official_reply_comments_color.05d27359.png"},b77b:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 146.48 175.78"}},[a("title",[t._v("箭头下")]),a("path",{staticClass:"cls-1",attrs:{d:"M74.48,16.28h49.36c4.35,0,8.71,1.69,8.71,6.78v67.8c0,5.09,1.45,6.78,5.81,6.78h29c7,0,7.55,10.51,2.61,16.27l-64.74,75.6c-2.91,3.39-7.84,3.39-11,0l-64.74-75.6c-4.94-5.76-2.91-16.27,4.06-16.27l26.71,1c4.36,0,8.13-2.71,8.13-7.8V23.06c.29-4.75,1.75-6.78,6.1-6.78Z",transform:"translate(-26.76 -16.28)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},b7f4:function(t,e,a){},b880:function(t,e,a){},b8ca:function(t,e,a){},b923:function(t,e,a){"use strict";a("2625")},b925:function(t,e,a){"use strict";a("13f1")},b94f:function(t,e,a){t.exports=a.p+"img/perch_2.6c3dfcbb.jpg"},b971:function(t,e,a){"use strict";a("cf14")},b971d:function(t,e,a){"use strict";a("c155")},b97b:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"logistice_track","active-name":"物流跟踪"}},[a("template",{slot:"content"},[a("div",{staticClass:"logistics-container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.getAdvertise[0].img,expression:"getAdvertise[0].img"}],staticClass:"render-advertise"})])]),a("template",{slot:"form"},[a("c-form",{attrs:{compdata:t.compdata}})],1)],2)],1)},i=[],r=(a("ac6a"),a("96cf"),a("1da1")),n=a("e9e8"),s=a("aaa9"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"logisticsTrackForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"logisticsTrackForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.logisticsTrackForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("6e20"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"a8cff988",null),g=h.exports,_=a("0b75"),v=a("ea1b"),b={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(u["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(a,t),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{getAdvertise:function(){var t=Object(v["a"])(this.compdata,"h5_block_member_ac_ad_logistics").config_value;return t?JSON.parse(t):[{img:""}]}}},y=b,w=(a("49ca"),Object(f["a"])(y,o,i,!1,null,"8b9d4ffe",null));e["default"]=w.exports},ba1d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={placeholder:"Select time"};e["default"]=o},bad7:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigConsumerProps=void 0;var o=a("2b93"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e.ConfigConsumerProps={getPrefixCls:function(t,e){return e||"ant-"+t},renderEmpty:i["default"]}},bada:function(t,e,a){},baff:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("dda9"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}var n={},s=function(t){n.Vue=t,t.use(i["default"])};n.install=s,e["default"]=n},bb07:function(t,e,a){},bb78:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warn=e.validateType=e.toType=e.withRequired=e.withDefault=e.isFunction=e.isArray=e.isInteger=e.has=e.noop=e.getNativeType=e.getType=e.hasOwn=void 0;var o=a("60ed"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}var n=Object.prototype,s=n.toString,c=e.hasOwn=n.hasOwnProperty,l=/^\s*function (\w+)/,d=e.getType=function(t){var e=null!==t&&void 0!==t?t.type?t.type:t:null,a=e&&e.toString().match(l);return a&&a[1]},u=e.getNativeType=function(t){if(null===t||void 0===t)return null;var e=t.constructor.toString().match(l);return e&&e[1]},p=e.noop=function(){},m=(e.has=function(t,e){return c.call(t,e)},e.isInteger=Number.isInteger||function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t},e.isArray=Array.isArray||function(t){return"[object Array]"===s.call(t)}),f=e.isFunction=function(t){return"[object Function]"===s.call(t)},h=e.withDefault=function(t){Object.defineProperty(t,"def",{value:function(t){return void 0===t&&void 0===this["default"]?(this["default"]=void 0,this):f(t)||_(this,t)?(this["default"]=m(t)||(0,i["default"])(t)?function(){return t}:t,this):(v(this._vueTypes_name+' - invalid default value: "'+t+'"',t),this)},enumerable:!1,writable:!1})},g=e.withRequired=function(t){Object.defineProperty(t,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1})},_=(e.toType=function(t,e){return Object.defineProperty(e,"_vueTypes_name",{enumerable:!1,writable:!1,value:t}),g(e),h(e),f(e.validator)&&(e.validator=e.validator.bind(e)),e},e.validateType=function t(e,a){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,n=!0,s=void 0;(0,i["default"])(e)||(r={type:e});var l=r._vueTypes_name?r._vueTypes_name+" - ":"";return c.call(r,"type")&&null!==r.type&&(m(r.type)?(n=r.type.some((function(e){return t(e,a,!0)})),s=r.type.map((function(t){return d(t)})).join(" or ")):(s=d(r),n="Array"===s?m(a):"Object"===s?(0,i["default"])(a):"String"===s||"Number"===s||"Boolean"===s||"Function"===s?u(a)===s:a instanceof r.type)),n?c.call(r,"validator")&&f(r.validator)?(n=r.validator(a),n||!1!==o||v(l+"custom validation failed"),n):n:(!1===o&&v(l+'value "'+a+'" should be of type "'+s+'"'),!1)}),v=p;e.warn=v},bb79:function(t,e,a){},bbe1:function(t,e,a){},bbf5:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("8e8e"),i=c(o);e["default"]=d;var r=a("50f6"),n=c(r),s=a("73c8");function c(t){return t&&t.__esModule?t:{default:t}}var l=new Set;function d(t){var e=t.scriptUrl,a=t.extraCommonProps,o=void 0===a?{}:a;if("undefined"!==typeof document&&"undefined"!==typeof window&&"function"===typeof document.createElement&&"string"===typeof e&&e.length&&!l.has(e)){var r=document.createElement("script");r.setAttribute("src",e),r.setAttribute("data-namespace",e),l.add(e),document.body.appendChild(r)}var c={functional:!0,name:"AIconfont",props:n["default"].props,render:function(t,e){var a=e.props,r=e.slots,c=e.listeners,l=e.data,d=a.type,u=(0,i["default"])(a,["type"]),p=r(),m=p["default"],f=null;d&&(f=t("use",{attrs:{"xlink:href":"#"+d}})),m&&(f=m);var h=(0,s.mergeProps)(o,l,{props:u,on:c});return t(n["default"],h,[f])}};return c}},bbfd:function(t,e,a){},bc14:function(t,e,a){"use strict";a("51f2")},bc5f:function(t,e,a){"use strict";a("67b5")},bd1a:function(t,e,a){},bd58:function(t,e){t.exports="data:image/png;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMvaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAyMSA3OS4xNTU3NzIsIDIwMTQvMDEvMTMtMTk6NDQ6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE0IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGRTFCNjM5NDQ3MEMxMUVFOEY5QjgzQkMyMzQ3RUI0QiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGRTFCNjM5NTQ3MEMxMUVFOEY5QjgzQkMyMzQ3RUI0QiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkZFMUI2MzkyNDcwQzExRUU4RjlCODNCQzIzNDdFQjRCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkZFMUI2MzkzNDcwQzExRUU4RjlCODNCQzIzNDdFQjRCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgAMgF3AwERAAIRAQMRAf/EAGoAAQACAgMBAAAAAAAAAAAAAAAECAcJBQYKAQEBAAAAAAAAAAAAAAAAAAAAABAAAAcBAQABAgUEAwEAAAAAAAIDBAUGBwEIERIJIRMUFRZBUXEXMYEiJBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A9/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIjlY6SzAhfj6XDs6Knzz570hWL1xz47/Tv5iBf+gEsAAAFXYz0m2u/pF5gmUQDS/RGbQ0y99G6e1mzoVfHrWs2jT0HIkVGsXIM7Xr9qJIHk5GFI6aqVuAbpvJEyR5KIQfB1HG/YcLcM/0M+nVmbpu94E8NX/QmD0mtXfU71WJX92eRNfuNDpdRq77Q9FybVWLLk3UpmPiVSyMQqYqpUXrKRbNA1owv3yKzN6j3C22ZW820J5fQ+uaAhgHsB0/S3RTU5WnbTW4toXBUrlYqfl1GaJWHnEYJGRcH+qOW/TvvzEUA3uVGzx90rMHbIpnYo+NsMa2lGTG3VSzUWzNW7onFE0ZynXOJgbXW5InO/CrSQZtnSJvwOmXv4AOAb61lTuoVLQWmmZ86oN+fVOMol3b3OuLVC6yV9lGUJRo+pWVOSNC2N9c5mTbNIlJmsspIunCaTfiihyl6GQQAAARCLHM+ct+/H5aTRksXnx+P1rrPyKfPf68+luX4/sAlgAAA8/GlfetmKJn3pHSkm/23miXn61er4BPG9A+5Q6onpi2k8vaRqOflj+Y8XypYCw921LmafrISI5KOuKFlWhP1B/r+sBdf359xCC8OxmbPZ5hSU+afRdTsUC9u9yJWGSloz1zlfY+nR6Z23DTchYY2/PXHCpKprJEizGKmoXp/ywp7S/vfw1u9cPMIRyunKZ8/02g4pVJ6M2euP9JcXaw+s9T8szllkqYRjxFStFkKpEzDSObq9kEYlZy6WVNwyCXA3pWK21WoJRS9ss1fq6E9YIapwa1imo2FSmbTYnZWFfrUUpJOWxJGwTr4/EGbNHp3LpbvCJkMbvwA+EttUUtS9ETs1ePd2tfa2x1TSTUaa1Nqq+kXkOxsq9e457Lo195LR7hqk9Mjxso4QUTKfpyGLwOwgAAAiMFjuGLJwp8dUXaNllO858c+tVEhzfHP6c+owCWAAK6+mdS07KaLES2SZ3E6FbJa3xMc85bLH/DM+plKjmsja9BvF9t/Gz5SAiYml1x6gxOm3cnWm3TFIyXUTqnIGtOQ+7pIsbFVo97RvL9b45rNXWvFWuXuvIYG4VK4Xi3JQrSI6T9odLOm2WQrRR3deEjz/ov3Nl1is9Ik67wLq7r6i1TIoO7SMFhjXTVkm+WJ5ivSdLqLphNT18nISvWKB0I9md01LO0qj+ucS6Ew7X5X5KISLxR+xemK2OH3xx7AlPUUfbOzmR2HNn9dve3V9q8kbnhVgipWJzTdLxl0W1Qjc527SbilYWkRXWvZd04jm8CtI9WNGPXbJRmsuHWdI9Renaz6ieedah50wdWKnquytWJ6LsPqzQcsT29KPiE3mk16rwdQ8f7PExl1zF8U6jyGczXZB7BnSlmqSjckgWPDunjn0lrfpVpp9hu+N51Qs9qtoZ1bLdPy/b7LstJ3NRglII3yxU1zbcGweXTpVVnkEoxjMkZvI+wuSO1mCp2SDd29C6QAAAAAAAAAAAAAAAAAAgPOd64iu853vCv1Om7zne8Lz9rki/Pf7c+o3Of56AngAAA0YetMWwHUfT9Rsdm8+3un4L5is05cPTupV/JNpZobbeNEhrQWhYpnNMy2EXtesQi9/wBmXv8AebZExDmKTlY5izWknTheXSYhzWLYzUq/4b9M27lDuWQwGp6ttamYoWXzzvun6/A+dpXVo2t0Ws8wynO6v6edV7RoqtJzbeqpLsHzdGcIu8ap9K5Q4FLE/Of3BHhZXTLFjPnBz5Gl6RXPP0b52N9valvddrOMUWWm77WdcL5eb+m+RKULK3y6SpVKg3sji3RUcyj5BvCFlnUjGNw9DXmwyf8AoLIUkJN5MNWdBrscykZDL9BxV+uwjGCUew49ynV30npVEdoM2xE1I+ccLSaRyd6ufp+96AwvTvAXnmj7wvvELH2s7lrP2K+UnJJGzLvcGyjW72k5a6ZtWV5YduWHp2p6UydKJykikc6aR3Ui4YIsnc7YHEqF1gAAAQE+d/dHhvjv09YRvOG+O/HelcSvTc53/jvecNz5/wAgJ4AArV7OkNHifHvq+Vx3+T/7cjPNW6yGWfwlk9krn/sdll1pc0j+Ix0a3dyL+z/yZNr+gRbpKLKu/wAspCGN3nOhoQlCbpzVIWAi6l91Y3nuT17zSa+NZdtpbvcXLaS8zfcil9HXqdxUkXEhHUI2s1jLDTHCyjdFJ2VoiqUqjxFNyE2yV72Pe8hyDRK649mVHV/NmBfdFu1WsNircqvr8/MWD2hSKj5Wyy9JW6rWh9dn83hmfyDl2ybkO/XZNI9yVx1F2kosCqeAfUmdfcFqNtsGK5rbKdr171Tfn0bGfcG98L45m3ch37OdoyqN/gyuRo5+Sdg9N2C13OPrc0lKQM7aJOVXZFgWTNJn0PRtquVZ5t+eWvKNXqkXds+u8WeHslblyK/pnrXqqTls4buWqreQipeLft0nbB+0WQfR75BJy2VScJJqFDFfmzyvnnmKFsyFZmr/AKJer7KNJjS9r2a1Hv8As+luoZp2Iqje53ddlHqPoik10qcbDsG7dsxYtinOVLrly7cOAsqAAACBFc6WLjSm50pisGfDF7zvO87xunzvO87+PO86AngACiv3Cc8tl/wpr/AmMrN3qtWh+4pNYiq89nf5Pcr7mWj4lU42ZdNF0EKjU2Ni1VtIzM4771nFxLFwsrz45zvA167P5V3htsplKWT0jM29vSt3qWCzNT9HaJS61U69GVnwnUqJOmjmew1bPKhV2tha2mVl4bqBHVgJHLqHjpRZBmmAyX64rj5ztO9SFI8rvpWAveR17Bbxs0hg03f6wlpsvKMLihoS2c5tTb1su0KZvSJ5stHyTWBNAnm237WtNxx0F1UA5nw3Walmvp/VKjkGINadkNlj0LFX9HsvmP0Fk2hqxNcxHy5lUXnxpq+YFm1PhWh7Xl1jnpRJSadGlXD5ms3a9X69OgFrvf8Aj2ma5icW5x6txt40bLbsTSK7QZCejqotei9ot8zubrkHapr6YKAtKld0J25izyCjWNdv2yTN28YNnKr9sFi8Gp8lnmG4zQJlo1YTFHyjO6fKsWKiCrJlJVmoQ8K+aM1W3/zKNWzpkciZk/8Ax0hedL+HwAyuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/9k="},bda8:function(t,e,a){},be0b:function(t,e,a){t.exports=a.p+"img/nav.7c374018.jpg"},be68:function(t,e,a){},be80:function(t,e,a){},bea2:function(t,e,a){},bf0bd:function(t,e,a){"use strict";a("650e")},bf32:function(t,e,a){"use strict";a("7f69")},bf45:function(t,e,a){t.exports=a.p+"img/h5_address_list_empty_icon.adb5d9b4.png"},bf6c:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1),a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:"personal_center",platform:"mini_app",routerType:"applet"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"applet-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[a("div",{staticClass:"scroll-view"},[a("img",{staticClass:"bg-image",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/185617/b42a3ee6ffa0ea70a3088e68e0d33dc3.jpg"}}),t.compdata&&t.compdata.length>0?a("img",{staticClass:"default-avatar-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_default_avatar").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-pending-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_order_pending_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-paid-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_order_paid_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-shipping-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_order_shipping_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-completed-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_order_completed_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"order-canceled-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_order_canceled_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"user-center-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_user_center_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-address-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_address_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"customer-service-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_customer_service_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-comment-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_comment_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"share-commission-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_share_commission_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"rec-to-friend-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_koc_promotion_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"app_my_award_icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_my_award_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?a("img",{staticClass:"homepage-security-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_homepage_security_icon").config_value,alt:""}}):t._e(),a("div",{staticClass:"list-wrapper"},[t.bottomTerms.length?a("div",{staticClass:"list-box"},t._l(t.bottomTerms,(function(e,o){return a("div",{key:o,staticClass:"list-item"},[t._v(t._s(e.title))])})),0):a("div",{staticClass:"list-box"},[a("div",{staticClass:"list-item"},[t._v("此处为底部条款文案")])]),a("div",{staticClass:"nav-box"})])]),a("img",{staticClass:"bottom-navigation",attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/15741/493fb15dbd917d5c27656c487dabf046.jpg",alt:""}})])])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("个人中心")]),a("personalCenterForm",{ref:"personalCenterForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet",globalConfig:{client:3}},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.initFormItem(),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},initFormItem:function(){this.compdata.forEach((function(t){t.isChange=!1}))}}},h=f,g=(a("a62b"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"0ca543a7",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],personalCenterForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},bottomTerms:function(){var t=Object(w["a"])(this.compdata,"miniapp_user_bottom_terms").config_value;return t?JSON.parse(t):[]}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.personalCenterForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.personalCenterForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("fce5"),Object(g["a"])(k,o,i,!1,null,"694e81c6",null));e["default"]=x.exports},bf72:function(t,e,a){"use strict";a("2521")},bf9b:function(t,e,a){"use strict";a("1d4d")},bfd1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHkAAAB5CAYAAAAd+o5JAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAhbSURBVHhe7Z1pyE1bGMdf80xJGTJPmVP4ZPpAhIyZkjGZQiFkTvIBkQwliS/4hFCKZMoHZCqZhzJknjJkpnX7r3e5e599/8c5+7zvWvtc6/nXL13r2etZ+/yds/fZ6znPLVCiv17a5IKCAuFvRkz2ADHZA8RkDxCTPUBM9gAx2QPEZA8Qkz1ATPYAMdkDxGQPEJM9QEz2ADHZA8RkDxCTPUBM9gAx2QPEZA8Qkz1ATPYAMdkDxGQPEJPjU6FCBVW7dm1Vvnx5Op535IPJdevWVevXr0+he/fuNNY1lStXVoMHD1bbtm1Td+7cUR8/fsRL9q8+fPigbt26pbZs2aL69++vKlasSOdJFCyUDjikQ4cO+gULa9asWTTWFWXLllVz5sxRb9++NSvKTi9fvlTTp09XZcqUofMmAhZGBxySbya3aNFC3b1716wkN928eVM1bdqUzu8cLIgOOCSfTO7YsaN69eqVWUXR9OLFC31uLI9TsBg64JB8MblJkybq/fv3ZgWpunr1qtqwYYMaP368at++vb5Wt2vXTo0ePVqtXr1aXbx40USm6t27d6pRo0Y0nzOwEDrgkHwwuXTp0urcuXMme6rWrl2rx9lxvylVqpRavny5+vXrlzkqEObNdLxVsAg64JB8MHnevHkmcyC8CwcNGkTj04FvBc+ePTMzBJo7dy6NdwIWQAcckrTJuJN+8uSJyRxoxIgRND4Tw4cPNzMEwvyJ3XFjAXTAIUmbPGbMGJM10JUrV1SJEiVofCZwHI6PCtdvFm8dJKcDDkna5L1795qsgQYMGEBjswXHR7Vnzx4aax0kpwMOSdrk58+fm6yFunfvHo2Ly+PHj82MhcK1msVZB8npgEOSNLlx48YmY6BDhw7R2LicOnXKzBgI+VisVZCYDjgkSZO7du1qMgbatGkTjY3Ljh07zIyBunTpQmOtgsR0wCFJmjxw4ECTMdDs2bNpbFyWLFliZgyEfCzWKkhMBxySpMl4ghXVkCFDaGxccDcdFfKxWKsgMR1wSJImjxw50mQMVFxGYDcqKuRjsVZBYjrgkCRN7tWrl8kYaMWKFTQ2LuvWrTMzBkI+FmsVJKYDDknSZOw6RbVr1y4aG5f9+/ebGQPhXFmsVZCYDjgkSZMrVaqkfvz4YbIW6syZMzQ2LtGnXsiDfCzWKkhOBxySpMng/PnzJmuhPn/+rGrVqkVjswXHf/361cxYKORhsdZBcjrgkKRNXrNmjckaaOPGjTQ2WzZv3mxmCoQ8LNY6SE4HHJK0yc2aNfvPPvC3b99U/fr1aXwmGjZsqI8PC/MjD4u3DhZABxyStMngwIEDJnMg/F3cslsUB+zbt8/MEAhzsXgnYAF0wCH5YHKbNm3Uly9fTPZAly9fzrogD2U+rLoE1+a2bdvSY5yARdABh+SDyWDmzJkme6pQ9zVx4kTVoEEDehzqxjGOShKmGTNm0OOcgUXQAYcwk4uihw8f0jzZwDYVwkId9okTJ3SxPf588+aNGeHavn07zeMULIQOOCSfTAarVq0yMxVNK1eupPM7B4uhAw7JN5MBNilQPJCL8HOauAWAVsGi6IBD8tFkgMK7adOm6c3/6FOxqL5//65OnjyppkyZkmz5LQMLpANCCtWqVVN9+/bVN1gLFy7UBfX4E//dp08fVaVKFXpcXiAme4CY7AFisgeIyR4gJnuAmOwBYrIHiMkeICZ7wP/F5KpVq6oaNWrQMddIH69iAI8Ihw0bpnbu3Knu37+fspn/6dMndePGDXX48GHdO2vo0KGqZMmSdJ7iQPp4FTPYEEDvrHTNWdLp+vXratSoUbpvB5s3F6SPlwXQeQfv0KLo9u3bORffhZE+XhZo1aqVevr0qX5xiioUtOMjluXJBunjZYE6derojzims2fP6rZJuCaiSA7Xu+bNm6sePXrov8eLyHTw4MGcrtPSx8sCaKBy9OhR/WKE9fPnT/3b3kxGlStXTi1evNgclSps9rNj0iF9vCwxadIk/SKE9fr1a9WtWzcan46lS5eaowOdPn2axqZD+nhZAO9SVkOF8hkWn4nouxDvqJo1a9LYKNLHyxKsjQO+CuX6NQhlOFFl+w9G+nhZYvfu3frEw+rXrx+NzQb8JHTRokUpZNuLS/p4WQIVlWE9ePCAxrlA+nhZoF69evqkwzp27BiNtY308bJE586d9QmHtXXrVhprG+njZQl2vZo/fz6NDYNdKDxBypbWrVvTecJIHy9LjBs3Tp9wWNhNYrFhJk+ebKKzE54fs3nCSB8vS2DHKCp8jWGxYWyYLH28LNG7d299wmHhqRWLDWPDZOnjZYlOnTrpEw4LNyksNgw2KrARkI5op4BsTJY+XpbADk70V4L4RSCLjQNMDSsbk6WPl0UuXLigT/y38Iv9opbO5GIykD5elmC9sxYsWEBjsyVXk6WPlyVQGhPde0U9FX4HzOKzIVeTpY+XRdiNCZ425br7k6vJQPp4WaJly5b6+hcVbsLStVNKR/Xq1dWjR4/MDIWKY7L08bLI1KlT9QsRFeqZsR+MzYw/vbNRZ4WaaPaPJY7JQPp4WYTdpISFgnZ8D0axPf4H2vg4vHTpUsYeWteuXaP5/oT08bLIsmXL9ItSXDp+/LiuvmS5MiF9vCyC7jooASqKUDo7duxYOn8cpI+XRVDjNWHCBHXkyBF6I8SEX07gYzZulWcmpI+XA/AErGfPnnprEiWz+BjF5gH2e7FThI0O3FWzY4sb6eMl5DdisgeIyR4gJnuAmOwBYrIHiMkeICZ7gJjsAWKyB4jJHiAme4CY7AFisgeIyR4gJnuAmOwBYrIHiMkeICZ7gJjsAWKyB4jJHiAme4CY/LdToP4B3gFs8mGcGHIAAAAASUVORK5CYII="},c04e:function(t,e,a){t.exports=a.p+"img/pc-award-home-tab.8fab4bda.png"},c09d:function(t,e,a){"use strict";a("5a32")},c09e:function(t,e,a){"use strict";a("66c9")},c11d:function(t,e,a){t.exports=a.p+"img/h5_favorite_no_result_icon.6d704d03.png"},c155:function(t,e,a){},c1b3b:function(t,e,a){t.exports=a.p+"img/miniapp_detail_favorite_icon.57e5a92c.png"},c26e:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=i;var o=void 0;function i(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var a=document.createElement("div"),i=a.style;i.position="absolute",i.top=0,i.left=0,i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",a.appendChild(e),document.body.appendChild(a);var r=e.offsetWidth;a.style.overflow="scroll";var n=e.offsetWidth;r===n&&(n=a.clientWidth),document.body.removeChild(a),o=r-n}return o}},c2b7:function(t,e,a){},c315:function(t,e,a){},c33a:function(t,e,a){"use strict";a("0d2b")},c443:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"staffed",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("8986")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"app_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"app_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"app_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"app_out_of_stock_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("缺货图")]),o("staffedForm",{ref:"staffedForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"perchForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("用于所有页面商品主图未完全加载时所展示的图片")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"perchForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.perchForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("9967a"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"33ce4dbe",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],staffedForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.staffedForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.staffedForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("a820"),Object(g["a"])(k,o,i,!1,null,"230a5897",null));e["default"]=x.exports},c44b:function(t,e,a){t.exports=a.p+"img/miniapp_promotion_color.cc2cce8c.png"},c47b:function(t,e,a){"use strict";a("d706")},c4b4:function(t,e,a){},c4c6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("807c"),i=l(o),r=a("d009"),n=l(r),s=a("baff"),c=l(s);function l(t){return t&&t.__esModule?t:{default:t}}i["default"].Group=n["default"],i["default"].install=function(t){t.use(c["default"]),t.component(i["default"].name,i["default"]),t.component(n["default"].name,n["default"])},e["default"]=i["default"]},c4ff:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={functional:!0,PRESENTED_IMAGE_DEFAULT:!0,render:function(){var t=arguments[0];return t("svg",{attrs:{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none",fillRule:"evenodd"}},[t("g",{attrs:{transform:"translate(24 31.67)"}},[t("ellipse",{attrs:{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}}),t("path",{attrs:{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}}),t("path",{attrs:{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}}),t("path",{attrs:{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}}),t("path",{attrs:{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"}})]),t("path",{attrs:{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}}),t("g",{attrs:{transform:"translate(149.65 15.383)",fill:"#FFF"}},[t("ellipse",{attrs:{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}}),t("path",{attrs:{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}})])])])}}},c5c8:function(t,e,a){},c653:function(t,e,a){t.exports=a.p+"img/miniapp_address_list_empty_icon.b3fa887c.png"},c6e9:function(t,e,a){"use strict";a("90b5")},c708:function(t,e,a){},c7082:function(t,e,a){},c74e:function(t,e,a){"use strict";a("337e")},c9eb:function(t,e,a){"use strict";a("3121")},ca2f:function(t,e,a){"use strict";a("9503")},ca43:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("X元任选@2x")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"X元任选"}},[a("path",{attrs:{d:"M99.6176717,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,99 L229,99",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"102",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"102",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"143",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"142",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"14",x:"139",y:"139",width:"90",height:"90",rx:"4"}}),a("path",{attrs:{d:"M207.090274,169.909726 C208.303242,171.122694 208.303242,173.118223 207.090274,174.331191 L178.331191,203.090274 C177.676541,203.744924 176.793942,204.046253 175.929447,203.994262 C175.045618,204.04265 174.145467,203.731247 173.476393,203.061105 L160.937401,190.502125 C159.687533,189.250266 159.687533,187.190754 160.937401,185.938895 C162.187268,184.687035 164.243501,184.687035 165.493369,185.938895 L176.058,196.519 L202.668809,169.909726 C203.881778,168.696758 205.877306,168.696758 207.090274,169.909726 Z",id:"形状结合",stroke:"#555555","stroke-width":"7",fill:"#555555","fill-rule":"nonzero"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},ca61:function(t,e,a){t.exports=a.p+"img/perch_1.b94998be.jpg"},ca63:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"product_list",platform:"mini_app",routerType:"applet"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[t.compdata.length>0?o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"applet-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_style").config_value?o("img",{attrs:{src:a("6c92")}}):o("img",{attrs:{src:a("a73e")}}),o("img",{staticStyle:{cursor:"pointer"},attrs:{src:a("0276")},on:{click:t.showManage}}),t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"miniapp_category_filter_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"miniapp_category_filter_style").config_value&&"1"!==t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("61bf")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value+";border-radius: 0px"},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"miniapp_category_filter_style").config_value&&"1"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("fb43")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_style").config_value?o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])]),o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_list_page_add_icon").config_value,alt:""}}):t._e()])])])})),0):o("div",{staticClass:"content-box-horizontal"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"left"},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])])]),o("div",{staticClass:"right"},[o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"miniapp_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_product_list_line_price_show").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"miniapp_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"miniapp_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'miniapp_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_list_page_add_icon").config_value,alt:""}}):t._e()])])])])})),0)])]):t._e()],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("商品列表")]),o("productListForm",{ref:"productListForm",attrs:{compdata:t.compdata},on:{changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1)])],1),o("card-page-result-show",{ref:"cardPageResultShow",attrs:{width:"1200px"}},[o("div",[o("p",[t._v(t._s("分类商品/品牌商品/搜索商品/店铺商品列表富文本内容效果展示如下:"))]),o("div",[t._v("分类商品列表说明:支持设置图片、标题、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/category/operateCategory"}}},[t._v("商品-商品管理-运营分类-内容管理tab")]),t._v(")")],1),o("div",[t._v("品牌商品列表说明:支持设置图片、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/brand/list"}}},[t._v("商品-商品管理-品牌管理")]),t._v(")")],1),o("div",[t._v("搜索商品列表说明:支持设置是否显示店铺卡片(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list?query=productSetting"}}},[t._v("设置-系统设置-商品设置-店铺卡片")]),t._v(")")],1),o("div",[t._v("店铺商品列表说明:支持设置图片、店铺LOGO、店铺名称、店铺简介、店铺描述(设置路径:"),o("span",{staticStyle:{color:"#096dd9"}},[t._v("设置-店铺管理")]),t._v(" )")]),o("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[o("img",{staticStyle:{width:"1100px"},attrs:{src:"https://img-resource.azoyacdn.com/media/b78385d8293078f5b3378a52bb10a5af/195649/a3b93484bd87a3998c56d714aea17501.jpg"}})])])])],1)},i=[],r=a("ade3"),n=(a("96cf"),a("1da1")),s=(a("ac6a"),a("0c47")),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("商品列表包含分类商品列表、品牌商品列表、搜索商品列表、店铺商品列表")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction,changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&("miniapp_list_add_cart_icon"!==t.decoration_code&&"miniapp_search_result_empty_icon"!==t.decoration_code&&Array.isArray(t.config_value)?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},changeStyle:function(t){this.$emit("changeStyle",t)},changeLayoutStyle:function(t){this.$emit("changeLayoutStyle",t)}}},h=f,g=(a("72d4"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"56ca801e",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C=a("d1e4"),k={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],productListForm:v,cardPageResultShow:C["a"]},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],styleValue:!0,layoutStyleValue:!1,colorAry:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},isShowTag:function(){if(!(this.compdata.length<1))return!0===this.findCurrentFormFunStr(this.compdata,"miniapp_product_list_new_tag_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"miniapp_product_list_sale_num_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"miniapp_product_list_tag_show").checked||!0===this.findCurrentFormFunStr(this.compdata,"miniapp_product_list_cart_num_show").checked?"height: 21px":""},boxStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box box-1":"2"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box box-2":"3"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box box-3":"4"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box box-4":"5"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box box-5":"box box-1"},cardStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box-item-1":"2"===this.findCurrentFormFun(this.compdata,"miniapp_product_list_layout_style").config_value?"box-item-2":"box-item-1"}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)},findCurrentFormFunStr:function(t,e){return Object(w["a"])(t,e).config_value[0]},changeStyle:function(t){this.compdata.forEach((function(e){"miniapp_product_list_layout_style"===e.decoration_code&&("2"===t.config_value?e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}])}))},changeLayoutStyle:function(t){this.compdata.forEach((function(e){"miniapp_product_list_style"===e.decoration_code&&("5"===t.config_value?e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))},showManage:function(){this.$refs.cardPageResultShow.showModal()}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(e,o){e.index=o,e.isChange=!1,e.sizeTip=Object(y["b"])(e),e.config_value?("miniapp_list_page_add_icon"!==e.decoration_code&&"miniapp_search_result_empty_icon"!==e.decoration_code&&Array.isArray(JSON.parse(e.config_value))&&(e.config_value=JSON.parse(e.config_value),e.initialValue=[],e.config_value.map((function(t){t.checked&&e.initialValue.push(t.value)}))),"miniapp_list_page_add_icon"===e.decoration_code&&(e.isShowAddImg=a.findCurrentFormFun(t.data.rows,"miniapp_product_list_cart_show").config_value[0].checked,e.required=a.findCurrentFormFun(t.data.rows,"miniapp_product_list_cart_show").config_value[0].checked),e.isEmpty=!1,a.$refs.productListForm.form.setFieldsValue(Object(r["a"])({},"".concat(e.decoration_code),a.compdata[o].config_value))):e.isEmpty=!0,"miniapp_product_list_style"===e.decoration_code&&(a.styleValue="2"===e.config_value&&"2"===e.config_value),"miniapp_product_list_layout_style"===e.decoration_code&&(a.layoutStyleValue="5"===e.config_value&&"5"===e.config_value)})),a.compdata.forEach((function(t){"miniapp_product_list_layout_style"===t.decoration_code&&(a.styleValue?t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}]),"miniapp_product_list_style"===t.decoration_code&&(a.layoutStyleValue?t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))})))}));case 4:return t.next=6,Object(p["c"])({config:"miniapp_main_color,miniapp_promotion_color,miniapp_secondary_color,miniapp_highlight_color,miniapp_sale_price_color"}).then((function(t){t&&-400!==t.status&&(a.colorAry=t.data.rows)}));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.productListForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},x=k,S=(a("98ef"),Object(g["a"])(x,o,i,!1,null,"37263b23",null));e["default"]=S.exports},cac6:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAGQUlEQVRYCdWZa0xcVRDHWZ4CVlqa8mw1moYGm2rCI6KJRuPbVmvpB01tbTWR51KgarDxEYhavzSBQJGCVmNqK2JsIhYTrUjaamIDGG1aNU18NCASjQ2igCyP9Tfbe24Odx/c3RUab3Jy5syZOfO/c+acmbsbEfE/eRzh4CwqKopxOBy3sMYG2nVutzudcRr0JO1XafBORkZGHt2/f/8ZxiE/IQGtqqpaOj4+/hRWnbQkm9bPAfiltLS0Q7W1tbM2dUyxoIEWFxeX4aWXWWGpuUoQBB7/Fv3H29raTgWhFmEbaHV1dTxebMPIVt0AhgfgHcVbx+D/PDs7OwwdB0/CIJt+Pfy76C/X9FzI7CQcWjVeQNIW0IqKijiXy3UMYzdrq/2AsTo7W1laWrpsZmbmSYBXWgC/gGdf1Nb0S84LlIUdbPdhVnhYW+WtxMTE0vr6+gmNNy9ZVla2enp6+giC65Qw4Le1tra+rcb++nmBlpSUONnOJm0B217QdEySmyIBcF044FaD6YqJiVnX3Nx8zhTyQUT64Jks4jIZkHWKgYHX7G6V0rH26I/Hx8dvgv+dMReLl/da5azjgEA5PLtRSDaUzqenp++0LhDKuKGhYQS9x2hu0ce79xNech/7ffwC5a6LZIFHlCberIH3jxqH2xvX0zvaOnNuE43vIf0CHR4evhGJdEPhAt5836pMvK2nDcvdap2TMfFdLPOc+gd8zUdFRbUpPk55sKOjI0qNrb1foCjepoTx5gd4c1qNVc/1lAqdiuw+QG1WfOkBvxH+qzJPnEta9XpSU1NPwvzdmFjR09Oz1kvIYAQCulIpYfC0ovW+paXlTcbiaQcyB/HeDTIPyDzGh2mR8pLsxuvCtz6SSpk/q/EzNXoO6RcoC+hKv8zRMgbIuLlPtzE8Bah4xp2AlZ34kCbXUB/8LQLIUPHVmWuTFHSbc2T9AkXqCiXJFo8q2tonJSVNxsbGFsI/D6gU+s/o0wA5AH9TRkaGy6qjj5E110bHtKnLCB0IqFXWa8wW3zc0NDRKehWvXKULAGDV5OTkAPNTyL2hz4VChwUUDyzHaIINw2a825D1KRIWUKqfg6yaSQpcIw3gKme3a7wsDtM9Pq0HwYwOQtZLlKpqJdtbQwpUsZVvCOXAe1ZoQsDN9r8H2WXMhdSFBXRqamoLVp1gsRrPgpelmHhaXuDSASWzHOAyj1anFXB3AiiH9jW8jwUoPHmLTqHDeXx6VKr5sbGx1WphwEgR4fVQmv0Bc4+a4A5NhM4B5JfUmM8ofqAe2ZGL7+KRMutUq47XYXI6nVcD8lMEMwzhES7101bF/2oM0ONqLQDv4CprIEFcpniqnwMUoYe4E79h8iZDwM1l77RbySPr+STGoO1PY9LwJ9hqV4DQreTw9ZWXl5sxLnMmUIqKHYzlk2MJLYI3lbS3iyvokIztPPKxRjbKpIRrtiMvMthxk72203+k6azloJ6g6lqjeA4h5Dt9YmJCUqC6Zn6C/SgGP1eCC91jW77NKrHzCk1tfRcY5MeNix4F5N06SGIybzFBChDxLDYbuEn05CD1rifzqa2XVOh5UPiCmLygxovdE7PHwWAWKnFxccmCwQOUie8VIDxbKKWabIXiLVYv3mP7n1O7K4AbGxs9ZaAHjHwCdHd3n0XADF7AjdGmFgukYUe2OVazWU847JKx6TVOWAGFq1wVnlOvCV8q8quEhITbjS/WCPNjqq+vb7CgoKCTLCQX/Sqa/maLBpbt/o22D4NPkPn+VIZNjyqG9BKfeHgFoM0X0ecXkB5nq01wC2hn4Zb26dH5zHE6n2d7NtP2kI065pMnd8eSFtuQv5e2G52gP03UPTqfLXOeX+Tkd846wuN6QqOd62SrOemDkALDKJy3o5OCjucU+xANyAo6Bnt7e125ubl3sOqVNNmRwry8vIz8/PwzHEizHARgdHZ29obR0dEjyKgiRzJQQ39/f9CpOaStp7JZzqfGCTx0LSDUIwWyJA65oJcASKr8ZWpSenh7qVOf1nl26ZCAyuJUWykAkZ/KN9ow9hcyNZzoFhuyPkVCBqpWI0YLoYsALOEwJ5TwoHj3XUq/+qampkGlE0ofNlBl1PhL5xqKZ0kYf9MPpqSk/EisSl0b9vMvCD5+YSLZE34AAAAASUVORK5CYII="},cb55:function(t,e,a){"use strict";a("81e3")},cbc2:function(t,e,a){t.exports=a.p+"img/hotspots-h5.1b1f0579.jpg"},cbcf:function(t,e,a){"use strict";a("5811")},cbe4:function(t,e,a){},cc0c:function(t,e,a){t.exports=a.p+"img/app_bottom_tab_brand_checked_icon.4ce7f276.png"},cc1e:function(t,e,a){"use strict";a("e78f")},cc46:function(t,e,a){"use strict";a("df48")},ccbd:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"payment","active-name":"收银台"}},[a("template",{slot:"content"},[a("div",{staticClass:"payment-container"},[a("img",{attrs:{src:"https://img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/56922/cc81d71ebbdca7960b58af3f5eac6611.png",alt:""}}),a("div",{staticClass:"render-content"},[a("p",{directives:[{name:"show",rawName:"v-show",value:!t.getPaymentDesc,expression:"!getPaymentDesc"}],staticClass:"text"},[t._v("此处显示收款主体说明")]),a("p",{directives:[{name:"show",rawName:"v-show",value:t.getPaymentDesc,expression:"getPaymentDesc"}],staticClass:"text"},[t._v(t._s(t.getPaymentDesc))])])])]),a("template",{slot:"form"},[a("c-form",{ref:"paymentForm",attrs:{compdata:t.compdata}})],1)],2)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("e9e8"),c=a("aaa9"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"paymentForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},d=[],u=a("ce9e"),p=a("6077"),m={mixins:[u["a"]],data:function(){return{form:this.$form.createForm(this,{name:"paymentForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.paymentForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(p["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},f=m,h=(a("fd51"),a("2877")),g=Object(h["a"])(f,l,d,!1,null,"2c899cbe",null),_=g.exports,v=a("0b75"),b=a("ea1b"),y={components:{"c-header":s["a"],"c-sidebar":c["a"],"c-form":_},data:function(){return{compdata:[]}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(v["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.paymentForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{getPaymentDesc:function(){return Object(b["a"])(this.compdata,"h5_cashier_tips").config_value}}},w=y,C=(a("d942"),Object(h["a"])(w,o,i,!1,null,"be2aa78c",null));e["default"]=C.exports},cce4:function(t,e,a){"use strict";a("3eae")},ccf0:function(t,e,a){},cd6f:function(t,e,a){},cd9c:function(t,e,a){"use strict";a("d027")},cdc6:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"product_detail","active-name":"商品详情"}},[a("template",{slot:"content"},[a("page-render",{on:{onSet:t.onSet}})],1),a("template",{slot:"form"},[a("c-form",{ref:"cForm"})],1)],2)],1)},i=[],r=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=a("2f62"),s=a("e9e8"),c=a("aaa9"),l=a("ecd9"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("page-form",{ref:"pageForm"})],1)],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=a("37ab"),m=a("6077");function f(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function h(t){for(var e=1;e0?o("img",{staticClass:"hot_icon_1",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_hot_tag_img").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"hot_icon_2",attrs:{src:t.findCurrentFormFun(t.compdata,"pc_hot_tag_img").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("品牌列表")]),o("brandListForm",{ref:"brandListForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("6ea3"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"brandListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"pc"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"brandListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.brandListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("9f96"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"72f8ef25",null),v=_.exports,b=a("de6a"),y=a("6de6"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],BrandListForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/pc/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.brandListForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.brandListForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("bf9b"),Object(g["a"])(k,o,i,!1,null,"416dc416",null));e["default"]=x.exports},cf56:function(t,e,a){},cf66:function(t,e,a){t.exports=a.p+"img/page-footer.8c920431.jpg"},cfb9:function(t,e,a){t.exports=a.p+"img/pc_cart_loading.f82429c4.png"},d009:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonGroupProps=void 0;var o=a("6042"),i=l(o),r=a("73c8"),n=a("7b44"),s=l(n),c=a("bad7");function l(t){return t&&t.__esModule?t:{default:t}}var d={prefixCls:s["default"].string,size:{validator:function(t){return["small","large","default"].includes(t)}}};e.ButtonGroupProps=d,e["default"]={name:"AButtonGroup",props:d,inject:{configProvider:{default:function(){return c.ConfigConsumerProps}}},data:function(){return{sizeMap:{large:"lg",small:"sm"}}},render:function(){var t,e=arguments[0],a=this.prefixCls,o=this.size,n=this.$slots,s=this.configProvider.getPrefixCls,c=s("btn-group",a),l="";switch(o){case"large":l="lg";break;case"small":l="sm";break;default:break}var d=(t={},(0,i["default"])(t,""+c,!0),(0,i["default"])(t,c+"-"+l,l),t);return e("div",{class:d},[(0,r.filterEmpty)(n["default"])])}}},d019:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("41b2"),i=f(o);e["default"]=h;var r=a("2b0e"),n=f(r),s=a("012f"),c=f(s),l=a("a375"),d=a("baff"),u=f(d),p=a("0464"),m=f(p);function f(t){return t&&t.__esModule?t:{default:t}}function h(t){var e=document.createElement("div"),a=document.createElement("div");e.appendChild(a),document.body.appendChild(e);var o=(0,i["default"])({},(0,m["default"])(t,["parentContext"]),{close:d,visible:!0}),r=null,s={props:{}};function d(){f.apply(void 0,arguments)}function p(t){o=(0,i["default"])({},o,t),s.props=o}function f(){r&&e.parentNode&&(r.$destroy(),r=null,e.parentNode.removeChild(e));for(var a=arguments.length,o=Array(a),i=0;i0?a("a-form",{ref:"helpCustomerForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"helpCustomerForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.helpCustomerForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("ca2f"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"4c8da922",null),g=h.exports,_=a("dd55"),v=a("ea1b"),b=a("de6a"),y={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$route.params.id,a={decoration_group_id:e},t.next=4,Object(u["f"])(a).then((function(t){t&&-400!==t.status&&(o.compdata=t.data.rows,o.$nextTick((function(){o.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(o,t),o.$forceUpdate(),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{groups:function(){var t=Object(v["a"])(this.compdata,"miniapp_user_help_service").config_value;if(t){var e=JSON.parse(t).tabs;return e.filter((function(t){return t.status}))}return[]},getAdvertise:function(){var t=Object(v["a"])(this.compdata,"miniapp_user_help_image").config_value;return t?JSON.parse(t):[{img:""}]}},beforeRouteLeave:function(t,e,a){var o=this.$refs.helpCustomerForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},w=y,C=(a("4934"),Object(f["a"])(w,o,i,!1,null,"cf3b4e70",null));e["default"]=C.exports},d2e6:function(t,e,a){},d2f9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("9b57"),i=d(o),r=a("41b2"),n=d(r);e.cloneVNode=u,e.cloneVNodes=p,e.cloneElement=m;var s=a("73c8"),c=a("4d26"),l=d(c);function d(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var a=t.componentOptions,o=t.data,i={};a&&a.listeners&&(i=(0,n["default"])({},a.listeners));var r={};o&&o.on&&(r=(0,n["default"])({},o.on));var s=new t.constructor(t.tag,o?(0,n["default"])({},o,{on:r}):o,t.children,t.text,t.elm,t.context,a?(0,n["default"])({},a,{listeners:i}):a,t.asyncFactory);return s.ns=t.ns,s.isStatic=t.isStatic,s.key=t.key,s.isComment=t.isComment,s.fnContext=t.fnContext,s.fnOptions=t.fnOptions,s.fnScopeId=t.fnScopeId,s.isCloned=!0,e&&(t.children&&(s.children=p(t.children,!0)),a&&a.children&&(a.children=p(a.children,!0))),s}function p(t,e){for(var a=t.length,o=new Array(a),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],o=t;if(Array.isArray(t)&&(o=(0,s.filterEmpty)(t)[0]),!o)return null;var r=u(o,a),c=e.props,d=void 0===c?{}:c,p=e.key,m=e.on,f=void 0===m?{}:m,h=e.nativeOn,g=void 0===h?{}:h,_=e.children,v=e.directives,b=void 0===v?[]:v,y=r.data||{},w={},C={},k=e.attrs,x=void 0===k?{}:k,S=e.ref,A=e.domProps,T=void 0===A?{}:A,F=e.style,O=void 0===F?{}:F,j=e["class"],I=void 0===j?{}:j,P=e.scopedSlots,E=void 0===P?{}:P;return C="string"===typeof y.style?(0,s.parseStyleText)(y.style):(0,n["default"])({},y.style,C),C="string"===typeof O?(0,n["default"])({},C,(0,s.parseStyleText)(C)):(0,n["default"])({},C,O),"string"===typeof y["class"]&&""!==y["class"].trim()?y["class"].split(" ").forEach((function(t){w[t.trim()]=!0})):Array.isArray(y["class"])?(0,l["default"])(y["class"]).split(" ").forEach((function(t){w[t.trim()]=!0})):w=(0,n["default"])({},y["class"],w),"string"===typeof I&&""!==I.trim()?I.split(" ").forEach((function(t){w[t.trim()]=!0})):w=(0,n["default"])({},w,I),r.data=(0,n["default"])({},y,{style:C,attrs:(0,n["default"])({},y.attrs,x),class:w,domProps:(0,n["default"])({},y.domProps,T),scopedSlots:(0,n["default"])({},y.scopedSlots,E),directives:[].concat((0,i["default"])(y.directives||[]),(0,i["default"])(b))}),r.componentOptions?(r.componentOptions.propsData=r.componentOptions.propsData||{},r.componentOptions.listeners=r.componentOptions.listeners||{},r.componentOptions.propsData=(0,n["default"])({},r.componentOptions.propsData,d),r.componentOptions.listeners=(0,n["default"])({},r.componentOptions.listeners,f),_&&(r.componentOptions.children=_)):(_&&(r.children=_),r.data.on=(0,n["default"])({},r.data.on||{},f)),r.data.on=(0,n["default"])({},r.data.on||{},g),void 0!==p&&(r.key=p,r.data.key=p),"string"===typeof S&&(r.data.ref=S),r}},d388:function(t,e,a){"use strict";a("2851")},d3fe:function(t,e,a){"use strict";a("b2ef")},d403:function(t,e,a){t.exports=a.p+"img/pc_main_button_default_color.7277da18.png"},d431:function(t,e,a){"use strict";a("8946")},d46a:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("a0de"),i=u(o),r=a("8726"),n=u(r),s=a("ba1d"),c=u(s),l=a("0978"),d=u(l);function u(t){return t&&t.__esModule?t:{default:t}}e["default"]={locale:"en",Pagination:i["default"],DatePicker:n["default"],TimePicker:c["default"],Calendar:d["default"],global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}}},d4c7:function(t,e,a){"use strict";a("7a2a")},d4cc:function(t,e,a){"use strict";a("ce9a")},d4e6:function(t,e,a){"use strict";a("253ce")},d4ef:function(t,e,a){"use strict";a("4b4a")},d4fa:function(t,e,a){"use strict";a("47aa")},d59d:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("小程序")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"staffed",platform:"mini_app",routerType:"applet"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"applet-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("1887")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-1",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-2",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-3",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_out_of_stock_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"perch-img-4",attrs:{src:t.findCurrentFormFun(t.compdata,"miniapp_out_of_stock_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("缺货图")]),o("staffedForm",{ref:"staffedForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("0c47"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"staffedForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"applet"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"staffedForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.staffedForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("d6ee"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"26d7fa90",null),v=_.exports,b=a("de6a"),y=a("dd55"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],staffedForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/applet/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(t),t.config_value?(t.isEmpty=!1,a.$refs.staffedForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.staffedForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("663c"),Object(g["a"])(k,o,i,!1,null,"6e70344f",null));e["default"]=x.exports},d5aa:function(t,e,a){t.exports=a.p+"img/pc-expo.4636b847.jpg"},d5af:function(t,e,a){},d61d:function(t,e,a){},d6ea:function(t,e,a){t.exports=a.p+"img/app_sale_price_color.599165bb.png"},d6ee:function(t,e,a){"use strict";a("1b81")},d706:function(t,e,a){},d7ba:function(t,e,a){"use strict";a("9cb6")},d7c3:function(t,e,a){},d80d:function(t,e,a){},d8a2:function(t,e,a){"use strict";a("4c9b")},d8a9c:function(t,e,a){},d8ac:function(t,e,a){"use strict";a("123c")},d8b5:function(t,e,a){t.exports=a.p+"img/pc-award-home.b5d74624.png"},d8cf:function(t,e,a){"use strict";a("3a41")},d8e0:function(t,e,a){},d914:function(t,e,a){"use strict";a("549b9")},d936:function(t,e,a){"use strict";a("9589")},d942:function(t,e,a){"use strict";a("ac44")},da23:function(t,e,a){},dab3:function(t,e,a){},dad7:function(t,e,a){"use strict";a("8494")},dad8:function(t,e,a){t.exports=a.p+"img/miniapp_comment_no_result_icon.338a12a1.png"},db71:function(t,e,a){"use strict";a("6373")},dc1b:function(t,e,a){},dc47:function(t,e,a){},dcba:function(t,e,a){"use strict";a("0ca2")},dcda:function(t,e,a){},dd55:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return r}));a("55dd");var o={miniapp_main_color:{required:!0,sort:"color",isShowEffect:!0,title:"网站主色效果展示如下:",des:"用于商品分类选中颜色、品牌列表选中颜色、提交订单按钮颜色、登录按钮颜色、优惠券绑定按钮颜色"},miniapp_promotion_color:{required:!0,sort:"color",isShowEffect:!0,title:"促销色效果展示如下:",des:"用于购物车选中按钮颜色和领券结算按钮颜色、确认订单页提交订单颜色、收银台立即支付颜色、订单列表页去付款按钮颜色、品牌列表hot标签颜色"},miniapp_sale_price_color:{required:!0,sort:"color",isShowEffect:!0,title:"销售价格文字颜色效果展示如下:",des:"用于商品销售价格文字显示颜色,如销售价格低于销售原价则取促销色显示"},miniapp_secondary_color:{required:!0,sort:"color",isShowEffect:!0,title:"辅助色效果展示如下:",des:"用于购物车页顶部/底部提示的背景色"},miniapp_highlight_color:{required:!0,sort:"color",isShowEffect:!0,title:"突出色效果展示如下:",des:"用于消息入口角标颜色、购物车角标颜色、搜索页推荐搜索文字颜色、购物车提示文字颜色、我的订单角标颜色"},miniapp_product_list_layout_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]},miniapp_category_filter_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"下拉"},{value:"2",name:"平铺"}]},store_card_show:{sort:"checkbox"},miniapp_product_list_style:{sort:"styleRadio",arrayValue:[{value:"2",name:"竖排"},{value:"1",name:"横排"}]},global_product_discount_style:{sort:"discountSort"},miniapp_product_list_discount_tag_show:{sort:"checkbox"},miniapp_product_list_tag_show:{sort:"checkbox"},miniapp_product_list_new_tag_show:{sort:"checkbox"},miniapp_product_list_sale_num_show:{sort:"checkbox"},miniapp_product_list_cart_num_show:{sort:"checkbox"},miniapp_product_list_brand_show:{sort:"checkbox"},miniapp_product_list_brand_cn_show:{sort:"checkbox"},miniapp_product_list_title_show_style:{sort:"styleRadio",arrayValue:[{value:"1",name:"一行"},{value:"2",name:"二行"}]},miniapp_product_list_line_price_show:{sort:"checkbox"},global_is_show_cny:{sort:"checkbox"},miniapp_product_list_promotion_tag_show:{sort:"checkbox"},miniapp_product_list_store_name_show:{sort:"checkbox"},miniapp_product_list_cart_show:{sort:"checkbox"},miniapp_list_page_add_icon:{required:!0,size:"120x120",width:"120",limit:"1MB",apply:"jpg/png/gif"},miniapp_search_result_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"数据为空图标效果展示如下:",des:"用于页面数据为空场景的显示"},miniapp_detail_homepage_icon:{required:!0,size:"72x74",width:"72",limit:"1MB",apply:"jpg/png/gif"},miniapp_detail_not_in_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif"},miniapp_detail_favorite_icon:{required:!0,size:"48x50",width:"48",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"已收藏图标效果展示如下:",des:"用于商品已收藏状态的显示"},miniapp_detail_customer_service_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},miniapp_detail_cart_icon:{required:!0,size:"72x72",width:"72",limit:"1MB",apply:"jpg/png/gif"},mniniapp_share_image_site_icon:{required:!0,size:"330x90",width:"330",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"图片分享-站点logo效果展示如下:",des:"用于图片分享里站点logo的展示"},miniapp_detail_promotion:{required:!1,sort:"activeInfomation",isSelectLink:!0,isShowEffect:!0,title:"活动信息效果展示如下:",des:"用于商品详情活动信息的展示"},miniapp_wechat_official_subscribe_url:{required:!1,sort:"link",requireMessage:"请输入",isShowEffect:!0,title:"到货提醒服务号链接效果展示如下:",des:"用于小程序商品详情关注公众号的获取到货提醒文章链接"},miniapp_cart_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif"},miniapp_default_avatar:{required:!0,size:"156x156",width:"156",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_order_pending_icon:{required:!0,size:"98x96",width:"98",limit:"1MB",apply:"jpg/png/gif"},miniapp_order_paid_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_order_shipping_icon:{required:!0,size:"98x96",width:"98",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_order_completed_icon:{required:!0,size:"98x96",width:"98",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_order_canceled_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_rma_icon:{required:!0,size:"96x96",width:"96",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"售后图标-效果展示如下:",des:'用于开启"前台售后入口"的显示'},miniapp_user_center_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_address_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_customer_service_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_comment_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_share_commission_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_my_award_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_koc_promotion_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_homepage_security_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif"},miniapp_order_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"订单列表页-数据为空图标-效果展示如下:",des:"用于订单列表页页面数据为空场景的显示"},miniapp_coupon_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"我的优惠券页-数据为空图标-效果展示如下:",des:"用于我的优惠券页页面数据为空场景的显示"},miniapp_address_list_empty_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"地址列表页-数据为空图标-效果展示如下:",des:"用于地址列表页页面数据为空场景的显示"},miniapp_favorite_no_result_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"收藏夹-数据为空图标效果展示如下:",des:"用于收藏夹列表页页面数据为空场景的显示"},miniapp_comment_no_result_icon:{required:!0,size:"362x360",width:"362",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"暂无评价商品图标效果展示如下:",des:"用于评价晒单页页面数据为空场景的显示"},miniapp_no_available_ticket_icon:{required:!0,size:"360x360",width:"360",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"暂无可使用的电子票图标效果展示如下:",des:"用于卡券-电子票页面数据为空场景的显示"},miniapp_guide_img:{required:!0,size:"915x1194",width:"915",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"微信小程序引导图效果展示如下:",des:"用于微信小程序个人中心页引导添加弹窗的图片样式"},amp_guide_img:{required:!0,size:"915x1200",width:"915",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"支付宝小程序引导图效果展示如下:",des:"用于支付宝小程序个人中心页引导添加弹窗的图片样式"},miniapp_homepage_coupon_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"优惠券图标效果展示如下:",des:"用于支付宝小程序个人中心页优惠券入口的显示"},miniapp_homepage_profile_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"个人信息图标效果展示如下:",des:"用于支付宝小程序个人中心页个人信息入口的显示"},miniapp_homepage_wallet_icon:{required:!0,size:"182x180",width:"182",limit:"1MB",apply:"jpg/png/gif",isShowEffect:!0,title:"我的钱包图标效果展示如下:",des:"用于支付宝小程序个人中心我的钱包入口的显示"},miniapp_global_default_product_img:{required:!0,size:"192x192",width:"192",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},miniapp_out_of_stock_icon:{required:!0,size:"204x204",width:"204",limit:"1MB",apply:"jpg/png/gif",sort:"lgUpload"},miniapp_user_help_image:{required:!1,sort:"advertise",isSelectLink:!0,sizeTip:"尺寸750×340像素,大小不超过500KB,支持jpg/png/gif格式"},miniapp_points_center_ad_jump_url:{required:!1,sort:"bottomList",isSelectLink:!0,pointsAd:!0,hideSizeTip:!0},miniapp_user_help_service:{required:!0,size:"",sort:"conentGroup",isShowEffect:!0,des:"最多可添加10个"},miniapp_user_bottom_terms:{required:!0,sort:"bottomList",isSelectLink:!0},miniapp_type:{required:!0,sort:"select"},miniapp_site_logo_image_url:{required:!0,size:"80x80",width:"300",limit:"50KB",apply:"jpg/png/gif"},miniapp_search_icon_url:{required:!0,size:"32x32",width:"0",limit:"50KB",apply:"jpg/png/gif"},miniapp_key_placeholder:{sort:"key_placeholder"},miniapp_scan_show:{required:!1,isShowScan:!0,sort:"checkbox"},miniapp_scan_img_url:{required:!0,size:"32x32",width:"0",limit:"50KB",apply:"jpg/png/gif"},miniapp_background_color:{required:!0,sort:"color"},miniapp_searchbox_color:{required:!0,sort:"select"},miniapp_homepage_identity_icon:{required:!0,size:"182x180",width:"180",limit:"1MB",apply:"jpg/png/gif"}};function i(t){for(var e in o){var a="";if(e===t.decoration_code)return t.sort=o[e].sort,t.required=o[e].required,t.requireMessage=o[e].requireMessage,t.arrayValue=o[e].arrayValue,o[e].isShowEffect&&(t.isShowEffect=!0,t.title=o[e].title,t.des=o[e].des,o[e].isMoreRight&&(t.isMoreRight=o[e].isMoreRight,t.moreRight=o[e].moreRight)),"bottomList"!==o[e].sort&&"activeInfomation"!==o[e].sort&&"advertise"!==o[e].sort||(t.isSelectLink=o[e].isSelectLink||!1,t.pointsAd=o[e].pointsAd||!1),a=o[e].hideSizeTip?"":"0"===o[e].width?"参考尺寸".concat(o[e].size,"像素,高度固定。大小不超过").concat(o[e].limit,",支持").concat(o[e].apply,"格式"):"参考尺寸".concat(o[e].size,"像素,宽度不超过").concat(o[e].width,"像素,高度固定。大小不超过").concat(o[e].limit,",支持").concat(o[e].apply,"格式"),a}}function r(t,e){for(var a in o)if(a===e.decoration_code)return t.$set(e,"sort",o[a].sort),t.$set(e,"required",o[a].required),t.$set(e,"arrayValue",o[a].arrayValue),o[a].isShowEffect&&(e.isShowEffect=!0,t.$set(e,"title",o[a].title),t.$set(e,"des",o[a].des),o[a].isMoreRight&&(t.$set(e,"isMoreRight",o[a].isMoreRight),t.$set(e,"moreRight",o[a].moreRight))),"advertise"===o[a].sort&&t.$set(e,"isSelectLink",o[a].isSelectLink||!1),o[a].sizeTip}},dd63:function(t,e,a){},dd9f:function(t,e,a){t.exports=a.p+"img/app_secondary_color.32f56c34.png"},dda9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("46cf"),i=c(o),r=a("fcb9"),n=a("e7c4"),s=a("81b0");function c(t){return t&&t.__esModule?t:{default:t}}e["default"]={install:function(t){t.use(i["default"],{name:"ant-ref"}),(0,r.antInput)(t),(0,n.antDecorator)(t),(0,s.antPortal)(t)}}},ddb4:function(t,e,a){},ddc4:function(t,e,a){},de5d:function(t,e,a){},de97:function(t,e,a){},df29:function(t,e,a){t.exports=a.p+"img/product_detail.7e5497ed.png"},df45:function(t,e,a){"use strict";a("29f2")},df48:function(t,e,a){},df65:function(t,e,a){"use strict";a("274b")},df82:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"order_detail","active-name":"订单详情"}},[a("template",{slot:"content"},[a("div",{staticClass:"order-detail-container"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/418572/dfe3e4fc1e7bbe8c521152a0e3690f1b.jpg",alt:""}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.getAdvertise[0].img,expression:"getAdvertise[0].img"}],staticClass:"render-advertise"},[a("img",{staticClass:"advertise",attrs:{src:t.getAdvertise[0].img,alt:""}})])])]),a("template",{slot:"form"},[a("c-form",{attrs:{compdata:t.compdata}})],1)],2)],1)},i=[],r=(a("ac6a"),a("96cf"),a("1da1")),n=a("e9e8"),s=a("aaa9"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"orderDetailForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},l=[],d=a("ce9e"),u=a("6077"),p={mixins:[d["a"]],data:function(){return{form:this.$form.createForm(this,{name:"orderDetailForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.orderDetailForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(u["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},m=p,f=(a("4cad"),a("2877")),h=Object(f["a"])(m,c,l,!1,null,"35efd2fe",null),g=h.exports,_=a("0b75"),v=a("ea1b"),b={components:{"c-header":n["a"],"c-sidebar":s["a"],"c-form":g},data:function(){return{compdata:[]}},methods:{},created:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(u["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(_["a"])(a,t),t.config_value?t.isEmpty=!1:t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{getAdvertise:function(){var t=Object(v["a"])(this.compdata,"h5_block_member_ac_ad_order_detail").config_value;return t?JSON.parse(t):[{img:""}]}}},y=b,w=(a("b6c7"),Object(f["a"])(y,o,i,!1,null,"7374333a",null));e["default"]=w.exports},dfac:function(t,e,a){},dfd9:function(t,e,a){},e01c:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"nav",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[o("img",{attrs:{src:a("be0b")}}),t.compdata&&t.compdata.length>0?o("img",{staticClass:"homepage-default-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_bottom_tab_home_default_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"category-default-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_bottom_tab_category_default_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"brand-default-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_bottom_tab_brand_default_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"cart-default-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_bottom_tab_cart_default_icon").config_value,alt:""}}):t._e(),t.compdata&&t.compdata.length>0?o("img",{staticClass:"my-default-icon",attrs:{src:t.findCurrentFormFun(t.compdata,"app_bottom_tab_my_default_icon").config_value,alt:""}}):t._e()])])],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("导航")]),o("navForm",{ref:"navForm",attrs:{compdata:t.compdata}})],1)])],1)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("68dd"),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"navForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"navForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.navForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&o.items.push({id:t.id,config_value:t.config_value})})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t}}},h=f,g=(a("3dfe"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"73cabaf0",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],navForm:v},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(y["b"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.navForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.navForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},k=C,x=(a("2a92"),Object(g["a"])(k,o,i,!1,null,"c6c86722",null));e["default"]=x.exports},e0254:function(t,e,a){"use strict";a("877f")},e042:function(t,e,a){"use strict";a("ff24")},e08f:function(t,e,a){t.exports=a.p+"img/miniapp_guide_img.60b145e1.png"},e098:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},r=[],n=[];function s(){var t=document.createElement("div"),e=t.style;function a(t,a){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];for(var r in i)if(r in e){a.push(i[r]);break}}}"AnimationEvent"in window||(delete o.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete o.transitionstart.transition,delete i.transitionend.transition),a(o,r),a(i,n)}function c(t,e,a){t.addEventListener(e,a,!1)}function l(t,e,a){t.removeEventListener(e,a,!1)}"undefined"!==typeof window&&"undefined"!==typeof document&&s();var d={startEvents:r,addStartEventListener:function(t,e){0!==r.length?r.forEach((function(a){c(t,a,e)})):window.setTimeout(e,0)},removeStartEventListener:function(t,e){0!==r.length&&r.forEach((function(a){l(t,a,e)}))},endEvents:n,addEndEventListener:function(t,e){0!==n.length?n.forEach((function(a){c(t,a,e)})):window.setTimeout(e,0)},removeEndEventListener:function(t,e){0!==n.length&&n.forEach((function(a){l(t,a,e)}))}};e["default"]=d},e0ec:function(t,e,a){"use strict";a("2a30")},e154:function(t,e,a){t.exports=a.p+"img/miniapp_homepage_wallet_icon.88f2f463.png"},e17e:function(t,e,a){"use strict";a("e34a")},e1b9:function(t,e,a){t.exports=a.p+"img/product_detail.a1f8cc63.png"},e1eb:function(t,e,a){"use strict";a("6af6")},e226:function(t,e,a){"use strict";a("d7c3")},e26c:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("满减")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"满减"}},[a("path",{attrs:{d:"M99.6176717,229 L21,229 C14.372583,229 9,223.627417 9,217 L9,21 C9,14.372583 14.372583,9 21,9 L217,9 C223.627417,9 229,14.372583 229,21 L229,99 L229,99",id:"路径-3",stroke:"#555555","stroke-width":"18","stroke-linecap":"square","stroke-linejoin":"round"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"102",y:"220",width:"12",height:"18",rx:"6"}}),a("rect",{attrs:{id:"矩形",fill:"#555555",x:"220",y:"102",width:"18",height:"12",rx:"6"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"143",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"55",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"18",x:"55",y:"142",width:"42",height:"42",rx:"10"}}),a("rect",{attrs:{id:"矩形",stroke:"#555555","stroke-width":"14",x:"139",y:"139",width:"90",height:"90",rx:"4"}}),a("rect",{attrs:{id:"矩形",fill:"#555555","fill-rule":"nonzero",x:"160",y:"177",width:"48",height:"14",rx:"7"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},e29a:function(t,e,a){"use strict";a("2311")},e31f:function(t,e,a){"use strict";a("35bb")},e34a:function(t,e,a){},e373:function(t,e,a){t.exports=a.p+"img/pc-givings-home.f6b197e7.jpg"},e3ad:function(t,e,a){},e3ca:function(t,e,a){"use strict";a("8cb8")},e401:function(t,e,a){},e45b:function(t,e,a){"use strict";a("9fbed")},e4da:function(t,e,a){"use strict";a("d5af")},e50d:function(t,e,a){},e50f:function(t,e,a){"use strict";a("522c")},e561:function(t,e,a){"use strict";a("c4b4")},e563:function(t,e,a){"use strict";a("af0d")},e6022:function(t,e,a){},e62c:function(t,e,a){"use strict";a("4ba0")},e6ad:function(t,e,a){},e6ae:function(t,e,a){"use strict";a("3ad9")},e6bc:function(t,e,a){t.exports=a.p+"img/h5_sale_price_color.599165bb.png"},e74f:function(t,e,a){},e78f:function(t,e,a){},e7c4:function(t,e,a){"use strict";function o(t){return t.directive("decorator",{})}Object.defineProperty(e,"__esModule",{value:!0}),e.antDecorator=o,e["default"]={install:function(t){o(t)}}},e7dd:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("a-layout",{staticStyle:{height:"100vh"}},[o("a-layout-header",{attrs:{id:"c-header"}},[o("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[o("a-breadcrumb-item",[o("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),o("a-breadcrumb-item",[t._v("站点")]),o("a-breadcrumb-item",[o("a",{on:{click:t.toFixtrue}},[t._v("APP")])]),o("a-breadcrumb-item",[t._v("装修")])],1)],1),o("a-layout",{attrs:{id:"c-editor"}},[o("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[o("ul",{staticClass:"c-side-1"},[o("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[o("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),o("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[o("div",{staticClass:"props-panel"},[o("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),o("c-tool-group",{attrs:{activeItem:"product_list",platform:"app",routerType:"app"}})],1)]),o("a-layout",{staticStyle:{background:"#f4f9ff"}},[t.compdata.length>0?o("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[o("div",{staticClass:"app-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"app_product_list_style").config_value?o("img",{attrs:{src:a("6c92")}}):o("img",{attrs:{src:a("a73e")}}),o("img",{staticStyle:{cursor:"pointer"},attrs:{src:a("0276")},on:{click:t.showManage}}),t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"app_category_filter_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("bd58")}}),o("div",{staticClass:"filter-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"app_category_filter_style").config_value&&"1"!==t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("61bf")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value+";border-radius: 0px"},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"app_category_filter_style").config_value&&"1"===t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("div",{staticClass:"filter-box"},[o("img",{attrs:{src:a("fb43")}}),o("div",{staticClass:"line-top",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("上装")]),o("div",{staticClass:"line-middle",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value+";border-color:"+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("T恤")]),o("div",{staticClass:"line-bottom",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value},[t._v("综合"),o("span",{staticClass:"top-icon",style:"border-color: "+t.findCurrentFormFun(t.colorAry,"app_main_color").config_value})])]):t._e(),t.compdata&&t.compdata.length>0&&"2"===t.findCurrentFormFun(t.compdata,"app_product_list_style").config_value?o("div",{staticClass:"content-box"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])]),o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'app_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"app_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"app_list_page_add_icon").config_value,alt:""}}):t._e()])])])})),0):o("div",{staticClass:"content-box-horizontal"},t._l(4,(function(e){return o("div",{key:e,class:t.boxStyle},[o("div",{class:t.cardStyle},[o("div",{staticClass:"left"},[o("div",{staticClass:"pic"},["5"===t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("img",{staticClass:"pic-lg",attrs:{src:a("7473"),alt:""}}):"4"===t.findCurrentFormFun(t.compdata,"app_product_list_layout_style").config_value?o("img",{staticClass:"pic-sm",attrs:{src:a("7fc0"),alt:""}}):o("img",{staticClass:"pic-sm",attrs:{src:a("7d68"),alt:""}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_discount_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_discount_tag_show').checked === true"}],staticClass:"pic-tag",style:"background-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("\n "+t._s("1"===t.findCurrentFormFun(t.compdata,"global_product_discount_style").config_value?"8.8折":"88%OFF")+"\n ")])])]),o("div",{staticClass:"right"},[o("div",{staticClass:"tag",style:t.isShowTag},[o("div",e%2===1?[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_new_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_new_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("新品")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_sale_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_sale_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周销量超1000")])]:[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_tag_show').checked === true"}],staticClass:"tag-box"},[t._v("商品打标")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_cart_num_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_cart_num_show').checked === true"}],staticClass:"tag-text"},[t._v("周加购量超1000")])])]),o("div",{staticClass:"brand"},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_show').checked === true"}],staticClass:"eng"},[t._v("品牌名")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_show").checked&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_show').checked === true && findCurrentFormFunStr(compdata, 'app_product_list_brand_cn_show').checked === true"}],staticClass:"line"},[t._v("/")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_brand_cn_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_brand_cn_show').checked === true"}],staticClass:"china"},[t._v("品牌中文名")])]),o("div",{staticClass:"title"},[t.compdata&&t.compdata.length>0&&"1"===t.findCurrentFormFun(t.compdata,"app_product_list_title_show_style").config_value?o("div",{staticClass:"line-1"},[t._v("此处为商品标题")]):o("div",{staticClass:"line-2"},[t._v("此处为商品标题此处为商品标题此处为商品标题 ")])]),o("div",{staticClass:"price"},[o("span",{staticClass:"left-price",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("£112.8")]),o("span",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_line_price_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_line_price_show').checked === true"}],staticClass:"right-price"},[t._v("£134")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"global_is_show_cny").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'global_is_show_cny').checked === true"}],staticClass:"ref-price"},[o("div",{staticClass:"text"},[t._v("参考价:¥1184")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_promotion_tag_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_promotion_tag_show').checked === true"}],staticClass:"marking-tag"},[o("span",{staticClass:"tag-1",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value},[t._v("优惠券标")]),o("div",{staticClass:"tag-2",style:"background: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";border-color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value}),o("div",{staticClass:"tag-text",style:"color: "+t.findCurrentFormFun(t.colorAry,"app_promotion_color").config_value+";"},[t._v("促销标")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_store_name_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_store_name_show').checked === true"}],staticClass:"shop"},[o("div",[t._v("店铺名称")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.compdata&&t.compdata.length>0&&!0===t.findCurrentFormFunStr(t.compdata,"app_product_list_cart_show").checked,expression:"compdata && compdata.length > 0 && findCurrentFormFunStr(compdata, 'app_product_list_cart_show').checked === true"}],staticClass:"add-icon"},[t.compdata&&t.compdata.length>0?o("img",{attrs:{src:t.findCurrentFormFun(t.compdata,"app_list_page_add_icon").config_value,alt:""}}):t._e()])])])])})),0)])]):t._e()],1),o("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[o("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[o("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:t.closeProp}},[t._v("商品列表")]),o("productListForm",{ref:"productListForm",attrs:{compdata:t.compdata},on:{changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1)])],1),o("card-page-result-show",{ref:"cardPageResultShow",attrs:{width:"1200px"}},[o("div",[o("p",[t._v(t._s("分类商品/品牌商品/搜索商品/店铺商品列表富文本内容效果展示如下:"))]),o("div",[t._v("分类商品列表说明:支持设置图片、标题、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/category/operateCategory"}}},[t._v("商品-商品管理-运营分类-内容管理tab")]),t._v(")")],1),o("div",[t._v("品牌商品列表说明:支持设置图片、详细描述(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/product/manage/brand/list"}}},[t._v("商品-商品管理-品牌管理")]),t._v(")")],1),o("div",[t._v("搜索商品列表说明:支持设置是否显示店铺卡片(设置路径:"),o("router-link",{attrs:{target:"_blank",to:{path:"/setting/system/list?query=productSetting"}}},[t._v("设置-系统设置-商品设置-店铺卡片")]),t._v(")")],1),o("div",[t._v("店铺商品列表说明:支持设置图片、店铺LOGO、店铺名称、店铺简介、店铺描述(设置路径:"),o("span",{staticStyle:{color:"#096dd9"}},[t._v("设置-店铺管理")]),t._v(" )")]),o("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[o("img",{staticStyle:{width:"1100px"},attrs:{src:"https://img-resource.azoyacdn.com/media/b78385d8293078f5b3378a52bb10a5af/195649/a3b93484bd87a3998c56d714aea17501.jpg"}})])])])],1)},i=[],r=a("ade3"),n=(a("96cf"),a("1da1")),s=(a("ac6a"),a("68dd")),c=a("41a2"),l=a("052c"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"productListForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("div",{staticClass:"top-title"},[t._v("商品列表包含分类商品列表、品牌商品列表、搜索商品列表、店铺商品列表")]),a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"app"},on:{isChangeAction:t.isChangeAction,checkboxValueAction:t.checkboxValueAction,changeStyle:t.changeStyle,changeLayoutStyle:t.changeLayoutStyle}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},u=[],p=(a("456d"),a("6077")),m=a("9e0b"),f={props:{compdata:{type:Array,default:function(){return[]}}},components:{RenderGroup:m["a"]},data:function(){return{form:this.$form.createForm(this,{name:"productListForm"}),groupId:this.$route.params.id,isChange:!1,loading:!1}},methods:{updateItem:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,this.$refs.productListForm.onSubmit(),a=this.form.validateFields,a((function(t,a){if(!t){if(!0===e.loading)return;var o={items:[]};if(e.compdata.forEach((function(t){t.isChange&&("app_list_page_add_icon"!==t.decoration_code&&"app_search_result_empty_icon"!==t.decoration_code&&Array.isArray(t.config_value)?o.items.push({id:t.id,config_value:JSON.stringify(t.config_value)}):o.items.push({id:t.id,config_value:t.config_value}))})),o.items.length<1)return e.$message.success("操作成功");e.loading=!0,Object(p["h"])(o).then((function(t){t&&-400!==t.status?(e.$message.success("操作成功"),e.isChange=!1):e.$message.error(t.message),e.loading=!1}))}}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleSubmit:function(t){var e=this;t&&t.preventDefault();var a=this;this.$nextTick((function(){e.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,e){if(t){var o=Object.keys(t)[0],i=t[o].errors[0].message;a.$message.error(i)}}))}))},isChangeAction:function(t,e){this.isChange=t},checkboxValueAction:function(t){this.checkboxValue=t},changeStyle:function(t){this.$emit("changeStyle",t)},changeLayoutStyle:function(t){this.$emit("changeLayoutStyle",t)}}},h=f,g=(a("912c7"),a("2877")),_=Object(g["a"])(h,d,u,!1,null,"a7333548",null),v=_.exports,b=a("de6a"),y=a("75dc"),w=a("ea1b"),C=a("d1e4"),k={name:"PageEditor",components:{"c-sider-title":c["a"],"c-tool-group":l["a"],productListForm:v,cardPageResultShow:C["a"]},data:function(){return{PainterSVG:s["a"],siderToolShow:!0,siderPropShow:!0,compdata:[],styleValue:!0,layoutStyleValue:!1,colorAry:[]}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}},isShowTag:function(){if(!(this.compdata.length<1))return this.findCurrentFormFunStr(this.compdata,"app_product_list_new_tag_show").checked||this.findCurrentFormFunStr(this.compdata,"app_product_list_sale_num_show").checked||this.findCurrentFormFunStr(this.compdata,"app_product_list_tag_show").checked||this.findCurrentFormFunStr(this.compdata,"app_product_list_cart_num_show").checked?"height: 21px":""},boxStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box box-1":"2"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box box-2":"3"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box box-3":"4"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box box-4":"5"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box box-5":"box box-1"},cardStyle:function(){return"1"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box-item-1":"2"===this.findCurrentFormFun(this.compdata,"app_product_list_layout_style").config_value?"box-item-2":"box-item-1"}},methods:{closeTool:function(){this.siderToolShow=!1},openProp:function(){this.siderPropShow=!0},closeProp:function(){this.siderPropShow=!1},toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},toFixtrue:function(){this.$router.push({path:"/cms/app/fixtures"})},findCurrentFormFun:function(t,e){return Object(w["a"])(t,e)},findCurrentFormFunStr:function(t,e){return Object(w["a"])(t,e).config_value[0]},changeStyle:function(t){this.compdata.forEach((function(e){"app_product_list_layout_style"===e.decoration_code&&("2"===t.config_value?e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:e.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}])}))},changeLayoutStyle:function(t){this.compdata.forEach((function(e){"app_product_list_style"===e.decoration_code&&("5"===t.config_value?e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:e.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))},showManage:function(){this.$refs.cardPageResultShow.showModal()}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(e,o){e.index=o,e.isChange=!1,"app_list_page_add_icon"!==e.decoration_code&&"app_search_result_empty_icon"!==e.decoration_code&&Array.isArray(JSON.parse(e.config_value))&&(e.config_value=JSON.parse(e.config_value),e.initialValue=[],e.config_value.map((function(t){t.checked&&e.initialValue.push(t.value)}))),e.sizeTip=Object(y["b"])(a,e),e.config_value?("app_list_page_add_icon"===e.decoration_code&&(e.isShowAddImg=a.findCurrentFormFun(t.data.rows,"app_product_list_cart_show").config_value[0].checked,e.required=a.findCurrentFormFun(t.data.rows,"app_product_list_cart_show").config_value[0].checked),e.isEmpty=!1,a.$refs.productListForm.form.setFieldsValue(Object(r["a"])({},"".concat(e.decoration_code),a.compdata[o].config_value))):e.isEmpty=!0,"app_product_list_style"===e.decoration_code&&(a.styleValue="2"===e.config_value&&"2"===e.config_value),"app_product_list_layout_style"===e.decoration_code&&(a.layoutStyleValue="5"===e.config_value&&"5"===e.config_value)})),a.compdata.forEach((function(t){"app_product_list_layout_style"===t.decoration_code&&(a.styleValue?t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"},{value:"5",name:"无线灰底高图"}]:t.arrayValue=[{value:"1",name:"圆角卡片方图"},{value:"2",name:"直角卡片方图"},{value:"3",name:"纯线白底方图"},{value:"4",name:"无线灰底方图"}]),"app_product_list_style"===t.decoration_code&&(a.layoutStyleValue?t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排",isDisabled:!0}]:t.arrayValue=[{value:"2",name:"竖排"},{value:"1",name:"横排"}])}))})))}));case 4:return t.next=6,Object(p["c"])({config:"app_main_color,app_promotion_color,app_secondary_color,app_highlight_color,app_sale_price_color"}).then((function(t){t&&-400!==t.status&&(a.colorAry=t.data.rows)}));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeRouteLeave:function(t,e,a){var o=this.$refs.productListForm.isChange;o?this.$confirm({icon:function(t){return t(b["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){a()},cancelText:"取消",okText:"确定"}):a()}},x=k,S=(a("b026"),Object(g["a"])(x,o,i,!1,null,"093ba7c4",null));e["default"]=S.exports},e821:function(t,e,a){},e828:function(t,e,a){"use strict";a("2a16")},e84b:function(t,e,a){t.exports=a.p+"img/pc-rich.e87f252a.jpg"},e85b:function(t,e,a){"use strict";a("7121")},e8ae:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticStyle:{height:"100vh"}},[a("c-header"),a("c-sidebar",{attrs:{"active-item":"activity","active-name":"活动页"}},[a("template",{slot:"content"},[a("div",{staticClass:"activity-container"},[a("img",{attrs:{src:"//img-resource.azoyacdn.com/media/33c539ae6287d89f73d2b82da84420c2/107507/6c8c71edf6268f0284727e6e090c5fe5.jpg",alt:""}}),a("img",{directives:[{name:"show",rawName:"v-show",value:t.getAdvertise,expression:"getAdvertise"}],staticClass:"render-img",attrs:{src:t.getAdvertise,alt:""}})])]),a("template",{slot:"form"},[a("c-form",{ref:"activityForm",attrs:{compdata:t.compdata}})],1)],2)],1)},i=[],r=a("ade3"),n=(a("ac6a"),a("96cf"),a("1da1")),s=a("e9e8"),c=a("aaa9"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[t.compdata&&t.compdata.length>0?a("a-form",{ref:"activityForm",attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("RenderGroup",{staticStyle:{"margin-top":"16px"},attrs:{compdata:t.compdata,isChange:t.isChange,loading:t.loading,form:t.form,routerType:"h5"},on:{isChangeAction:t.isChangeAction}})],1):t._e()],1),a("div",{staticClass:"bottom-button"},[a("a-button",{staticClass:"button-style",attrs:{loading:t.loading},on:{click:t.updateItem}},[t._v("保存")])],1)],1)],1)},d=[],u=a("ce9e"),p=a("6077"),m={mixins:[u["a"]],data:function(){return{form:this.$form.createForm(this,{name:"activityForm"}),isChange:!1,loading:!1}},methods:{updateItem:function(){var t=this;this.$refs.activityForm.onSubmit();var e=this.form.validateFields;e((function(e){if(!e){if(t.loading)return;var a=t.getFormParams(t.compdata);if(!a.length)return t.$message.success("操作成功");t.loading=!0,Object(p["h"])({items:a}).then((function(e){e&&-400!==e.status?(t.$message.success("操作成功"),t.initChangeAction()):t.$message.error(e.message),t.loading=!1}))}}))}}},f=m,h=(a("05a5"),a("2877")),g=Object(h["a"])(f,l,d,!1,null,"da942808",null),_=g.exports,v=a("0b75"),b=a("ea1b"),y={components:{"c-header":s["a"],"c-sidebar":c["a"],"c-form":_},data:function(){return{compdata:[]}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.groupId=this.$route.params.id,e={decoration_group_id:this.groupId},t.next=4,Object(p["f"])(e).then((function(t){t&&-400!==t.status&&(a.compdata=t.data.rows,a.$nextTick((function(){a.compdata.forEach((function(t,e){t.index=e,t.isChange=!1,t.sizeTip=Object(v["a"])(a,t),t.config_value?(t.isEmpty=!1,a.$refs.activityForm.form.setFieldsValue(Object(r["a"])({},"".concat(t.decoration_code),a.compdata[e].config_value))):t.isEmpty=!0}))})))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{getAdvertise:function(){return Object(b["a"])(this.compdata,"h5_cms_header").config_value}}},w=y,C=(a("7433"),Object(h["a"])(w,o,i,!1,null,"61e1ef64",null));e["default"]=C.exports},e8d0:function(t,e,a){"use strict";a("8be6")},e8ff:function(t,e,a){"use strict";a("acda")},e9e8:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout-header",{attrs:{id:"c-header"}},[a("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[a("a-breadcrumb-item",[a("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),a("a-breadcrumb-item",[t._v("站点")]),a("a-breadcrumb-item",[a("a",{on:{click:t.toFixtrue}},[t._v("H5")])]),a("a-breadcrumb-item",[t._v("装修")])],1)],1)},i=[],r={methods:{toFixtrue:function(){this.$router.push({path:"/cms/h5/fixtures"})}}},n=r,s=(a("1fb7"),a("2877")),c=Object(s["a"])(n,o,i,!1,null,"d014b35e",null);e["a"]=c.exports},ea1b:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("7514");var o=function(t,e){return t.find((function(t){return t.decoration_code===e}))||{}}},ea31:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"238px",height:"238px",viewBox:"0 0 238 238",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("title",[t._v("新人专区")]),a("desc",[t._v("Created with Sketch.")]),a("g",{attrs:{id:"商品组件-后台示例图",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"新人专区",stroke:"#555555"}},[a("circle",{attrs:{id:"椭圆形","stroke-width":"15",cx:"119",cy:"67",r:"59"}}),a("path",{attrs:{d:"M196,163.808245 C177.327453,140.742801 148.8062,126 116.846756,126 C60.5983457,126 15,171.666956 15,228",id:"椭圆形","stroke-width":"15","stroke-linecap":"round"}}),a("path",{attrs:{d:"M101.784026,235 C105.261342,235 107,232.920624 107,228.761873 L107,228.761873 L107,191.494723 C107,189.663149 106.597935,188.289468 105.793806,187.373681 C104.989677,186.457894 103.892149,186 102.501222,186 C101.153763,186 100.083401,186.457894 99.2901385,187.373681 C98.4968758,188.289468 98.1002445,189.663149 98.1002445,191.494723 L98.1002445,191.494723 L98.1002445,219.67942 L79.4857376,191.753298 C78.9641402,190.934477 78.4588427,190.147977 77.9698452,189.393799 C77.4808476,188.639622 77.0027167,188.025506 76.5354523,187.551451 C76.068188,187.077397 75.5248574,186.700308 74.9054605,186.420185 C74.2860636,186.140062 73.5417006,186 72.6723716,186 C71.5639772,186 70.531649,186.307058 69.5753871,186.921174 C68.6191252,187.53529 67.9345287,188.327177 67.5215974,189.296834 C67.1738658,190.180299 67,191.397757 67,192.949208 L67,192.949208 L67,229.505277 C67,231.293755 67.4129313,232.656662 68.2387938,233.593997 C69.0646563,234.531332 70.1621842,235 71.5313773,235 C72.857104,235 73.9437653,234.536719 74.791361,233.610158 C75.6389568,232.683597 76.0627547,231.315303 76.0627547,229.505277 L76.0627547,229.505277 L76.0627547,201.740765 L94.2208639,229.343668 C94.7424613,230.097845 95.2640587,230.835862 95.7856561,231.557718 C96.3072535,232.279573 96.8723173,232.90985 97.4808476,233.448549 C98.0893779,233.987247 98.7413746,234.380497 99.4368378,234.628298 C100.132301,234.876099 100.914697,235 101.784026,235 Z M154.383186,234 C155.911209,234 157.062684,233.652683 157.837611,232.958049 C158.612537,232.263415 159,231.360391 159,230.248977 C159,229.094816 158.612537,228.170418 157.837611,227.475784 C157.062684,226.781151 155.911209,226.433834 154.383186,226.433834 L154.383186,226.433834 L131.724779,226.433834 L131.724779,213.064802 L151.89469,213.064802 C153.400885,213.064802 154.514159,212.728172 155.234513,212.054911 C155.954867,211.381651 156.315044,210.510687 156.315044,209.442019 C156.315044,208.373352 155.94941,207.513074 155.218142,206.861187 C154.486873,206.2093 153.379056,205.883356 151.89469,205.883356 L151.89469,205.883356 L131.724779,205.883356 L131.724779,194.341746 L153.630088,194.341746 C155.179941,194.341746 156.331416,194.005116 157.084513,193.331855 C157.837611,192.658595 158.214159,191.766257 158.214159,190.654843 C158.214159,189.564802 157.837611,188.683151 157.084513,188.009891 C156.331416,187.33663 155.179941,187 153.630088,187 L153.630088,187 L127.959292,187 C126.584071,187 125.454425,187.197704 124.570354,187.593111 C123.686283,187.988518 123.036873,188.619031 122.622124,189.484652 C122.207375,190.350273 122,191.46703 122,192.834925 L122,192.834925 L122,228.165075 C122,230.216917 122.463864,231.702365 123.391593,232.621419 C124.319322,233.540473 125.841888,234 127.959292,234 L127.959292,234 L154.383186,234 Z M212.586263,235 C214.143862,235 215.349919,234.622911 216.204435,233.868734 C217.058951,233.114556 217.664684,232.236478 218.021633,231.234499 C218.378583,230.23252 218.827474,228.654134 219.368307,226.49934 L219.368307,226.49934 L227.286101,194.597625 C227.762034,192.658311 228,191.246922 228,190.363456 C228,189.113676 227.561925,188.073989 226.685776,187.244393 C225.809627,186.414798 224.744186,186 223.489454,186 C222.234721,186 221.277447,186.323219 220.617631,186.969657 C219.957815,187.616095 219.492699,188.348725 219.222282,189.167546 C218.951866,189.986368 218.665224,191.117634 218.362358,192.561346 L218.362358,192.561346 L212.131963,220.228892 L205.090319,194.33905 C204.50622,192.205805 204.041103,190.675901 203.69497,189.74934 C203.348837,188.822779 202.726879,187.966249 201.829097,187.179749 C200.931314,186.39325 199.671174,186 198.048675,186 C196.44781,186 195.182261,186.377089 194.252028,187.131266 C193.321796,187.885444 192.651163,188.779683 192.24013,189.813984 C191.829097,190.848285 191.363981,192.35664 190.844781,194.33905 L190.844781,194.33905 L183.868037,220.228892 L177.637642,192.561346 C177.183342,190.4281 176.653326,188.801231 176.047593,187.680739 C175.44186,186.560246 174.262845,186 172.510546,186 C171.234181,186 170.163332,186.420185 169.297999,187.260554 C168.432666,188.100923 168,189.135224 168,190.363456 C168,191.333113 168.237966,192.744503 168.713899,194.597625 L168.713899,194.597625 L176.631693,226.49934 C176.869659,227.447449 177.140076,228.476363 177.442942,229.586082 C177.745809,230.6958 178.135208,231.654683 178.611141,232.462731 C179.087074,233.270778 179.709032,233.895668 180.477015,234.337401 C181.244997,234.779134 182.223905,235 183.413737,235 C184.884803,235 186.063818,234.628298 186.950784,233.884894 C187.83775,233.141491 188.459708,232.301121 188.816658,231.363786 C189.173607,230.426451 189.654949,228.880387 190.260681,226.725594 L190.260681,226.725594 L198.048675,198.314644 L205.739319,226.725594 C206.366685,228.945031 206.853434,230.512643 207.199567,231.42843 C207.5457,232.344217 208.16225,233.168426 209.049216,233.901055 C209.936182,234.633685 211.115197,235 212.586263,235 Z",id:"NEW","stroke-width":"4",fill:"#555555","fill-rule":"nonzero"}})])])])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},ea44:function(t,e,a){"use strict";a("3847")},ea5e:function(t,e,a){},ea97:function(t,e,a){"use strict";a("3915")},eab5:function(t,e,a){t.exports=a.p+"img/perch.9fd13a32.png"},eabd:function(t,e,a){"use strict";a("9222")},eae9:function(t,e,a){"use strict";a("b8ca")},eba4:function(t,e,a){"use strict";a("2b65")},ec26:function(t,e,a){t.exports=a.p+"img/perch_2.a4084d86.jpg"},ec58:function(t,e,a){"use strict";a("6486")},eccd:function(t,e,a){},ecd9:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail-render",class:"block-type-"+t.getStyleType,style:"--promotionColor: "+t.promotionColor+";--mainColor: "+t.mainColor},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.getAppDownloadAd,expression:"getAppDownloadAd"}],staticClass:"app-download-ad"},[a("img",{attrs:{src:t.getAppDownloadAd,alt:""}})]),a("main-image",{attrs:{type:t.getMainBgType}}),t.rowsState&&t.rowsState.length?[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isShareCoupon,expression:"isShareCoupon"}],staticClass:"share-coupon"},[a("img",{attrs:{src:t.shareCouponIcon,alt:""}})]),a("div",{staticClass:"base-component"},[a("div",{staticClass:"space-block"}),t._l(t.baseDataState,(function(e,o){return["detail_tag"===e.decoration_code?a("product-tag",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_tag"),"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_brand"===e.decoration_code?a("brand-info",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_brand"),"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_name"===e.decoration_code?a("product-title",{key:o,attrs:{config:e,"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_price"===e.decoration_code?a("product-price",{key:o,attrs:{config:Object.assign({},e,t.productConfig),"render-data":t.getChildrenDataItem("detail_price"),"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_sale_info"===e.decoration_code?a("product-sell",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_sale_info"),"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_bundle"===e.decoration_code?a("bundle-product",{key:o,attrs:{config:e,"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e(),"detail_share_notice"===e.decoration_code?a("base-fix-action",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_share_notice"),"selected-index":t.currentBaseSelectedIndexState,elements:t.baseDataState},on:{onMoveUp:t.onBaseMoveUp,onMoveDown:t.onBaseMoveDown,onSet:t.onSet,selectedBlock:t.selectedBaseBlock}}):t._e()]}))],2),a("div",{staticClass:"other-component"},[t._l(t.otherDataState,(function(e,o){return["detail_sale_attribute"===e.decoration_code?a("sell-attr",{key:o,attrs:{config:e,"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_marketing"===e.decoration_code?a("promotion-info",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_marketing"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_brand_store_show"===e.decoration_code?a("brand-store",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_brand_store_show"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_ad"===e.decoration_code?a("advertisement",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_ad"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_comment"===e.decoration_code?a("product-comment",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_comment"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_match_recommend"===e.decoration_code?a("match-recommend",{key:o,attrs:{config:e,"product-config":t.productConfig,"render-data":t.getChildrenDataItem("detail_match_recommend"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_recommend"===e.decoration_code?a("product-recommend",{key:o,attrs:{config:e,"product-config":t.productConfig,"render-data":t.getChildrenDataItem("detail_recommend"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_description"===e.decoration_code?a("product-desc",{key:o,attrs:{config:e,"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_spec"===e.decoration_code?a("rule-param",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_spec"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_nutrition"===e.decoration_code?a("nutrition-content",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_nutrition"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_buy_notice"===e.decoration_code?a("buy-notice",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_buy_notice"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_common_question"===e.decoration_code?a("common-question",{key:o,attrs:{config:e,"render-data":t.getChildrenDataItem("detail_common_question"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState,"style-type":t.getStyleType},on:{onMoveUp:t.onOtherMoveUp,onMoveDown:t.onOtherMoveDown,onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e(),"detail_waterfall_recommend"===e.decoration_code?a("product-recommend-waterfall",{key:o,attrs:{config:e,"product-config":t.productConfig,"render-data":t.getChildrenDataItem("detail_waterfall_recommend"),"selected-index":t.currentOtherSelectedIndexState,elements:t.otherDataState},on:{onSet:t.onSet,selectedBlock:t.selectedOtherBlock}}):t._e()]}))],2),a("div",{staticClass:"footer-space-block"}),a("footer-nav-block",{attrs:{"render-data":t.getChildrenDataItem("detail_bottom_nav")},on:{onSet:t.onSet}})]:t._e()],2)},i=[],r=(a("8e6e"),a("ac6a"),a("456d"),a("7514"),a("96cf"),a("1da1")),n=a("ade3"),s=a("2f62"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-image-component"},[a("img",{staticClass:"bg-image",attrs:{src:t.showMainBg,alt:""}})])},l=[],d=a("52d3"),u=a.n(d),p=a("6dc0"),m=a.n(p),f={props:{type:{type:String,default:"1"}},data:function(){return{writeImage:u.a,greyImage:m.a}},computed:{showMainBg:function(){return"1"===this.type?u.a:m.a}}},h=f,g=(a("171e"),a("2877")),_=Object(g["a"])(h,c,l,!1,null,"ec9c719a",null),v=_.exports,b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.showTag||t.showNum,expression:"showTag || showNum"}],staticClass:"product-tag-component detail-block-container"},[a("div",{staticClass:"content"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showTag,expression:"showTag"}],staticClass:"border-tag"},[t._v(t._s(t.showTag))]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showNum,expression:"showNum"}],staticClass:"text-tag"},[t._v(t._s(t.showNum))])]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},y=[],w=(a("c5f6"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block-label-component",style:[t.customStyle]},[t._v("\n "+t._s(t.name)+"\n "),a("span",{staticClass:"corner"})])}),C=[],k={props:{name:{type:String,default:""},positionTop:{type:Number,default:0}},computed:{customStyle:function(){return{top:this.positionTop+"px"}}}},x=k,S=(a("e3ca"),Object(g["a"])(x,w,C,!1,null,"6f6ae9cc",null)),A=S.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.visible?a("div",{staticClass:"block-tool-component",style:t.computedTop},[a("ul",[t.hasUp?a("li",{on:{click:t.moveUp}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("上移")])]),a("a-icon",{attrs:{component:t.ArrowTopSVG}})],2)],1):t._e(),t.hasDown?a("li",{on:{click:t.moveDown}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("下移")])]),a("a-icon",{attrs:{component:t.ArrowDownSVG}})],2)],1):t._e(),t.hasSet?a("li",{on:{click:t.onSet}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("编辑")])]),a("a-icon",{attrs:{component:t.SetSVG}})],2)],1):t._e()])]):t._e()])},F=[],O=(a("20d6"),a("7e83")),j=a("b77b"),I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{staticClass:"icon",attrs:{t:"1705459235409",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8527","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[a("path",{attrs:{d:"M805.867 111.188H219.801c-60.654 0-110 49.346-110 110v587.066c0 60.654 49.346 110 110 110h586.066c60.654 0 110-49.346 110-110V221.188c0-60.654-49.346-110-110-110z m36.603 116.854l-438 438c-5.858 5.858-13.536 8.787-21.213 8.787s-15.355-2.929-21.213-8.787c-11.715-11.716-11.715-30.71 0-42.426l438.001-438.001c11.715-11.716 30.711-11.716 42.426 0 11.715 11.716 11.715 30.711-0.001 42.427z",fill:"","p-id":"8528"}})])},P=[],E={},M=Object(g["a"])(E,I,P,!1,null,null,null),$=M.exports,D={props:{selectedIndex:{type:Number,default:-1},elements:{type:Array,default:function(){return[]}},visible:{type:Boolean,default:!1},offsetTop:{type:Number,default:0}},data:function(){return{ArrowTopSVG:O["a"],ArrowDownSVG:j["a"],SetSVG:$}},computed:{hasUp:function(){return!(this.selectedIndex<0)&&(!(this.selectedIndex===this.currentMoveDataFirstIndex)&&this.elements[this.selectedIndex].move)},hasDown:function(){return!(this.selectedIndex<0)&&(!(this.selectedIndex===this.currentMoveDataLastIndex)&&this.elements[this.selectedIndex].move)},hasSet:function(){return this.elements[this.selectedIndex].edit},computedTop:function(){return{position:"absolute",top:this.offsetTop+"px"}},currentMoveDataFirstIndex:function(){return this.elements.length?this.elements.findIndex((function(t){return 1===t.move})):0},currentMoveDataLastIndex:function(){return this.elements.length?this.elements.findLastIndex((function(t){return 1===t.move})):0}},methods:{moveUp:function(){this.hasUp&&this.$emit("moveUp")},moveDown:function(){this.hasDown&&this.$emit("moveDown")},onSet:function(){this.hasSet&&this.$emit("onSet")}}},N=D,R=(a("1e92"),Object(g["a"])(N,T,F,!1,null,"4e100f58",null)),L=R.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"select-mask-component",class:{"block-selected":t.isSelected},on:{click:t.handleSelectBlock}})},V=[],z={props:{isSelected:{type:Boolean,default:!1}},methods:{handleSelectBlock:function(){this.$emit("selectedBlock")}}},q=z,U=(a("d388"),Object(g["a"])(q,B,V,!1,null,"9ddf07be",null)),H=U.exports,G={components:{BlockLabel:A,BlockSelectMask:H,SelectTool:L},inject:["routerType"],props:{config:{type:Object,default:function(){}},renderData:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1},elements:{type:Array,default:function(){return[]}}},methods:{selectedBlock:function(){this.$emit("selectedBlock",this.config)},onMoveUp:function(){this.$emit("onMoveUp")},onMoveDown:function(){this.$emit("onMoveDown")},onSet:function(){this.$emit("onSet",this.config)},getOnlyCheckboxChecked:function(t){if(!this.renderData.length||!t)return!1;var e=this.renderData.find((function(e){return e.decoration_code===t}))||{},a=e.config_value;return!!a&&(a&&!Array.isArray(a)?JSON.parse(a)[0].checked:a[0].checked)},getRadioSelectedVal:function(t){if(!this.renderData.length||!t)return"1";var e=this.renderData.find((function(e){return e.decoration_code===t}))||{},a=e.config_value;return a?a&&!Array.isArray(a)?JSON.parse(a).find((function(t){return t.checked})).value:a.find((function(t){return t.checked})).value:"1"}}},Y={mixins:[G],computed:{isProductTag:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_tag_show"))},isNewTag:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_new_tag_show"))},isSaleNum:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_sale_num_show"))},isAddCartNum:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_cart_num_show"))},showTag:function(){return this.isProductTag?"商品打标":this.isNewTag?"新品":""},showNum:function(){return this.isSaleNum?"月销量超1000":this.isAddCartNum?"月加购量超1000":""}}},J=Y,K=(a("8c5e"),Object(g["a"])(J,b,y,!1,null,"69aae4da",null)),W=K.exports,Z=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowBrandName||t.isShowBrandCnName,expression:"isShowBrandName || isShowBrandCnName"}],staticClass:"brand-info-component detail-block-container"},[a("div",{staticClass:"content"},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.isShowBrandName,expression:"isShowBrandName"}],staticClass:"eng-name"},[t._v("品牌名称")]),a("span",{directives:[{name:"show",rawName:"v-show",value:t.isShowBrandName&&t.isShowBrandCnName,expression:"isShowBrandName && isShowBrandCnName"}],staticClass:"slash"},[t._v("/")]),a("span",{directives:[{name:"show",rawName:"v-show",value:t.isShowBrandCnName,expression:"isShowBrandCnName"}],staticClass:"chi-name"},[t._v("品牌中文名")])]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Q=[],X={mixins:[G],computed:{isShowBrandName:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_brand_name_show"))},isShowBrandCnName:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_brand_cn_name_show"))}}},tt=X,et=(a("58a74"),Object(g["a"])(tt,Z,Q,!1,null,"2b1c4c5c",null)),at=et.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-title-component detail-block-container"},[t._m(0),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},it=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content"},[a("div",[t._v("商品全称品牌卖点噱头关键词属性等")])])}],rt={mixins:[G]},nt=rt,st=(a("6c98"),Object(g["a"])(nt,ot,it,!1,null,"fef47602",null)),ct=st.exports,lt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-price-component detail-block-container"},[a("div",{staticClass:"content"},[a("div",{staticClass:"sale-box"},[t._m(0),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDiscount,expression:"isDiscount"}],staticClass:"discount"},[t._v(t._s(t.discountValue))])]),t.isThroughPrice||t.isReferPrice?a("div",{staticClass:"refer-box"},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.isThroughPrice,expression:"isThroughPrice"}],staticClass:"through"},[t._v("£99.99")]),a("span",{directives:[{name:"show",rawName:"v-show",value:t.isReferPrice,expression:"isReferPrice"}],staticClass:"refer-price"},[t._v("参考价¥416.13")])]):t._e()]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},dt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"final-price"},[t._v("\n £\n "),a("span",{staticClass:"value"},[t._v("88.88")])])}],ut={mixins:[G],computed:{isReferPrice:function(){return this.getOnlyCheckboxChecked("global_is_show_cny")},isThroughPrice:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_line_price_show"))},isDiscount:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_product_discount_show"))},discountValue:function(){var t=this,e=this.renderData.find((function(e){return e.decoration_code==="".concat(t.routerType,"_detail_product_discount_show")}));return e&&e.website_configs?e.website_configs[0].config_value:""}}},pt=ut,mt=(a("7dfe"),Object(g["a"])(pt,lt,dt,!1,null,"19724264",null)),ft=mt.exports,ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.isProductSell,expression:"isProductSell"}],staticClass:"product-sell-component detail-block-container"},[a("div",{staticClass:"content"},[t._v("\n 这里是商品卖点描述,可编辑吸引人的内容,结合商品的核心卖点、特色功能、重点属性、背景文化等,以提高用户对商品的认知与下单决策\n ")]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name,"position-top":10}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},gt=[],_t={mixins:[G],computed:{isProductSell:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_sale_info_show"))}}},vt=_t,bt=(a("69ab"),Object(g["a"])(vt,ht,gt,!1,null,"852903aa",null)),yt=bt.exports,wt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"base-action-component detail-block-container"},[o("div",{staticClass:"content"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.isShare,expression:"isShare"}],staticClass:"item share"},[o("img",{staticClass:"icon",attrs:{src:a("87cd")}}),o("span",{staticClass:"text"},[t._v("分享")])]),o("div",{staticClass:"item collect"},[o("img",{staticClass:"icon",attrs:{src:t.collectIcon}}),o("span",{staticClass:"text"},[t._v("收藏")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isDownNotice,expression:"isDownNotice"}],staticClass:"item notice"},[o("img",{staticClass:"icon",attrs:{src:a("cac6")}}),o("span",{staticClass:"text"},[t._v("降价通知")])])]),o("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),o("block-label",{attrs:{name:t.config.name,"position-top":10}}),o("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Ct=[],kt={mixins:[G],computed:{isShare:function(){return!this.getOnlyCheckboxChecked("general_share_status")},isDownNotice:function(){return this.getOnlyCheckboxChecked("reduce_price_notification_status")},collectIcon:function(){var t=this,e=this.renderData.find((function(e){return e.decoration_code==="".concat(t.routerType,"_detail_base_not_in_favorite_icon")}))||{};return e.config_value}}},xt=kt,St=(a("ce2c"),Object(g["a"])(xt,wt,Ct,!1,null,"1c374274",null)),At=St.exports,Tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sell-attr-component detail-block-container type-border-solid"},[a("div",{staticClass:"content"},[a("div",{staticClass:"attrs"},[t._l(t.attrs,(function(e,o){return a("div",{key:e.value,staticClass:"item",class:{"item-opacity":o===t.attrs.length-1}},[t._v("\n "+t._s(e.name)+"\n ")])})),a("span",{staticClass:"total"},[t._v("共5种颜色可选")])],2),a("div",{staticClass:"selected-box"},[a("span",{staticClass:"label"},[t._v("已选")]),a("span",{staticClass:"value"},[t._v(t._s(t.selectedStr))]),a("span",{staticClass:"total"})])]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Ft=[],Ot={mixins:[G],data:function(){return{attrs:[{name:"黑色",value:"black"},{name:"紫色",value:"purple"},{name:"白色",value:"white"},{name:"蓝色",value:"blue"}],selectedStr:"黑色,XL,1个"}}},jt=Ot,It=(a("6c95"),Object(g["a"])(jt,Tt,Ft,!1,null,"553528ae",null)),Pt=It.exports,Et=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.isCashBack||t.isCoupon||t.isPromotion||t.activityList.length,expression:"isCashBack || isCoupon || isPromotion || activityList.length"}],staticClass:"promotion-info-component detail-block-container type-border-solid"},[a("div",{staticClass:"content"},[t.isCashBack?a("div",{staticClass:"list-wrapper cash-back"},[a("div",{staticClass:"label"},[t._v("返现")]),t._m(0)]):t._e(),t.isCoupon?a("div",{staticClass:"list-wrapper coupon"},[a("div",{staticClass:"label"},[t._v("优惠券")]),t._m(1)]):t._e(),t.isPromotion?a("div",{staticClass:"list-wrapper promotion"},[a("div",{staticClass:"label"},[t._v("促销")]),t._m(2)]):t._e(),t.activityList.length?a("div",{staticClass:"list-wrapper",class:{activity:t.isCashBack||t.isCoupon||t.isPromotion}},[a("div",{staticClass:"label"},[t._v("活动")]),a("div",{staticClass:"wrappers"},t._l(t.activityList,(function(e,o){return a("div",{key:o,staticClass:"wrapper"},[a("div",{staticClass:"item-box"},[t._v(t._s(e.title))]),a("div",{staticClass:"icon"})])})),0)]):t._e()]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Mt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"box"},[a("div",{staticClass:"hollow-tag"},[t._v("返")]),t._v("\n 返现10%,预计最高返£12.35\n ")]),a("div",{staticClass:"icon"},[t._v("分享")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"box"},[a("div",{staticClass:"hollow-tag"},[t._v("首单8.8折")]),a("div",{staticClass:"hollow-tag"},[t._v("女神节")])]),a("div",{staticClass:"icon"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrappers"},[a("div",{staticClass:"wrapper"},[a("div",{staticClass:"box"},[a("div",{staticClass:"solid-tag"},[t._v("包税")]),t._v("\n 购买活动商品免税费\n ")]),a("div",{staticClass:"icon"})]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"box"},[a("div",{staticClass:"solid-tag"},[t._v("满减")]),t._v("\n 满3件且满25欧减2.5欧\n ")]),a("div",{staticClass:"icon"})])])}],$t={mixins:[G],computed:{isCashBack:function(){return this.getOnlyCheckboxChecked("share_commission_status")},isCoupon:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_coupon_show"))},isPromotion:function(){return this.getOnlyCheckboxChecked("".concat(this.routerType,"_detail_promotion_show"))},activityList:function(){var t=this,e=this.renderData.find((function(e){return e.decoration_code==="".concat(t.routerType,"_detail_promotion")}));return e.config_value?JSON.parse(e.config_value):[]}}},Dt=$t,Nt=(a("531f"),Object(g["a"])(Dt,Et,Mt,!1,null,"03476662",null)),Rt=Nt.exports,Lt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"brand-store-component type-border-solid",class:"brand-store-type-"+t.styleType},[a("div",{staticClass:"content"},["1"===t.isSelectedVal?a("div",{staticClass:"brand-wrapper"},[a("div",{staticClass:"name"},[t._v("品牌名称")]),a("div",{staticClass:"subtotal"},[t._v("共520个商品")])]):a("div",{staticClass:"store-wrapper"},[t._m(0),a("div",{staticClass:"check"},[t._v("去逛逛")])])]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Bt=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"info"},[o("div",{staticClass:"logo"},[o("img",{staticClass:"icon",attrs:{src:a("bfd1")}})]),o("div",{staticClass:"name-box"},[o("div",{staticClass:"name"},[t._v("店铺名称")]),o("div",{staticClass:"desc"},[t._v("店铺简介,最多显示单行")])])])}],Vt={mixins:[G],props:{styleType:{type:String,default:"1"}},computed:{isSelectedVal:function(){return this.getRadioSelectedVal("detail_productpage_brand_store_show")}}},zt=Vt,qt=(a("f67f"),Object(g["a"])(zt,Lt,Bt,!1,null,"c8c1ba0a",null)),Ut=qt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"advertisement-component detail-image-container"},[a("div",{staticClass:"content"},[a("img",{staticClass:"bg-image",attrs:{src:t.getAdvertiseImage,alt:""}})]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},Gt=[],Yt=a("73e9"),Jt=a.n(Yt),Kt={mixins:[G],data:function(){return{defaultAdvertiseImage:Jt.a}},computed:{getAdvertiseImage:function(){var t=this,e=(this.renderData.find((function(e){return e.decoration_code==="".concat(t.routerType,"_detail_ad_image")}))||{}).config_value;return e&&JSON.parse(e)[0].img||Jt.a}}},Wt=Kt,Zt=(a("3e77"),Object(g["a"])(Wt,Ht,Gt,!1,null,"79f47852",null)),Qt=Zt.exports,Xt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.isComment,expression:"isComment"}],staticClass:"product-comment-component detail-image-container"},[a("div",{staticClass:"content"},[a("img",{staticClass:"bg-image",attrs:{src:t.showBgImage,alt:""}})]),a("block-select-mask",{attrs:{"is-selected":t.config.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{"selected-index":t.selectedIndex,elements:t.elements,visible:t.config.selected},on:{moveUp:t.onMoveUp,moveDown:t.onMoveDown,onSet:t.onSet}})],1)},te=[],ee=a("7fae2"),ae=a.n(ee),oe=a("1ba9"),ie=a.n(oe),re={mixins:[G],props:{styleType:{type:String,default:"1"}},data:function(){return{icon:ae.a,cycleIcon:ie.a}},computed:{showBgImage:function(){return"3"===this.styleType?ae.a:ie.a},isComment:function(){return!this.getOnlyCheckboxChecked("comment_status")}}},ne=re,se=(a("aa6e"),Object(g["a"])(ne,Xt,te,!1,null,"6cd5bbc0",null)),ce=se.exports,le=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"footer-nav-component foot-nav-wrapper"},[a("div",{staticClass:"foot-menu"},[a("div",{staticClass:"menu-item"},[a("img",{staticClass:"item-icon",attrs:{src:t.showIcons.firstUrl,alt:""}}),a("span",{staticClass:"item-title"},[t._v(t._s(["--","首页","店铺","收藏"][t.getNavType]))])]),a("div",{staticClass:"menu-item"},[a("img",{staticClass:"item-icon",attrs:{src:t.showIcons.customerUrl,alt:""}}),a("span",{staticClass:"item-title"},[t._v("客服")])]),a("div",{staticClass:"menu-item"},[a("img",{staticClass:"item-icon",attrs:{src:t.showIcons.cartUrl,alt:""}}),a("span",{staticClass:"item-title"},[t._v("购物车")])])]),a("div",{staticClass:"foot-btn"},[t._v("加入购物车")]),a("block-select-mask",{attrs:{"is-selected":t.selected},on:{selectedBlock:t.selectedBlock}}),a("block-label",{attrs:{name:t.config.name}}),a("select-tool",{attrs:{visible:t.selected,"selected-index":0,elements:[t.config]},on:{onSet:t.onSet}})],1)},de=[];function ue(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function pe(t){for(var e=1;ee?e:a,0===e&&(a=this.queryParam.page),this.queryParam.page=a,this.getTableList()},onSelectChange:function(t){this.selectedRowKeys=t}},filters:{filterStatus:function(t){switch(t){case 1:return"新建";case 2:return"待审核";case 3:return"审核通过";case 4:return"审核拒绝";case 5:return"已暂停";case 6:return"活动中";case 7:return"已结束";default:return"- -"}}},mounted:function(){this.getTableList()},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"LotteryForm"})}},c=s,l=a("2877"),d=Object(l["a"])(c,o,i,!1,null,null,null);e["a"]=d.exports},ed25:function(t,e,a){t.exports=a.p+"img/perch_1.49c51878.jpg"},edff:function(t,e,a){t.exports=a.p+"img/pc-activity-5.7adef6d0.jpg"},ee29:function(t,e,a){},ee60:function(t,e,a){},eedd:function(t,e,a){},ef39:function(t,e,a){"use strict";a("4df0")},ef5d9:function(t,e,a){},ef80:function(t,e,a){},f012:function(t,e,a){},f030:function(t,e,a){},f04f:function(t,e,a){"use strict";a("247a")},f07d:function(t,e,a){},f08d:function(t,e,a){},f0bd:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M41 44V20H7V44H41Z",fill:"none",stroke:"#666","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}}),a("path",{attrs:{d:"M24 44V20",stroke:"#666","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}}),a("path",{attrs:{d:"M41 44H7",stroke:"#666","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}}),a("rect",{attrs:{x:"4",y:"12",width:"40",height:"8",fill:"none",stroke:"#666","stroke-width":"3","stroke-linejoin":"round"}}),a("path",{attrs:{d:"M16 4L24 12L32 4",stroke:"#666","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},f0f0:function(t,e,a){"use strict";a("2cca")},f105:function(t,e,a){},f189:function(t,e,a){},f207:function(t,e,a){"use strict";a("9632")},f297:function(t,e,a){},f2f1:function(t,e,a){},f301:function(t,e,a){},f303:function(t,e,a){t.exports=a.p+"img/nutrition_content_cycle_icon.da644811.png"},f35a:function(t,e,a){"use strict";a("fe8b")},f383:function(t,e,a){},f3d3:function(t,e,a){"use strict";a("97ce")},f3dc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setTwoToneColor=n,e.getTwoToneColor=s;var o=a("8520"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}function n(t){return i["default"].setTwoToneColors({primaryColor:t})}function s(){var t=i["default"].getTwoToneColors();return t.primaryColor}},f3ed:function(t,e,a){},f417:function(t,e,a){t.exports=a.p+"img/miniapp_coupon_list_empty_icon.dfbb88b0.png"},f422:function(t,e,a){"use strict";a("ee60")},f44c:function(t,e,a){t.exports=a.p+"img/miniapp_search_result_empty_icon.e146f8b1.png"},f45e:function(t,e,a){"use strict";a("be80")},f46e:function(t,e,a){"use strict";a("c708")},f505:function(t,e,a){t.exports=a.p+"img/miniapp_sale_price_color.599165bb.png"},f580:function(t,e,a){t.exports=a.p+"img/hotspots-pc.59b8cd4b.jpg"},f5da:function(t,e,a){},f615:function(t,e,a){},f6575:function(t,e,a){},f665:function(t,e,a){},f67f:function(t,e,a){"use strict";a("368c")},f6e8:function(t,e,a){},f70b:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("7b44"),i=r(o);function r(t){return t&&t.__esModule?t:{default:t}}e["default"]=function(){return{prefixCls:i["default"].string,type:i["default"].string,htmlType:i["default"].oneOf(["button","submit","reset"]).def("button"),icon:i["default"].any,shape:i["default"].oneOf(["circle","circle-outline","round"]),size:i["default"].oneOf(["small","large","default"]).def("default"),loading:i["default"].oneOfType([i["default"].bool,i["default"].object]),disabled:i["default"].bool,ghost:i["default"].bool,block:i["default"].bool}}},f70f:function(t,e,a){},f729:function(t,e,a){"use strict";a("8ca1")},f753:function(t,e,a){"use strict";a("4d5e")},f78e:function(t,e,a){"use strict";a("d80d")},f7b9:function(t,e,a){"use strict";a("3ad2")},f7d1:function(t,e,a){t.exports=a.p+"img/site_style.a57c218a.png"},f7ee:function(t,e,a){},f801:function(t,e,a){"use strict";a("28a3")},f886:function(t,e,a){},f90e:function(t,e,a){},f936:function(t,e,a){"use strict";a("3e15")},f948:function(t,e,a){"use strict";a("76a1")},fa01:function(t,e,a){t.exports=a.p+"img/pc-carousel.1e806c95.jpg"},fb02:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},i=[],r=a("2877"),n={},s=Object(r["a"])(n,o,i,!1,null,null,null);e["a"]=s.exports},fb18:function(t,e,a){},fb43:function(t,e,a){t.exports=a.p+"img/product_list_sift_2.82b24dc5.jpg"},fbce:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{attrs:{id:"c-editor"}},[a("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[a("ul",{staticClass:"c-side-1"},[a("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[a("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),a("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[a("div",{staticClass:"props-panel"},[a("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),a("c-tool-group",{attrs:{activeItem:t.activeItem,platform:"mini_app",routerType:"applet"}})],1)]),a("a-layout",{staticStyle:{background:"#f4f9ff"}},[a("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[a("div",{staticClass:"applet-preview-panel",on:{click:function(e){t.siderPropShow=!0}}},[t._t("content")],2)])],1),a("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[a("div",{staticClass:"props-panel",attrs:{id:"props-form"}},[a("c-sider-title",{attrs:{link:"http://wiki.azoyagroup.com/pages/viewpage.action?pageId=10463684"},on:{close:function(e){t.siderPropShow=!1}}},[t._v(t._s(t.activeName))]),t._t("form")],2)])],1)},i=[],r=a("0c47"),n=a("41a2"),s=a("052c"),c={props:{activeItem:{type:String,default:""},activeName:{type:String,default:""}},components:{"c-sider-title":n["a"],"c-tool-group":s["a"]},data:function(){return{PainterSVG:r["a"],siderToolShow:!0,siderPropShow:!0}},methods:{toggleShowTool:function(){this.siderToolShow=!this.siderToolShow},closeTool:function(){this.siderToolShow=!1}},computed:{centerStyleObj:function(){return{paddingLeft:this.siderToolShow?0:"199px",paddingRight:this.siderPropShow?0:"320px"}}},watch:{siderToolShow:function(){this.$set(this.centerStyleObj,"paddingLeft",this.siderToolShow?0:"199px")},siderPropShow:function(){this.$set(this.centerStyleObj,"paddingRight",this.siderPropShow?0:"320px")}}},l=c,d=(a("ac61"),a("2877")),u=Object(d["a"])(l,o,i,!1,null,"55a00d2c",null);e["a"]=u.exports},fc34:function(t,e,a){"use strict";a("0842")},fcb9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antInput=u;var o=e.inBrowser="undefined"!==typeof window,i=e.UA=o&&window.navigator.userAgent.toLowerCase(),r=e.isIE9=i&&i.indexOf("msie 9.0")>0;function n(t,e){for(var a=Object.create(null),o=t.split(","),i=0;i