|
|
@@ -39,6 +39,7 @@
|
|
|
import { shallowRef, PropType, onMounted, computed } from 'vue'
|
|
|
import { Form, Field, Stepper, Button, FieldRule, FormInstance } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
+import { parsePercent } from '@/filters'
|
|
|
import { useAccountStore } from '@/stores'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
import AppPopup from '@mobile/components/base/popup/index.vue'
|
|
|
@@ -79,7 +80,7 @@ const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
|
|
|
const earnest = computed(() => {
|
|
|
switch (props.detail.presaledepositalgorithm) {
|
|
|
case 1:
|
|
|
- return (props.detail.presaledepositvalue * 100).toFixed(2)
|
|
|
+ return parsePercent(props.detail.presaledepositvalue)
|
|
|
case 2:
|
|
|
return props.detail.presaledepositvalue.toFixed(2)
|
|
|
default:
|