2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),a=require("../../api/index.js"),r=require("../../utils/fun.js"),n=require("../../store/index.js");if(!Array){(e.resolveComponent("wd-datetime-picker")+e.resolveComponent("uni-dateformat")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const u=e.defineComponent({__name:"team",setup(u){const o=e.ref(null),s=e.ref([]),i=e.ref({}),l=e.ref(!0),m=e.ref(!1),v=n.Store(),p=e.computed((()=>v.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));function d(){p.value.userRights&&3==p.value.userRights.rightsLevel&&a.api.getTeamMonthlyPerformanceAward({month:r.timeFormat(g.value,"yyyy-MM-ddThh:mm:ss")}).then((e=>{i.value=e}))}e.onShow((()=>{})),e.onLoad((()=>{m.value=f((new Date).getTime()),d()}));const g=e.ref((new Date).getTime());e.ref({});const c=(e,t)=>{a.api.usersGetInfoTeam({pageNo:e,pageSize:t}).then((e=>{o.value.complete(e.list),d()})).catch((e=>{o.value.complete(!1)}))},h=e=>{m.value=f(e.value),o.value.reload()};function f(e){const t=new Date(e<1e12?1e3*e:e),a=new Date,r=a.getFullYear(),n=a.getMonth(),u=t.getFullYear(),o=t.getMonth();return r===u&&n===o}return(a,r)=>e.e({a:p.value.userRights&&3==p.value.userRights.rightsLevel},p.value.userRights&&3==p.value.userRights.rightsLevel?{b:t._imports_0$5,c:t._imports_1$3,d:e.o(h),e:e.o((e=>l.value=!0)),f:e.o((e=>l.value=!1)),g:e.o((e=>g.value=e)),h:e.p({type:"year-month",modelValue:g.value}),i:e.t(i.value.investmentAmount),j:e.t(m.value?"可":"已"),k:e.t(i.value.expectedReturn),l:e.t(i.value.totalExpectedReturn)}:{},{m:p.value.puser},p.value.puser?{n:e.t(p.value.puser?`${p.value.puser.nickname} ${p.value.puser.mobile}`:"无")}:{},{o:e.f(s.value,((t,a,r)=>e.e({a:t.avatar,b:e.t(t.nickname||"微信用户"),c:e.t(t.mobile),d:"e5e17f81-2-"+r+",e5e17f81-0",e:e.p({format:"yyyy-MM-dd hh:mm:ss",date:t.createTime}),f:t.userRights},t.userRights?{g:e.t(t.userRights.rights.rightsName)}:{},{h:a}))),p:e.sr(o,"e5e17f81-0",{k:"paging"}),q:e.o(c),r:e.o((e=>s.value=e)),s:e.p({"refresher-enabled":l.value,modelValue:s.value})})}}),o=e._export_sfc(u,[["__scopeId","data-v-e5e17f81"]]);wx.createPage(o);
|