docs: “agent”统一更改成“agency”

This commit is contained in:
hzj 2025-10-13 14:49:10 +08:00
parent f764c372c4
commit 6839fca8e7
7 changed files with 23 additions and 33 deletions

View File

@ -3,10 +3,10 @@
<MobileHeader title="Agency Setting" />
<div style="padding: 16px; position: relative; z-index: 2">
<!-- My Agent 部分 -->
<!-- My Agency 部分 -->
<div style="margin-bottom: 20px">
<div style="display: flex; align-items: center; margin-bottom: 12px">
<div style="font-size: 1.4em; font-weight: 600">My Agent</div>
<div style="font-size: 1.4em; font-weight: 600">My Agency</div>
<img src="/src/assets/icon/agency.png" alt="" height="25px" style="display: block" />
</div>
@ -29,7 +29,7 @@
style="aspect-ratio: 1/1; border-radius: 50%; object-fit: cover"
@error="defaultAvatarUrl"
/>
<div class="agent-details" style="flex: 1">
<div style="flex: 1">
<div style="margin-bottom: 4px; font-weight: 600">
{{ userInfo.name }}
</div>
@ -64,8 +64,8 @@ const defaultAvatarUrl = (e) => {
//
const leaveAgent = () => {
if (confirm('Are you sure you want to leave this agent?')) {
showError('Leave agent request submitted')
if (confirm('Are you sure you want to leave this agency?')) {
showError('Leave agency request submitted')
//
}
}

View File

@ -259,7 +259,7 @@
Host Salary: {{ loadingTeamBill ? '' : teamBillInfo.hostSalary }}
</div>
<div class="contentText">
Agent Salary: {{ loadingTeamBill ? '' : teamBillInfo.agentSalary }}
Agency Salary: {{ loadingTeamBill ? '' : teamBillInfo.agentSalary }}
</div>
<div class="contentText">Total: {{ loadingTeamBill ? '' : teamBillInfo.total }}</div>
<div style="display: flex; justify-content: flex-end">

View File

@ -12,8 +12,8 @@
<div class="reminder-section">
<h3>Reminder before application:</h3>
<p>
Enter the ID of your agent, and you will become the host after the host apply is approved.
After becoming an host, your income will be entrusted to your agent
Enter the ID of your agency, and you will become the host after the host apply is
approved. After becoming an host, your income will be entrusted to your agency
</p>
</div>
@ -25,8 +25,8 @@
<input
v-model="agentId"
type="text"
placeholder="Please enter the agent ID"
class="agent-input"
placeholder="Please enter the agency ID"
class="agency-input"
/>
</div>
@ -84,7 +84,7 @@
<div v-if="showHelpModal" class="help-modal" @click="closeHelp">
<div class="help-content" @click.stop>
<h3>Application Help</h3>
<p>Enter your agent's ID and click Apply to submit your application.</p>
<p>Enter your agency's ID and click Apply to submit your application.</p>
<button class="close-btn" @click="closeHelp">Got it</button>
</div>
</div>
@ -195,7 +195,7 @@ const searchTeamAccount = async (account) => {
const submitApplication = async () => {
if (!agentId.value.trim()) {
errorMessage.value = 'Please enter agent ID'
errorMessage.value = 'Please enter agency ID'
return
}
@ -205,7 +205,7 @@ const submitApplication = async () => {
try {
const teamId = await searchTeamAccount(agentId.value.trim())
if (!teamId) {
errorMessage.value = 'Account not found or not an agent'
errorMessage.value = 'Account not found or not an agency'
return
}
@ -346,7 +346,7 @@ usePageInitializationWithConfig('APPLY', {
font-weight: 600;
}
.agent-input {
.agency-input {
width: 100%;
padding: 4px;
border: none;
@ -356,11 +356,11 @@ usePageInitializationWithConfig('APPLY', {
color: rgba(0, 0, 0, 0.4);
}
.agent-input:focus {
.agency-input:focus {
outline: none;
}
.agent-input::placeholder {
.agency-input::placeholder {
color: rgba(0, 0, 0, 0.4);
font-weight: 590;
}

View File

@ -86,7 +86,6 @@ const selectedCoin = ref(null)
const loading = ref(false)
const isLoadingRole = ref(false)
const userRole = ref('')
const selectedUserType = ref('')
//
const coinOptions = reactive([
@ -132,17 +131,9 @@ const checkUserRole = async () => {
// role
userRole.value = response.body.role || ''
console.debug('用户角色:', userRole.value)
//
if (userRole.value === 'TEAM_OWN') {
selectedUserType.value = 'ANCHOR' // TEAM_OWN ANCHOR
} else {
selectedUserType.value = 'AGENT' // AGENT
}
} else {
//
userRole.value = ''
selectedUserType.value = 'USER'
router.back() // 退
}
} catch (error) {
@ -163,7 +154,6 @@ const checkUserRole = async () => {
//
userRole.value = ''
selectedUserType.value = 'USER'
} finally {
isLoadingRole.value = false
}

View File

@ -3,10 +3,10 @@
<MobileHeader title="Host Setting" />
<div style="padding: 16px; position: relative; z-index: 2">
<!-- My Agent 部分 -->
<!-- My Agency 部分 -->
<div style="margin-bottom: 20px">
<div style="display: flex; align-items: center; margin-bottom: 12px">
<div style="font-size: 1.4em; font-weight: 600">My Agent</div>
<div style="font-size: 1.4em; font-weight: 600">My Agency</div>
<img src="/src/assets/icon/agency.png" alt="" height="25px" style="display: block" />
</div>
@ -29,7 +29,7 @@
style="aspect-ratio: 1/1; border-radius: 50%; object-fit: cover"
@error="defaultAvatarUrl"
/>
<div class="agent-details" style="flex: 1">
<div style="flex: 1">
<div style="margin-bottom: 4px; font-weight: 600">
{{ userInfo.name }}
</div>
@ -68,8 +68,8 @@ const defaultAvatarUrl = (e) => {
//
const leaveAgent = () => {
if (confirm('Are you sure you want to leave this agent?')) {
showError('Leave agent request submitted')
if (confirm('Are you sure you want to leave this agency?')) {
showError('Leave agency request submitted')
//
}
}

View File

@ -64,7 +64,7 @@
gap: 5px;
"
>
<div style="font-weight: 600">Agent Salary</div>
<div style="font-weight: 600">Agency Salary</div>
<div style="font-weight: 500">${{ policy.ownSalary || 0 }}</div>
</div>
<div style="display: flex; flex-direction: column; align-items: center; gap: 5px">

View File

@ -54,7 +54,7 @@
>
<div style="display: flex">
<div style="display: flex; flex-direction: column; align-items: center; gap: 5px">
<div class="team-des-title">Agent number</div>
<div class="team-des-title">Agency number</div>
<div class="team-des-value">{{ agentMonthTarget.agentQuantity }}</div>
</div>
</div>