style(团队成员页): 样式调整

This commit is contained in:
hzj 2025-09-28 19:08:35 +08:00
parent 1882e5b4a4
commit 6025ea83fb
2 changed files with 59 additions and 36 deletions

BIN
src/assets/icon/trash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

View File

@ -41,6 +41,7 @@
<!-- 团队信息 -->
<div
v-if="isFromBdCenter"
style="
background-color: white;
padding: 16px;
@ -92,7 +93,8 @@
justify-content: space-between;
"
>
<div style="width: 70%; display: flex; align-items: center">
<!-- 用户信息 -->
<div style="flex: 1; display: flex; align-items: center">
<div
style="
position: relative;
@ -149,25 +151,40 @@
</div>
</div>
</div>
<div style="width: 30%" v-if="member.hostQuantity || member.billBalance">
<div v-if="member.billBalance" style="color: rgba(0, 0, 0, 0.4); font-weight: 510">
${{ member.billBalance }}
</div>
<!-- bd展示信息 -->
<div v-if="isFromBdCenter" style="width: 25%; display: flex; justify-content: flex-end">
<div
style="
color: rgba(0, 0, 0, 0.4);
font-weight: 510;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
font-size: 0.9em;
"
v-if="member.hostQuantity"
v-if="member.hostQuantity || member.billBalance"
style="display: flex; flex-direction: column"
>
Host number:{{ member.hostQuantity }}
<div v-if="member.billBalance" style="color: rgba(0, 0, 0, 0.4); font-weight: 510">
${{ member.billBalance }}
</div>
<div
style="
color: rgba(0, 0, 0, 0.4);
font-weight: 510;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
font-size: 0.9em;
"
v-if="member.hostQuantity"
>
Host number:{{ member.hostQuantity }}
</div>
</div>
</div>
<!-- agency展示按钮 -->
<img
v-else
src="/src/assets/icon/trash.png"
alt=""
width="30px"
style="display: block"
@click="trash(member)"
/>
</div>
<!-- 加载提示 -->
@ -203,20 +220,19 @@
<div v-if="showDeleteModal" class="modal-overlay" @click="closeDeleteModal">
<div class="delete-modal-content" @click.stop>
<div class="modal-header">
<h3>Confirm Delete</h3>
<h3>Tips</h3>
</div>
<div class="modal-body">
<p>
Are you sure you want to remove
<strong>{{ memberToDelete?.userProfile?.userNickname }}</strong> from the team?
Are you sure you want to remove ID:{{ formatAccount(memberToDelete.userProfile) }} from
the team?
</p>
<p class="warning-text">This action cannot be undone.</p>
</div>
<div class="modal-actions">
<button class="cancel-btn" @click="closeDeleteModal">Cancel</button>
<button class="confirm-btn" @click="confirmDelete">Delete</button>
<button class="confirm-btn" @click="confirmDelete">Confirm</button>
</div>
</div>
</div>
@ -245,6 +261,8 @@ const showDeleteModal = ref(false)
const memberToDelete = ref(null)
const memberListRef = ref(null)
const targetUserId = ref('') //id
//
const loadingMore = ref(false)
const noMoreData = ref(false)
@ -350,6 +368,12 @@ const handleImageError = (event) => {
// event.target.nextElementSibling.style.display = 'flex'
}
//
const trash = (member) => {
showDeleteModal.value = true
memberToDelete.value = member
}
//
const closeDeleteModal = () => {
showDeleteModal.value = false
@ -442,12 +466,14 @@ const getAgentMonth = async () => {
onMounted(async () => {
console.log('Component mounted')
getAgentMonth()
// BD Center
isFromBdCenter.value = route.query.source === 'bd-center'
membersTotal.value = parseInt(route.query.members)
if (isFromBdCenter.value) {
getAgentMonth()
}
await fetchTeamMembers()
//
@ -711,27 +737,24 @@ input::placeholder {
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
}
.cancel-btn {
background-color: #f3f4f6;
color: #374151;
}
.cancel-btn:hover {
background-color: #e5e7eb;
border: 1px solid #e6e6e6;
background-color: #fff;
color: rgba(0, 0, 0, 0.4);
}
.confirm-btn {
background-color: #dc2626;
color: white;
}
.confirm-btn:hover {
background-color: #b91c1c;
color: rgba(255, 255, 255, 0.8);
background: linear-gradient(
152deg,
rgba(198, 112, 255, 0.6) 7.01%,
rgba(119, 38, 255, 0.6) 92.99%
);
}
.cancel-btn:active,