|
@@ -1,7 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-view>
|
|
<app-view>
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <app-navbar title="掉期挂牌大厅" />
|
|
|
|
|
|
|
+ <app-navbar title="掉期挂牌大厅" >
|
|
|
|
|
+ <template #right>
|
|
|
|
|
+ <div class="button-more" @click="onListing">
|
|
|
|
|
+ <span>挂牌</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </app-navbar>
|
|
|
</template>
|
|
</template>
|
|
|
<Tabs v-model:active="tabIndex" @change="tabChange">
|
|
<Tabs v-model:active="tabIndex" @change="tabChange">
|
|
|
<Tab title="卖大厅">
|
|
<Tab title="卖大厅">
|
|
@@ -18,7 +24,7 @@
|
|
|
</app-list>
|
|
</app-list>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <component ref="componentRef" :is="components.delisting" v-bind="{ selectedRow }" @closed="closeComponent"
|
|
|
|
|
|
|
+ <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
|
|
|
v-if="componentId" />
|
|
v-if="componentId" />
|
|
|
</app-view>
|
|
</app-view>
|
|
|
</template>
|
|
</template>
|
|
@@ -32,10 +38,10 @@ import { useComponent } from '@/hooks/component'
|
|
|
import AppList from '@mobile/components/base/list/index.vue'
|
|
import AppList from '@mobile/components/base/list/index.vue'
|
|
|
import { queryTjmdTradeOrderDetail } from '@/services/api/swap'
|
|
import { queryTjmdTradeOrderDetail } from '@/services/api/swap'
|
|
|
|
|
|
|
|
-const components = {
|
|
|
|
|
- delisting: defineAsyncComponent(() => import('./components/delisting/Index.vue')),
|
|
|
|
|
- listing: defineAsyncComponent(() => import('./components/listing/Index.vue')),
|
|
|
|
|
-}
|
|
|
|
|
|
|
+const componentMap = new Map<string, unknown>([
|
|
|
|
|
+ ['delisting', defineAsyncComponent(() => import('./components/delisting/Index.vue'))],
|
|
|
|
|
+ ['listing', defineAsyncComponent(() => import('./components/listing/Index.vue'))],
|
|
|
|
|
+])
|
|
|
|
|
|
|
|
const { getQueryStringToNumber } = useNavigation()
|
|
const { getQueryStringToNumber } = useNavigation()
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
@@ -71,8 +77,12 @@ const tabChange = (index: number) => {
|
|
|
console.log('切换列表', index)
|
|
console.log('切换列表', index)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const delisting = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
|
|
|
- selectedRow.value = row
|
|
|
|
|
- openComponent('delisting')
|
|
|
|
|
|
|
+const onListing = () => {
|
|
|
|
|
+ showComponent('listing')
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const showComponent = (componentName: string) => {
|
|
|
|
|
+ openComponent(componentName)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|