require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/rank/index"],{"21e8":function(t,e,n){},"7fde":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"94dd"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.productList,(function(e,n){var i=t.__get_orig(e),a=e.store_label.length;return{$orig:i,g0:a}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]},"9f21":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7ca3")),o=n("0f73"),r=n("95b5"),c=n("4d38"),s=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var d=t.getWindowInfo().statusBarHeight,f={data:function(){return{sysHeight:d,imgHost:c.HTTP_REQUEST_URL,pageScrollStatus:!1,cateList:[],form:{page:1,limit:10,selectId:0},type:1,loading:!1,productList:[],tabList:[{title:"销量榜",type:1},{title:"好评榜",type:2},{title:"收藏榜",type:3}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({headerBg:function(){return"url("+this.imgHost+"/statics/images/product/rank_header.png)"}},(0,s.mapGetters)(["isLogin","uid"])),onLoad:function(t){this.type=t.type?t.type:1,this.getList()},onPageScroll:function(e){e.scrollTop>130?this.pageScrollStatus=!0:e.scrollTop<130&&(this.pageScrollStatus=!1),t.$emit("scroll")},methods:{init:function(){var t=this;(0,o.rankCategoryApi)().then((function(e){t.cateList=e.data,e.data.length&&(t.form.selectId=e.data[0].id)}))},getList:function(){var t=this;this.loading||(0,o.rankListApi)(this.type,this.form).then((function(e){t.productList=t.productList.concat(e.data),t.loading=e.data.length<t.form.limit,t.form.page++}))},goBack:function(){t.navigateBack()},goDetail:function(e){(0,r.goShopDetail)(e,this.uid).catch((function(n){t.navigateTo({url:"/pages/goods_details/index?id=".concat(e.id)})}))},tabChange:function(t){this.type=t,this.loading=!1,this.form.page=1,this.productList=[],this.getList()}},onReachBottom:function(){this.getList()},onShareAppMessage:function(){return{title:"排行榜",path:"/pages/goods/rank/index?spid="+this.uid}},onShareTimeline:function(){return{title:"排行榜",path:"/pages/goods/rank/index?spid="+this.uid}}};e.default=f}).call(this,n("df3c")["default"])},c991:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("f076");i(n("3240"));var a=i(n("d372"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},d372:function(t,e,n){"use strict";n.r(e);var i=n("7fde"),a=n("dd6f");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("db7a");var r=n("828b"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},db7a:function(t,e,n){"use strict";var i=n("21e8"),a=n.n(i);a.a},dd6f:function(t,e,n){"use strict";n.r(e);var i=n("9f21"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a}},[["c991","common/runtime","common/vendor"]]]);