Commit 7cea7852 by chenwq

style: 调整表单元素样式及布局

- 为退款地址字段增加宽度和文本域类型
- 移除多个组件中不必要的边框样式
- 优化规格值显示布局和间距
- 调整表格行样式和表单内边距
1 parent 758a500f
...@@ -554,7 +554,7 @@ html { ...@@ -554,7 +554,7 @@ html {
color: #5850ff; color: #5850ff;
background: #ffffff !important; background: #ffffff !important;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff !important; // border: 1px solid #eeedff !important;
} }
.microStore .tips-icon { .microStore .tips-icon {
...@@ -633,13 +633,13 @@ html { ...@@ -633,13 +633,13 @@ html {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
div { // div {
display: inline-block; // display: inline-block;
width: 6px; // width: 6px;
height: 6px; // height: 6px;
border-radius: 50%; // border-radius: 50%;
margin-right: 8px; // margin-right: 8px;
} // }
.normal { .normal {
background-color: #2cca74; background-color: #2cca74;
......
...@@ -572,7 +572,7 @@ export default { ...@@ -572,7 +572,7 @@ export default {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
border: 1px solid #e8e8ea; /* border: 1px solid #e8e8ea; */
background: #fafafa; background: #fafafa;
z-index: 999; z-index: 999;
} }
...@@ -584,7 +584,7 @@ export default { ...@@ -584,7 +584,7 @@ export default {
} }
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__item { .home-set .home-set-form .item-box .home-set-tabs .el-tabs__item {
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff !important; /* border: 1px solid #eeedff !important; */
font-size: 14px; font-size: 14px;
color: #37383a; color: #37383a;
} }
...@@ -592,7 +592,7 @@ export default { ...@@ -592,7 +592,7 @@ export default {
color: #5850ff; color: #5850ff;
background: #ffffff !important; background: #ffffff !important;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid #ffffff !important; /* border: 1px solid #ffffff !important; */
border-bottom: none !important; border-bottom: none !important;
} }
.microStore.home-set .el-tabs__item { .microStore.home-set .el-tabs__item {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<div> <div>
<span class="specs-title">规格名:</span> <span class="specs-title">规格名:</span>
<span class="specs-item">{{ subItem.specificationName }}</span> <span class="specs-item">{{ subItem.specificationName }}</span>
<div style="position: absolute; right: -50px; top: 50%;"> <div style="position: absolute; right: -50px; top: 45%;">
<el-button class="el-icon-edit-outline" style="padding: 0 0" v-show="!isDisabled" type="text" @click="handleSpecsEdit(2, subItem, subIndex)"></el-button> <el-button class="el-icon-edit-outline" style="padding: 0 0" v-show="!isDisabled" type="text" @click="handleSpecsEdit(2, subItem, subIndex)"></el-button>
<el-button class="el-icon-delete" style="padding: 0; margin-left: 8px" v-show="!isDisabled" type="text" @click="handleSpecsDelete(subIndex)"></el-button> <el-button class="el-icon-delete" style="padding: 0; margin-left: 8px" v-show="!isDisabled" type="text" @click="handleSpecsDelete(subIndex)"></el-button>
</div> </div>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<span style="width: 56px;">规格值:</span> <span style="width: 56px;">规格值:</span>
<div class="flex-default" style="width: calc(100% - 56px); flex-wrap: wrap;"> <div class="flex-default" style="width: calc(100% - 56px); flex-wrap: wrap;">
<!-- <div> --> <!-- <div> -->
<div class="specs-item" style="display: inline-block; margin-bottom: 12px;" v-for="(n, idx) in subItem.platformSpecificationValueList" :key="idx">{{ n.specificationValue }}</div> <span class="specs-item" style="display: inline-block; margin-bottom: 12px; line-height: 22px;" v-for="(n, idx) in subItem.platformSpecificationValueList" :key="idx">{{ n.specificationValue }}</span>
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<div :style="{ width: `calc(100% - ${defaultLabelWidth} )` }"> <div :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<table class="table-spesc"> <table class="table-spesc">
<tbody> <tbody>
<tr style="padding: 17px 0; background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);"> <tr style="padding: 17px 0;">
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td> <td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
<td :style="{ width: specsWidth }">供货价(元)</td> <td :style="{ width: specsWidth }">供货价(元)</td>
<td :style="{ width: specsWidth }">库存(件)</td> <td :style="{ width: specsWidth }">库存(件)</td>
...@@ -1223,7 +1223,7 @@ export default { ...@@ -1223,7 +1223,7 @@ export default {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
width: 684px; width: 684px;
padding: 22px 20px; padding: 4px 16px;
color: #3a3a3a; color: #3a3a3a;
background: #f9f9f9; background: #f9f9f9;
border: 1px solid #f9f9f9; border: 1px solid #f9f9f9;
...@@ -1283,6 +1283,7 @@ export default { ...@@ -1283,6 +1283,7 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
border-radius: 4px;
} }
.microStore .muti-imgs { .microStore .muti-imgs {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<div> <div>
<span class="specs-title">规格名:</span> <span class="specs-title">规格名:</span>
<span class="specs-item">{{ subItem.specificationName }}</span> <span class="specs-item">{{ subItem.specificationName }}</span>
<div style="position: absolute; right: -50px; top: 50%;"> <div style="position: absolute; right: -50px; top: 45%;">
<el-button class="el-icon-edit-outline" style="padding: 0 0" v-show="!isDisabled" type="text" @click="handleSpecsEdit(2, subItem, subIndex)"></el-button> <el-button class="el-icon-edit-outline" style="padding: 0 0" v-show="!isDisabled" type="text" @click="handleSpecsEdit(2, subItem, subIndex)"></el-button>
<el-button class="el-icon-delete" style="padding: 0; margin-left: 8px" v-show="!isDisabled" type="text" @click="handleSpecsDelete(subIndex)"></el-button> <el-button class="el-icon-delete" style="padding: 0; margin-left: 8px" v-show="!isDisabled" type="text" @click="handleSpecsDelete(subIndex)"></el-button>
</div> </div>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<span style="width: 56px;">规格值:</span> <span style="width: 56px;">规格值:</span>
<div class="flex-default" style="width: calc(100% - 56px); flex-wrap: wrap;"> <div class="flex-default" style="width: calc(100% - 56px); flex-wrap: wrap;">
<!-- <div> --> <!-- <div> -->
<div class="specs-item" style="display: inline-block; margin-bottom: 12px;" v-for="(n, idx) in subItem.platformSpecificationValueList" :key="idx">{{ n.specificationValue }}</div> <span class="specs-item" style="display: inline-block; margin-bottom: 12px; line-height: 22px;" v-for="(n, idx) in subItem.platformSpecificationValueList" :key="idx">{{ n.specificationValue }}</span>
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<div :style="{ width: `calc(100% - ${defaultLabelWidth} )` }"> <div :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<table class="table-spesc"> <table class="table-spesc">
<tbody> <tbody>
<tr style="padding: 17px 0; background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);"> <tr style="padding: 17px 0;">
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td> <td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
<td :style="{ width: specsWidth }">供货价(元)</td> <td :style="{ width: specsWidth }">供货价(元)</td>
<td :style="{ width: specsWidth }">库存(件)</td> <td :style="{ width: specsWidth }">库存(件)</td>
...@@ -1223,7 +1223,7 @@ export default { ...@@ -1223,7 +1223,7 @@ export default {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
width: 684px; width: 684px;
padding: 22px 20px; padding: 4px 16px;
color: #3a3a3a; color: #3a3a3a;
background: #f9f9f9; background: #f9f9f9;
border: 1px solid #f9f9f9; border: 1px solid #f9f9f9;
...@@ -1283,6 +1283,7 @@ export default { ...@@ -1283,6 +1283,7 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
border-radius: 4px;
} }
.microStore .muti-imgs { .microStore .muti-imgs {
......
...@@ -349,6 +349,8 @@ export default { ...@@ -349,6 +349,8 @@ export default {
label: '退款地址:', label: '退款地址:',
name: 'address', name: 'address',
type: 'input', type: 'input',
width: '400px',
inputType: 'textarea',
placeholder: '请输入退款地址', placeholder: '请输入退款地址',
maxlength: 50 maxlength: 50
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!