This commit is contained in:
pushuo 2022-07-04 19:53:22 +08:00
parent 3d06f305db
commit 35e0335c36
5 changed files with 27 additions and 8 deletions

View File

@ -521,6 +521,12 @@ body.page-checkout .total-wrap .card-header {
body.page-checkout .total-wrap .card-header h5 {
font-weight: bold;
}
body.page-checkout .total-wrap .card-header span {
line-height: 24px;
min-width: 24px;
color: #fff;
text-align: center;
}
body.page-checkout .total-wrap .products-wrap {
border-bottom: 1px solid #E6E6E6;
margin-bottom: 1.3rem;
@ -609,7 +615,7 @@ body.page-checkout .addresses-wrap .item.active:before {
background: repeating-linear-gradient(-45deg, #d60404 0, #d60404 10px, #fff 10px, #fff 20px, #4991F4 20px, #4991F4 30px, #fff 30px, #fff 40px);
}
body.page-checkout .addresses-wrap .item .name-wrap {
margin-bottom: 0.5rem;
margin-bottom: 0.6rem;
line-height: 1;
}
body.page-checkout .addresses-wrap .item .name-wrap .name {
@ -621,7 +627,7 @@ body.page-checkout .addresses-wrap .item .name-wrap .phone {
color: #666;
}
body.page-checkout .addresses-wrap .item .zipcode {
margin-bottom: 0.1rem;
margin-bottom: 0.3rem;
}
body.page-checkout .addresses-wrap .item .address-info {
margin-bottom: 0.9rem;

View File

@ -135,6 +135,7 @@ axios.defaults.baseURL = process.env.VUE_APP_BASE_URL; // axios.defaults.headers
if (!hmsg) return layer.msg(res.data.message, function () {});
}
})["catch"](function (res) {
console.log(res);
reject(res);
if (!hmsg && res.message) {

View File

@ -46,6 +46,13 @@ body.page-checkout {
h5 {
font-weight: bold;
}
span {
line-height: 24px;
min-width: 24px;
color: #fff;
text-align: center;
}
}
.products-wrap {
@ -155,7 +162,7 @@ body.page-checkout {
}
.name-wrap {
margin-bottom: .5rem;
margin-bottom: .6rem;
line-height: 1;
.name {
@ -170,7 +177,7 @@ body.page-checkout {
}
.zipcode {
margin-bottom: .1rem;
margin-bottom: .3rem;
}
.address-info {

View File

@ -79,6 +79,7 @@ export default {
if (!hmsg) return layer.msg(res.data.message, ()=>{});
}
}).catch((res) => {
console.log(res)
reject(res);
if (!hmsg && res.message) {
layer.msg(res.message, ()=>{});

View File

@ -83,7 +83,10 @@
<div class="col-12 col-md-4 right-column">
<div class="card total-wrap fixed-top-line">
<div class="card-header"><h5 class="mb-0">CART TOTALS</h5></div>
<div class="card-header d-flex align-items-center justify-content-between">
<h5 class="mb-0">CART TOTALS</h5>
<span class="rounded-circle bg-primary">@{{ source.carts.quantity }}</span>
</div>
<div class="card-body">
<div class="products-wrap">
<div class="item" v-for="cart, index in source.carts.carts" :key="index">
@ -100,9 +103,10 @@
</div>
</div>
<ul class="totals">
<li><span>总数</span><span v-text="source.carts.quantity"></span></li>
<li><span>运费</span><span v-text="source.carts.quantity"></span></li>
<li><span>总价</span><span v-text="source.carts.amount_format"></span></li>
{{-- <li><span>总数</span><span v-text="source.carts.quantity"></span></li> --}}
<li><span>商品总额</span><span>2341.00</span></li>
<li><span>运费</span><span>15</span></li>
<li><span>应付总金额</span><span v-text="source.carts.amount_format"></span></li>
</ul>
<div class="d-grid gap-2 mt-3">
<button class="btn btn-primary" type="button" @click="checkedBtnCheckoutConfirm">提交订单</button>