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

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-16fb4b99"],{"11b1":function(e,t,i){"use strict";i.r(t);var a=i("f478"),n=i("2f62");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=c(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o={name:"goodClass",data:function(){return{list1:[{image:i("30f6"),val:"1-2"},{image:i("8ce3"),val:"2-2"},{image:i("6430"),val:"3-2"},{image:i("8cb4"),val:"2-2-1"},{image:i("616a"),val:"3-2-1"},{image:i("d18a"),val:"4-2"}],list2:[{image:i("cc5c"),val:"1-3"},{image:i("ca2d"),val:"2-3"},{image:i("97f4"),val:"3-3"},{image:i("d18a"),val:"4-3"}],level:2,activeIndex:0,activeStyle:"-1"}},computed:function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Object(n.e)("admin/layout",["menuCollapse","isMobile"])),created:function(){this.getInfo()},methods:{getInfo:function(){var e=this;Object(a.i)().then((function(t){e.level=t.data.level,e.$refs.carousel.setActiveItem(t.data.index)}))},levelChange:function(e){this.$set(this,"activeIndex",0)},swiperChange:function(e){this.activeIndex=e},onSubmit:function(e){var t=this;Object(a.u)({product_category_diy:{level:this.level,index:this.activeIndex}}).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))}}},l=(i("4b1d"),i("2877")),u=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"goodClass flex"},[t("div",{staticClass:"flex-1"},[t("el-carousel",{ref:"carousel",attrs:{interval:4e3,autoplay:!1,"initial-index":e.activeIndex,type:"card",trigger:"click",height:"700px"},on:{change:e.swiperChange}},e._l(2==e.level?e.list1:e.list2,(function(i,a){return t("el-carousel-item",{key:a},[t("img",{staticClass:"cate-pic",class:e.activeIndex==a?"blue-border":"",attrs:{src:i.image}})])})),1)],1),t("div",{staticClass:"w-400"}),t("div",{staticClass:"right"},[t("div",{staticClass:"main"},[e._m(0),t("div",{staticClass:"main-content bg-fff"},[t("div",{staticClass:"title"},[e._v("页面设置")]),t("div",{staticClass:"form"},[t("div",{staticClass:"form-item mt-20"},[t("div",{staticClass:"form-label"},[e._v("分类等级")]),t("div",{staticClass:"form-value ml-14"},[t("RadioGroup",{on:{"on-change":e.levelChange},model:{value:e.level,callback:function(t){e.level=t},expression:"level"}},[t("Radio",{attrs:{label:2}},[e._v("二级分类")]),t("Radio",{attrs:{label:3}},[e._v("三级分类")])],1)],1)])])])])]),t("Card",{staticClass:"fixed-card",style:{left:"".concat(e.menuCollapse?e.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"acea-row row-center-wrapper"},[t("Button",{staticClass:"bnt",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1)])],1)}),[function(){var e=this._self._c;return e("div",{staticClass:"main-header bg-fff"},[e("div",{staticClass:"main-title"},[e("span",[this._v("商品分类")])])])}],!1,null,"0e56b74e",null);t.default=u.exports},"30f6":function(e,t,i){e.exports=i.p+"view_admin/img/cate-1-2.ebd4a795.png"},"4b1d":function(e,t,i){"use strict";i("f55c")},"616a":function(e,t,i){e.exports=i.p+"view_admin/img/cate-3-2-1.22ab3b4e.png"},6430:function(e,t,i){e.exports=i.p+"view_admin/img/cate-3-2.7875992f.png"},"8cb4":function(e,t,i){e.exports=i.p+"view_admin/img/cate-2-2-1.a11ec2e3.png"},"8ce3":function(e,t,i){e.exports=i.p+"view_admin/img/cate-2-2.ce959110.png"},"97f4":function(e,t,i){e.exports=i.p+"view_admin/img/cate-3-3.8b082f87.png"},ca2d:function(e,t,i){e.exports=i.p+"view_admin/img/cate-2-3.e5636195.png"},cc5c:function(e,t,i){e.exports=i.p+"view_admin/img/cate-1-3.1dbcd48b.png"},d18a:function(e,t,i){e.exports=i.p+"view_admin/img/cate-4.9336f9bd.png"},f55c:function(e,t,i){}}]);