(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_sgin_list-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 s=i("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"2fda29d4",null,!1,n["a"],void 0);e["default"]=u.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")),s=i("cd6d"),u=i("937f"),r=i("26cb"),c=n(i("823f")),d=i("3255"),l=(n(i("42cb")),i("ddb3")),f=getApp(),v={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,d.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,c.default.getUserProfile().then((function(e){var i=e.userInfo;i.code=t.code,i.spread=f.globalData.spid,i.spread_code=f.globalData.code,(0,s.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(u.EXPIRES_TIME,e.data.result.expires_time,i),o.default.set(u.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=v},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},"146e":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=i("6859"),o=i("26cb"),s=n(i("02f6")),u={components:{authorize:s.default},data:function(){return{loading:!1,loadend:!1,loadtitle:"加载更多",page:1,limit:8,signList:[],isAuto:!1,isShowAuth:!1}},computed:(0,o.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getSignMoneList():(this.isAuto=!0,this.isShowAuth=!0)},onReachBottom:function(){this.getSignMoneList()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getSignMoneList()},authColse:function(t){this.isShowAuth=t},getSignMoneList:function(){var t=this;t.loading||t.loadend||(t.loading=!0,t.loadtitle="",(0,a.getSignMonthList)({page:t.page,limit:t.limit}).then((function(e){var i=e.data,n=i.length