| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/category/category"],{"155d":function(e,t,n){"use strict";var r=n("a40a"),a=n.n(r);a.a},"46fc":function(e,t,n){"use strict";n.r(t);var r=n("eed7"),a=n("5887");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("155d");var c=n("828b"),i=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=i.exports},5887:function(e,t,n){"use strict";n.r(t);var r=n("a797"),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},a40a:function(e,t,n){e.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}},a797:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("7eb4")),o=r(n("af34")),c=r(n("ee10")),i=r(n("7ca3")),u=r(n("2bc2")),s=n("dc70"),f=n("30a0"),l=n("7398"),d=n("8f59");function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={mixins:[u.default],data:function(){return{styles:{},pagesData:[],height:0,goodsList:[],title:"",tabbarHeight:0}},onLoad:function(){var t=this;(0,s.apiGetPage)({type:2}).then((function(n){var r=n.common.title,a=n.common,o=n.content;e.setNavigationBarTitle({title:r}),t.styles=a,console.log(o.data),t.pagesData=o,t.$nextTick((function(){t.getHeight()}))}))},onShareAppMessage:function(){var e=this.userInfo.code,t={path:"/pages/category/category?invite_code=".concat(e)};return t},computed:b(b({},(0,d.mapGetters)(["userInfo"])),{},{pageStyle:function(){var e=this.styles,t=e.background_color,n=e.background_image,r=e.background_type;if(0!=r&&n&&t){var a=1==r?{"background-color":t}:{"background-image":"url(".concat(n,")")};return a}}}),methods:{getHeight:function(){var t=this;return(0,c.default)(a.default.mark((function n(){var r,o,c;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=0,e.getSystemInfo({success:function(e){r=e.safeAreaInsets.bottom}}),n.next=4,(0,l.getRect)(".category");case 4:return o=n.sent,n.next=7,(0,l.getRect)(".tabbar");case 7:c=n.sent,t.tabbarHeight=c.height+r,t.height=o.height;case 10:case"end":return n.stop()}}),n)})))()},upCallback:function(e){var t=this,n=e.num,r=e.size;(0,f.apiGoodsLists)({page_no:n,page_size:r}).then((function(n){var r=n.lists,a=n.page_size,c=n.count;1==e.num&&(t.goodsList=[]),t.goodsList=[].concat((0,o.default)(t.goodsList),(0,o.default)(r)),t.mescroll.endBySize(a,c)})).catch((function(){t.mescroll.endErr()}))}}};t.default=p}).call(this,n("df3c")["default"])},de9b:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("b46f");r(n("3240"));var a=r(n("46fc"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},eed7:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var r={uSticky:function(){return n.e("components/uview-ui/components/u-sticky/u-sticky").then(n.bind(null,"3420"))},uNavbar:function(){return n.e("components/uview-ui/components/u-navbar/u-navbar").then(n.bind(null,"6331"))},wSearch:function(){return n.e("components/widgets/search/search").then(n.bind(null,"3068"))},wCategory:function(){return n.e("components/widgets/category/category").then(n.bind(null,"a0de"))},tabbar:function(){return n.e("components/tabbar/tabbar").then(n.bind(null,"c5d1"))}},a=function(){var e=this.$createElement,t=(this._self._c,this.__get_style([this.pageStyle]));this.$mp.data=Object.assign({},{$root:{s0:t}})},o=[]}},[["de9b","common/runtime","common/vendor"]]]);
|