(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-promoter_rank-index"],{"02f6":function(t,e,i){"use strict";i.r(e);var n=i("65ba"),a=i("1029");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("e49b");var c=i("f0c5"),d=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"2fda29d4",null,!1,n["a"],void 0);e["default"]=d.exports},"0f96":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=n(i("a50e")),c=i("cd6d"),d=i("937f"),r=i("26cb"),s=n(i("823f")),u=i("3255"),l=(n(i("42cb")),i("ddb3")),h=getApp(),g={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1,canGetPrivacySetting:!1}},computed:(0,a.default)((0,a.default)({},(0,r.mapGetters)(["isLogin","userInfo","viewColor"])),(0,u.configMap)(["routine_logo","first_avatar_switch","wechat_phone_switch"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{onclose:function(){this.canGetPrivacySetting=!1},onAgree:function(){var t=this;t.canUseGetUserProfile=!1,s.default.getUserProfile().then((function(e){var i=e.userInfo;i.code=t.code,i.spread=h.globalData.spid,i.spread_code=h.globalData.code,(0,c.commonAuth)({auth:{type:"routine",auth:i}}).then((function(e){if(200!=e.data.status)return uni.setStorageSync("auth_token",e.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var i=e.data.result.expires_time-o.default.time();t.$store.commit("UPDATE_USERINFO",e.data.result.user),t.$store.commit("LOGIN",{token:e.data.result.token,time:i}),t.$store.commit("SETUID",e.data.result.user.uid),o.default.set(d.EXPIRES_TIME,e.data.result.expires_time,i),o.default.set(d.USER_INFO,e.data.result.user,i),t.$emit("onLoadFun",e.data.result.user),e.data.result.user.isNew&&t.mp_is_new&&1==t.first_avatar_switch&&1==t.wechat_phone_switch&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,l.toLogin)(!0)},getUserProfile:function(){var t=this;wx.getPrivacySetting?wx.getPrivacySetting({success:function(e){e.needAuthorization?(t.canGetPrivacySetting=!0,t.$nextTick((function(){t.$refs.privacyAgreement.showPoupon(e.privacyContractName)}))):t.onAgree()},fail:function(){},complete:function(){}}):this.onAgree()},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.canGetPrivacySetting=!1}}};e.default=g},1029:function(t,e,i){"use strict";i.r(e);var n=i("0f96"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"1e7b":function(t,e,i){"use strict";i.r(e);var n=i("b171"),a=i("3923");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("4328");var c=i("f0c5"),d=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"c4bd9c30",null,!1,n["a"],void 0);e["default"]=d.exports},3923:function(t,e,i){"use strict";i.r(e);var n=i("4ff8"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},4328:function(t,e,i){"use strict";var n=i("4b6e"),a=i.n(n);a.a},"4b6e":function(t,e,i){var n=i("579f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("8aa4e788",n,!0,{sourceMap:!1,shadowMode:!1})},"4ff8":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9");var a=n(i("2909")),o=i("6859"),c=i("26cb"),d=n(i("02f6")),r={components:{authorize:d.default},data:function(){return{navList:["周榜","月榜"],active:0,page:1,limit:10,type:"week",loading:!1,loadend:!1,rankList:[],Two:{},One:{},Three:{},isAuto:!1,isShowAuth:!1}},computed:(0,c.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getRanklist():(this.isAuto=!0,this.isShowAuth=!0)},methods:{onLoadFun:function(){this.getRanklist(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getRanklist:function(){var t=this;t.loadend||t.loading||(t.loading=!0,(0,o.getRankList)({page:t.page,limit:t.limit,type:t.active}).then((function(e){var i,n=e.data.list;(i=t.rankList).push.apply(i,(0,a.default)(n)),1==t.page&&(t.One=t.rankList.shift()||{},t.Two=t.rankList.shift()||{},t.Three=t.rankList.shift()||{}),t.loadend=n.length