Files
xl-mobile/src/pages/user/components/MyTeam.vue

67 lines
1.9 KiB
Vue
Raw Normal View History

2025-04-14 11:42:21 +08:00
<script setup>
2025-05-12 19:45:27 +08:00
import {onMounted, reactive} from "vue";
import {useUserStore} from "../../../pinia/UserStore/index.js";
import Api from "../../../api/index.js";
2025-04-14 11:42:21 +08:00
2025-05-12 19:45:27 +08:00
const UserStore = useUserStore();
const detail = reactive({});
onMounted(() => {
Api.system.myTeamInfo().then(({data}) => {
Object.assign(detail, data);
});
})
2025-04-14 11:42:21 +08:00
</script>
<template>
<view class="!mt-[40rpx] p-[20rpx] bg-[#F2F3F5] rounded-[16rpx] !flex items-center">
<view class="invitationCode">
我的邀请码
</view>
<view class="invitationCodeValue">
2025-05-12 19:45:27 +08:00
{{ UserStore?.userInfo?.invite }}
2025-04-14 11:42:21 +08:00
</view>
<view class="view-detail !ml-auto">查看团队详情></view>
</view>
<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>
2025-05-12 19:45:27 +08:00
<view class="test-36r text-[#165DFF]">{{ detail.count }}</view>
2025-04-14 11:42:21 +08:00
</view>
<view class="rounded-[16rpx] bg-[#E8F3FF] p-[20rpx] !flex gap-[6rpx] flex-col">
<view class="test-22r text-[#86909C]">团队收益</view>
2025-05-12 19:45:27 +08:00
<view class="test-36r text-[#165DFF]">{{ detail.income }}</view>
2025-04-14 11:42:21 +08:00
</view>
<view class="rounded-[16rpx] bg-[#E8F3FF] p-[20rpx] !flex gap-[6rpx] flex-col">
<view class="test-22r text-[#86909C]">团队奖励</view>
2025-05-12 19:45:27 +08:00
<view class="test-36r text-[#165DFF]">{{ detail.reward }}</view>
2025-04-14 11:42:21 +08:00
</view>
</view>
</template>
<style scoped lang="scss">
.view-detail {
color: rgb(29, 33, 41);
font-size: 12px;
font-weight: 500;
letter-spacing: 0;
}
.invitationCode {
color: rgb(78, 89, 105);
font-size: 12px;
font-weight: 500;
line-height: 140%;
letter-spacing: 0;
}
.invitationCodeValue {
color: rgb(29, 33, 41);
font-size: 14px;
font-weight: 500;
line-height: 140%;
letter-spacing: 0;
}
</style>