(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-329d9450"],{"0f3c":function(t,e,n){"use strict";var i=n("66f0");n.n(i).a},"11f3":function(t,e,n){"use strict";var i=n("abce");n.n(i).a},1778:function(t,e,n){"use strict";var i=n("6c73");n.n(i).a},1802:function(t,e,n){"use strict";var i=n("4b5a");n.n(i).a},"1df1":function(t,e,n){"use strict";n.r(e);var i=n("fd0b"),r=n("befa");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("2f62");var c={name:"c_home_select",componentsName:"home_select",components:function(t){for(var e=1;e650?650:e;var n=t;window.onresize=function(){n.clientHeight="".concat(document.documentElement.clientHeight)-65.81;var t="".concat(document.documentElement.clientHeight)-180;n.rollHeight=t>650?650:t}}))},methods:{returnTap:function(){var t=this;this.$Modal.confirm({title:"温馨提示",content:"确定离开此页面?系统可能不会保存您所做的更改。",onOk:function(){t.$router.push(t.roterPre+"/setting/system_form")},onCancel:function(){t.$Message.info("已取消")}})},leftRemove:function(t){t.to,t.from;var e=t.item,n=(t.clone,t.oldIndex,t.newIndex);this.isSearch&&0==n&&("z_wechat_attention"==e._underlying_vm_.name?this.isFllow=!0:(this.$store.commit("admin/mobildConfig/ARRAYREAST",this.mConfig[0].num),this.mConfig.splice(0,1))),(this.isFllow=n>=1)&&this.$store.commit("admin/mobildConfig/ARRAYREAST",this.mConfig[0].num)},onMove:function(t){return"search_box"!=t.relatedContext.element.name&&"nav_bar"!=t.relatedContext.element.name&&"home_comb"!=t.relatedContext.element.name},onCopy:function(){this.$Message.success("复制成功")},onError:function(){this.$Message.error("复制失败")},getUrlList:function(){var t=this;Object(i.m)().then((function(e){t.urlList=e.data.url}))},bindTab:function(t){this.tabCur=t},objToArr:function(t){return Object.keys(t).map((function(e){return t[e]}))},log:function(t){if(t.moved){if("search_box"==t.moved.element.name)return this.$Message.warning("该组件禁止拖拽");t.moved.oldNum=this.mConfig[t.moved.oldIndex].num,t.moved.newNum=this.mConfig[t.moved.newIndex].num,t.moved.status=t.moved.oldIndex>t.moved.newIndex,this.mConfig.forEach((function(t,e){t.num=1e3*(new Date).getTime()+e})),t.moved.list=this.mConfig,this.rConfig=[];var e=t.moved.element,n=JSON.parse(JSON.stringify(e));this.rConfig.push(n),this.activeIndex=t.moved.newIndex,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",e.name),this.$store.commit("admin/mobildConfig/defaultArraySort",t.moved)}if(t.added){var i=t.added.element,r=1e3*(new Date).getTime();i.num=r,this.activeConfigName=i.name;var o=JSON.parse(JSON.stringify(i));o.id="id"+o.num,this.mConfig[t.added.newIndex]=o,this.rConfig=[],this.rConfig.push(o),this.mConfig.forEach((function(t,e){t.num=1e3*(new Date).getTime()+e})),t.added.list=this.mConfig,this.activeIndex=t.added.newIndex,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",i.name),this.$store.commit("admin/mobildConfig/defaultArraySort",t.added)}},cloneDog:function(t){return y({},t)},swapArray:function(t,e,n){return t[e]=t.splice(n,1,t[e])[0],t},movePage:function(t,e,n){if(n){if(0==e)return}else if(e==this.mConfig.length-1)return;if("search_box"==t.name||"nav_bar"==t.name||"home_comb"==t.name)return this.$Message.warning("该组件禁止移动");if(n){if("search_box"==this.mConfig[e-1].name||"nav_bar"==this.mConfig[e-1].name||"home_comb"==this.mConfig[e-1].name)return this.$Message.warning("搜索框或分类或组合组件必须为顶部");this.swapArray(this.mConfig,e-1,e)}else this.swapArray(this.mConfig,e,e+1);var i={};this.rConfig=[],i.oldIndex=e,i.newIndex=n?e-1:e+1,this.mConfig.forEach((function(t,e){t.num=1e3*(new Date).getTime()+e}));var r=JSON.parse(JSON.stringify(t));this.rConfig.push(r),i.element=t,i.list=this.mConfig,this.activeIndex=n?e-1:e+1,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name),this.$store.commit("admin/mobildConfig/defaultArraySort",i)},addDomCon:function(t,e,n){if("search_box"==t.name){if(this.isSearch)return this.$Message.error("该组件只能添加一次");if(this.isComb)return this.$Message.error("组合组件不能和搜索组件与商品分类组件同时存在");this.isSearch=!0}if("nav_bar"==t.name){if(this.isTab)return this.$Message.error("该组件只能添加一次");if(this.isComb)return this.$Message.error("组合组件不能和搜索组件与商品分类组件同时存在");this.isTab=!0}if("home_comb"==t.name){if(this.isComb)return this.$Message.error("该组件只能添加一次");if(this.isSearch||this.isTab)return this.$Message.error("组合组件不能和搜索组件与商品分类组件同时存在");this.isComb=!0}if("home_service"==t.name){if(this.isService)return this.$Message.error("该组件只能添加一次");this.isService=!0}var i={},r=1e3*(new Date).getTime();t.num="".concat(r),t.id="id".concat(r),this.activeConfigName=t.name;var o=JSON.parse(JSON.stringify(t));"home_comb"==t.name||"search_box"==t.name?(this.rConfig=[],this.mConfig.unshift(o),this.activeIndex=0,this.rConfig.push(o)):"nav_bar"==t.name?(this.rConfig=[],this.mConfig[0]&&"search_box"===this.mConfig[0].name?(this.mConfig.splice(1,0,o),this.activeIndex=1):(this.mConfig.splice(0,0,o),this.activeIndex=0),this.rConfig.push(o)):e?(this.rConfig=[],this.mConfig.push(o),this.activeIndex=this.mConfig.length-1,this.rConfig.push(o)):(this.mConfig.splice(n+1,0,o),this.activeIndex=n),this.mConfig.forEach((function(t,e){t.num=1e3*(new Date).getTime()+e})),i.element=t,i.list=this.mConfig,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name),this.$store.commit("admin/mobildConfig/defaultArraySort",i)},bindAddDom:function(t,e,n){var i=t;this.lConfig.forEach((function(e){t.name==e.name&&(i=e)})),this.addDomCon(i,e,n)},addDom:function(t,e){this.addDomCon(t,e)},bindconfig:function(t,e){this.rConfig=[];var n=JSON.parse(JSON.stringify(t));this.rConfig.push(n),this.activeIndex=e,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name)},bindDelete:function(t,e){"search_box"==t.name&&(this.isSearch=!1),"nav_bar"==t.name&&(this.isTab=!1),"home_comb"==t.name&&(this.isComb=!1),"home_service"==t.name&&(this.isService=!1),this.mConfig.splice(e,1),this.rConfig.splice(0,1),this.mConfig.length!=e?this.rConfig.push(this.mConfig[e]):this.mConfig.length&&(this.activeIndex=e-1,this.rConfig.push(this.mConfig[e-1])),this.$store.commit("admin/mobildConfig/DELETEARRAY",t)},config:function(t){var e=this.propsObj;e.data=t,e.name=this.activeConfigName},addSort:function(t,e,n){return t[e]=t.splice(n,1,t[e])[0],t},arraySort:function(){var t=[],e={title:"组件",list:[],isOpen:!0};this.lConfig.map((function(t,n){0==t.type&&e.list.push(t)})),t.push(e),this.leftMenu=t},diySaveDate:function(t,e){var n=this;Object(r.Fb)(this.pageId,{value:t,name:this.storeName}).then((function(t){n.pageId=t.data.id,n.$Message.success(t.msg);var i=n;2==e?(n.relLoading=!1,setTimeout((function(){i.$router.push(i.roterPre+"/setting/system_form")}),2e3)):n.loading=!1})).catch((function(t){n.loading=!1,n.relLoading=!1,n.$Message.error(t.msg)}))},saveConfig:function(t){if(0==this.mConfig.length)return this.$Message.error("暂未添加任何组件,保存失败!");1==t?this.loading=!0:this.relLoading=!0;var e=this.$store.state.admin.mobildConfig.defaultArray;this.$nextTick((function(){this.diySaveDate(e,t)}))},getDefaultConfig:function(){var t=this;Object(r.Gb)(this.pageId).then((function(e){var n=e.data;t.storeName=n.info.name;var i={},r=[],o=t.objToArr(n.info.value);o.sort((function(t,e){return t.timestamp-e.timestamp})),o.map((function(e,n){e.id="id"+e.timestamp,t.lConfig.map((function(n,o){if(e.name==n.defaultName){n.num=e.timestamp,n.id="id"+e.timestamp;var a=JSON.parse(JSON.stringify(n));r.push(a),i[e.timestamp]=e,t.mConfig.push(a),t.$store.commit("admin/mobildConfig/ADDARRAY",{num:e.timestamp,val:e})}}))})),t.rConfig=[],t.activeIndex=0,t.rConfig.push(t.mConfig[0])}))},reast:function(){var t=this;0==this.pageId?this.$Message.error("新增页面,无法重置"):this.$Modal.confirm({title:"提示",content:"

是否重置当前页面数据

",onOk:function(){t.mConfig=[],t.rConfig=[],t.activeIndex=-99,t.getDefaultConfig()},onCancel:function(){}})}},beforeDestroy:function(){this.$store.commit("admin/mobildConfig/titleUpdata",""),this.$store.commit("admin/mobildConfig/nameUpdata",""),this.$store.commit("admin/mobildConfig/showUpdata",1),this.$store.commit("admin/mobildConfig/colorUpdata",0),this.$store.commit("admin/mobildConfig/picUpdata",0),this.$store.commit("admin/mobildConfig/pickerUpdata","#f5f5f5"),this.$store.commit("admin/mobildConfig/radioUpdata",0),this.$store.commit("admin/mobildConfig/picurlUpdata",""),this.$store.commit("admin/mobildConfig/SETEMPTY")},destroyed:function(){this.$store.commit("admin/mobildConfig/titleUpdata",""),this.$store.commit("admin/mobildConfig/nameUpdata",""),this.$store.commit("admin/mobildConfig/showUpdata",1),this.$store.commit("admin/mobildConfig/colorUpdata",0),this.$store.commit("admin/mobildConfig/picUpdata",0),this.$store.commit("admin/mobildConfig/pickerUpdata","#f5f5f5"),this.$store.commit("admin/mobildConfig/radioUpdata",0),this.$store.commit("admin/mobildConfig/picurlUpdata",""),this.$store.commit("admin/mobildConfig/SETEMPTY")}},_=(n("5a26"),n("2877")),w=Object(_.a)(j,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"diy-page"},[i("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[i("div",{staticClass:"f_return acea-row row-between-wrapper",attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"f_title acea-row row-middle"},[i("div",{staticClass:"acea-row row-middle",on:{click:t.returnTap}},[i("div",{staticClass:"iconfont iconfanhui"}),i("div",{staticClass:"return"},[t._v("返回")])]),i("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})]),i("div",[i("Button",{staticClass:"bnt",attrs:{ghost:""},on:{click:t.reast}},[t._v("重置")]),i("Button",{staticClass:"bnt ml20 w-80",attrs:{ghost:"",loading:t.loading},on:{click:function(e){return t.saveConfig(1)}}},[t._v("保存")]),i("Button",{staticClass:"release ml20 w-80",attrs:{loading:t.relLoading},on:{click:function(e){return t.saveConfig(2)}}},[t._v("立即发布")])],1)])]),i("Card",{staticClass:"ivu-mt",staticStyle:{margin:"0 10px"},attrs:{bordered:!1,"dis-hover":""}},[i("div",{staticClass:"diy-wrapper",style:"height:"+t.clientHeight+"px;"},[i("div",{staticClass:"left"},[i("div",{staticClass:"title"},[i("div",[t._v("表单")]),i("Input",{staticClass:"input-add",attrs:{placeholder:"请输入表单标题"},model:{value:t.storeName,callback:function(e){t.storeName=e},expression:"storeName"}})],1),0==t.tabCur?i("div",{staticClass:"wrapper",style:"height:"+(t.clientHeight-96)+"px;"},t._l(t.leftMenu,(function(e,n){return i("div",{key:n},[i("div",{staticClass:"tips",on:{click:function(t){e.isOpen=!e.isOpen}}},[t._v("\n "+t._s(e.title)+"\n "),e.isOpen?i("Icon",{attrs:{type:"ios-arrow-down",size:"16"}}):i("Icon",{attrs:{type:"ios-arrow-forward",size:"16"}})],1),i("draggable",{staticClass:"dragArea list-group",attrs:{list:e.list,group:{name:"people",pull:"clone",put:!1},clone:t.cloneDog,dragClass:"dragClass",filter:".search , .navbar , .homeComb , .service"}},t._l(e.list,(function(n,r){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"item.isOpen"}],key:n.id,staticClass:"list-group-item",class:{search:"搜索框"==n.cname,navbar:"商品分类"==n.cname,homeComb:"组合组件"==n.cname,service:"在线客服"==n.cname},on:{click:function(e){return t.addDom(n,1)}}},[i("div",[i("div",{staticClass:"position",staticStyle:{display:"none"}},[t._v("释放鼠标将组建添加到此处")]),i("span",{staticClass:"conter iconfont-diy",class:n.icon}),i("p",{staticClass:"conter"},[t._v(t._s(n.cname))])])])})),0)],1)})),0):i("div",{staticClass:"wrapper",style:"height:"+(t.clientHeight-46)+"px;"},t._l(t.urlList,(function(e,n){return i("div",{key:n,staticClass:"link-item"},[i("div",{staticClass:"name"},[t._v(t._s(e.name))]),i("div",{staticClass:"link-txt"},[t._v("地址:"+t._s(e.url))]),i("div",{staticClass:"params"},[i("span",{staticClass:"txt"},[t._v("参数:")]),i("span",[t._v(t._s(e.parameter))])]),i("div",{staticClass:"lable"},[i("p",{staticClass:"txt"},[t._v("例如:"+t._s(e.example))]),i("Button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.example,expression:"item.example",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[t._v("复制\n ")])],1)])})),0)]),i("div",{staticClass:"wrapper-con",staticStyle:{flex:"1",background:"#f0f2f5",display:"flex","justify-content":"center","padding-top":"20px",height:"100%"}},[i("div",{staticClass:"content"},[i("div",{staticClass:"contxt",staticStyle:{display:"flex","flex-direction":"column",overflow:"hidden",height:"100%"}},[i("div",{staticClass:"overflowy"},[i("div",{staticClass:"picture"},[i("img",{attrs:{src:n("2d44")}})]),i("div",{staticClass:"page-title"},[t._v("\n 表单\n ")])]),i("div",{staticClass:"scrollCon"},[i("div",{staticStyle:{width:"460px",margin:"0 auto"}},[i("div",{ref:"imgContainer",staticClass:"scroll-box",class:t.picTxt&&2==t.tabValTxt?"fullsize noRepeat":t.picTxt&&1==t.tabValTxt?"repeat ysize":"noRepeat ysize",style:"background-color:"+(t.colorTxt?t.colorPickerTxt:"")+";background-image: url("+(t.picTxt?t.picUrlTxt:"")+");height:"+t.rollHeight+"px;"},[i("draggable",{staticClass:"dragArea list-group",attrs:{list:t.mConfig,group:"people",filter:".top",move:t.onMove,animation:"300"},on:{change:t.log}},t._l(t.mConfig,(function(e,n){return i("div",{key:n,staticClass:"mConfig-item",class:{on:t.activeIndex==n,top:"search_box"==e.name||"nav_bar"==e.name},style:t.colorTxt?"background-color:"+t.colorPickerTxt+";":"background-color:#fff;",on:{click:function(i){return i.stopPropagation(),t.bindconfig(e,n)}}},[i(e.name,{ref:"getComponentData",refInFor:!0,tag:"component",attrs:{configData:t.propsObj,index:n,num:e.num}}),i("div",{staticClass:"delete-box"},[i("div",{staticClass:"handleType"},[i("div",{staticClass:"iconfont iconshanchu2",on:{click:function(i){return i.stopPropagation(),t.bindDelete(e,n)}}}),i("div",{staticClass:"iconfont iconfuzhi",on:{click:function(i){return i.stopPropagation(),t.bindAddDom(e,0,n)}}}),i("div",{staticClass:"iconfont iconshangyi",class:0===n?"on":"",on:{click:function(i){return i.stopPropagation(),t.movePage(e,n,1)}}}),i("div",{staticClass:"iconfont iconxiayi",class:n===t.mConfig.length-1?"on":"",on:{click:function(i){return i.stopPropagation(),t.movePage(e,n,0)}}})])]),i("div",{staticClass:"handle"})],1)})),0)],1)])])])])]),i("div",{staticClass:"right-box"},t._l(t.rConfig,(function(e,n){return i("div",{key:n,staticClass:"mConfig-item",staticStyle:{"background-color":"#fff"}},[i("div",{staticClass:"title-bar"},[t._v(t._s(e.cname))]),i(e.configName,{tag:"component",attrs:{activeIndex:t.activeIndex,num:e.num,index:n},on:{config:t.config}})],1)})),0)])])],1)}),[],!1,null,"0a581ae7",null);e.default=w.exports},"2fb6":function(t,e,n){"use strict";var i=n("3091");n.n(i).a},3077:function(t,e,n){},3091:function(t,e,n){},"331d":function(t,e,n){"use strict";var i=n("2b27");n.n(i).a},"340c":function(t,e,n){"use strict";var i=n("f791");n.n(i).a},"34ca":function(t,e,n){},"404e":function(t,e,n){},"40d2":function(t,e,n){"use strict";var i=n("ddfc");n.n(i).a},"43de":function(t,e,n){},"46dd":function(t,e,n){t.exports=n.p+"view_admin/img/formImg.f0b358fe.png"},"4b5a":function(t,e,n){},"53ad":function(t,e,n){},5448:function(t,e,n){var i={"./c_home_checkbox.vue":"d49a","./c_home_city.vue":"772c","./c_home_date.vue":"57b4","./c_home_daterange.vue":"fc90","./c_home_radio.vue":"a0cd","./c_home_select.vue":"1df1","./c_home_text.vue":"68a3","./c_home_time.vue":"a3fe","./c_home_timerange.vue":"a9af","./c_upload_picture.vue":"657a"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5448"},"57b4":function(t,e,n){"use strict";n.r(e);var i=n("61f7"),r=n("fd0b"),o=n("befa");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("2f62");var s={name:"c_home_date",componentsName:"home_date",components:function(t){for(var e=1;e=8?8:t.numConfig.val;this.picList=[];for(var n=0;n