feat: 更新环境配置,添加 API 地址,优化数据获取逻辑,支持振动反馈功能
This commit is contained in:
@@ -9,7 +9,6 @@ import Done from "./done.vue";
|
||||
import IssuePeriod from "./issue-period.vue";
|
||||
|
||||
const { t } = useI18n();
|
||||
const now = useNow();
|
||||
const { data: categories, onFetchResponse } = await safeClient(() => client.api.rwa.issuance.categories.get());
|
||||
|
||||
const step = useRouteQuery<number>("step", 1, { transform: v => Number(v), mode: "push" });
|
||||
@@ -22,9 +21,9 @@ const initialData: RwaIssuanceProductBody = {
|
||||
editions: [
|
||||
{
|
||||
editionName: "",
|
||||
launchDate: useDateFormat(now.value, "YYYY/MM/DD").value,
|
||||
launchDate: new Date(),
|
||||
perUserLimit: "",
|
||||
subscriptionDeadline: useDateFormat(now.value, "YYYY/MM/DD").value,
|
||||
subscriptionDeadline: new Date(),
|
||||
totalSupply: "",
|
||||
unitPrice: "",
|
||||
dividendRate: "",
|
||||
|
||||
@@ -18,9 +18,9 @@ const now = useNow();
|
||||
|
||||
const initialIssuePeriod: RwaIssuanceProductBody["editions"][0] = {
|
||||
editionName: "",
|
||||
launchDate: useDateFormat(now.value, "YYYY/MM/DD").value,
|
||||
launchDate: new Date(),
|
||||
perUserLimit: "",
|
||||
subscriptionDeadline: useDateFormat(now.value, "YYYY/MM/DD").value,
|
||||
subscriptionDeadline: new Date(),
|
||||
totalSupply: "",
|
||||
unitPrice: "",
|
||||
dividendRate: "",
|
||||
@@ -47,6 +47,11 @@ const schema = toTypedSchema(yup.object({
|
||||
function handleSubmit(values: GenericObject) {
|
||||
emit("submit", values.editions);
|
||||
}
|
||||
function handleChange(event: Event) {
|
||||
debugger;
|
||||
const input = event.target as HTMLInputElement;
|
||||
return new Date(input.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -71,6 +76,7 @@ function handleSubmit(values: GenericObject) {
|
||||
<ui-datetime
|
||||
v-bind="field"
|
||||
:label="t('asset.issue.apply.launchDate')"
|
||||
:formatter-value="(val) => new Date(val).toISOString()"
|
||||
/>
|
||||
</template>
|
||||
</Field>
|
||||
@@ -113,6 +119,7 @@ function handleSubmit(values: GenericObject) {
|
||||
<ui-datetime
|
||||
v-bind="field"
|
||||
:label="t('asset.issue.apply.subscriptionDeadline')"
|
||||
:formatter-value="(val) => new Date(val).toISOString()"
|
||||
/>
|
||||
</template>
|
||||
</Field>
|
||||
|
||||
Reference in New Issue
Block a user