徐总多门店
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.
jiuhaoshenghuo/public/view_admin/js/chunk-cd10d176.12a2391f.js

8 lines
30 KiB

4 months ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cd10d176","chunk-16fb4b99"],{"11b1":function(t,e,r){"use strict";r.r(e);var n=r("f478"),o=r("2f62");function i(t){return(i="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 a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={name:"goodClass",data:function(){return{list1:[{image:r("30f6"),val:"1-2"},{image:r("8ce3"),val:"2-2"},{image:r("6430"),val:"3-2"},{image:r("8cb4"),val:"2-2-1"},{image:r("616a"),val:"3-2-1"},{image:r("d18a"),val:"4-2"}],list2:[{image:r("cc5c"),val:"1-3"},{image:r("ca2d"),val:"2-3"},{image:r("97f4"),val:"3-3"},{image:r("d18a"),val:"4-3"}],level:2,activeIndex:0,activeStyle:"-1"}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.e)("admin/layout",["menuCollapse","isMobile"])),created:function(){this.getInfo()},methods:{getInfo:function(){var t=this;Object(n.i)().then((function(e){t.level=e.data.level,t.$refs.carousel.setActiveItem(e.data.index)}))},levelChange:function(t){this.$set(this,"activeIndex",0)},swiperChange:function(t){this.activeIndex=t},onSubmit:function(t){var e=this;Object(n.u)({product_category_diy:{level:this.level,index:this.activeIndex}}).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))}}},u=(r("4b1d"),r("2877")),l=Object(u.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goodClass flex"},[e("div",{staticClass:"flex-1"},[e("el-carousel",{ref:"carousel",attrs:{interval:4e3,autoplay:!1,"initial-index":t.activeIndex,type:"card",trigger:"click",height:"700px"},on:{change:t.swiperChange}},t._l(2==t.level?t.list1:t.list2,(function(r,n){return e("el-carousel-item",{key:n},[e("img",{staticClass:"cate-pic",class:t.activeIndex==n?"blue-border":"",attrs:{src:r.image}})])})),1)],1),e("div",{staticClass:"w-400"}),e("div",{staticClass:"right"},[e("div",{staticClass:"main"},[t._m(0),e("div",{staticClass:"main-content bg-fff"},[e("div",{staticClass:"title"},[t._v("页面设置")]),e("div",{staticClass:"form"},[e("div",{staticClass:"form-item mt-20"},[e("div",{staticClass:"form-label"},[t._v("分类等级")]),e("div",{staticClass:"form-value ml-14"},[e("RadioGroup",{on:{"on-change":t.levelChange},model:{value:t.level,callback:function(e){t.level=e},expression:"level"}},[e("Radio",{attrs:{label:2}},[t._v("二级分类")]),e("Radio",{attrs:{label:3}},[t._v("三级分类")])],1)],1)])])])])]),e("Card",{staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-center-wrapper"},[e("Button",{staticClass:"bnt",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("保存")])],1)])],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"main-header bg-fff"},[t("div",{staticClass:"main-title"},[t("span",[this._v("商品分类")])])])}],!1,null,"0e56b74e",null);e.default=l.exports},"30f6":function(t,e,r){t.exports=r.p+"view_admin/img/cate-1-2.ebd4a795.png"},"4b1d":function(t,e,r){"use strict";r("f55c")},"
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
var n;n=function(){return function(){var t={686:function(t,e,r){"use strict";r.d(e,{default:function(){return x}});var n=r(279),o=r.n(n),i=r(370),a=r.n(i),c=r(817),s=r.n(c);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var l=function(t){var e=s()(t);return u("cut"),e},f=function(t,e){var r=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),r=document.createElement("textarea");r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return r.style.top="".concat(n,"px"),r.setAttribute("readonly",""),r.value=t,r}(t);e.container.appendChild(r);var n=s()(r);return u("copy"),r.remove(),n},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},r="";return"string"==typeof t?r=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?r=f(t.value,e):(r=s()(t),u("copy")),r};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)}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,r=void 0===e?"copy":e,n=t.container,o=t.target,i=t.text;if("copy"!==r&&"cut"!==r)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===r&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===r&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?d(i,{container:n}):o?"cut"===r?l(o):d(o,{container:n}):void 0};function v(t){return(v="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 y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=b(t);if(e){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,r)}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e){var r="data-clipboard-".concat(t);if(e.hasAttribute(r))return e.getAttribute(r)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(c,o());var e,r,n,i=g(c);function c(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(r=i.call(this)).resolveOptions(e),r.listenClick(t),r}return e=c,n=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return l(t)}},{key:"isSupported",value:function(){var t=arguments.lengt