Fix pay and order styles (#15)
This commit is contained in:
1 parent
bb05349b0e
commit
9a8547b7ef
3 files changed
+100
-68
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix order style",
|
||||||
|
"packageName": "@acedatacloud/hub",
|
||||||
|
"email": "germey@acedata.cloud",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
table-layout="fixed"
|
table-layout="fixed"
|
||||||
:empty-text="$t('common.message.noData')"
|
:empty-text="$t('common.message.noData')"
|
||||||
>
|
>
|
||||||
<el-table-column prop="id" :label="$t('application.field.id')" width="240px" class-name="text-center">
|
<el-table-column prop="id" :label="$t('application.field.id')" width="300px" class-name="text-center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ scope.row.id }}</span>
|
<span>{{ scope.row.id }}</span>
|
||||||
<span class="copy">
|
<span class="copy">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<span>{{ getUsedAmount(scope.row) }}</span>
|
<span>{{ getUsedAmount(scope.row) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column fixed="right" width="360px">
|
<el-table-column fixed="right" width="120px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<el-button type="primary" size="small" @click="onBuyMore(scope?.row)">
|
<el-button type="primary" size="small" @click="onBuyMore(scope?.row)">
|
||||||
|
|||||||
@@ -51,9 +51,9 @@
|
|||||||
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
||||||
<el-col :span="14" :offset="5">
|
<el-col :span="14" :offset="5">
|
||||||
<el-divider border-style="dashed" />
|
<el-divider border-style="dashed" />
|
||||||
<div v-if="order.price && order.price > 0 && !order.pay_way" class="payways mb-4">
|
<div v-if="order.price && order.price > 0 && !order.pay_way" class="payways mb-6">
|
||||||
<div
|
<div
|
||||||
v-if="false"
|
v-if="true"
|
||||||
:class="{
|
:class="{
|
||||||
payway: true,
|
payway: true,
|
||||||
wechatpay: true,
|
wechatpay: true,
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
@click="payWay = PayWay.WechatPay"
|
@click="payWay = PayWay.WechatPay"
|
||||||
>
|
>
|
||||||
<span class="payicon wechatpay"></span>
|
<span class="payicon wechatpay"></span>
|
||||||
{{ $t('order.title.wechatPay') }}
|
<span class="payname">{{ $t('order.title.wechatPay') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="false"
|
v-if="false"
|
||||||
@@ -74,10 +74,10 @@
|
|||||||
@click="payWay = PayWay.AliPay"
|
@click="payWay = PayWay.AliPay"
|
||||||
>
|
>
|
||||||
<span class="payicon alipay"></span>
|
<span class="payicon alipay"></span>
|
||||||
{{ $t('order.title.aliPay') }}
|
<span class="payname">{{ $t('order.title.aliPay') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="false"
|
v-if="true"
|
||||||
:class="{
|
:class="{
|
||||||
payway: true,
|
payway: true,
|
||||||
stripe: true,
|
stripe: true,
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
@click="payWay = PayWay.Stripe"
|
@click="payWay = PayWay.Stripe"
|
||||||
>
|
>
|
||||||
<span class="payicon stripe"></span>
|
<span class="payicon stripe"></span>
|
||||||
{{ $t('order.title.stripe') }}
|
<span class="payname">{{ $t('order.title.stripe') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!order?.pay_way">
|
<div v-if="!order?.pay_way">
|
||||||
@@ -168,7 +168,7 @@ export default defineComponent({
|
|||||||
data(): IData {
|
data(): IData {
|
||||||
return {
|
return {
|
||||||
PayWay: PayWay,
|
PayWay: PayWay,
|
||||||
payWay: PayWay.Stripe,
|
payWay: PayWay.WechatPay,
|
||||||
OrderState: OrderState,
|
OrderState: OrderState,
|
||||||
order: undefined,
|
order: undefined,
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -245,78 +245,103 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.title {
|
||||||
|
font-size: 26px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
width: calc(100% - 300px);
|
width: calc(100% - 300px);
|
||||||
background-color: #f3f5f6;
|
background-color: #f3f5f6;
|
||||||
|
.el-card {
|
||||||
.title {
|
min-height: 500px;
|
||||||
font-size: 26px;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
color: #333;
|
|
||||||
}
|
}
|
||||||
}
|
.order {
|
||||||
|
padding-top: 50px;
|
||||||
.order {
|
.price {
|
||||||
padding-top: 50px;
|
font-size: 20px;
|
||||||
.price {
|
font-weight: bold;
|
||||||
font-size: 20px;
|
&.unfree {
|
||||||
font-weight: bold;
|
color: #ff5441;
|
||||||
&.unfree {
|
}
|
||||||
color: #ff5441;
|
&.free {
|
||||||
}
|
color: #29c287;
|
||||||
&.free {
|
}
|
||||||
color: #29c287;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.payways {
|
||||||
.payways {
|
overflow: hidden;
|
||||||
overflow: hidden;
|
.payway {
|
||||||
.payway {
|
cursor: pointer;
|
||||||
cursor: pointer;
|
font-size: 14px;
|
||||||
font-size: 14px;
|
float: left;
|
||||||
float: left;
|
width: 120px;
|
||||||
width: 120px;
|
line-height: 40px;
|
||||||
line-height: 40px;
|
text-align: center;
|
||||||
text-align: center;
|
height: 40px;
|
||||||
height: 40px;
|
border: 2px solid #eee;
|
||||||
border: 1px solid #eee;
|
&:first-child {
|
||||||
&.active {
|
border-top-left-radius: 10px;
|
||||||
border: 1px solid #3879d1;
|
border-bottom-left-radius: 10px;
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
border-top-right-radius: 10px;
|
||||||
|
border-bottom-right-radius: 10px;
|
||||||
|
}
|
||||||
|
&:not(:last-child) {
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
border-top: 2px solid var(--el-color-primary);
|
||||||
|
border-right: 2px solid var(--el-color-primary);
|
||||||
|
border-bottom: 2px solid var(--el-color-primary);
|
||||||
|
border-left: 2px solid var(--el-color-primary);
|
||||||
|
& + .payway {
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.payicon {
|
.payname {
|
||||||
width: 20px;
|
display: inline-block;
|
||||||
height: 20px;
|
font-size: 12px;
|
||||||
margin-top: 2px;
|
margin-left: 5px;
|
||||||
display: inline-block;
|
|
||||||
&.wechatpay {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 3px;
|
top: -2px;
|
||||||
width: 22px;
|
|
||||||
height: 19px;
|
|
||||||
background-image: url(//midas.gtimg.cn/enterprise/images/ep_new_sprites@2x.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 60px 250px;
|
|
||||||
background-position: 0 -50px;
|
|
||||||
}
|
}
|
||||||
&.stripe {
|
|
||||||
position: relative;
|
.payicon {
|
||||||
top: 3px;
|
width: 20px;
|
||||||
width: 22px;
|
height: 20px;
|
||||||
height: 18px;
|
margin-top: 2px;
|
||||||
background-image: url(https://acedatacloud-1256437459.cos.ap-beijing.myqcloud.com/2023-08-27-164440.png);
|
display: inline-block;
|
||||||
background-size: contain;
|
&.wechatpay {
|
||||||
background-repeat: no-repeat;
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
width: 22px;
|
||||||
|
height: 19px;
|
||||||
|
background-image: url(//midas.gtimg.cn/enterprise/images/ep_new_sprites@2x.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 60px 250px;
|
||||||
|
background-position: 0 -50px;
|
||||||
|
}
|
||||||
|
&.stripe {
|
||||||
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
width: 22px;
|
||||||
|
height: 18px;
|
||||||
|
background-image: url(//cdn.acedata.cloud/2023-08-27-164440.png);
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.btn-pay,
|
.btn-pay {
|
||||||
.btn-repay {
|
width: 150px;
|
||||||
width: 150px;
|
}
|
||||||
border-radius: 20px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user