verce-vue-test 0.0.60 → 0.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mini2.0-main/src/App.vue +46 -11
- package/mini2.0-main/src/router/index.ts +25 -0
- package/mini2.0-main/src/stores/app.ts +10 -1
- package/mini2.0-main/src/stores/user.ts +1 -1
- package/mini2.0-main/src/styles/nprogress.css +22 -0
- package/mini2.0-main/src/utils/request.ts +2 -1
- package/mini2.0-main/src/views/article-detail/index.vue +1 -1
- package/mini2.0-main/src/views/article-edit/index.vue +1 -1
- package/mini2.0-main/src/views/articles/index.vue +2 -3
- package/mini2.0-main/src/views/clearing-detail/index.vue +1 -1
- package/mini2.0-main/src/views/dashboard/index.vue +18 -0
- package/mini2.0-main/src/views/foreign-position/index.vue +1 -1
- package/mini2.0-main/src/views/home/index.vue +1 -1
- package/mini2.0-main/src/views/login/index.vue +1 -1
- package/mini2.0-main/src/views/mine/index.vue +2 -2
- package/mini2.0-main/src/views/net-debit/index.vue +1 -1
- package/mini2.0-main/src/views/opening-reserve-estimate/index.vue +28 -0
- package/mini2.0-main/src/views/pbc-position/index.vue +17 -16
- package/mini2.0-main/src/views/position-estimate/index.vue +59 -11
- package/mini2.0-main/src/views/position-estimate-report/index.vue +28 -0
- package/mini2.0-main/src/views/rmb-position/index.vue +193 -52
- package/mini2.0-main/src/views/rmb-position-create/index.vue +1 -1
- package/mini2.0-main/src/views/rmb-position-detail/index.vue +1 -1
- package/mini2.0-main/src/views/settings/index.vue +13 -3
- package/mini2.0-main/src/views/warning/index.vue +1 -1
- package/package.json +1 -1
- package/src/router/index.ts +0 -1
- package/src/views/PositionForecastExecutionView.vue +361 -385
- package/src/views/PositionForecastView.vue +19 -22
package/mini2.0-main/src/App.vue
CHANGED
|
@@ -8,28 +8,37 @@ const appStore = useAppStore()
|
|
|
8
8
|
|
|
9
9
|
const baseTabItems = [
|
|
10
10
|
{ title: '首页', path: '/', icon: 'wap-home-o' },
|
|
11
|
+
{ title: '看板', path: '/dashboard', icon: 'chart-trending-o' },
|
|
11
12
|
{ title: '公告', path: '/articles', icon: 'records-o' },
|
|
12
13
|
{ title: '我的', path: '/mine', icon: 'manager-o' },
|
|
13
14
|
]
|
|
14
15
|
|
|
15
16
|
const tabItems = computed(() =>
|
|
16
|
-
baseTabItems.filter((item) =>
|
|
17
|
+
baseTabItems.filter((item) => {
|
|
18
|
+
if (item.path === '/dashboard') return appStore.showDashboardTab
|
|
19
|
+
if (item.path === '/articles') return appStore.showAnnouncementTab
|
|
20
|
+
|
|
21
|
+
return true
|
|
22
|
+
}),
|
|
17
23
|
)
|
|
18
24
|
|
|
19
25
|
const showTabbar = computed(() => route.meta.hideTabbar !== true)
|
|
20
|
-
const noBackRouteNames = new Set(['Home', 'Login', 'Articles', 'Mine'])
|
|
26
|
+
const noBackRouteNames = new Set(['Home', 'Login', 'Dashboard', 'Articles', 'Mine'])
|
|
21
27
|
const headerTitle = computed(() => String(route.meta.title || ''))
|
|
22
28
|
const showHeaderBack = computed(() => !noBackRouteNames.has(String(route.name || '')))
|
|
23
29
|
|
|
24
|
-
const activeTab = computed({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
router.push(path)
|
|
29
|
-
}
|
|
30
|
-
},
|
|
30
|
+
const activeTab = computed(() => {
|
|
31
|
+
const currentPath = route.path
|
|
32
|
+
|
|
33
|
+
return tabItems.value.some((item) => item.path === currentPath) ? currentPath : ''
|
|
31
34
|
})
|
|
32
35
|
|
|
36
|
+
function switchTab(path: string) {
|
|
37
|
+
if (path !== route.path) {
|
|
38
|
+
router.push(path)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
33
42
|
function goHomeFromCapsuleMenu() {
|
|
34
43
|
if (route.name !== 'Home') {
|
|
35
44
|
router.replace({ name: 'Home' })
|
|
@@ -44,7 +53,7 @@ function goSettingsFromCapsuleMenu() {
|
|
|
44
53
|
</script>
|
|
45
54
|
|
|
46
55
|
<template>
|
|
47
|
-
<div class="app-shell">
|
|
56
|
+
<div class="app-shell" :class="{ 'app-shell--with-tabbar': showTabbar }">
|
|
48
57
|
<AppTitleBar
|
|
49
58
|
:title="headerTitle"
|
|
50
59
|
:show-back="showHeaderBack"
|
|
@@ -59,12 +68,13 @@ function goSettingsFromCapsuleMenu() {
|
|
|
59
68
|
</keep-alive>
|
|
60
69
|
</router-view>
|
|
61
70
|
|
|
62
|
-
<van-tabbar v-if="showTabbar"
|
|
71
|
+
<van-tabbar v-if="showTabbar" :model-value="activeTab" fixed placeholder safe-area-inset-bottom>
|
|
63
72
|
<van-tabbar-item
|
|
64
73
|
v-for="item in tabItems"
|
|
65
74
|
:key="item.path"
|
|
66
75
|
:name="item.path"
|
|
67
76
|
:icon="item.icon"
|
|
77
|
+
@click="switchTab(item.path)"
|
|
68
78
|
>
|
|
69
79
|
{{ item.title }}
|
|
70
80
|
</van-tabbar-item>
|
|
@@ -74,10 +84,35 @@ function goSettingsFromCapsuleMenu() {
|
|
|
74
84
|
|
|
75
85
|
<style scoped>
|
|
76
86
|
.app-shell {
|
|
87
|
+
--app-title-bar-height: calc(50px + env(safe-area-inset-top, 0px));
|
|
88
|
+
--app-tabbar-height: calc(
|
|
89
|
+
var(--van-tabbar-height, 50px) + env(safe-area-inset-bottom, 0px) + var(--van-border-width, 1px)
|
|
90
|
+
);
|
|
91
|
+
--app-page-bottom-height: 0px;
|
|
92
|
+
--app-page-min-height: calc(100vh - var(--app-title-bar-height) - var(--app-page-bottom-height));
|
|
93
|
+
|
|
77
94
|
min-height: 100vh;
|
|
78
95
|
background: #f7f8fa;
|
|
79
96
|
}
|
|
80
97
|
|
|
98
|
+
.app-shell--with-tabbar {
|
|
99
|
+
--app-page-bottom-height: var(--app-tabbar-height);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.app-shell :deep(main) {
|
|
103
|
+
display: flow-root;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@supports (height: 100dvh) {
|
|
107
|
+
.app-shell {
|
|
108
|
+
--app-page-min-height: calc(
|
|
109
|
+
100dvh - var(--app-title-bar-height) - var(--app-page-bottom-height)
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
min-height: 100dvh;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
81
116
|
:deep(.van-tabbar) {
|
|
82
117
|
max-width: 750px;
|
|
83
118
|
left: 50%;
|
|
@@ -3,6 +3,13 @@ import { useUserStore } from '@/stores/user'
|
|
|
3
3
|
|
|
4
4
|
const router = createRouter({
|
|
5
5
|
history: createWebHashHistory(),
|
|
6
|
+
scrollBehavior(_to, _from, savedPosition) {
|
|
7
|
+
if (savedPosition) {
|
|
8
|
+
return savedPosition
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return { left: 0, top: 0 }
|
|
12
|
+
},
|
|
6
13
|
routes: [
|
|
7
14
|
{
|
|
8
15
|
path: '/',
|
|
@@ -52,6 +59,18 @@ const router = createRouter({
|
|
|
52
59
|
component: () => import('@/views/position-estimate/index.vue'),
|
|
53
60
|
meta: { requiresAuth: true, title: '头寸匡算' },
|
|
54
61
|
},
|
|
62
|
+
{
|
|
63
|
+
path: '/position-estimate/report',
|
|
64
|
+
name: 'PositionEstimateReport',
|
|
65
|
+
component: () => import('@/views/position-estimate-report/index.vue'),
|
|
66
|
+
meta: { requiresAuth: true, hideTabbar: true, title: '头寸匡算报表' },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: '/position-estimate/opening-reserve',
|
|
70
|
+
name: 'OpeningReserveEstimate',
|
|
71
|
+
component: () => import('@/views/opening-reserve-estimate/index.vue'),
|
|
72
|
+
meta: { requiresAuth: true, hideTabbar: true, title: '日初备款数匡算' },
|
|
73
|
+
},
|
|
55
74
|
{
|
|
56
75
|
path: '/net-debit',
|
|
57
76
|
name: 'NetDebit',
|
|
@@ -70,6 +89,12 @@ const router = createRouter({
|
|
|
70
89
|
component: () => import('@/views/warning/index.vue'),
|
|
71
90
|
meta: { requiresAuth: true, title: '预警信息' },
|
|
72
91
|
},
|
|
92
|
+
{
|
|
93
|
+
path: '/dashboard',
|
|
94
|
+
name: 'Dashboard',
|
|
95
|
+
component: () => import('@/views/dashboard/index.vue'),
|
|
96
|
+
meta: { requiresAuth: true, title: '看板' },
|
|
97
|
+
},
|
|
73
98
|
{
|
|
74
99
|
path: '/articles',
|
|
75
100
|
name: 'Articles',
|
|
@@ -13,6 +13,9 @@ export const useAppStore = defineStore(
|
|
|
13
13
|
/** 是否在原生 APP WebView 环境中 */
|
|
14
14
|
const isNative = ref(false)
|
|
15
15
|
|
|
16
|
+
/** 是否在底部导航中显示看板入口 */
|
|
17
|
+
const showDashboardTab = ref(false)
|
|
18
|
+
|
|
16
19
|
/** 是否在底部导航中显示公告入口 */
|
|
17
20
|
const showAnnouncementTab = ref(false)
|
|
18
21
|
|
|
@@ -34,6 +37,10 @@ export const useAppStore = defineStore(
|
|
|
34
37
|
isNative.value = await waitNativeReady()
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
function setShowDashboardTab(value: boolean) {
|
|
41
|
+
showDashboardTab.value = value
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
function setShowAnnouncementTab(value: boolean) {
|
|
38
45
|
showAnnouncementTab.value = value
|
|
39
46
|
}
|
|
@@ -48,11 +55,13 @@ export const useAppStore = defineStore(
|
|
|
48
55
|
|
|
49
56
|
return {
|
|
50
57
|
isNative,
|
|
58
|
+
showDashboardTab,
|
|
51
59
|
showAnnouncementTab,
|
|
52
60
|
systemAppDate,
|
|
53
61
|
systemWorkDate,
|
|
54
62
|
systemWorkDateCompact,
|
|
55
63
|
initNativeDetection,
|
|
64
|
+
setShowDashboardTab,
|
|
56
65
|
setShowAnnouncementTab,
|
|
57
66
|
setSystemAppDate,
|
|
58
67
|
clearSystemAppDate,
|
|
@@ -61,7 +70,7 @@ export const useAppStore = defineStore(
|
|
|
61
70
|
{
|
|
62
71
|
persist: {
|
|
63
72
|
key: 'mini2_app_settings',
|
|
64
|
-
pick: ['showAnnouncementTab', 'systemAppDate'],
|
|
73
|
+
pick: ['showDashboardTab', 'showAnnouncementTab', 'systemAppDate'],
|
|
65
74
|
},
|
|
66
75
|
},
|
|
67
76
|
)
|
|
@@ -20,7 +20,7 @@ export const useUserStore = defineStore(
|
|
|
20
20
|
// -------------------------------- State --------------------------------
|
|
21
21
|
|
|
22
22
|
/** 登录凭证,登录成功后由后端返回,后续请求通过请求头携带 */
|
|
23
|
-
const token = ref('
|
|
23
|
+
const token = ref('1s')
|
|
24
24
|
const refreshToken = ref('')
|
|
25
25
|
const username = ref('')
|
|
26
26
|
const realName = ref('')
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#nprogress {
|
|
2
|
+
pointer-events: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#nprogress .bar {
|
|
6
|
+
top: calc(50px + env(safe-area-inset-top));
|
|
7
|
+
left: max(0px, calc((100vw - 750px) / 2));
|
|
8
|
+
width: min(100vw, 750px);
|
|
9
|
+
height: 2px;
|
|
10
|
+
background: #f22f3d;
|
|
11
|
+
z-index: 21;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#nprogress .peg {
|
|
15
|
+
box-shadow:
|
|
16
|
+
0 0 10px #f22f3d,
|
|
17
|
+
0 0 5px #f22f3d;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#nprogress .spinner {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
} from 'axios'
|
|
9
9
|
import NProgress from 'nprogress'
|
|
10
10
|
import 'nprogress/nprogress.css'
|
|
11
|
+
import '@/styles/nprogress.css'
|
|
11
12
|
import { apiConfig } from '@/config/env'
|
|
12
13
|
import type { ApiResponse } from '@/types/api'
|
|
13
14
|
import router from '@/router'
|
|
@@ -165,7 +166,7 @@ async function requestRefreshTokenByAxios() {
|
|
|
165
166
|
url: REFRESH_TOKEN_URL,
|
|
166
167
|
method: 'POST',
|
|
167
168
|
data: {
|
|
168
|
-
refreshToken,
|
|
169
|
+
refresh_token:refreshToken,
|
|
169
170
|
},
|
|
170
171
|
headers: {
|
|
171
172
|
'Content-Type': 'application/json',
|
|
@@ -125,9 +125,9 @@ function openEdit(article: Article) {
|
|
|
125
125
|
.article-list-page {
|
|
126
126
|
width: 100%;
|
|
127
127
|
max-width: 750px;
|
|
128
|
-
min-height: 100vh;
|
|
128
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
129
129
|
margin: 0 auto;
|
|
130
|
-
padding:
|
|
130
|
+
padding: 14px 11px 86px;
|
|
131
131
|
color: #171b20;
|
|
132
132
|
background:
|
|
133
133
|
radial-gradient(circle at 12% 0%, rgba(242, 47, 61, 0.11), transparent 118px),
|
|
@@ -140,7 +140,6 @@ function openEdit(article: Article) {
|
|
|
140
140
|
align-items: center;
|
|
141
141
|
justify-content: space-between;
|
|
142
142
|
gap: 12px;
|
|
143
|
-
margin-top: 14px;
|
|
144
143
|
min-height: 96px;
|
|
145
144
|
padding: 18px 16px;
|
|
146
145
|
border-radius: 8px;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineOptions({ name: 'DashboardPage' })
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<main class="dashboard-page"></main>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<style scoped>
|
|
10
|
+
.dashboard-page {
|
|
11
|
+
width: 100%;
|
|
12
|
+
max-width: 750px;
|
|
13
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
14
|
+
margin: 0 auto;
|
|
15
|
+
background: #f7f8fa;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
@@ -54,7 +54,7 @@ async function handleLogout() {
|
|
|
54
54
|
</section>
|
|
55
55
|
|
|
56
56
|
<section class="action-section">
|
|
57
|
-
<van-button block round type="danger" plain @click="handleLogout"
|
|
57
|
+
<van-button block round type="danger" plain @click="handleLogout">重新登录</van-button>
|
|
58
58
|
</section>
|
|
59
59
|
</main>
|
|
60
60
|
</template>
|
|
@@ -63,7 +63,7 @@ async function handleLogout() {
|
|
|
63
63
|
.mine-page {
|
|
64
64
|
width: 100%;
|
|
65
65
|
max-width: 750px;
|
|
66
|
-
min-height: 100vh;
|
|
66
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
67
67
|
margin: 0 auto;
|
|
68
68
|
padding: 22px 11px 24px;
|
|
69
69
|
color: #171b20;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<main class="page">
|
|
3
|
+
<section class="page-body">
|
|
4
|
+
<p class="placeholder">页面建设中…</p>
|
|
5
|
+
</section>
|
|
6
|
+
</main>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<style scoped>
|
|
10
|
+
.page {
|
|
11
|
+
max-width: 750px;
|
|
12
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
padding: 0 11px;
|
|
15
|
+
background: #f7f8fa;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.page-body {
|
|
19
|
+
padding: 24px 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.placeholder {
|
|
23
|
+
padding-top: 120px;
|
|
24
|
+
color: #969799;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -51,14 +51,14 @@ const positionSections = computed<PositionSection[]>(() => {
|
|
|
51
51
|
items: [
|
|
52
52
|
{
|
|
53
53
|
label: '清算账户余额(亿元)',
|
|
54
|
-
value:
|
|
54
|
+
value: formatYuanToBillionText(detail?.settleBal),
|
|
55
55
|
icon: 'balance-o',
|
|
56
56
|
highlight: true,
|
|
57
57
|
},
|
|
58
|
-
{ label: '可用头寸(亿元)', value:
|
|
58
|
+
{ label: '可用头寸(亿元)', value: formatYuanToBillionText(detail?.avaAmt), icon: 'card' },
|
|
59
59
|
{
|
|
60
60
|
label: '预期头寸(亿元)',
|
|
61
|
-
value:
|
|
61
|
+
value: formatYuanToBillionText(detail?.expectAmt),
|
|
62
62
|
icon: 'chart-trending-o',
|
|
63
63
|
},
|
|
64
64
|
],
|
|
@@ -68,12 +68,20 @@ const positionSections = computed<PositionSection[]>(() => {
|
|
|
68
68
|
items: [
|
|
69
69
|
{
|
|
70
70
|
label: '排队借记总金额(亿元)',
|
|
71
|
-
value:
|
|
71
|
+
value: formatYuanToBillionText(detail?.lineDrAmt),
|
|
72
72
|
icon: 'gold-coin-o',
|
|
73
73
|
},
|
|
74
|
-
{
|
|
74
|
+
{
|
|
75
|
+
label: '排队贷记总金额(亿元)',
|
|
76
|
+
value: formatYuanToBillionText(detail?.lineCrAmt),
|
|
77
|
+
icon: 'card',
|
|
78
|
+
},
|
|
75
79
|
{ label: '所辖非清算账户数', value: fieldText(detail?.subAcctNumber), icon: 'friends' },
|
|
76
|
-
{
|
|
80
|
+
{
|
|
81
|
+
label: '所辖非清算总余额(亿元)',
|
|
82
|
+
value: formatYuanToBillionText(detail?.subAcctAmt),
|
|
83
|
+
icon: 'paid',
|
|
84
|
+
},
|
|
77
85
|
],
|
|
78
86
|
},
|
|
79
87
|
]
|
|
@@ -133,10 +141,10 @@ function fieldText(value?: string) {
|
|
|
133
141
|
return text || '-'
|
|
134
142
|
}
|
|
135
143
|
|
|
136
|
-
function
|
|
144
|
+
function formatYuanToBillionText(value?: string) {
|
|
137
145
|
if (!value?.trim()) return '-'
|
|
138
146
|
|
|
139
|
-
const amount = Number(value)
|
|
147
|
+
const amount = Number(value.replaceAll(',', ''))
|
|
140
148
|
if (!Number.isFinite(amount)) return '-'
|
|
141
149
|
|
|
142
150
|
return new Intl.NumberFormat('zh-CN', {
|
|
@@ -175,7 +183,6 @@ function getErrorMessage(error: unknown, fallback: string) {
|
|
|
175
183
|
:disabled="actionDisabled"
|
|
176
184
|
@click="handleSend"
|
|
177
185
|
>
|
|
178
|
-
<van-icon :name="sending ? 'underway-o' : 'guide-o'" />
|
|
179
186
|
<span>{{ sending ? '发送中' : '发送' }}</span>
|
|
180
187
|
</button>
|
|
181
188
|
<button
|
|
@@ -184,7 +191,6 @@ function getErrorMessage(error: unknown, fallback: string) {
|
|
|
184
191
|
:disabled="actionDisabled"
|
|
185
192
|
@click="handleQuery"
|
|
186
193
|
>
|
|
187
|
-
<van-icon :name="querying ? 'underway-o' : 'search'" />
|
|
188
194
|
<span>{{ querying ? '查询中' : '查询' }}</span>
|
|
189
195
|
</button>
|
|
190
196
|
</nav>
|
|
@@ -195,7 +201,7 @@ function getErrorMessage(error: unknown, fallback: string) {
|
|
|
195
201
|
.pbc-page {
|
|
196
202
|
width: 100%;
|
|
197
203
|
max-width: 750px;
|
|
198
|
-
min-height: 100vh;
|
|
204
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
199
205
|
margin: 0 auto;
|
|
200
206
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
|
|
201
207
|
color: #181d28;
|
|
@@ -310,7 +316,6 @@ button {
|
|
|
310
316
|
display: inline-flex;
|
|
311
317
|
align-items: center;
|
|
312
318
|
justify-content: center;
|
|
313
|
-
gap: 12px;
|
|
314
319
|
height: 44px;
|
|
315
320
|
border-radius: 24px;
|
|
316
321
|
font-size: 18px;
|
|
@@ -324,10 +329,6 @@ button {
|
|
|
324
329
|
opacity: 0.68;
|
|
325
330
|
}
|
|
326
331
|
|
|
327
|
-
.action-btn .van-icon {
|
|
328
|
-
font-size: 22px;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
332
|
.send-btn {
|
|
332
333
|
color: #ffffff;
|
|
333
334
|
background: linear-gradient(135deg, #ff3338 0%, #ff232b 100%);
|
|
@@ -1,7 +1,31 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const router = useRouter()
|
|
3
|
+
|
|
4
|
+
const estimateItems = [
|
|
5
|
+
{
|
|
6
|
+
title: '头寸匡算报表',
|
|
7
|
+
route: '/position-estimate/report',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
title: '日初备款数匡算',
|
|
11
|
+
route: '/position-estimate/opening-reserve',
|
|
12
|
+
},
|
|
13
|
+
]
|
|
14
|
+
</script>
|
|
15
|
+
|
|
1
16
|
<template>
|
|
2
17
|
<main class="page">
|
|
3
|
-
<section class="
|
|
4
|
-
<
|
|
18
|
+
<section class="nav-list" aria-label="头寸匡算功能导航">
|
|
19
|
+
<button
|
|
20
|
+
v-for="item in estimateItems"
|
|
21
|
+
:key="item.route"
|
|
22
|
+
class="nav-item"
|
|
23
|
+
type="button"
|
|
24
|
+
@click="router.push(item.route)"
|
|
25
|
+
>
|
|
26
|
+
<span class="nav-title">{{ item.title }}</span>
|
|
27
|
+
<van-icon class="nav-arrow" name="arrow" />
|
|
28
|
+
</button>
|
|
5
29
|
</section>
|
|
6
30
|
</main>
|
|
7
31
|
</template>
|
|
@@ -9,18 +33,42 @@
|
|
|
9
33
|
<style scoped>
|
|
10
34
|
.page {
|
|
11
35
|
max-width: 750px;
|
|
12
|
-
min-height: 100vh;
|
|
36
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
13
37
|
margin: 0 auto;
|
|
14
|
-
padding:
|
|
38
|
+
padding: 12px 11px;
|
|
15
39
|
background: #f7f8fa;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nav-list {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 10px;
|
|
16
47
|
}
|
|
17
|
-
|
|
18
|
-
|
|
48
|
+
|
|
49
|
+
.nav-item {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
min-height: 52px;
|
|
54
|
+
padding: 0 14px 0 16px;
|
|
55
|
+
border: 1px solid #edf0f4;
|
|
56
|
+
border-radius: 8px;
|
|
57
|
+
color: #171b20;
|
|
58
|
+
font: inherit;
|
|
59
|
+
text-align: left;
|
|
60
|
+
background: #ffffff;
|
|
61
|
+
appearance: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nav-title {
|
|
65
|
+
font-size: 15px;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
line-height: 1.4;
|
|
19
68
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color: #
|
|
23
|
-
font-size:
|
|
24
|
-
padding-top: 120px;
|
|
69
|
+
|
|
70
|
+
.nav-arrow {
|
|
71
|
+
color: #c8c9cc;
|
|
72
|
+
font-size: 16px;
|
|
25
73
|
}
|
|
26
74
|
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<main class="page">
|
|
3
|
+
<section class="page-body">
|
|
4
|
+
<p class="placeholder">页面建设中…</p>
|
|
5
|
+
</section>
|
|
6
|
+
</main>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<style scoped>
|
|
10
|
+
.page {
|
|
11
|
+
max-width: 750px;
|
|
12
|
+
min-height: var(--app-page-min-height, 100vh);
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
padding: 0 11px;
|
|
15
|
+
background: #f7f8fa;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.page-body {
|
|
19
|
+
padding: 24px 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.placeholder {
|
|
23
|
+
padding-top: 120px;
|
|
24
|
+
color: #969799;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
</style>
|