@@ -29,7 +29,7 @@
style="aspect-ratio: 1/1; border-radius: 50%; object-fit: cover"
@error="defaultAvatarUrl"
/>
-
+
{{ userInfo.name }}
@@ -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')
// 这里可以添加实际的离开代理商逻辑
}
}
diff --git a/src/views/AgencyCenterView.vue b/src/views/AgencyCenterView.vue
index cb8eb6f..8d2bcdf 100644
--- a/src/views/AgencyCenterView.vue
+++ b/src/views/AgencyCenterView.vue
@@ -259,7 +259,7 @@
Host Salary: {{ loadingTeamBill ? '–' : teamBillInfo.hostSalary }}
- Agent Salary: {{ loadingTeamBill ? '–' : teamBillInfo.agentSalary }}
+ Agency Salary: {{ loadingTeamBill ? '–' : teamBillInfo.agentSalary }}
Total: {{ loadingTeamBill ? '–' : teamBillInfo.total }}
diff --git a/src/views/ApplyView.vue b/src/views/ApplyView.vue
index 176726c..0b35db3 100644
--- a/src/views/ApplyView.vue
+++ b/src/views/ApplyView.vue
@@ -12,8 +12,8 @@
Reminder before application:
- 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
@@ -25,8 +25,8 @@
@@ -84,7 +84,7 @@
Application Help
-
Enter your agent's ID and click Apply to submit your application.
+
Enter your agency's ID and click Apply to submit your application.
Got it
@@ -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;
}
diff --git a/src/views/ExchangeGoldCoinsView.vue b/src/views/ExchangeGoldCoinsView.vue
index 1ff7360..3a06351 100644
--- a/src/views/ExchangeGoldCoinsView.vue
+++ b/src/views/ExchangeGoldCoinsView.vue
@@ -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
}
diff --git a/src/views/HostSettingView.vue b/src/views/HostSettingView.vue
index e230879..4bc6886 100644
--- a/src/views/HostSettingView.vue
+++ b/src/views/HostSettingView.vue
@@ -3,10 +3,10 @@
-
+
-
My Agent
+
My Agency
@@ -29,7 +29,7 @@
style="aspect-ratio: 1/1; border-radius: 50%; object-fit: cover"
@error="defaultAvatarUrl"
/>
-
+
{{ userInfo.name }}
@@ -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')
// 这里可以添加实际的离开代理商逻辑
}
}
diff --git a/src/views/PlatformPolicyView.vue b/src/views/PlatformPolicyView.vue
index 1d2d046..43693f6 100644
--- a/src/views/PlatformPolicyView.vue
+++ b/src/views/PlatformPolicyView.vue
@@ -64,7 +64,7 @@
gap: 5px;
"
>
-
Agent Salary
+
Agency Salary
${{ policy.ownSalary || 0 }}
diff --git a/src/views/TeamMemberView.vue b/src/views/TeamMemberView.vue
index 740d8bd..cf8645e 100644
--- a/src/views/TeamMemberView.vue
+++ b/src/views/TeamMemberView.vue
@@ -54,7 +54,7 @@
>
-
Agent number
+
Agency number
{{ agentMonthTarget.agentQuantity }}