admin/plugins/decorate/views/page-design2/18.js

1 line
28 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1760:function(t,e,a){"use strict";a.r(e);var n=a(1999),i=a.n(n),o=a(40),s=a.n(o),c=a(1828),r=a.n(c),p=a(1827),l=a(609),g=a.n(l),d=[{title:"ID",dataIndex:"id",key:"id"},{title:"上次修改时间",dataIndex:"updated_at",key:"updated_at"},{title:"页面名称",dataIndex:"page_name",key:"page_name"},{title:"页面场景",dataIndex:"page_scene_depict",key:"page_scene_depict"},{title:"显示终端",dataIndex:"page_sort_depict",key:"page_sort_depict"},{title:"页面类型",dataIndex:"page_type",key:"page_type",scopedSlots:{customRender:"tags"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"},width:250}],_=[{page:"首页",sync_id:-1,title:"空白模板"},{img:r.a,title:"聚合CPS模板一"}],u={data:function(){return{dialogStyle:{top:"24px"},emptyImage:s.a,templates:_,columns:d,page_name:"",page_sort:"",page_scene:"",mouse_hover_id:"",visible:!1,current_page_sort:"1",current_page_scene:"1",templateVisible:!1,templateActive:0,category:[],previewVisible:!1,previewData:{},extra_data:{},loading:!1,main_page_list:[],main_page_pagination:{current:1,pageSize:10,total:0},template_page_type:"0",category_name:"",template_list:[],template_pagination:{current:1,pageSize:9,total:0}}},components:{layoutPreview:p.a},computed:{},created:function(){this.currentChange(1)},methods:{getCopyLink:function(t){return 1==t.page_scene?2==t.page_sort?"/packageG/newDiy/newDiy?page_id="+t.id:this.fun.getSiteRoot()+"/addons/yun_shop/?menu#/newDiy?page_id="+t.id+"&i="+this.fun.getKeyByI():4==t.page_scene?2==t.page_sort?"/packageG/pages/diyCategory/diyCategory?page_id="+t.id:this.fun.getSiteRoot()+"/addons/yun_shop/?menu#/diyCategory?page_id="+t.id+"&i="+this.fun.getKeyByI():3==t.page_scene?2==t.page_sort?"/packageG/cps/cpsPage/cpsPage?page_id="+t.id:this.fun.getSiteRoot()+"/addons/yun_shop/?menu#/cpsPage?page_id="+t.id+"&i="+this.fun.getKeyByI():void 0},copy:function(t){this.$message.success("复制链接成功")},onError:function(t){this.$message.error("复制失败")},choose:function(t,e){"page"===e?this.current_page_scene=t:(this.current_page_sort=t,"3"===this.current_page_sort&&"3"===this.current_page_scene&&(this.current_page_scene="1"))},toPage:function(t){var e=window.location.href.substring(0,window.location.href.indexOf("route="));window.location.href=e+"route=plugin.decorate.admin.page.detail&i="+this.fun.getKeyByI()+"#/design?page_id="+t.id+"&page_sort="+t.page_sort+"&page_scene="+t.page_scene},showModal:function(){this.visible=!0},mouseenter:function(t){this.mouse_hover_id=t},onChange:function(t,e){var a=this;"0"===t[t.length-1]?e.page_type=["0"]:t.includes("0")?e.page_type=t.filter((function(t){return"0"!==t})):e.page_type=t,t.length<=0&&(e.page_type=["0"]),$http.post("plugin.decorate.admin.decorate.edit-decorate-type",{decorate_id:e.id,page_type:e.page_type.join(",")},"loading").then((function(t){1===t.result&&a.currentChange(a.main_page_pagination.current)})).catch((function(t){console.log(t)}))},handleChange:function(t){this.currentChange(1)},currentChange:function(t){var e=this;this.main_page_pagination.current=t,$http.post("plugin.decorate.admin.decorate.get-list",{page:t,page_name:this.page_name,page_sort:this.page_sort,page_scene:this.page_scene},"loading").then((function(t){1===t.result?(e.main_page_pagination.total=t.data.total,e.main_page_pagination.pageSize=t.data.per_page,e.main_page_list=t.data.data,e.extra_data=t.data.extra_data||{}):(e.main_page_list=[],e.main_page_pagination.total=t.data.total||0,e.main_page_pagination.pageSize=t.data.per_page||0,-1===t.data.status&&e.currentChange(1))})).catch((function(t){console.error(t)}))},deleteIt:function(t){var e=this;this.$confirm({title:"确认删除该装修页面?",onOk:function(){$http.post("plugin.decorate.admin.decorate.del",{id:t},"loading").then((function(t){1===t.result?(e.currentChange(e.main_page_pagination.current),e.$message.success("删除成功")):t.msg&&e.$message.error(t.msg)})).catch((function(t){console.log(t)}))}})},copyIt:function(t){var e=this;$http.post("plugin.decorate.admin.decorate.copy-page",{id:t},"loading").then((function(t){1===t.result?(e.currentChange(e.main_page_pagination.current),e.$message.success("复制成功")):t.msg&&e.$message.error(t.msg)})).catch((function(t){console.log(t)}))},previewIt:function(t){var e=this;$http.post("plugin.decorate.admin.decorate.get-decorate",{decorate_id:t},"loading").then((function(t){1===t.result?(e.previewData=JSON.parse(t.data.datas).map((function(t){return new g.a({id:t.id,component_key:t.component_key,component_title:t.component_title,template_id:t.template_id,remote_data:t.remote_data,remote_style:{}})})),e.previewVisible=!0):(e.previewVisible=!1,t.msg&&e.$message.error(t.msg))})).catch((function(t){console.log(t)}))},close:function(){this.previewVisible=!1},handleOk:function(t){if("1"!==this.current_page_scene||"3"===this.current_page_sort){var e=window.location.href.substring(0,window.location.href.indexOf("route="));window.location.href=e+"route=plugin.decorate.admin.page.detail&i="+this.fun.getKeyByI()+"#/design?page_sort="+this.current_page_sort+"&page_scene="+this.current_page_scene,this.visible=!1}else this.getCategory()},chooseTemplate:function(t){this.templateActive=t},changePageType:function(){"0"===this.template_page_type&&this.template_list[0]?this.templateActive=this.template_list[0].sync_id:this.templateActive=0},getTemplateList:function(t){var e=this;this.template_list=[],this.template_pagination.current=t,$http.get("plugin.decorate.admin.decorate-diy.search",{category_name:this.category_name,pages_name:"首页",type_name:"1"===this.current_page_sort?"H5":"小程序",page:t,page_size:this.template_pagination.pageSize},"loading").then((function(t){1===t.result?(e.template_pagination.total=t.data.total,e.template_pagination.pageSize=t.data.per_page,e.template_list.push(_[0]),e.template_list=e.template_list.concat(t.data.data||[]),"0"===e.template_page_type&&e.template_list[0]&&(e.templateActive=e.template_list[0].sync_id)):(e.template_list=[],-1===t.data.status&&e.currentChange(1))}))},getCategory:function(){var t=this;$http.get("plugin.decorate.admin.decorate-diy.get-category",{},"loading").then((function(e){1===e.result?(t.category=i()(e.data.category)||[],t.getTemplateList(1),t.templateVisible=!0):(t.template_list=[],t.template_list.push(_[0]),t.template_list=t.template_list.concat(e.data.data||[]),"0"===t.template_page_type&&t.template_list[0]&&(t.templateActive=t.template_list[0].sync_id),t.templateVisible=!0)}))},decorateSync:function(){var t=this;$http.get("plugin.decorate.admin.decorate-diy.chick-sync",{},"loading").then((function(e){1===e.result?(t.$message.success(e.msg),t.getCategory()):t.$message.error(e.msg)}))},closeTemplate:function(){if("1"===this.template_page_type){var t=window.location.href.substring(0,window.location.href.indexOf("route="));window.location.href=t+"route=plugin.decorate.admin.page.detail&i="+this.fun.getKeyByI()+"#/design?page_sort="+this.current_page_sort+"&page_scene=3&active="+this.templateActive,this.templateVisible=!1,this.visible=!1}else if(-1===this.templateActive){var e=window.location.href.substring(0,window.location.href.indexOf("route="));window.location.href=e+"route=plugin.decorate.admin.page.detail&i="+this.fun.getKeyByI()+"#/design?page_sort="+this.current_page_sort+"&page_scene="+this.current_page_scene,this.templateVisible=!1,this.visible=!1}else this.createdPage()},createdPage:function(){var t=this;$http.get("plugin.decorate.admin.decorate-diy.choose",{id:this.templateActive},"loading").then((function(e){if(1===e.result){var a=window.location.href.substring(0,window.location.href.indexOf("route="));window.location.href=a+"route=plugin.decorate.admin.page.detail&i="+t.fun.getKeyByI()+"#/design?page_sort="+t.current_page_sort+"&page_scene="+t.current_page_scene+"&page_id="+e.data.id,t.templateVisible=!1,t.visible=!1}else t.$message.error(e.msg)}))}}},v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"page-activity"}},[n("div",{staticClass:"page-head"},[n("a-select",{staticStyle:{width:"20%"},on:{change:t.handleChange},model:{value:t.page_scene,callback:function(e){t.page_scene=e},expression:"page_scene"}},[n("a-select-option",{attrs:{value:""}},[t._v("\n 页面场景\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"1"}},[t._v("\n 普通页面\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"2"}},[t._v("\n 会员中心\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"3"}},[t._v("\n 聚合CPS\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"4"}},[t._v("\n 分类页\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"5"}},[t._v("\n 首页(地址关联)\n ")])],1),t._v(" "),n("a-select",{staticStyle:{width:"25%","margin-left":"5%"},on:{change:t.handleChange},model:{value:t.page_sort,callback:function(e){t.page_sort=e},expression:"page_sort"}},[n("a-select-option",{attrs:{value:""}},[t._v("\n 页面类型\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"1"}},[t._v("\n H5\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"2"}},[t._v("\n 微信小程序\n ")]),t._v(" "),n("a-select-option",{attrs:{value:"3"}},[t._v("\n 聚合APP(原生)\n ")])],1),t._v(" "),n("a-input",{staticStyle:{width:"30%","margin-left":"5%"},attrs:{placeholder:"请输入页面名称进行搜索"},model:{value:t.page_name,callback:function(e){t.page_name="string"==typeof e?e.trim():e},expression:"page_name"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),t._v(" "),n("a-button",{staticStyle:{width:"10%","margin-left":"5%"},attrs:{type:"primary"},on:{click:function(e){return t.currentChange(1)}}},[t._v("\n 搜索\n ")])],1),t._v(" "),n("div",{staticClass:"page-content"},[n("div",{staticClass:"content-head"},[n("div",{staticClass:"left"},[t._v("\n 页面总数: "+t._s(t.main_page_pagination.total)+"\n ")]),t._v(" "),n("div",{attrs:{content:"right"}},[n("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:t.showModal}},[t._v("添加页面")]),t._v(" "),n("a-tooltip",[n("template",{slot:"title"},[t._v("\n Tips: 同一类型仅允许设置一个默认首页,其他页面为自定义页面\n ")]),t._v(" "),n("a-icon",{staticStyle:{color:"#ff9b19","font-size":"18px"},attrs:{type:"alert"}})],2)],1)]),t._v(" "),n("a-spin",{attrs:{spinning:t.loading}},[n("div",{staticClass:"main-page-list"},[n("div",{staticClass:"table-box"},[n("a-table",{attrs:{pagination:{pageSize:t.main_page_pagination.pageSize,current:t.main_page_pagination.current,total:t.main_page_pagination.total,showQuickJumper:!0,onChange:t.currentChange},columns:t.columns,"data-source":t.main_page_list,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"tags",fn:function(e,a){return n("span",{staticClass:"type-box",on:{mouseenter:function(e){return t.mouseenter(a.id)}}},[n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("5"),expression:"record.page_type.includes('5')"}]},[n("template",{slot:"title"},[t._v("\n wap\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_wap",staticStyle:{color:"#5f20fe"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("4"),expression:"record.page_type.includes('4')"}]},[n("template",{slot:"title"},[t._v("\n 支付宝\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_alipay",staticStyle:{color:"#4184ff"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("3"),expression:"record.page_type.includes('3')"}]},[n("template",{slot:"title"},[t._v("\n APP\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_app",staticStyle:{color:"#ffa800"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("2"),expression:"record.page_type.includes('2')"}]},[n("template",{slot:"title"},[t._v("\n 小程序\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_smallprogram",staticStyle:{color:"#00dfb9"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("1"),expression:"record.page_type.includes('1')"}]},[n("template",{slot:"title"},[t._v("\n 公众号\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_gongzhonghao",staticStyle:{color:"#29ba9c"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("7"),expression:"record.page_type.includes('7')"}]},[n("template",{slot:"title"},[t._v("\n 聚合APP(原生)\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-fontclass-cps",staticStyle:{color:"#d5ed19"}})],2),t._v(" "),n("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:a.page_type.includes("0"),expression:"record.page_type.includes('0')"}]},[n("template",{slot:"title"},[t._v("\n 其他页面\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_btn_otherpage",staticStyle:{color:"#ff3d38"}})],2),t._v(" "),n("a-popover",[n("template",{slot:"content"},[1==a.page_sort&&5!=a.page_scene?n("a-checkbox-group",{attrs:{name:"checkboxgroup"},on:{change:function(e){return t.onChange(e,a)}},model:{value:a.page_type,callback:function(e){t.$set(a,"page_type",e)},expression:"record.page_type"}},[n("a-checkbox",{attrs:{value:"1"}},[t._v(" 公众号")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"3"}},[t._v(" APP")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"4"}},[t._v(" 支付宝")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"5"}},[t._v(" wap")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"7"}},[t._v(" 聚合APP(原生)")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"0"}},[t._v(" 其他页面")])],1):t._e(),t._v(" "),2==a.page_sort?n("a-checkbox-group",{attrs:{name:"checkboxgroup"},on:{change:function(e){return t.onChange(e,a)}},model:{value:a.page_type,callback:function(e){t.$set(a,"page_type",e)},expression:"record.page_type"}},[n("a-checkbox",{attrs:{value:"2"}},[t._v(" 小程序")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"0"}},[t._v(" 其他页面")])],1):t._e(),t._v(" "),3==a.page_sort?n("a-checkbox-group",{attrs:{name:"checkboxgroup"},on:{change:function(e){return t.onChange(e,a)}},model:{value:a.page_type,callback:function(e){t.$set(a,"page_type",e)},expression:"record.page_type"}},[n("a-checkbox",{attrs:{value:"7"}},[t._v(" 聚合APP(原生)")]),n("br"),t._v(" "),n("a-checkbox",{attrs:{value:"0"}},[t._v(" 其他页面")])],1):t._e()],1),t._v(" "),n("div",{staticStyle:{position:"relative"}},[n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.mouse_hover_id==a.id&&4!=a.page_scene,expression:"mouse_hover_id == record.id &&record.page_scene !=4 "}],staticStyle:{color:"#29ba9c",cursor:"pointer","font-size":"18px","margin-top":"3px"},attrs:{type:"form"}})],1)],2)],1)}},{key:"action",fn:function(e,a){return n("span",{staticClass:"edit-box"},[n("a-tooltip",[n("template",{slot:"title"},[t._v("\n 预览\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_operation_perview",on:{click:function(e){return e.stopPropagation(),t.previewIt(a.id)}}})],2),t._v(" "),n("a-tooltip",[n("template",{slot:"title"},[t._v("\n 编辑\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_operation_edit",on:{click:function(e){return e.stopPropagation(),t.toPage(a)}}})],2),t._v(" "),2!=a.page_scene&&3!=a.page_sort?n("a-tooltip",[n("template",{slot:"title"},[t._v("\n 复制链接\n ")]),t._v(" "),n("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.getCopyLink(a),expression:"getCopyLink(record)",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copy,expression:"copy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}],staticClass:"iconfont icon-ht_operation_copyline"})],2):t._e(),t._v(" "),n("a-tooltip",[n("template",{slot:"title"},[t._v("\n 复制页面\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_operation_copypage",on:{click:function(e){return e.stopPropagation(),t.copyIt(a.id)}}})],2),t._v(" "),n("a-tooltip",[n("template",{slot:"title"},[t._v("\n 删除\n ")]),t._v(" "),n("i",{staticClass:"iconfont icon-ht_operation_delete",on:{click:function(e){return e.stopPropagation(),t.deleteIt(a.id)}}})],2)],1)}}])})],1)])])],1),t._v(" "),n("a-modal",{attrs:{width:"800px",title:"预览"},on:{ok:t.close},model:{value:t.previewVisible,callback:function(e){t.previewVisible=e},expression:"previewVisible"}},[n("div",[n("layout-preview",{attrs:{previewData:t.previewData}})],1)]),t._v(" "),n("a-modal",{attrs:{title:"选择页面类型"},on:{ok:t.handleOk},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("div",{staticClass:"modal-box"},[n("p",{staticClass:"modal-title"},[t._v("页面类型")]),t._v(" "),n("div",{staticClass:"page-type-box"},[n("span",{class:["1"===t.current_page_sort?"active":""],on:{click:function(e){return t.choose("1")}}},[t._v("H5(含公众号)")]),t._v(" "),n("span",{class:["2"===t.current_page_sort?"active":""],on:{click:function(e){return t.choose("2")}}},[t._v("微信小程序")]),t._v(" "),n("span",{class:["3"===t.current_page_sort?"active":""],on:{click:function(e){return t.choose("3")}}},[t._v("聚合APP(原生)")])])]),t._v(" "),n("div",{staticClass:"modal-box",staticStyle:{"margin-top":"20px"}},[n("p",{staticClass:"modal-title"},[t._v("页面场景")]),t._v(" "),n("div",{staticClass:"page-type-box"},[n("span",{class:["1"===t.current_page_scene?"active":""],on:{click:function(e){return t.choose("1","page")}}},[t._v(t._s(3!=t.current_page_sort?"普通页面":"首页"))]),t._v(" "),3!=t.current_page_sort?n("span",{class:["2"===t.current_page_scene?"active":""],on:{click:function(e){return t.choose("2","page")}}},[t._v("会员中心")]):t._e(),t._v(" "),3!=t.current_page_sort?n("span",{class:["4"===t.current_page_scene?"active":""],on:{click:function(e){return t.choose("4","page")}}},[t._v("商品分类页")]):t._e(),t._v(" "),3!=t.current_page_sort&&t.extra_data.address_relation&&t.extra_data.address_relation.open_state?n("span",{class:["5"===t.current_page_scene?"active":""],on:{click:function(e){return t.choose("5","page")}}},[t._v("首页(地址关联)")]):t._e()])])]),t._v(" "),n("a-modal",{attrs:{width:"1080px",footer:null,dialogStyle:t.dialogStyle},on:{ok:t.closeTemplate},model:{value:t.templateVisible,callback:function(e){t.templateVisible=e},expression:"templateVisible"}},[n("template",{slot:"title"},[n("div",{staticClass:"template-head"},[n("div",{staticClass:"vertical"}),t._v(" "),n("div",{staticClass:"left"},[t._v("\n 模板\n ")])])]),t._v(" "),n("div",{staticClass:"head"},[n("div",{staticClass:"head-title"},[t._v("模版管理:")]),t._v(" "),n("div",{staticClass:"tab-box"},[n("a-button",{staticStyle:{background:"#5AB79D",color:"#ffffff"},on:{click:t.decorateSync}},[t._v("\n 点击同步\n ")])],1)]),t._v(" "),n("div",{staticClass:"head"},[n("div",{staticClass:"head-title"},[t._v("页面:")]),t._v(" "),n("div",{staticClass:"tab-box"},[n("a-radio-group",{attrs:{"button-style":"solid"},on:{change:t.changePageType},model:{value:t.template_page_type,callback:function(e){t.template_page_type=e},expression:"template_page_type"}},[n("a-radio-button",{attrs:{value:"0"}},[t._v("\n "+t._s("1"===t.current_page_sort?"H5普通页面":"2"===t.current_page_sort?"小程序普通页面":"聚合APP原生页面")+"\n ")]),t._v(" "),t.extra_data.aggregation_cps&&1==t.extra_data.aggregation_cps.open_state&&"3"!==t.current_page_sort?n("a-radio-button",{attrs:{value:"1"}},[t._v("\n 聚合CPS\n ")]):t._e()],1)],1)]),t._v(" "),"0"===t.template_page_type&&t.category.length>0?n("div",{staticClass:"head"},[n("div",{staticClass:"head-title"},[t._v("行业:")]),t._v(" "),n("div",{staticClass:"tab-box"},[n("a-radio-group",{attrs:{"button-style":"solid"},on:{change:function(e){return t.getTemplateList(1)}},model:{value:t.category_name,callback:function(e){t.category_name=e},expression:"category_name"}},t._l(t.category,(function(e,a){return n("a-radio-button",{key:a,staticStyle:{"margin-bottom":"10px"},attrs:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1)]):t._e(),t._v(" "),"0"===t.template_page_type?n("div",{staticClass:"template-box"},t._l(t.template_list,(function(e){return n("div",{key:e.sync_id,staticClass:"template-item",style:{backgroundImage:"url("+e.thumb_url+")"},on:{click:function(a){return t.chooseTemplate(e.sync_id)}}},[n("div",{staticClass:"img-box",class:[t.templateActive==e.sync_id?"active":"",-1===e.sync_id?"blank":""]},[-1==e.sync_id?n("img",{staticClass:"plus-icon",attrs:{src:a(1911),alt:""}}):t._e(),t._v(" "),t.templateActive==e.sync_id?n("div",{staticClass:"status-img"},[n("a-button",{staticStyle:{color:"#5AB79D",background:"#FFFFFF"},on:{click:t.closeTemplate}},[t._v("编辑")])],1):t._e()]),t._v(" "),n("div",{staticClass:"template-title"},[t._v(t._s(e.title))])])})),0):t._e(),t._v(" "),"1"===t.template_page_type?n("div",{staticClass:"template-box"},t._l(t.templates,(function(e,i){return n("div",{key:i,staticClass:"template-item",style:{backgroundImage:"url("+e.img+")"},on:{click:function(e){return t.chooseTemplate(i)}}},[n("div",{staticClass:"img-box",class:[t.templateActive==i?"active":"",0===i?"blank":""]},[-1==e.sync_id?n("img",{staticClass:"plus-icon",attrs:{src:a(1911),alt:""}}):t._e(),t._v(" "),t.templateActive==i?n("div",{staticClass:"status-img"},[n("a-button",{staticStyle:{color:"#5AB79D",background:"#FFFFFF"},on:{click:t.closeTemplate}},[t._v("编辑")])],1):t._e()]),t._v(" "),n("p",{staticClass:"template-title"},[t._v(t._s(e.title))])])})),0):t._e(),t._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("a-pagination",{staticClass:"page-pagination",attrs:{showQuickJumper:"",pageSize:t.template_pagination.pageSize,current:t.template_pagination.current,total:t.template_pagination.total},on:{change:t.getTemplateList}})],1)],2)],1)};v._withStripped=!0;var m=a(10);var h=function(t){a(1997)},b=Object(m.a)(u,v,[],!1,h,"data-v-4cb1fbc9",null);b.options.__file="src\\views\\home\\index.vue";e.default=b.exports},1828:function(t,e,a){t.exports=a.p+"c246cebef215c6d8144966cbda8b0f7c.png"},1911:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAAArVJREFUeF7t3SGP1FAQwPF5rSPBEBIgEBQGgUC1dA0CiUAQAh/jEgyfgQT4FhxBEQwCXfo2myBAgoNAYHHI3TekC+LE3Y6Ym1w3/M9dJjN973dz7TzR3SQ78NP3/ZWU0tOqqtp/y323Wq32ZrPZ56kvP019gX3fX6vrehCRUwfXqqq/Syld13UfpryHyQPnnF+LyO0jEF81TXMHYIdAzvmXiJw5rISq/mjb9pyjfHjqLnSwblNommbSe5j04kbYnDPAkf9nAEfq0sHBugADbAnwkLOEnHGAnYBWOsCWkDMOsBPQSgfYEnLGAXYCWukAW0LOOMBOQCsdYEvIGQfYCWilA2wJOeMAOwGtdIAtIWccYCeglQ6wJeSMA+wEtNIBtoSccYCdgFY6wJaQMw6wE9BKB9gScsYBdgJa6QBbQs44wE5AKx1gS8gZB9gJaKUDbAk54wA7Aa10gC0hZxxgJ6CVvgHu+/5iXdfPROSmiJy1kohvFViq6ttSysOu676mYRgupZTeA3vsbTNCX08555cicvfYy1NQUkr7I/BPujesG5YAh9luCi/TfD5/rqr3Y6/zf1bf3CJ4yIX98f8+5MbyI3JVVY9V9Rb3Yzf4MqX0ppTyqG3bLxw03J7bCwAMMC+Dh/YAL4OH8vJxBsG8AANsCDBFBLcIwAAzpoX2AGNaKC9TRDAvwAAzpoX3wNYLMKYF+wMMMHNwaA8wB4fyMqYF8wIMMHNweA8wB58kMXNwsD7AAHPQCO0BDhqhvMzBwbwAA8xBI7wHOGicJDFzcLA+wABz0AjtgZzzNxE5f8RFvjdNcyF0Ac7iu3CLeCEi9w7bp6rut237wGkQmj554MVicXm9Xn8UkdMHJcYvTRWRq+OrUqFCzuKTBx73N37tb13XT0Tkxvh7KWVQ1b2u6z459x+e/gcxMqPmeJnvaAAAAABJRU5ErkJggg=="},1997:function(t,e,a){var n=a(1998);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,a(18).default)("6f8df81a",n,!1,{})},1998:function(t,e,a){(t.exports=a(15)(!1)).push([t.i,'\n#page-activity[data-v-4cb1fbc9] {\n padding: 30px 20px 20px 20px;\n position: relative;\n}\n.page-head[data-v-4cb1fbc9] {\n display: flex;\n}\n.main-page-list[data-v-4cb1fbc9] {\n width: 100%;\n margin-top: 15px;\n}\n.main-page-list .ant-pagination[data-v-4cb1fbc9] {\n text-align: center;\n margin-top: 24px;\n}\n.table-box[data-v-4cb1fbc9] {\n font-weight: bold;\n}\n.content-head[data-v-4cb1fbc9] {\n display: flex;\n margin-top: 15px;\n}\n.content-head .left[data-v-4cb1fbc9] {\n position: relative;\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n display: flex;\n align-self: center;\n justify-self: center;\n flex: 1;\n}\n.content-head .left[data-v-4cb1fbc9]::before {\n content: "";\n width: 5px;\n height: 25px;\n position: absolute;\n top: 0;\n left: -10px;\n background: #29ba9c;\n}\n.content-head .right[data-v-4cb1fbc9] {\n display: flex;\n align-self: center;\n justify-self: center;\n flex: 0 0 100px;\n}\n.edit-box[data-v-4cb1fbc9] {\n display: flex;\n margin-right: 30px;\n}\n.edit-box i[data-v-4cb1fbc9] {\n flex: 1;\n color: #999999;\n margin-left: 15px;\n cursor: pointer;\n}\n.edit-box i[data-v-4cb1fbc9]:hover {\n color: #ffa800;\n}\n.type-box[data-v-4cb1fbc9] {\n display: flex;\n}\n.type-box i[data-v-4cb1fbc9] {\n margin-left: 8px;\n}\n.modal-box[data-v-4cb1fbc9] {\n font-weight: bold;\n margin-top: 10px;\n justify-self: center;\n align-self: center;\n}\n.modal-box .page-type-box[data-v-4cb1fbc9] {\n margin: 10px 0 0 30px;\n display: flex;\n flex-wrap: wrap;\n}\n.modal-box .page-type-box span[data-v-4cb1fbc9] {\n background: white;\n padding: 5px 20px;\n border-radius: 15px;\n cursor: pointer;\n}\n.modal-box .page-type-box .active[data-v-4cb1fbc9] {\n background: #29ba9c;\n color: white;\n padding: 5px 20px;\n border-radius: 15px;\n}\n.head[data-v-4cb1fbc9] {\n color: #333333;\n display: flex;\n align-items: center;\n margin-bottom: 10px;\n}\n.head .head-title[data-v-4cb1fbc9] {\n margin-right: 24px;\n}\n.head .tab-box[data-v-4cb1fbc9] {\n flex: 1;\n}\n.template-box[data-v-4cb1fbc9] {\n color: #333333;\n display: flex;\n flex-wrap: wrap;\n padding: 0 107px;\n}\n.template-box .template-item[data-v-4cb1fbc9] {\n margin: 5px 5px 40px 5px;\n border-radius: 8px;\n cursor: pointer;\n background-size: cover;\n width: 150px;\n height: 270px;\n}\n.template-box .img-box[data-v-4cb1fbc9] {\n position: relative;\n width: 150px;\n height: 270px;\n}\n.template-box .img-box img[data-v-4cb1fbc9] {\n width: 100%;\n height: 270px;\n}\n.template-box .img-box .plus-icon[data-v-4cb1fbc9] {\n width: 44px !important;\n height: 44px !important;\n position: absolute;\n top: 113px;\n left: 53px;\n}\n.template-box .img-box .status-img[data-v-4cb1fbc9] {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: #29ba9c;\n}\n.template-box .img-box .status-img i[data-v-4cb1fbc9] {\n font-size: 30px;\n}\n.template-box .img-box.active[data-v-4cb1fbc9] {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);\n}\n.template-box .template-title[data-v-4cb1fbc9] {\n margin: 10px 0;\n text-align: center;\n}\n.template-head[data-v-4cb1fbc9] {\n color: #333333;\n width: 100%;\n height: 32px;\n display: flex;\n line-height: 32px;\n}\n.template-head .vertical[data-v-4cb1fbc9] {\n width: 4px;\n height: 24px;\n background-color: #29ba9c;\n margin-top: 4px;\n}\n.template-head .left[data-v-4cb1fbc9] {\n margin-left: 8px;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked[data-v-4cb1fbc9]:not(.ant-radio-button-wrapper-disabled) {\n border: 0;\n background: rgba(90, 183, 157, 0.1);\n color: #5AB79D;\n}\n.ant-radio-button-wrapper[data-v-4cb1fbc9] {\n margin-right: 24px;\n background: #f6f6f6;\n color: #999999;\n border: 0;\n}\n.ant-radio-button-wrapper[data-v-4cb1fbc9]:not(:first-child)::before {\n width: 0;\n}\n.blank[data-v-4cb1fbc9] {\n background: #f8f8f8;\n border: 0 !important;\n width: 150px;\n height: 270px;\n}\n.ant-radio-button-wrapper-checked[data-v-4cb1fbc9]:not(.ant-radio-button-wrapper-disabled) {\n box-shadow: 0px 0 0 0 #29ba9c !important;\n}\n',""])},1999:function(t,e,a){t.exports={default:a(2e3),__esModule:!0}},2e3:function(t,e,a){a(2001),t.exports=a(43).Object.values},2001:function(t,e,a){var n=a(55),i=a(2002)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},2002:function(t,e,a){var n=a(72),i=a(145),o=a(122),s=a(165).f;t.exports=function(t){return function(e){for(var a,c=o(e),r=i(c),p=r.length,l=0,g=[];p>l;)a=r[l++],n&&!s.call(c,a)||g.push(t?[a,c[a]]:c[a]);return g}}}}]);