From c4198c7c72102bf352b36003a824cb44189adabd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com>
Date: Fri, 10 Jun 2022 14:33:33 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BE=93=E5=85=A5=E9=99=90=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/config/order.vue | 39 +++++++++++++++++++++++---------------
1 file changed, 24 insertions(+), 15 deletions(-)
diff --git a/src/views/config/order.vue b/src/views/config/order.vue
index 1dbd8fb..f8df299 100644
--- a/src/views/config/order.vue
+++ b/src/views/config/order.vue
@@ -2,26 +2,22 @@
-
- 分
-
+
+ 分
未付款,订单自动关闭
-
- 天
-
+
+ 天
未收货,订单自动完成
-
- 天
-
+
+ 天
自动结束交易,不能申请售后
提交
- 刷新
@@ -35,8 +31,8 @@
loading: false,
form: {
orderPayExpire: 30,
- automaticReceipt: 15,
- afterSalesExpire: 7,
+ automaticReceipt: 7,
+ afterSalesExpire: 15,
},
rules: {
orderPayExpire: [{ required: true, message: '订单创建超时自动关闭不能为空' }],
@@ -45,8 +41,10 @@
},
});
const handleSearch = async () => {
+ state.loading = true;
let res = await store.dispatch('orderConfig/search');
Object.assign(state.form, res);
+ state.loading = false;
};
handleSearch();
const handleUpdate = async () => {
@@ -67,15 +65,26 @@
justify-content: center;
align-items: center;
.el-form {
- // width: 680px;
:deep(.el-form-item__content) {
flex-wrap: nowrap;
- .el-input {
- width: 120px;
+ .el-input-number {
+ width: 60px;
input {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
text-align: center;
}
}
+ .unit {
+ margin: 0;
+ padding: 0 @layout-space;
+ background: #f1f1f1;
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 4px;
+ position: relative;
+ left: -1px;
+ box-shadow: 0 0 0 1px #dcdfe6 inset;
+ }
p {
min-width: max-content;
margin-left: @layout-space;