li.shaoyi 2 rokov pred
rodič
commit
745d8f5b3a

+ 2 - 2
src/packages/mobile/views/presale/detail/components/buy/index.vue

@@ -39,7 +39,7 @@ import { shallowRef, PropType } from 'vue'
 import { Form, Field, Stepper, Button, FieldRule, FormInstance } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
 import { useAccountStore } from '@/stores'
-import { useOrder } from '@/business/presale'
+import { useDelisting } from '@/business/trade'
 import AppPopup from '@mobile/components/base/popup/index.vue'
 //import AppSelect from '@mobile/components/base/select/index.vue'
 
@@ -50,7 +50,7 @@ const props = defineProps({
     },
 })
 
-const { formData, formSubmit } = useOrder(props.detail)
+const { formData, formSubmit } = useDelisting(props.detail)
 const accountStore = useAccountStore()
 const formRef = shallowRef<FormInstance>()
 const refresh = shallowRef(false) // 是否刷新父组件数据

+ 2 - 1
src/services/api/trade/index.ts

@@ -186,7 +186,8 @@ export function order(config: RequestConfig<Proto.OrderReq>) {
     return http.mqRequest<Proto.OrderRsp>({
         data: config.data,
         requestCode: 'OrderReq',
-        responseCode: 'OrderRsp'
+        responseCode: 'OrderRsp',
+        marketId: config.data?.MarketID
     })
 }