7bdcf43.js 4.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{551:function(t,e,o){var content=o(581);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(21).default)("5bf9bb9a",content,!0,{sourceMap:!1})},580:function(t,e,o){"use strict";o(551)},581:function(t,e,o){var c=o(20)((function(i){return i[1]}));c.push([t.i,".category[data-v-bdbaf238]{position:relative}.category .title[data-v-bdbaf238]{box-sizing:border-box;flex:none;padding:12px 20px;width:160px}.category .category-con[data-v-bdbaf238]{box-shadow:0 2px 4px rgba(0,0,0,.1);height:440px;padding:10px 0;position:absolute;width:100%;z-index:999}.category .category-con .category-one[data-v-bdbaf238]{height:100%;overflow:hidden}.category .category-con .category-one li>a[data-v-bdbaf238]{height:42px;padding:0 20px}.category .category-con .category-one li.active[data-v-bdbaf238]{background-color:#ffeeef}.category .category-con .category-one li.active a[data-v-bdbaf238]{color:#ff2c3c}.category .category-con .category-one .category-float[data-v-bdbaf238]{box-shadow:0 2px 4px rgba(0,0,0,.1);height:440px;left:160px;overflow-y:auto;padding:0 24px;position:absolute;top:0;width:880px}.category .category-con .category-one .category-float[data-v-bdbaf238]::-webkit-scrollbar{display:none}.category .category-con .category-one .category-float a[data-v-bdbaf238]:hover{color:#ff2c3c}.category .category-con .category-one .category-float .float-con .category-three[data-v-bdbaf238]{border-bottom:1px dashed hsla(0,0%,90%,.898)}.category .category-con .category-one .category-float .float-con .category-three .item[data-v-bdbaf238]{margin-bottom:20px;padding-right:10px;width:20%}",""]),c.locals={},t.exports=c},631:function(t,e,o){"use strict";o.r(e);o(32),o(22),o(26),o(33),o(34),o(25),o(13),o(24);var c=o(10),r=o(14);function n(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,c)}return o}var l={data:function(){return{cateTwo:[],showCateFloat:!1,showCate:!1,selectIndex:""}},mounted:function(){console.log(this.category)},methods:{enterCate:function(t){this.cateTwo=this.category.lists[t].sons,this.showCateFloat=!0,this.selectIndex=t},leaveCate:function(){"/"!=this.$route.path&&(this.showCate=!1),this.selectIndex="",this.showCateFloat=!1}},watch:{$route:{immediate:!0,handler:function(t){this.showCate="/"==t.path}}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){Object(c.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(r.e)(["category"]))},d=l,f=(o(580),o(9)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"category",on:{mouseenter:function(e){t.showCate=!0},mouseleave:t.leaveCate}},[e("nuxt-link",{staticClass:"title bg-primary lg white flex",attrs:{to:"/category"}},[e("i",{staticClass:"el-icon-s-fold"}),t._v(" "),e("div",{staticClass:"ml8"},[t._v("全部商品分类")])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.category.length&&t.showCate,expression:"category.length && showCate"}],staticClass:"category-con bg-white"},[e("ul",{staticClass:"category-one"},[t._l(t.category.lists,(function(o,c){return e("li",{key:c,class:{active:c===t.selectIndex},on:{mouseenter:function(e){return t.enterCate(c)}}},[e("nuxt-link",{staticClass:"flex row-center",attrs:{to:"/category?id=".concat(o.id)}},[e("span",{staticClass:"line1"},[t._v(t._s(o.name))])])],1)})),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showCateFloat,expression:"showCateFloat"}],staticClass:"category-float bg-white"},[e("div",{staticClass:"float-con"},t._l(t.cateTwo,(function(o,c){return e("div",{key:c,staticClass:"mt16"},[e("div",{staticClass:"category-two bold mb8"},[e("nuxt-link",{attrs:{to:"/category?id=".concat(o.id)}},[t._v(t._s(o.name))])],1),t._v(" "),e("div",{staticClass:"category-three flex wrap"},t._l(o.sons,(function(o,c){return e("div",{key:c,staticClass:"item"},[e("nuxt-link",{staticClass:"flex",attrs:{to:"/category?id=".concat(o.id)}},[e("el-image",{staticStyle:{width:"48px",height:"48px"},attrs:{src:o.image,fit:"contain"}}),t._v(" "),e("span",{staticClass:"ml8"},[t._v(t._s(o.name))])],1)],1)})),0)])})),0)])],2)])],1)}),[],!1,null,"bdbaf238",null);e.default=component.exports}}]);