Fix style layout (#78)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
fbd3336a2c
commit
f8b297c9da
223 files changed
+14795
-12370
No files matched your search
@@ -10,7 +10,7 @@
|
||||
<el-col :span="24">
|
||||
<el-card shadow="hover">
|
||||
<el-row>
|
||||
<el-col :span="12" :offset="6">
|
||||
<el-col :span="16" :offset="4">
|
||||
<el-skeleton v-if="loading" />
|
||||
<el-form v-else-if="application" label-width="100px">
|
||||
<el-form-item :label="$t('application.field.service')">
|
||||
@@ -22,6 +22,7 @@
|
||||
v-for="(pkg, pkgIndex) in application?.service.packages"
|
||||
:key="pkgIndex"
|
||||
:label="pkg.id"
|
||||
class="mb-2"
|
||||
>
|
||||
{{ pkg.amount }} {{ $t(`service.unit.${application?.service?.unit}s`) }}
|
||||
</el-radio-button>
|
||||
@@ -29,6 +30,15 @@
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('service.field.price')">
|
||||
<price :price="package?.price" />
|
||||
<span v-if="package" class="ml-2"
|
||||
>({{
|
||||
$t('service.message.around') +
|
||||
' $' +
|
||||
(package?.price / package?.amount).toFixed(4) +
|
||||
' / ' +
|
||||
$t(`service.unit.${application?.service?.unit}`)
|
||||
}})
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-divider border-style="dashed" />
|
||||
<el-form-item :label="$t('application.field.shouldPayPrice')">
|
||||
@@ -86,7 +96,7 @@ interface IData {
|
||||
application: IApplication | undefined;
|
||||
loading: boolean;
|
||||
form: {
|
||||
amount: number;
|
||||
amount: number | undefined;
|
||||
packageId: string | undefined;
|
||||
};
|
||||
creating: boolean;
|
||||
@@ -112,7 +122,8 @@ export default defineComponent({
|
||||
application: undefined,
|
||||
loading: false,
|
||||
form: {
|
||||
packageId: undefined
|
||||
packageId: undefined,
|
||||
amount: undefined
|
||||
},
|
||||
creating: false
|
||||
};
|
||||
@@ -222,4 +233,11 @@ export default defineComponent({
|
||||
.pagination {
|
||||
float: right;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.panel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -244,5 +244,9 @@ export default defineComponent({
|
||||
.help {
|
||||
top: 40px;
|
||||
}
|
||||
.panel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -10,7 +10,7 @@
|
||||
<el-col :span="24">
|
||||
<el-card shadow="hover">
|
||||
<el-row>
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-col :span="16" :offset="4">
|
||||
<div v-if="loading" class="pt-5">
|
||||
<el-skeleton animated />
|
||||
</div>
|
||||
@@ -47,19 +47,19 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="order?.state === OrderState.PAID" class="mb-5">
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-col :span="16" :offset="4">
|
||||
<el-divider border-style="dashed" />
|
||||
<el-alert :title="$t('order.message.paidSuccessfully')" type="success" show-icon :closable="false" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="order?.state === OrderState.EXPIRED" class="mb-5">
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-col :span="16" :offset="4">
|
||||
<el-divider border-style="dashed" />
|
||||
<el-alert :title="$t('order.message.orderExpired')" type="error" show-icon :closable="false" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-col :span="16" :offset="4">
|
||||
<el-divider border-style="dashed" />
|
||||
<div v-if="showPayWays && order.price && order.price > 0 && !order.pay_way" class="payways mb-6">
|
||||
<div
|
||||
@@ -356,4 +356,11 @@ export default defineComponent({
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.panel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -229,5 +229,9 @@ export default defineComponent({
|
||||
.help {
|
||||
top: 40px;
|
||||
}
|
||||
.panel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user