徐总多门店
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
5.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-756f9686"],{"1a0e":function(t,e,i){},6112:function(t,e,i){"use strict";i.r(e);var a=i("f478");function n(t){return(n="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 r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function s(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={name:"rightConfig",components:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},i("2542").a),props:{name:{type:null,default:""},pageId:{type:Number,default:0}},computed:{defultArr:function(){this.$store.dispatch("admin/user/getPageName");var t=this.$store.state.admin.user.pageName;return this.$store.state.admin[t].component}},watch:{name:{handler:function(t,e){this.rCom=[];var i=this.$store.state.admin.user.pageName;if(this.configData=this.$store.state.admin[i].defaultConfig[t],this.rCom=this.$store.state.admin[i].component[t].list,this.configData.selectConfig){var a=this.configData.selectConfig.type?this.configData.selectConfig.type:"";this.configData.selectConfig.list=this.categoryList,a?this.getByCategory():this.getCategory()}},deep:!0},defultArr:{handler:function(t,e){this.rCom=[],this.objToArray(t),this.rCom=t[this.name].list},deep:!0}},data:function(){return{rCom:[],configData:{},isShow:!0,categoryList:[],status:0}},mounted:function(){this.storeStatus()},methods:{storeStatus:function(){var t=this;Object(a.y)().then((function(e){t.status=parseInt(e.data.store_status)}))},getCategory:function(){var t=this;Object(a.h)().then((function(e){var i=[];e.data.map((function(t){i.push({title:t.title,pid:t.pid,activeValue:t.id.toString()})})),t.categoryList=i,t.bus.$emit("upData",i)}))},getByCategory:function(){var t=this;Object(a.g)().then((function(e){var i=[];e.data.map((function(t){i.push({title:t.cate_name,pid:t.pid,activeValue:t.id.toString()})})),t.categoryList=i,t.bus.$emit("upData",i)}))},saveConfig:function(){var t=this,e=this.$store.state.admin.user.pageName,i=this.$store.state.admin[e].defaultConfig,n=this.$store.state.admin[e].periphery;if("z_tabBar"==this.name){if(!n||!this.status)for(var r=i.z_tabBar.tabBarList.list,s=0;s<r.length;s++)if("/pages/storeList/index"==r[s].link||"pages/storeList/index"==r[s].link)return this.$Message.error("请先开启您的周边功能(/pages/storeList/index)");if(i.z_tabBar.tabBarList.list.length<2)return this.$Message.error("您最少应添加2个导航")}Object(a.e)(this.pageId,{value:i}).then((function(e){t.$Message.success("保存成功")}))},objToArray:function(t){var e=[];for(var i in t)e.push(t[i]);return e}}},c=(i("8760"),i("2877")),u={name:"index",components:{rightConfig:Object(c.a)(o,(function(){var t=this,e=t._self._c;return t.rCom.length?e("div",{staticClass:"right-box"},[e("div",{staticClass:"title-bar"},[t._v("模块配置")]),t.rCom.length?e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,a){return e("div",{key:a},[e(i.components.name,{tag:"component",attrs:{name:i.configNme,configData:t.configData}})],1)})),t.rCom.length?e("div",{staticStyle:{"text-align":"center"}},[e("Button",{staticStyle:{width:"100%",margin:"0 auto",height:"40px"},attrs:{type:"primary"},on:{click:t.saveConfig}},[t._v("保存")])],1):t._e()],2):t._e()]):t._e()}),[],!1,null,"be68bd50",null).exports,links:i("2250").default},data:function(){return{configName:"",iframeUrl:"",setConfig:"",updataConfig:"",pageId:0}},created:function(){var t=this,e=this.$route.query.id,i=this.$route.query.name;this.setConfig="admin/"+i+"/setConfig",this.updataConfig="admin/"+i+"/updataConfig",this.pageId=parseInt(e),this.iframeUrl="".concat(location.origin,"?type=iframeMakkMinkkJuan"),Object(a.c)(parseInt(e)).then((function(e){var i=e.data.info.value;t.upData(i)}))},mounted:function(){window.addEventListener("message",this.handleMessage,!1)},methods:{handleMessage:function(t){t.data.name&&(this.configName=t.data.name,this.add(t.data.name))},add:function(t){this.$store.commit(this.setConfig,t)},upData:function(t){this.$store.commit(this.updataConfig,t)}}},f=(i("959b"),Object(c.a)(u,(function(){var t=this._self._c;return t("div",[t("div",{staticClass:"i-layout-page-header"},[t("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("router-link",{attrs:{to:{path:"".concat(this.roterPre,"/setting/pages/devise")}}},[t("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[this._v("返回")])],1),t("span",{staticClass:"mr20",domProps:{textContent:this._s("页面设计")}})],1)])],1),t("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"flex-wrapper"},[t("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:this.iframeUrl,frameborder:"0"}}),t("div",[t("div",{staticClass:"content"},[t("rightConfig",{attrs:{name:this.configName,pageId:this.pageId}})],1)]),t("links")],1)])],1)}),[],!1,null,"43a57755",null));e.default=f.exports},8760:function(t,e,i){"use strict";i("1a0e")},"959b":function(t,e,i){"use strict";i("e72d")},e72d:function(t,e,i){}}]);