This commit is contained in:
pushuo 2022-07-01 11:16:22 +08:00
parent f5a48b3539
commit e397ca7899
3 changed files with 36 additions and 8 deletions

View File

@ -470,9 +470,18 @@ body.page-cart .total-wrap .list-group li .total-price {
}
body.page-checkout .checkout-title {
border-bottom: 1px solid #e5e5e5;
padding-bottom: 16px;
margin-bottom: 16px;
position: relative;
padding-left: 10px;
}
body.page-checkout .checkout-title:before {
content: "";
position: absolute;
top: 2px;
left: 0;
background-color: #fd560f;
width: 3px;
height: 16px;
}
body.page-checkout .total-wrap {
padding: 1.4rem;

View File

@ -35,8 +35,8 @@
<td>
<el-tag :type="customer.status ? 'success' : 'info'" size="small">@{{ customer.status ? '启用' : '禁用' }}</el-tag>
<td>
<a class="btn btn-outline-secondary btn-sm" :href="customer.href">编辑</a>
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(customer.id, index)">删除</button>
<a class="btn btn-outline-secondary btn-sm" :href="customer.edit">编辑</a>
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(customer.delete, index)">删除</button>
</td>
</tr>
</tbody>
@ -134,8 +134,15 @@
});
},
deleteCustomer(id, index) {
console.log(id, index)
deleteCustomer(url, index) {
$.ajax({
url: url,
type: 'delete',
success: function(res) {
self.$message.success(res.message);
this.customers.splice(index, 1)
}
})
},
closeCustomersDialog(form) {

View File

@ -2,9 +2,21 @@
body.page-checkout {
.checkout-title {
border-bottom: 1px solid #e5e5e5;
padding-bottom: 16px;
// border-bottom: 1px solid #e5e5e5;
// padding-bottom: 16px;
margin-bottom: 16px;
position: relative;
padding-left: 10px;
&:before {
content: '';
position: absolute;
top: 2px;
left: 0;
background-color: $primary;
width: 3px;
height: 16px;
}
}
.total-wrap {