You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
23 KiB
1 lines
23 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ca208b5"],{2996:function(t,i,e){"use strict";e.r(i);var n=e("f478"),o=e("b76a"),a=e.n(o),s=e("877c"),r=e("6980"),c=e("4358"),m=e("2f62"),l=e("c0e9"),d=e.n(l),f=e("873b"),g=e("d708"),h=e("d044"),u=e.n(h);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function C(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?v(Object(e),!0).forEach((function(i){b(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function b(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==p(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}var y={inject:["reload"],name:"index.vue",components:C(C({footPage:c.a,html2canvas:d.a,draggable:a.a},s.a),r.a),filters:{filterTxt:function(t){if(t)return t.substr(0,t.length-1)}},computed:C({},Object(m.e)({titleTxt:function(t){return t.admin.mobildConfig.pageTitle||"首页"},nameTxt:function(t){return t.admin.mobildConfig.pageName},showTxt:function(t){return t.admin.mobildConfig.pageShow},colorTxt:function(t){return t.admin.mobildConfig.pageColor},picTxt:function(t){return t.admin.mobildConfig.pagePic},colorPickerTxt:function(t){return t.admin.mobildConfig.pageColorPicker},tabValTxt:function(t){return t.admin.mobildConfig.pageTabVal},picUrlTxt:function(t){return t.admin.mobildConfig.pagePicUrl},pageFooterType:function(t){return t.admin.mobildConfig.pageFooter.navConfig.tabVal},pageFooterBottom:function(t){return t.admin.mobildConfig.pageFooter.mbConfig.val},defaultArrays:function(t){return t.admin.mobildConfig.defaultArray}})),mixins:[f.a],data:function(){return{BaseURL:g.a.apiBaseURL.replace(/adminapi/,""),qrcodeImg:"",modal:!1,clientHeight:"",rollHeight:"",leftMenu:[],lConfig:[],mConfig:[],rConfig:[],activeConfigName:"",propsObj:{},activeIndex:-100,number:0,pageId:"",pageName:"",pageType:"",category:[],tabList:[{title:"组件库",key:0},{title:"页面链接",key:1}],tabCur:0,urlList:[],footActive:!1,loading:!1,relLoading:!1,isSearch:!1,isTab:!1,isFllow:!1,isComb:!1,isService:!1,visible:!0,diyStatus:0}},created:function(){this.categoryList(),this.getUrlList(),this.pageId=this.$route.query.id,this.pageName=this.$route.query.name,this.pageType=this.$route.query.type,this.lConfig=this.objToArr(s.a)},mounted:function(){var t=this,i={imgList:[e("905e"),e("e03b")],name:"购物车",link:"/pages/order_addcart/order_addcart"};this.$nextTick((function(){t.$store.commit("admin/mobildConfig/FOOTER",{title:"是否自定义",name:i}),t.arraySort(),0!=t.pageId?t.getDefaultConfig():t.showTitle(),t.clientHeight="".concat(document.documentElement.clientHeight)-65.81;var e="".concat(document.documentElement.clientHeight)-180;t.rollHeight=e>650?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:{preview:function(){this.modal=!0,this.creatQrCode(this.pageId,this.diyStatus),this.routineCode(this.pageId)},routineCode:function(t){var i=this;Object(n.n)(t).then((function(t){i.qrcodeImg=t.data.image})).catch((function(t){i.$Message.error(t)}))},creatQrCode:function(t,i){this.$refs.qrCodeUrl.innerHTML="";var e="";e=i?"".concat(this.BaseURL,"pages/index/index"):"".concat(this.BaseURL,"pages/annex/special/index?id=").concat(t),new u.a(this.$refs.qrCodeUrl,{text:e,width:160,height:160,colorDark:"#000000",colorLight:"#ffffff",correctLevel:u.a.CorrectLevel.H})},changName:function(t){this.$store.commit("admin/mobildConfig/UPNAME",t.target.value)},cancel:function(){this.visible=!1},determine:function(){var t=this;return""==this.nameTxt.trim()?this.$Message.error("请输入模板名称"):0==this.pageId?(this.$Message.success("修改成功"),!1):(Object(n.f)(this.pageId,{name:this.nameTxt}).then((function(i){t.$Message.success(i.msg)})).catch((function(i){t.$Message.error(i.msg)})),void(this.visible=!1))},returnTap:function(){var t=this;this.$Modal.confirm({title:"温馨提示",content:"确定离开此页面?系统可能不会保存您所做的更改。",onOk:function(){t.$router.push("/admin/setting/pages/devise")},onCancel:function(){t.$Message.info("已取消")}})},leftRemove:function(t){t.to,t.from;var i=t.item,e=(t.clone,t.oldIndex,t.newIndex);this.isSearch&&0==e&&("z_wechat_attention"==i._underlying_vm_.name?this.isFllow=!0:(this.$store.commit("admin/mobildConfig/ARRAYREAST",this.mConfig[0].num),this.mConfig.splice(0,1))),(this.isFllow=e>=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("复制失败")},setmoren:function(){var t=this;Object(n.w)(this.pageId).then((function(i){t.$Message.success(i.msg)})).catch((function(i){t.$Message.error(i.msg)}))},getmoren:function(){var t=this;Object(n.t)(this.pageId).then((function(i){t.$Message.success(i.msg),t.reload()})).catch((function(i){t.$Message.error(i.msg)}))},getUrlList:function(){var t=this;Object(n.o)().then((function(i){t.urlList=i.data.url}))},bindTab:function(t){this.tabCur=t},showTitle:function(){this.activeIndex=-100;var t={};for(var i in r.a)"pageTitle"==i&&((t=r.a[i]).configName=r.a[i].name,t.cname="页面设置");this.rConfig=[],this.rConfig[0]=JSON.parse(JSON.stringify(t))},showFoot:function(){this.activeIndex=-101;var t={};for(var i in r.a)"pageFoot"==i&&((t=r.a[i]).configName=r.a[i].name,t.cname="底部菜单");this.rConfig=[],this.rConfig[0]=JSON.parse(JSON.stringify(t))},objToArr:function(t){return Object.keys(t).map((function(i){return t[i]}))},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,i){t.num=1e3*(new Date).getTime()+i})),t.moved.list=this.mConfig,this.rConfig=[];var i=t.moved.element,e=JSON.parse(JSON.stringify(i));this.rConfig.push(e),this.activeIndex=t.moved.newIndex,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",i.name),this.$store.commit("admin/mobildConfig/defaultArraySort",t.moved)}if(t.added){var n=t.added.element,o=1e3*(new Date).getTime();n.num=o,this.activeConfigName=n.name;var a=JSON.parse(JSON.stringify(n));a.id="id"+a.num,this.mConfig[t.added.newIndex]=a,this.rConfig=[],this.rConfig.push(a),this.mConfig.forEach((function(t,i){t.num=1e3*(new Date).getTime()+i})),t.added.list=this.mConfig,this.activeIndex=t.added.newIndex,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",n.name),this.$store.commit("admin/mobildConfig/defaultArraySort",t.added)}},cloneDog:function(t){return C({},t)},swapArray:function(t,i,e){return t[i]=t.splice(e,1,t[i])[0],t},movePage:function(t,i,e){if(e){if(0==i)return}else if(i==this.mConfig.length-1)return;if("search_box"==t.name||"nav_bar"==t.name||"home_comb"==t.name)return this.$Message.warning("该组件禁止移动");if(e){if("search_box"==this.mConfig[i-1].name||"nav_bar"==this.mConfig[i-1].name||"home_comb"==this.mConfig[i-1].name)return this.$Message.warning("搜索框或选项卡或轮播搜索必须为顶部");this.swapArray(this.mConfig,i-1,i)}else this.swapArray(this.mConfig,i,i+1);var n={};this.rConfig=[],n.oldIndex=i,n.newIndex=e?i-1:i+1,this.mConfig.forEach((function(t,i){t.num=1e3*(new Date).getTime()+i}));var o=JSON.parse(JSON.stringify(t));this.rConfig.push(o),n.element=t,n.list=this.mConfig,this.activeIndex=e?i-1:i+1,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name),this.$store.commit("admin/mobildConfig/defaultArraySort",n)},addDomCon:function(t,i,e){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 n={},o=1e3*(new Date).getTime();t.num="".concat(o),t.id="id".concat(o),this.activeConfigName=t.name;var a=JSON.parse(JSON.stringify(t));"home_comb"==t.name||"search_box"==t.name?(this.rConfig=[],this.mConfig.unshift(a),this.activeIndex=0,this.rConfig.push(a)):"nav_bar"==t.name?(this.rConfig=[],this.mConfig[0]&&"search_box"===this.mConfig[0].name?(this.mConfig.splice(1,0,a),this.activeIndex=1):(this.mConfig.splice(0,0,a),this.activeIndex=0),this.rConfig.push(a)):i?(this.rConfig=[],this.mConfig.push(a),this.activeIndex=this.mConfig.length-1,this.rConfig.push(a)):(this.mConfig.splice(e+1,0,a),this.activeIndex=e),this.mConfig.forEach((function(t,i){t.num=1e3*(new Date).getTime()+i})),n.element=t,n.list=this.mConfig,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name),this.$store.commit("admin/mobildConfig/defaultArraySort",n)},bindAddDom:function(t,i,e){var n=t;this.lConfig.forEach((function(i){t.name==i.name&&(n=i)})),this.addDomCon(n,i,e)},addDom:function(t,i){this.addDomCon(t,i)},bindconfig:function(t,i){this.rConfig=[];var e=JSON.parse(JSON.stringify(t));this.rConfig.push(e),this.activeIndex=i,this.$store.commit("admin/mobildConfig/SETCONFIGNAME",t.name)},bindHide:function(t){var i=this.$store.state.admin.mobildConfig.defaultArray,e=this.rConfig[0].num;i[e].isHide=!i[e].isHide,this.$store.commit("admin/mobildConfig/UPDATEARR",{num:e,val:i[e]})},bindDelete:function(t,i){"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(i,1),this.rConfig.splice(0,1),this.mConfig.length!=i?this.rConfig.push(this.mConfig[i]):this.mConfig.length?(this.activeIndex=i-1,this.rConfig.push(this.mConfig[i-1])):this.showTitle(),this.$store.commit("admin/mobildConfig/DELETEARRAY",t)},config:function(t){var i=this.propsObj;i.data=t,i.name=this.activeConfigName},addSort:function(t,i,e){return t[i]=t.splice(e,1,t[i])[0],t},arraySort:function(){var t=[],i={title:"基础组件",list:[],isOpen:!0},e={title:"营销组件",list:[],isOpen:!0},n={title:"工具组件",list:[],isOpen:!0};this.lConfig.map((function(t,o){0==t.type&&i.list.push(t),1==t.type&&e.list.push(t),2==t.type&&n.list.push(t)})),t.push(i,e,n),this.leftMenu=t},diySaveDate:function(t,i,e,o){var a=this;Object(n.e)(e?0:this.pageId,{type:this.pageType||o,value:t,title:this.titleTxt,name:this.nameTxt||"模板",is_show:this.showTxt?1:0,is_bg_color:this.colorTxt?1:0,color_picker:this.colorPickerTxt,bg_pic:this.picUrlTxt,bg_tab_val:this.tabValTxt,is_bg_pic:this.picTxt?1:0}).then((function(t){a.pageId=t.data.id,a.$Message.success(t.msg);var e=a;2==i?(a.relLoading=!1,setTimeout((function(){e.$router.push("/admin/setting/pages/devise")}),2e3)):a.loading=!1})).catch((function(t){a.relLoading=!1,a.loading=!1,a.$Message.error(t.msg)}))},saveConfig:function(t,i,e){if(0==this.mConfig.length)return this.$Message.error("暂未添加任何组件,保存失败!");1==t?this.loading=!0:this.relLoading=!0;var n=this.$store.state.admin.mobildConfig.defaultArray;if(!this.footActive){var o=1e3*(new Date).getTime();n[o]=this.$store.state.admin.mobildConfig.pageFooter,this.footActive=!0}this.$nextTick((function(){this.diySaveDate(n,t,i,e)}))},getDefaultConfig:function(){var t=this;Object(n.c)(this.pageId,{type:1}).then((function(i){var e=i.data,n={},o=[];t.$store.commit("admin/mobildConfig/titleUpdata",e.info.title),t.$store.commit("admin/mobildConfig/nameUpdata",e.info.name),t.$store.commit("admin/mobildConfig/showUpdata",e.info.is_show),t.$store.commit("admin/mobildConfig/colorUpdata",e.info.is_bg_color||0),t.$store.commit("admin/mobildConfig/picUpdata",e.info.is_bg_pic||0),t.$store.commit("admin/mobildConfig/pickerUpdata",e.info.color_picker||"#f5f5f5"),t.$store.commit("admin/mobildConfig/radioUpdata",e.info.bg_tab_val||0),t.$store.commit("admin/mobildConfig/picurlUpdata",e.info.bg_pic||""),t.diyStatus=e.info.status;var a=t.objToArr(e.info.value);a.sort((function(t,i){return t.timestamp-i.timestamp})),a.map((function(i,e){"headerSerch"==i.name&&(t.isSearch=!0),"tabNav"==i.name&&(t.isTab=!0),"homeComb"==i.name&&(t.isComb=!0),"customerService"==i.name&&(t.isService=!0),i.name,i.id="id"+i.timestamp,t.lConfig.map((function(e,a){if(i.name==e.defaultName){e.num=i.timestamp,e.id="id"+i.timestamp;var s=JSON.parse(JSON.stringify(e));o.push(s),n[i.timestamp]=i,t.mConfig.push(s),t.$store.commit("admin/mobildConfig/ADDARRAY",{num:i.timestamp,val:i})}}))}));var s=a[a.length-1];"pageFoot"==s.name&&t.$store.commit("admin/mobildConfig/footPageUpdata",s),t.showTitle()}))},categoryList:function(){var t=this;Object(n.a)((function(i){t.category=i.data}))},reast:function(){var t=this;0==this.pageId?this.$Message.error("新增页面,无法重置"):this.$Modal.confirm({title:"提示",content:"<p>是否重置当前页面数据</p>",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")}},x=(e("80b6"),e("2877")),w=Object(x.a)(y,(function(){var t=this,i=t._self._c;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("div",{staticClass:"mr20"},[i("span",{staticClass:"name"},[t._v("当前页面:"+t._s(t.nameTxt||"模板"))]),i("Poptip",{attrs:{width:"347"},scopedSlots:t._u([{key:"content",fn:function(){return[i("div",[i("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"必填不超过15个字"},on:{"on-change":t.changName},model:{value:t.nameTxt,callback:function(i){t.nameTxt=i},expression:"nameTxt"}}),i("Button",{attrs:{type:"text"},on:{click:t.cancel}},[t._v("取消")]),i("Button",{attrs:{type:"primary"},on:{click:t.determine}},[t._v("确定")])],1)]},proxy:!0}]),model:{value:t.visible,callback:function(i){t.visible=i},expression:"visible"}},[i("span",{staticClass:"iconfont iconzidingyicaidan"})])],1)]),i("div",{staticClass:"buttons"},[t.pageId?i("Button",{staticClass:"bnt w-74",attrs:{ghost:""},on:{click:t.preview}},[i("span",{staticClass:"iconfont iconshouyintai-yanjing"}),t._v("预览")]):t._e(),i("Button",{staticClass:"bnt ml20 w-74",attrs:{ghost:"",loading:t.loading},on:{click:function(i){return t.saveConfig(1)}}},[t._v("仅保存")]),i("Button",{staticClass:"release ml20 w-74",attrs:{loading:t.relLoading},on:{click:function(i){return t.saveConfig(2)}}},[t._v("保存关闭")])],1)])]),i("Card",{staticClass:"ivu-mt",staticStyle:{"margin-left":"10px"},attrs:{bordered:!1,"dis-hover":""}},[i("div",{staticClass:"diy-wrapper",style:"height:"+t.clientHeight+"px;"},[i("div",{staticClass:"left"},[0==t.tabCur?i("div",{staticClass:"wrapper",style:"height:"+t.clientHeight+"px;"},t._l(t.leftMenu,(function(e,n){return i("div",{key:n,staticClass:"list"},[i("div",{staticClass:"tips",on:{click:function(t){e.isOpen=!e.isOpen}}},[t._v("\n "+t._s(e.title)+"\n\n "),e.isOpen?i("div",{staticClass:"iconfont iconxia"}):i("div",{staticClass:"iconfont iconyou"})]),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,o){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(i){return t.addDom(n,1)}}},[i("div",[i("div",{staticClass:"position",staticStyle:{display:"none"}},[t._v("释放鼠标将组建添加到此处")]),i("svg",{staticClass:"conter iconfont-diy icon svg-icon",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":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:e("2d44")}})]),i("div",{staticClass:"page-title",class:{on:-100==t.activeIndex},on:{click:t.showTitle}},[t._v("\n "+t._s(t.titleTxt)+"\n "),i("div",{staticClass:"delete-box"}),i("div",{staticClass:"handle"})])]),i("div",{staticClass:"scrollCon",style:"height:"+t.rollHeight+"px;"},[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:"")+");min-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,hide:t.defaultArrays[e.num].isHide},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,colorStyle:t.colorStyle}}),i("div",{staticClass:"delete-box"},[i("div",{staticClass:"handleType"},[i("div",{staticClass:"iconfont",class:t.defaultArrays[e.num].isHide?"iconyincang":"iconxianshi",on:{click:function(i){return i.stopPropagation(),t.bindHide(e)}}}),i("div",{staticClass:"iconfont iconshanchu3",on:{click:function(i){return i.stopPropagation(),t.bindDelete(e,n)}}}),i("div",{staticClass:"iconfont icona-fuzhi1",on:{click:function(i){return i.stopPropagation(),t.bindAddDom(e,0,n)}}}),i("div",{staticClass:"iconfont iconshang",class:0===n?"on":"",on:{click:function(i){return i.stopPropagation(),t.movePage(e,n,1)}}}),i("div",{staticClass:"iconfont iconxia",class:n===t.mConfig.length-1?"on":"",on:{click:function(i){return i.stopPropagation(),t.movePage(e,n,0)}}})])]),i("div",{staticClass:"handle"}),i("div",{staticClass:"delete-name"},[t._v(t._s(e.cname))])],1)})),0)],1)])]),i("div",{staticClass:"overflowy"},[i("div",{staticClass:"page-foot",class:{on:-101==t.activeIndex},style:1==t.pageFooterType?"bottom:"+(50+t.pageFooterBottom)+"px":"",on:{click:t.showFoot}},[i("footPage"),i("div",{staticClass:"delete-box"}),i("div",{staticClass:"handle"})],1)]),0!==t.pageId?i("div",{staticClass:"defaultData"},[i("button",{staticClass:"data",on:{click:t.showTitle}},[t._v("页面设置")]),i("button",{staticClass:"data",on:{click:function(i){return t.saveConfig(1,1,1)}}},[t._v("另存模板")]),i("button",{staticClass:"data",on:{click:t.reast}},[t._v("重置")])]):t._e()])])]),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(e.configName,{tag:"component",attrs:{activeIndex:t.activeIndex,num:e.num,index:n},on:{config:t.config}})],1)})),0)])]),i("Modal",{attrs:{title:"预览","footer-hide":""},model:{value:t.modal,callback:function(i){t.modal=i},expression:"modal"}},[i("div",[i("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"acea-row row-around code"},[i("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[i("div",{ref:"qrCodeUrl",staticClass:"QRpic"}),i("span",{staticClass:"mt10"},[t._v("公众号二维码")])]),i("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[i("div",{staticClass:"QRpic"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.qrcodeImg,expression:"qrcodeImg"}]})]),i("span",{staticClass:"mt10"},[t._v("小程序二维码")])])])])])],1)}),[],!1,null,"b37770c2",null);i.default=w.exports},"80b6":function(t,i,e){"use strict";e("a519")},a519:function(t,i,e){}}]); |