| 12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/widgets/category/goods"],{"1df9":function(t,e,n){},"1ea3":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={sortIcon:function(){return n.e("components/sort-icon/sort-icon").then(n.bind(null,"2de9"))},mescrollUni:function(){return Promise.all([n.e("common/vendor"),n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null,"01b6"))},wBanner:function(){return n.e("components/widgets/banner/banner").then(n.bind(null,"04bd"))},goodsCard:function(){return n.e("components/goods-card/goods-card").then(n.bind(null,"4daa"))}},s=function(){var t=this.$createElement;this._self._c},o=[]},"3b97":function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r(n("7ca3")),o=r(n("2bc2")),i=n("30a0"),c=r(n("0e36"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={mixins:[c.default,o.default],props:{goodsStyle:{type:String,default:"rectangle"},scrollHeight:{type:[Number,String],default:0},thirdly:{type:Boolean,default:!1}},components:{thirdlyTabs:function(){n.e("components/widgets/category/thirdly-tabs").then(function(){return resolve(n("a5db"))}.bind(null,n)).catch(n.oe)}},data:function(){return{downOption:{auto:!1},search:{price:"",sale:"",brand_id:""},upOption:{auto:!1,noMoreSize:1,empty:{icon:"/static/images/empty/shop.png",tip:"暂无商品~",fixed:!0},toTop:{bottom:300}},category:{},goodsList:[]}},methods:{handSortOptions:function(t){switch(t){case"all":this.$set(this.search,"sale",""),this.$set(this.search,"price","");break;case"sale":this.$set(this.search,"price",""),this.$set(this.search,"sale",this.getSortReverse(this.search.sale));break;case"price":this.$set(this.search,"sale",""),this.$set(this.search,"price",this.getSortReverse(this.search.price));break}this.mescroll.resetUpScroll()},getSortReverse:function(t){switch(t){case"asc":return"desc";case"desc":return"asc";default:return"desc"}},upCallback:function(t){var e=this,n=t.num,r=t.size;(0,i.apiGoodsLists)(l(l({},this.search),{},{page_no:n,page_size:r,category_id:this.category.id})).then((function(n){var r=n.lists,s=(n.page_size,n.count);1==t.num&&(e.goodsList=[]),e.goodsList=e.goodsList.concat(r),e.mescroll.endBySize(r.length,s)})).catch((function(){e.mescroll.endErr()}))},goGoodsDetail:function(t){this.$Router.push({path:"/pages/goods_detail/goods_detail",query:{id:t}})}},computed:{},watch:{selectIndex:{handler:function(t){this.category=this.parent.lists[t]||{},this.goodsList=[],this.mescroll.resetUpScroll()}},leftIndex:{handler:function(t){this.category=this.leftlists[t]||{},this.goodsList=[],this.mescroll.resetUpScroll()}},thirdlyIndex:{handler:function(t){this.thirdlyLists[t]&&(this.category=this.thirdlyLists[t]||{},this.goodsList=[],this.mescroll.resetUpScroll())}}},created:function(){}};e.default=u},"83a0":function(t,e,n){"use strict";n.r(e);var r=n("1ea3"),s=n("c201");for(var o in s)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(o);n("db4a");var i=n("828b"),c=Object(i["a"])(s["default"],r["b"],r["c"],!1,null,"fe52dccc",null,!1,r["a"],void 0);e["default"]=c.exports},c201:function(t,e,n){"use strict";n.r(e);var r=n("3b97"),s=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=s.a},db4a:function(t,e,n){"use strict";var r=n("1df9"),s=n.n(r);s.a}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/widgets/category/goods-create-component',
- {
- 'components/widgets/category/goods-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('df3c')['createComponent'](__webpack_require__("83a0"))
- })
- },
- [['components/widgets/category/goods-create-component']]
- ]);
|