chore(申请页面、钱包相关页面、平台政策): 调整文件结构
This commit is contained in:
parent
a74441f685
commit
17aca66489
@ -43,7 +43,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/apply',
|
path: '/apply',
|
||||||
name: 'apply',
|
name: 'apply',
|
||||||
component: () => import('../views/ApplyView.vue'),
|
component: () => import('../views/ApplyHost/ApplyView.vue'),
|
||||||
meta: { requiresAuth: false },
|
meta: { requiresAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -55,13 +55,13 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/transfer',
|
path: '/transfer',
|
||||||
name: 'transfer',
|
name: 'transfer',
|
||||||
component: () => import('../views/Wallet/Transfer/TransferView.vue'),
|
component: () => import('../views/Wallet/Transfer/Transfer.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/exchange-gold-coins',
|
path: '/exchange-gold-coins',
|
||||||
name: 'exchange-gold-coins',
|
name: 'exchange-gold-coins',
|
||||||
component: () => import('../views/ExchangeGoldCoinsView.vue'),
|
component: () => import('../views/Wallet/Exchange/ExchangeGoldCoins.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
// 辅助页面
|
// 辅助页面
|
||||||
@ -85,13 +85,13 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/search-payee',
|
path: '/search-payee',
|
||||||
name: 'search-payee',
|
name: 'search-payee',
|
||||||
component: () => import('../views/Wallet/Transfer/SearchPayeeView.vue'),
|
component: () => import('../views/Wallet/Transfer/SearchPayee.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/information-details',
|
path: '/information-details',
|
||||||
name: 'information-details',
|
name: 'information-details',
|
||||||
component: () => import('../views/InformationDetailsView.vue'),
|
component: () => import('../views/Wallet/Detail/InformationDetails.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -115,7 +115,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/platform-policy',
|
path: '/platform-policy',
|
||||||
name: 'platform-policy',
|
name: 'platform-policy',
|
||||||
component: () => import('../views/PlatformPolicyView.vue'),
|
component: () => import('../views/PlatformPolicy/PlatformPolicy.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -146,13 +146,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/history-salary',
|
path: '/history-salary',
|
||||||
name: 'history-salary',
|
name: 'history-salary',
|
||||||
component: () => import('../views/HistorySalaryView.vue'),
|
component: () => import('../views/Wallet/Detail/HistorySalary.vue'),
|
||||||
meta: { requiresAuth: true },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/platform-salary',
|
|
||||||
name: 'platform-salary',
|
|
||||||
component: () => import('../views/PlatformPolicyView.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -188,7 +182,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/pay-result',
|
path: '/pay-result',
|
||||||
name: 'pay-result',
|
name: 'pay-result',
|
||||||
component: () => import('../views/payResult.vue'),
|
component: () => import('../views/Wallet/PayResult/payResult.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -72,7 +72,6 @@ export const ROLE_PERMISSIONS = {
|
|||||||
'/team-member',
|
'/team-member',
|
||||||
'/information-details',
|
'/information-details',
|
||||||
'/history-salary',
|
'/history-salary',
|
||||||
'/platform-salary',
|
|
||||||
'/invite-members',
|
'/invite-members',
|
||||||
'/team-bill',
|
'/team-bill',
|
||||||
],
|
],
|
||||||
@ -117,7 +116,6 @@ export const ROLE_PERMISSIONS = {
|
|||||||
PAGES.HOST_SETTING, // 主播设置
|
PAGES.HOST_SETTING, // 主播设置
|
||||||
'/information-details',
|
'/information-details',
|
||||||
'/history-salary',
|
'/history-salary',
|
||||||
'/platform-salary',
|
|
||||||
'/invite-members',
|
'/invite-members',
|
||||||
'/team-bill',
|
'/team-bill',
|
||||||
],
|
],
|
||||||
|
|||||||
@ -520,7 +520,7 @@ const goToPersonalSalary = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goToPlatformPolicy = () => {
|
const goToPlatformPolicy = () => {
|
||||||
router.push('/platform-salary?from=agencycenter')
|
router.push('/platform-policy?from=agencycenter')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取团队成员数量
|
// 获取团队成员数量
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
{{ t('apply_reminder') }}
|
{{ t('apply_reminder') }}
|
||||||
</h3>
|
</h3>
|
||||||
<img
|
<img
|
||||||
src="../assets/icon/help.png"
|
src="../../assets/icon/help.png"
|
||||||
alt=""
|
alt=""
|
||||||
style="width: 16px; aspect-ratio: 1/1; cursor: pointer"
|
style="width: 16px; aspect-ratio: 1/1; cursor: pointer"
|
||||||
@click="showHelp"
|
@click="showHelp"
|
||||||
@ -264,7 +264,7 @@ import {
|
|||||||
getWaitApplyRecord,
|
getWaitApplyRecord,
|
||||||
cancelApply,
|
cancelApply,
|
||||||
searchTeamByAccount,
|
searchTeamByAccount,
|
||||||
} from '../api/wallet.js'
|
} from '@/api/wallet.js'
|
||||||
import { showError, showWarning, showInfo, showSuccess } from '@/utils/toast.js'
|
import { showError, showWarning, showInfo, showSuccess } from '@/utils/toast.js'
|
||||||
import { ApiError } from '@/utils/http.js'
|
import { ApiError } from '@/utils/http.js'
|
||||||
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
|
||||||
@ -469,7 +469,7 @@ usePageInitializationWithConfig('APPLY', {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
background-image: url(../assets/images/secondBg.png);
|
background-image: url(../../assets/images/secondBg.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* RTL布局支持 */
|
/* RTL布局支持 */
|
||||||
@ -229,7 +229,7 @@ const showDatePicker = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goToPlatformPolicy = () => {
|
const goToPlatformPolicy = () => {
|
||||||
router.push('/platform-salary?from=hostcenter')
|
router.push('/platform-policy?from=hostcenter')
|
||||||
}
|
}
|
||||||
|
|
||||||
const goToNotification = () => {
|
const goToNotification = () => {
|
||||||
|
|||||||
@ -96,12 +96,13 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
|
||||||
import GeneralHeader from '@/components/GeneralHeader.vue'
|
|
||||||
import { get } from '../utils/http.js'
|
|
||||||
import { getTeamId } from '@/utils/userStore.js'
|
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
|
import { get } from '@/utils/http.js'
|
||||||
|
import { getTeamId } from '@/utils/userStore.js'
|
||||||
|
|
||||||
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -28,7 +28,12 @@
|
|||||||
<div>{{ t('history_salary') }}</div>
|
<div>{{ t('history_salary') }}</div>
|
||||||
<div style="font-weight: 600">${{ totalSalary }}</div>
|
<div style="font-weight: 600">${{ totalSalary }}</div>
|
||||||
</div>
|
</div>
|
||||||
<img src="../assets/icon/help.png" alt="" class="info-btn" @click.stop="showHelpInfo" />
|
<img
|
||||||
|
src="../../../assets/icon/help.png"
|
||||||
|
alt=""
|
||||||
|
class="info-btn"
|
||||||
|
@click.stop="showHelpInfo"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 工作报告 -->
|
<!-- 工作报告 -->
|
||||||
@ -65,11 +65,12 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import GeneralHeader from '@/components/GeneralHeader.vue'
|
import { getWalletDetails } from '@/api/wallet.js'
|
||||||
import { getWalletDetails } from '../api/wallet.js'
|
|
||||||
import { formatUTCTimeClean } from '@/utils/utcFormat.js'
|
import { formatUTCTimeClean } from '@/utils/utcFormat.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
|
|
||||||
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
// 监听语言变化并设置文档方向
|
// 监听语言变化并设置文档方向
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<div style="font-weight: 600">{{ t('information') }}</div>
|
<div style="font-weight: 600">{{ t('information') }}</div>
|
||||||
<div style="display: flex; align-items: center" @click="showDetails">
|
<div style="display: flex; align-items: center" @click="showDetails">
|
||||||
<div style="color: rgba(0, 0, 0, 0.4)">{{ t('details') }}</div>
|
<div style="color: rgba(0, 0, 0, 0.4)">{{ t('details') }}</div>
|
||||||
<img src="../assets/icon/arrow.png" alt="" class="flipImg" />
|
<img src="../../../assets/icon/arrow.png" alt="" class="flipImg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -61,7 +61,7 @@
|
|||||||
@click="selectCoin(coin)"
|
@click="selectCoin(coin)"
|
||||||
:class="['coin-item', { selected: selectedCoin === coin.id }]"
|
:class="['coin-item', { selected: selectedCoin === coin.id }]"
|
||||||
>
|
>
|
||||||
<img src="../assets/icon/dollar.png" alt="" style="width: 40%" />
|
<img src="../../../assets/icon/dollar.png" alt="" style="width: 40%" />
|
||||||
<div style="font-weight: 500; color: #131111">${{ coin.price }}</div>
|
<div style="font-weight: 500; color: #131111">${{ coin.price }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -83,7 +83,7 @@ import { ref, reactive, onMounted, computed } from 'vue'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import GeneralHeader from '@/components/GeneralHeader.vue'
|
import GeneralHeader from '@/components/GeneralHeader.vue'
|
||||||
import { getBankBalance, userSalaryCheckExchange, userBankExchangeGold } from '../api/wallet.js'
|
import { getBankBalance, userSalaryCheckExchange, userBankExchangeGold } from '@/api/wallet.js'
|
||||||
import { showError, showSuccess, showWarning } from '@/utils/toast.js'
|
import { showError, showSuccess, showWarning } from '@/utils/toast.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
|
|
||||||
@ -31,10 +31,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { showError, showWarning, showInfo, showSuccess } from '@/utils/toast.js'
|
|
||||||
import { onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
const query = route.query || {}
|
const query = route.query || {}
|
||||||
Loading…
x
Reference in New Issue
Block a user