This commit is contained in:
2025-05-12 19:45:27 +08:00
parent 2e9c403632
commit ce0587d2b6
47 changed files with 1355 additions and 310 deletions

View File

@@ -1,5 +1,16 @@
<script setup>
import {onMounted, reactive} from "vue";
import {useUserStore} from "../../../pinia/UserStore/index.js";
import Api from "../../../api/index.js";
const UserStore = useUserStore();
const detail = reactive({});
onMounted(() => {
Api.system.myTeamInfo().then(({data}) => {
Object.assign(detail, data);
});
})
</script>
<template>
@@ -8,7 +19,7 @@
我的邀请码
</view>
<view class="invitationCodeValue">
123445
{{ UserStore?.userInfo?.invite }}
</view>
<view class="view-detail !ml-auto">查看团队详情></view>
</view>
@@ -16,15 +27,15 @@
<view class="!mt-[24rpx] !grid grid-cols-3 gap-[22rpx]">
<view class="rounded-[16rpx] bg-[#E8F3FF] p-[20rpx] !flex gap-[6rpx] flex-col">
<view class="test-22r text-[#86909C]">人数</view>
<view class="test-36r text-[#165DFF]">323</view>
<view class="test-36r text-[#165DFF]">{{ detail.count }}</view>
</view>
<view class="rounded-[16rpx] bg-[#E8F3FF] p-[20rpx] !flex gap-[6rpx] flex-col">
<view class="test-22r text-[#86909C]">团队收益</view>
<view class="test-36r text-[#165DFF]">323</view>
<view class="test-36r text-[#165DFF]">{{ detail.income }}</view>
</view>
<view class="rounded-[16rpx] bg-[#E8F3FF] p-[20rpx] !flex gap-[6rpx] flex-col">
<view class="test-22r text-[#86909C]">团队奖励</view>
<view class="test-36r text-[#165DFF]">323</view>
<view class="test-36r text-[#165DFF]">{{ detail.reward }}</view>
</view>
</view>
</template>