|
@@ -22,11 +22,7 @@
|
|
<div>
|
|
<div>
|
|
<div class="order-item d-flex">
|
|
<div class="order-item d-flex">
|
|
<div class="item-title mr-3 ">商品金额:</div>
|
|
<div class="item-title mr-3 ">商品金额:</div>
|
|
- <div>
|
|
|
|
- <span class="item-value">
|
|
|
|
- ¥{{ fen2yuan(state.orderInfo.price.totalPrice) }}
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div>¥{{ fen2yuan(state.orderInfo.price.totalPrice) }}</div>
|
|
</div>
|
|
</div>
|
|
<!-- 快递配置时,信息的展示 -->
|
|
<!-- 快递配置时,信息的展示 -->
|
|
<div
|
|
<div
|
|
@@ -35,7 +31,7 @@
|
|
>
|
|
>
|
|
<div class="item-title mr-3">运{{ spaces() }}费:</div>
|
|
<div class="item-title mr-3">运{{ spaces() }}费:</div>
|
|
<div>
|
|
<div>
|
|
- <span class="item-value text-red" v-if="state.orderInfo.price.deliveryPrice > 0">
|
|
|
|
|
|
+ <span class="text-red" v-if="state.orderInfo.price.deliveryPrice > 0">
|
|
+¥{{ fen2yuan(state.orderInfo.price.deliveryPrice) }}
|
|
+¥{{ fen2yuan(state.orderInfo.price.deliveryPrice) }}
|
|
</span>
|
|
</span>
|
|
<div class="item-value" v-else>免运费</div>
|
|
<div class="item-value" v-else>免运费</div>
|
|
@@ -158,23 +154,6 @@
|
|
await getOrderInfo()
|
|
await getOrderInfo()
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- // ========== 积分 ==========
|
|
|
|
- /**
|
|
|
|
- * 使用积分抵扣
|
|
|
|
- */
|
|
|
|
- const changeIntegral = async () => {
|
|
|
|
- state.pointStatus = !state.pointStatus;
|
|
|
|
- await getOrderInfo();
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 选择优惠券
|
|
|
|
- async function onSelectCoupon(couponId) {
|
|
|
|
- state.orderPayload.couponId = couponId;
|
|
|
|
- await getOrderInfo();
|
|
|
|
- state.showCoupon = false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 提交订单
|
|
// 提交订单
|
|
function onConfirm() {
|
|
function onConfirm() {
|
|
if (addressState.value.deliveryType === 1 && !addressState.value.addressInfo.id) {
|
|
if (addressState.value.deliveryType === 1 && !addressState.value.addressInfo.id) {
|
|
@@ -219,7 +198,7 @@
|
|
};
|
|
};
|
|
const res = await payOrderSubmit(obj)
|
|
const res = await payOrderSubmit(obj)
|
|
console.log('提交支付订单payOrderSubmit:', res)
|
|
console.log('提交支付订单payOrderSubmit:', res)
|
|
- Snackbar.warning('支付成功!')
|
|
|
|
|
|
+ Snackbar.warning('支付成功,请前往我的订单查看!')
|
|
emit('paySuccess')
|
|
emit('paySuccess')
|
|
userStore.getUserInfos()
|
|
userStore.getUserInfos()
|
|
}
|
|
}
|
|
@@ -281,7 +260,6 @@
|
|
// id: data.id,
|
|
// id: data.id,
|
|
// });
|
|
// });
|
|
// }
|
|
// }
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 检查库存 & 计算订单价格
|
|
// 检查库存 & 计算订单价格
|
|
@@ -328,102 +306,19 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.addressBox {
|
|
.addressBox {
|
|
- // border: 1px solid #000;
|
|
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
.goodsListBox {
|
|
.goodsListBox {
|
|
background: linear-gradient(to bottom, #e93323 0%, #e93323 100%);
|
|
background: linear-gradient(to bottom, #e93323 0%, #e93323 100%);
|
|
// background: linear-gradient(to bottom, var(--v-primary-base) 0%, var(--v-primary-base) 100%);
|
|
// background: linear-gradient(to bottom, var(--v-primary-base) 0%, var(--v-primary-base) 100%);
|
|
}
|
|
}
|
|
- .score-img {
|
|
|
|
- width: 36rpx;
|
|
|
|
- height: 36rpx;
|
|
|
|
- margin: 0 4rpx;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
.order-item {
|
|
.order-item {
|
|
- height: 80rpx;
|
|
|
|
-
|
|
|
|
- .item-title {
|
|
|
|
- font-size: 28rpx;
|
|
|
|
- font-weight: 400;
|
|
|
|
- color: #7a7a7a;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .item-value {
|
|
|
|
- font-size: 28rpx;
|
|
|
|
- font-weight: 500;
|
|
|
|
- color: #7a7a7a;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .text-disabled {
|
|
|
|
- color: #070606;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .item-icon {
|
|
|
|
- color: #999;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .remark-input {
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .item-placeholder {
|
|
|
|
- color: #999;
|
|
|
|
- font-size: 26rpx;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
|
|
+ color: #7a7a7a;
|
|
}
|
|
}
|
|
|
|
|
|
.total-box-footer {
|
|
.total-box-footer {
|
|
- height: 90rpx;
|
|
|
|
-
|
|
|
|
.total-num {
|
|
.total-num {
|
|
color: #7a7a7a;
|
|
color: #7a7a7a;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- .footer-box {
|
|
|
|
- height: 100rpx;
|
|
|
|
-
|
|
|
|
- .submit-btn {
|
|
|
|
- width: 240rpx;
|
|
|
|
- height: 70rpx;
|
|
|
|
- font-size: 28rpx;
|
|
|
|
- font-weight: 500;
|
|
|
|
-
|
|
|
|
- .goto-pay-text {
|
|
|
|
- line-height: 28rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .cancel-btn {
|
|
|
|
- width: 240rpx;
|
|
|
|
- height: 80rpx;
|
|
|
|
- font-size: 26rpx;
|
|
|
|
- background-color: #e5e5e5;
|
|
|
|
- color: #999;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .title {
|
|
|
|
- font-size: 36rpx;
|
|
|
|
- font-weight: bold;
|
|
|
|
- color: #333333;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .subtitle {
|
|
|
|
- font-size: 28rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .cicon-checkbox {
|
|
|
|
- font-size: 36rpx;
|
|
|
|
- color: var(--v-primary-base);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .cicon-box {
|
|
|
|
- font-size: 36rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- }
|
|
|
|
</style>
|
|
</style>
|