(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/merchant/user_integral/index"],{3171:function(t,n,e){"use strict";e.r(n);var i=e("7215"),a=e("f1d9");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("a933");var r=e("828b"),l=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"c0889fb2",null,!1,i["a"],void 0);n["default"]=l.exports},"5eac":function(t,n,e){},7215:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.integralList.length),e=this.integralList.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:e}})},a=[]},a933:function(t,n,e){"use strict";var i=e("5eac"),a=e.n(i);a.a},f1d9:function(t,n,e){"use strict";e.r(n);var i=e("f660"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},f660:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("51a2"),a=e("cef1"),o=e("8f59"),r=e("d5b1"),l=getApp(),s={data:function(){return{urlDomain:this.$Cache.get("imgHost"),navList:[{name:"分值明细",icon:"icon-ic_list"},{name:"分值提升",icon:"icon-a-icon_Scoreincrease"}],current:0,page:1,limit:10,integralList:[],integral:{},loadend:!1,loading:!1,loadTitle:"加载更多",theme:l.globalData.theme}},computed:(0,o.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&(this.getUserInfo(),this.getIntegralList())},deep:!0}},onLoad:function(){var n=(0,r.setThemeColor)();t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:n}),this.isLogin?(this.getUserInfo(),this.getIntegralList()):(0,a.toLogin)()},onReachBottom:function(){this.getIntegralList()},methods:{toHome:function(){this.$util.navigateTo("/pages/index/index")},getUserInfo:function(){var t=this;(0,i.postIntegralUser)().then((function(n){t.$set(t,"integral",n.data)}))},getIntegralList:function(){var t=this;t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,i.getIntegralList)({page:t.page,limit:t.limit}).then((function(n){var e=n.data.list,i=e.length<t.limit;t.integralList=t.$util.SplitArray(e,t.integralList),t.$set(t,"integralList",t.integralList),t.page=t.page+1,t.loading=!1,t.loadend=i,t.loadTitle=i?"到底了~~":"加载更多"}),(function(n){this.loading=!1,t.loadTitle="加载更多"})))},nav:function(t){this.current=t}}};n.default=s}).call(this,e("df3c")["default"])},f759:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("1d3c");i(e("3240"));var a=i(e("3171"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])}},[["f759","common/runtime","common/vendor"]]]);