1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fd2c98d2"],{"3dde":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAUaADAAQAAAABAAAAUQAAAACo7oyGAAAFaUlEQVR4Ae2cTYgcRRTHu3pmZ12zm2GH/d4NLigeVg0YjGQP4jc5iJKLQsCDKAh6kFw8iAeJ6DWgB/UiehAJJH4gIoKKYCIoiDGooBBJjElmnGyCMdnNzibT7e9pdhnHYenqqZmukffgn3T3VL169euururq6g0CNSWgBJSAElACSkAJKAEloASUgBJQAkpgPQJmvR9T/GZGRia39PWZZ4PAbDfGXJ3CR6eyLMdx8EW9vrK7Wq1+RSGRq4Jyrhz942dmoFg0rxkT3g/APre+2/aWNya4NgjCWWM2friycv5i2x6vOAhdORI/pdKSgLvNpU/XvgC5bWgodtpCnEIMwzAmyPOuK+7Y34VareasKUtsTiEuLCyscN/5wHGlnbrjJH8cx7HTE+26YwmKxeLwwMCGndwT5wHqzX3RmPgy8RymP3mzUqmcdnpm1JkS8IKAk+ZcKk1tyudNyYsaWQQRhvVzNO1jFllaJm0L4sTE1O4wNI8xsJ5u6b0HDnKfrMh9slw+9RzhrqQJOQ1EMzY2Np/LFV6ip7slTaE+5qHHPgTMXeVy+QDxxTYxWkMslSbm+vvz+wA4Z1NQL6QF5LF6/dIOHgvpxZOb9TixUMg/CcDrkhfRUyln8vm+XbYRW0NkvLWVQgq2BfVCesa2eeK82TZWyWRrU80ZaAYHOXaAIFLdmJv9dWOfmGVCYp5O8a7G8uLYjDfuJ9m2hgiomUbHBHO2Xo/2VKvl9xqP98L2+Pj03Tzub6ZOI6vxAnZidTvp/9bNuYXjpVwucDat1MJ/xw5FUVzD+YV2C3ABsd0Yej6/QnRwChWiQnRAwIELvRIVogMCDlz4fiXK9Np9yH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TkSuQmCC"},da69:function(t,i,e){"use strict";e.r(i);var n=e("f478"),a=e("310e"),s=e.n(a),o=e("877c"),r=e("6980"),c=e("4358"),l=e("2f62"),m=e("d708");function g(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 d(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?g(e,!0).forEach((function(i){f(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(e).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function f(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}var h={inject:["reload"],name:"index.vue",components:d({footPage:c.a,draggable:s.a},o.a,{},r.a),filters:{filterTxt:function(t){if(t)return t.substr(0,t.length-1)}},computed:d({},Object(l.e)({titleTxt:function(t){return t.admin.mobildConfig.pageTitle||"专题页"},titleTxt2:function(t){return t.admin.mobildConfig}})),data:function(){return{roterPre:m.a.roterPre,clientHeight:"",rollHeight:"",leftMenu:[],lConfig:[],mConfig:[],rConfig:[],activeConfigName:"",propsObj:{},activeIndex:-99,number:0,pageId:"",pageName:"",pageType:"",category:[],tabList:[{title:"组件库",key:0},{title:"页面链接",key:1}],tabCur:0,urlList:[],footActive:!1,loading:!1,isSearch:!1,isTab:!1,isFllow:!1}},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(o.a)},mounted:function(){var t=this,i={imgList:[e("8ea6"),e("3dde")],name:"主题页",link:"/pages/annex/special/index?id="+this.pageId};this.$nextTick((function(){t.$store.commit("admin/mobildConfig/FOOTER",{title:"是否显示",name:i}),t.arraySort(),0!=t.pageId&&t.getDefaultConfig(),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:{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},onCopy:function(){this.$Message.success("复制成功")},onError:function(){this.$Message.error("复制失败")},setmoren:function(){var t=this;Object(n.t)(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.r)(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.m)().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("该组件禁止拖拽");if("nav_bar"==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,a=1e3*(new Date).getTime();n.num=a,this.activeConfigName=n.name;var s=JSON.parse(JSON.stringify(n));s.id="id"+s.num,this.mConfig[t.added.newIndex]=s,this.rConfig=[],this.rConfig.push(s),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 d({},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)return this.$Message.warning("该组件禁止移动");if("nav_bar"==t.name)return this.$Message.warning("该组件禁止移动");if(e){if("search_box"==this.mConfig[i-1].name||"nav_bar"==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 a=JSON.parse(JSON.stringify(t));this.rConfig.push(a),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("该组件只能添加一次");this.isSearch=!0}if("nav_bar"==t.name){if(this.isTab)return this.$Message.error("该组件只能添加一次");this.isTab=!0}var n={},a=1e3*(new Date).getTime();t.num="".concat(a),t.id="id".concat(a),this.activeConfigName=t.name;var s=JSON.parse(JSON.stringify(t));"search_box"==t.name?(this.rConfig=[],this.mConfig.unshift(s),this.activeIndex=0,this.rConfig.push(s)):"nav_bar"==t.name?(this.rConfig=[],this.mConfig[0]&&"search_box"===this.mConfig[0].name?(this.mConfig.splice(1,0,s),this.activeIndex=1):(this.mConfig.splice(0,0,s),this.activeIndex=0),this.rConfig.push(s)):i?(this.rConfig=[],this.mConfig.push(s),this.activeIndex=this.mConfig.length-1,this.rConfig.push(s)):(this.mConfig.splice(e+1,0,s),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)},bindDelete:function(t,i){"search_box"==t.name&&(this.isSearch=!1),"nav_bar"==t.name&&(this.isTab=!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,a){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},saveConfig:function(){var t=this;if(0==this.mConfig.length)return this.$Message.error("暂未添加任何组件,保存失败!");this.loading=!0;var i=this.$store.state.admin.mobildConfig.defaultArray;this.footActive||(i[1e3*(new Date).getTime()]=this.$store.state.admin.mobildConfig.pageFooter,this.footActive=!0),Object(n.e)(this.pageId,{name:this.pageName,type:this.pageType,value:i,title:this.titleTxt}).then((function(i){t.loading=!1,t.pageId=i.data.id,t.$Message.success(i.msg)})).catch((function(i){t.loading=!1,t.$Message.error(i.msg)}))},getDefaultConfig:function(){var t=this;Object(n.c)(this.pageId,{type:2}).then((function(i){var e=i.data,n={},a=[];t.$store.commit("admin/mobildConfig/titleUpdata",e.info.title);var s=t.objToArr(e.info.value);s.sort((function(t,i){return t.timestamp-i.timestamp})),s.map((function(i,e){"headerSerch"==i.name&&(t.isSearch=!0),"tabNav"==i.name&&(t.isTab=!0),i.id="id"+i.timestamp,t.lConfig.map((function(e,s){if(i.name==e.defaultName){e.num=i.timestamp,e.id="id"+i.timestamp;var o=JSON.parse(JSON.stringify(e));a.push(o),n[i.timestamp]=i,t.mConfig.push(o),t.$store.commit("admin/mobildConfig/ADDARRAY",{num:i.timestamp,val:i})}}))}));var o=s[s.length-1];"pageFoot"==o.name&&t.$store.commit("admin/mobildConfig/footPageUpdata",o),t.rConfig=[],t.activeIndex=0,t.rConfig.push(t.mConfig[0])}))},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/SETEMPTY")},destroyed:function(){this.$store.commit("admin/mobildConfig/titleUpdata",""),this.$store.commit("admin/mobildConfig/SETEMPTY")}},u=(e("46c0"),e("2877")),A=Object(u.a)(h,(function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"diy-page"},[n("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"float-l"},[n("router-link",{attrs:{to:{path:t.roterPre+"/setting/pages/special"}}},[n("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回\n ")])],1),n("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1),n("div",{staticStyle:{float:"right"}},[n("Button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loading},on:{click:t.saveConfig}},[t._v("保存")]),n("Button",{staticClass:"bnt ml20",on:{click:t.reast}},[t._v("重置")])],1)])]),n("Card",{staticClass:"ivu-mt",staticStyle:{margin:"0 10px"},attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"diy-wrapper",style:"height:"+t.clientHeight+"px;"},[n("div",{staticClass:"left"},[n("div",{staticClass:"title-bar"},t._l(t.tabList,(function(i,e){return n("div",{key:e,staticClass:"title-item",class:{on:t.tabCur==e},on:{click:function(i){return t.bindTab(e)}}},[t._v("\n "+t._s(i.title)+"\n ")])})),0),0==t.tabCur?n("div",{staticClass:"wrapper"},t._l(t.leftMenu,(function(i,e){return n("div",{key:e},[n("div",{staticClass:"tips",on:{click:function(t){i.isOpen=!i.isOpen}}},[t._v("\n "+t._s(i.title)+"\n\n "),i.isOpen?n("Icon",{attrs:{type:"ios-arrow-down",size:"16"}}):n("Icon",{attrs:{type:"ios-arrow-forward",size:"16"}})],1),n("draggable",{staticClass:"dragArea list-group",attrs:{list:i.list,group:{name:"people",pull:"clone",put:!1},clone:t.cloneDog,dragClass:"dragClass",filter:".search , .navbar"}},t._l(i.list,(function(e,a){return n("div",{directives:[{name:"show",rawName:"v-show",value:i.isOpen,expression:"item.isOpen"}],key:e.id,staticClass:"list-group-item",class:{search:"搜索框"==e.cname,navbar:"商品分类"==e.cname},on:{click:function(i){return t.addDom(e,1)}}},[n("div",[n("div",{staticClass:"position",staticStyle:{display:"none"}},[t._v("释放鼠标将组建添加到此处")]),n("span",{staticClass:"conter iconfont-diy",class:e.icon}),n("p",{staticClass:"conter"},[t._v(t._s(e.cname))])])])})),0)],1)})),0):n("div",t._l(t.urlList,(function(i,e){return n("div",{key:e,staticClass:"link-item"},[n("div",{staticClass:"name"},[t._v(t._s(i.name))]),n("div",{staticClass:"link-txt"},[t._v("地址:"+t._s(i.url))]),n("div",{staticClass:"params"},[n("span",{staticClass:"txt"},[t._v("参数:")]),n("span",[t._v(t._s(i.parameter))])]),n("div",{staticClass:"lable"},[n("p",{staticClass:"txt"},[t._v("例如:"+t._s(i.example))]),n("Button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:i.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)]),n("div",{staticClass:"wrapper-con",staticStyle:{flex:"1",background:"#f0f2f5",display:"flex","justify-content":"center","padding-top":"20px",height:"100%"}},[n("div",{staticClass:"content",staticStyle:{display:"flex","justify-content":"center"}},[n("div",{staticClass:"contxt",staticStyle:{display:"flex","flex-direction":"column",overflow:"hidden",height:"100%"}},[n("div",{staticClass:"overflowy"},[n("div",{staticClass:"picture"},[n("img",{attrs:{src:e("2d44")}})]),n("div",{staticClass:"page-title",class:{on:-100==t.activeIndex},on:{click:t.showTitle}},[t._v("\n "+t._s(t.titleTxt)+"\n "),n("div",{staticClass:"delete-box"}),n("div",{staticClass:"handle"})])]),n("div",{staticClass:"scrollCon"},[n("div",{staticStyle:{width:"460px",margin:"0 auto"}},[n("div",{staticClass:"scroll-box",style:"height:"+t.rollHeight+"px;"},[n("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(i,e){return n("div",{key:e,staticClass:"mConfig-item",class:{on:t.activeIndex==e,top:"search_box"==i.name||"nav_bar"==i.name},on:{click:function(n){return n.stopPropagation(),t.bindconfig(i,e)}}},[n(i.name,{ref:"getComponentData",refInFor:!0,tag:"component",attrs:{configData:t.propsObj,index:e,num:i.num}}),n("div",{staticClass:"delete-box"},[n("div",{staticClass:"handleType"},[n("div",{staticClass:"iconfont iconshanchu2",on:{click:function(n){return n.stopPropagation(),t.bindDelete(i,e)}}}),n("div",{staticClass:"iconfont iconfuzhi",on:{click:function(n){return n.stopPropagation(),t.bindAddDom(i,0,e)}}}),n("div",{staticClass:"iconfont iconshangyi",class:0===e?"on":"",on:{click:function(n){return n.stopPropagation(),t.movePage(i,e,1)}}}),n("div",{staticClass:"iconfont iconxiayi",class:e===t.mConfig.length-1?"on":"",on:{click:function(n){return n.stopPropagation(),t.movePage(i,e,0)}}})])]),n("div",{staticClass:"handle"})],1)})),0)],1)])]),n("div",{staticClass:"overflowy"},[n("div",{staticClass:"page-foot",class:{on:-101==t.activeIndex},on:{click:t.showFoot}},[n("footPage"),n("div",{staticClass:"delete-box"}),n("div",{staticClass:"handle"})],1)])]),0!==t.pageId?n("div",{staticClass:"defaultData"},[n("div",{staticClass:"data",on:{click:t.setmoren}},[t._v("设置默认")]),n("div",{staticClass:"data",on:{click:t.getmoren}},[t._v("恢复默认")])]):t._e()])]),n("div",{staticClass:"right-box"},t._l(t.rConfig,(function(i,e){return n("div",{key:e,staticClass:"mConfig-item"},[n("div",{staticClass:"title-bar"},[t._v(t._s(i.cname))]),n(i.configName,{tag:"component",attrs:{activeIndex:t.activeIndex,num:i.num,index:e},on:{config:t.config}})],1)})),0)])])],1)}),[],!1,null,"68a7b2b3",null);i.default=A.exports}}]);
|