|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="pages-header" v-if="showBack">
|
|
|
<view class="header">
|
|
|
- <view v-if="showBack" class="back">
|
|
|
+ <view v-if="showBackIcon" class="back">
|
|
|
<cwg-icon name="dropdown" class="back-icon" color="#000" @click="handleBack" />
|
|
|
</view>
|
|
|
<view>{{ headerTitleReady ? headerTitle : '' }}</view>
|
|
|
@@ -32,6 +32,56 @@ const showBack = computed(() => {
|
|
|
|
|
|
return !noBackPages.includes(route.path)
|
|
|
})
|
|
|
+
|
|
|
+const showBackIcon = computed(() => {
|
|
|
+ // 不显示返回图标的页面
|
|
|
+ const noBackIconPages = [
|
|
|
+ '/',
|
|
|
+ '/pages/customer/index',
|
|
|
+ '/pages/customer/trade-history',
|
|
|
+ '/pages/customer/trade-position',
|
|
|
+ '/pages/customer/recording-history',
|
|
|
+ '/pages/customer/deposit-select',
|
|
|
+ '/pages/customer/withdrawal-select',
|
|
|
+ '/pages/customer/payment-history',
|
|
|
+ '/pages/customer/transfer',
|
|
|
+ '/pages/customer/wallet-transfer',
|
|
|
+ '/pages/customer/wallet-history',
|
|
|
+ '/pages/activities/index',
|
|
|
+ '/pages/analytics/analystViews',
|
|
|
+ '/pages/analytics/news',
|
|
|
+ '/pages/common/download',
|
|
|
+ '/pages/common/chat',
|
|
|
+ '/pages/mine/info',
|
|
|
+ '/pages/common/notice',
|
|
|
+ '/pages/ib/index',
|
|
|
+ '/pages/ib/customer',
|
|
|
+ '/pages/ib/subsList',
|
|
|
+ '/pages/ib/agentList',
|
|
|
+ '/pages/ib/accountList',
|
|
|
+ '/pages/ib/transfer',
|
|
|
+ '/pages/ib/withdraw-select',
|
|
|
+ '/pages/ib/agent-transfer',
|
|
|
+ '/pages/ib/recording',
|
|
|
+ '/pages/ib/report',
|
|
|
+ '/pages/ib/complexReport',
|
|
|
+ '/pages/follow/index',
|
|
|
+ '/pages/follow/trading-center',
|
|
|
+ '/pages/follow/report',
|
|
|
+ '/pages/follow/transfer',
|
|
|
+ '/pages/follow/transfer-history',
|
|
|
+ '/pages/follow/trading-management',
|
|
|
+ '/pages/follow/follow-list',
|
|
|
+ '/pages/follow/account-management',
|
|
|
+ '/pages/follow/subscribe-list',
|
|
|
+ '/pages/follow/record',
|
|
|
+ '/pages/wallet/index',
|
|
|
+ '/pages/mine/index',
|
|
|
+ '/pages/login/index'
|
|
|
+ ]
|
|
|
+
|
|
|
+ return !noBackIconPages.includes(route.path)
|
|
|
+})
|
|
|
function slashToDash(str: string) {
|
|
|
return str.replace(/\//g, '.');
|
|
|
}
|