require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/points_mall/index"],{"13fc":function(t,n,e){"use strict";var i=e("e7dd"),o=e.n(i);o.a},"1f61":function(t,n,e){"use strict";e.r(n);var i=e("9372"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"6d71":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.goodList.length),e=n?this.goodList.length:null,i=this.integralGood.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:e,g2:i}})},o=[]},"70a2":function(t,n,e){"use strict";e.r(n);var i=e("6d71"),o=e("1f61");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("13fc");var r=e("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"6b65cff0",null,!1,i["a"],void 0);n["default"]=s.exports},9372:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("1bf5"),a=e("9592"),r=e("cef1"),s=e("8f59"),l=e("953a"),c=i(e("7951")),u=(e("953a"),t.getSystemInfoSync().statusBarHeight),d={mixins:[c.default],components:{emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("a342"))}.bind(null,e)).catch(e.oe)},NavBar:function(){e.e("components/navBar").then(function(){return resolve(e("820c"))}.bind(null,e)).catch(e.oe)},PointsGoods:function(){Promise.all([e.e("common/vendor"),e.e("pages/activity/components/PointsGoods")]).then(function(){return resolve(e("25c5"))}.bind(null,e)).catch(e.oe)}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),sysHeight:u,goodList:[],navList:[],current:0,where:{intervalId:0,page:1,limit:10},integralGood:[],loadend:!1,loading:!1,loadTitle:"加载更多",pageScrollStatus:!1,pointsStyle:o.pointsStyle,hotPointsStyle:o.hotPointsStyle}},computed:(0,s.mapGetters)(["isLogin","uid","globalData"]),onShow:function(){(0,a.silenceBindingSpread)(this.isLogin,this.globalData.spread),this.integralCategory(),this.getIntegralList(),this.isLogin?(this.getStoreIntegral(),this.getUserIntegral()):(0,r.toLogin)()},onLoad:function(t){(0,a.getUserSpread)(t),this.isLogin||(0,r.toLogin)()},watch:{isLogin:{handler:function(t,n){1==t&&(this.getStoreIntegral(),this.getUserIntegral())},deep:!0}},onPageScroll:function(n){n.scrollTop>130?this.pageScrollStatus=!0:n.scrollTop<130&&(this.pageScrollStatus=!1),t.$emit("scroll")},onShareAppMessage:function(){return{title:"积分兑好物",path:"/pages/activity/points_mall/index?sd=".concat(this.uid)}},methods:{toHome:function(){this.$util.navigateTo("/pages/index/index")},touchStart:function(){this.$refs.navBarRef.currentPage=!1},getShareInfo:function(){return{path:"/pages/activity/points_mall/index?sd=".concat(this.uid)}},integralCategory:function(){var t=this;(0,l.integralCategoryApi)().then((function(n){var e=n.data;t.navList=e})).catch((function(n){return t.$util.Tips({title:n})}))},navTap:function(t,n){this.current!==n&&(this.current=n,this.where.intervalId=t,this.where.page=1,this.loadend=!1,this.$set(this,"integralGood",[]),this.getIntegralList())},getIntegralList:function(){var t=this;this.loadend||this.loading||(this.loading=!0,(0,l.integralListApi)(this.where).then((function(n){var e=n.data.list,i=t.where.limit;t.where.page++,t.loadend=i>e.length,t.integralGood=t.integralGood.concat(e),t.loading=!1,t.loadTitle=loadend?"没有更多内容啦~":"加载更多"})).catch((function(n){return t.loading=!1,t.loadTitle="加载更多",t.$util.Tips({title:n})})))},goarrow:function(){t.navigateBack()},getStoreIntegral:function(){var t=this;(0,l.integralProductHotApi)({page:1,limit:20}).then((function(n){t.goodList=n.data.list}))},goGoodsDetail:function(n){t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(n.id,"&type=4")})}},onReachBottom:function(){this.getIntegralList()}};n.default=d}).call(this,e("df3c")["default"])},bda9:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("1d3c");i(e("3240"));var o=i(e("70a2"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},e7dd:function(t,n,e){}},[["bda9","common/runtime","common/vendor","pages/activity/common/vendor"]]]);