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-05-19 19:03:53 +08:00
|
|
|
|
import {toPage} from "../../../utils/uils.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>
|
2025-05-19 19:03:53 +08:00
|
|
|
|
<view class="view-detail !ml-auto" @click="toPage('/pages/changeLog/index')">查看团队详情></view>
|
2025-04-14 11:42:21 +08:00
|
|
|
|
</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>
|