|
|
@@ -17,7 +17,7 @@
|
|
|
</template>
|
|
|
</app-navbar>
|
|
|
</template>
|
|
|
- <component :is="Tik" v-bind="{ goodsCode }" />
|
|
|
+ <component :is="Forex" v-bind="{ goodsCode }" />
|
|
|
<Row class="g-layout-block g-layout-block--inset" gutter="10">
|
|
|
<Col span="12">
|
|
|
<Button :type="formData.BuyOrSell === BuyOrSell.Buy ? 'success' : 'default'" size="small" block
|
|
|
@@ -95,7 +95,6 @@ import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { digitalOrder } from '@/services/api/digital'
|
|
|
import { i18n, useFuturesStore, useUserStore } from '@/stores'
|
|
|
import { useSpotAccountStore } from '../../../wallet/components/spot/composables'
|
|
|
-import { useComponent } from '@/hooks/component'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
|
import Long from 'long'
|
|
|
import AppSelect from '@mobile/components/base/select/index.vue'
|
|
|
@@ -103,8 +102,7 @@ import AppStepper from '@mobile/components/base/stepper/index.vue'
|
|
|
import SpotOrder from '../../../spot/components/order/index.vue'
|
|
|
import SpotAccount from '../../../spot/components/account/index.vue'
|
|
|
|
|
|
-const Tik = defineAsyncComponent(() => import('@mobile/components/modules/quote/tik/index.vue'))
|
|
|
-const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
+const Forex = defineAsyncComponent(() => import('@mobile/components/modules/quote/forex/index.vue'))
|
|
|
|
|
|
const subscribe = quoteSocket.createSubscribe()
|
|
|
|
|
|
@@ -122,7 +120,7 @@ const formData = reactive<Partial<Proto.DigitalOrderReq>>({
|
|
|
BuyOrSell: BuyOrSell.Buy,
|
|
|
PriceMode: PriceMode.Market,
|
|
|
OperateType: EOrderOperateType.ORDEROPERATETYPE_NORMAL,
|
|
|
- ListingSelectType: EListingSelectType.LISTINGSELECTTYPE_DELISTING,
|
|
|
+ ListingSelectType: EListingSelectType.LISTINGSELECTTYPE_DELISTINGTHENLISTING,
|
|
|
DelistingType: EDelistingType.DELISTINGTYPE_PRICE,
|
|
|
BuildType: EBuildType.BUILDTYPE_OPEN,
|
|
|
TimevalidType: EValidType.VALIDTYPE_DR,
|
|
|
@@ -213,7 +211,6 @@ const onSubmit = () => {
|
|
|
formData.OrderPrice = quote.value?.last
|
|
|
formData.MarketMaxSub = Number(param112) || 100
|
|
|
}
|
|
|
-
|
|
|
digitalOrder({
|
|
|
data: formData
|
|
|
}).then(() => {
|