first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1 @@
"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);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "我的团队",
"usingComponents": {
"wd-datetime-picker": "../../uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="data-v-e5e17f81"><z-paging wx:if="{{s}}" class="r data-v-e5e17f81" u-s="{{['d']}}" u-r="paging" bindquery="{{q}}" u-i="e5e17f81-0" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"><view class="p30 data-v-e5e17f81"><view wx:if="{{a}}" class="data-v-e5e17f81" style="position:relative;width:690rpx;height:228rpx;padding:30rpx 25rpx;box-shadow:0rpx 2rpx 8rpx 2rpx rgba(0,88,219,0.06);border-radius:16rpx;overflow:hidden"><image class="data-v-e5e17f81" style="width:690rpx;height:228rpx;position:absolute;top:0;left:0;z-index:-1" src="{{b}}"></image><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;margin-bottom:30rpx"><view class="data-v-e5e17f81" style="font-size:32rpx;font-weight:bold"> 团队业绩奖励 <text class="data-v-e5e17f81" style="font-weight:500;font-size:28rpx;color:#999">(元)</text></view><wd-datetime-picker wx:if="{{h}}" class="data-v-e5e17f81" u-s="{{['d']}}" bindconfirm="{{d}}" bindclose="{{e}}" bindopen="{{f}}" u-i="e5e17f81-1,e5e17f81-0" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view class="data-v-e5e17f81" style="font-size:28rpx;font-weight:bold;color:#5d7a4e;display:flex;align-items:center"> 11月 <image class="data-v-e5e17f81" src="{{c}}" style="width:34rpx;height:34rpx"></image></view></wd-datetime-picker></view><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;font-size:26rpx;margin-bottom:30rpx"><view class="data-v-e5e17f81">本月团队业绩:{{i}}</view><view class="data-v-e5e17f81">{{j}}获得业绩奖励:{{k}}</view></view><view class="data-v-e5e17f81" style="font-size:26rpx"> 累计获得奖励: <text class="data-v-e5e17f81" style="color:#fe3535">{{l}}</text></view></view><view wx:if="{{m}}" class="data-v-e5e17f81" style="font-size:30rpx;background-color:#fff;border-radius:8rpx;padding:25rpx;margin-bottom:25rpx"> 推荐人:{{n}}</view><view class="data-v-e5e17f81" style="font-weight:bold;font-size:32rpx;margin:30rpx 0">团队成员列表</view><view wx:for="{{o}}" wx:for-item="item" wx:key="h" class="user-card data-v-e5e17f81"><view class="avatar-container data-v-e5e17f81"><image class="avatar data-v-e5e17f81" src="{{item.a}}" mode="aspectFit"></image><view class="avatar-container_name data-v-e5e17f81">{{item.b}}</view></view><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;margin-top:20rpx"><view class="phone-time-row data-v-e5e17f81"><view class="phone data-v-e5e17f81">{{item.c}}</view><view class="time data-v-e5e17f81"><uni-dateformat wx:if="{{item.e}}" class="data-v-e5e17f81" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></uni-dateformat></view></view><view class="action-section data-v-e5e17f81"><view wx:if="{{item.f}}" class="action-btn join data-v-e5e17f81">{{item.g}}</view><view wx:else class="action-btn join data-v-e5e17f81">无</view><view class="level-text data-v-e5e17f81">当前等级</view></view></view></view></view></z-paging></view>

View File

@@ -0,0 +1 @@
.user-card.data-v-e5e17f81{border-radius:16rpx;width:690rpx;height:244rpx;background:#fff;padding:30rpx;margin-bottom:30rpx;box-shadow:0 2rpx 8rpx 2rpx rgba(0,88,219,.06)}.avatar-container.data-v-e5e17f81{display:flex;align-items:center}.avatar-container_name.data-v-e5e17f81{font-weight:700;font-size:28rpx;color:#232323}.avatar-container .avatar.data-v-e5e17f81{width:72rpx;height:72rpx;border-radius:50%;margin-right:20rpx;background-color:#999}.info-section.data-v-e5e17f81{flex:1}.username.data-v-e5e17f81{font-size:36rpx;color:#333;font-weight:500;margin-bottom:20rpx;display:block}.phone-time-row.data-v-e5e17f81{margin-top:10rpx}.phone.data-v-e5e17f81{font-weight:400;font-size:28rpx;color:#232323}.time.data-v-e5e17f81{margin-top:20rpx;font-weight:400;font-size:24rpx;color:#999}.action-section.data-v-e5e17f81{display:flex;flex-direction:column;align-items:center}.action-btn.data-v-e5e17f81{font-weight:700;font-size:28rpx;color:#5d7a4e;margin-bottom:4rpx}.level-text.data-v-e5e17f81{margin-top:20rpx;font-weight:400;font-size:24rpx;color:#999}