1 line
100 KiB
JavaScript
1 line
100 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_sgin-index"],{4234:function(i,t,n){"use strict";n.r(t);var g=n("feca"),a=n("998f");for(var I in a)["default"].indexOf(I)<0&&function(i){n.d(t,i,(function(){return a[i]}))}(I);n("b352");var e=n("f0c5"),s=Object(e["a"])(a["default"],g["b"],g["c"],!1,null,"19f7af74",null,!1,g["a"],void 0);t["default"]=s.exports},"947f":function(i,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("e25e"),n("fb6a");var g=n("c2a3"),a=n("26cb"),I=n("f741"),e=(n("ed11"),{components:{},data:function(){return{active:!1,signCount:[],signSystemList:[],signList:[],signInfo:{},integral:0,isAuto:!1,isShowAuth:!1,day:0,sign_index:0}},computed:(0,a.mapGetters)(["isLogin","userInfo"]),watch:{isLogin:{handler:function(i,t){i&&(this.getUserInfo(),this.getSignSysteam(),this.getSignList())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getSignSysteam(),this.getSignList()):(0,g.toLogin)()},methods:{onLoadFun:function(){this.getUserInfo(),this.getSignSysteam(),this.getSignList()},authColse:function(i){this.isShowAuth=i},getSignSysteam:function(){var i=this;(0,I.getSignConfig)().then((function(t){i.$set(i,"signSystemList",t.data.list),i.day=i.Rp(t.data.list.length)}))},goSignList:function(){return this.$util.Tips("/pages/users/user_sgin_list/index")},getUserInfo:function(){var i=this;(0,I.postSignUser)({all:0,integral:0,sign:1}).then((function(t){t.data.integral=parseInt(t.data.integral);var n=t.data.sumSignDay;i.$set(i,"signInfo",t.data),i.signCount=i.PrefixInteger(n,4),i.sign_index=t.data.signNum}))},getSignList:function(){var i=this;(0,I.getSignList)({page:1,limit:3}).then((function(t){i.$set(i,"signList",t.data.list)}))},Rp:function(i){var t=["零","一","二","三","四","五","六","七","八","九"],n="";i=""+i;for(var g=0;g<i.length;g++)n+=t[parseInt(i.charAt(g))];return n},PrefixInteger:function(i,t){return(Array(t).join("0")+i).slice(-t).split("")},goSign:function(i){var t=this,n=this,g=n.signInfo.sumSignDay;if(n.signInfo.isDaySign)return this.$util.Tips({title:"您今日已签到!"});(0,I.setSignIntegral)().then((function(i){n.active=!0,n.integral=i.data.integral,n.sign_index=n.sign_index+1>n.signSystemList.length?1:n.sign_index+1,n.signCount=n.PrefixInteger(g+1,4),n.$set(n.signInfo,"isDaySign",!0),n.$store.commit("changInfo",{amount1:"integral",amount2:n.$util.$h.Add(n.signInfo.integral,i.data.integral)}),n.getSignList()})).catch((function(i){return t.$util.Tips({title:i})}))},close:function(){this.active=!1}}});t.default=e},"998f":function(i,t,n){"use strict";n.r(t);var g=n("947f"),a=n.n(g);for(var I in g)["default"].indexOf(I)<0&&function(i){n.d(t,i,(function(){return g[i]}))}(I);t["default"]=a.a},b0d9:function(i,t,n){var g=n("fa8f");g.__esModule&&(g=g.default),"string"===typeof g&&(g=[[i.i,g,""]]),g.locals&&(i.exports=g.locals);var a=n("4f06").default;a("196029bb",g,!0,{sourceMap:!1,shadowMode:!1})},b352:function(i,t,n){"use strict";var g=n("b0d9"),a=n.n(g);a.a},fa8f:function(i,t,n){var g=n("24fb");t=g(!1),t.push([i.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间<EFBFBD><EFBFBD>
|