From 4300ce141d9f7f5effdec0e9656472789826a5cd Mon Sep 17 00:00:00 2001
From: YunaiV <>
Date: Thu, 11 Apr 2019 00:44:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=EF=BC=9A=E5=95=86=E5=93=81?=
=?UTF-8?q?=E7=A1=AE=E8=AE=A4=E4=B8=8B=E5=8D=95=E7=9A=84=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=20api=20=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=90=8E=E7=BB=AD=E9=9C=80?=
=?UTF-8?q?=E8=A6=81=E7=BB=93=E5=90=88=E4=BF=83=E9=94=80=EF=BC=8C=E5=AE=8C?=
=?UTF-8?q?=E5=96=84=E8=BF=99=E4=B8=AA=E6=8E=A5=E5=8F=A3=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mobile-web/src/api/order.js | 11 ++
.../src/components/common/productcard.vue | 19 ++-
mobile-web/src/page/shipping/order.vue | 41 ++++-
.../users/UsersOrderController.java | 28 +++-
.../application/convert/CartConvert.java | 15 ++
.../vo/UsersOrderConfirmCreateVO.java | 152 ++++++++++++++++++
order/order-service-api/pom.xml | 10 +-
.../iocoder/mall/order/api/CartService.java | 10 ++
.../iocoder/mall/order/api/OrderService.java | 8 -
.../mall/order/api/bo/CalcOrderPriceBO.java | 22 ++-
.../api/constant/OrderErrorCodeEnum.java | 2 +-
.../mall/order/api/dto/CalcOrderPriceDTO.java | 12 +-
.../mall/order/biz/convert/CartConvert.java | 15 ++
.../order/biz/mock/ProductSpuServiceMock.java | 10 +-
.../order/biz/service/CartServiceImpl.java | 120 ++++++++++++++
.../order/biz/service/OrderServiceImpl.java | 5 -
.../admins/AdminsProductSpuController.java | 4 +-
.../users/UsersProductSpuController.java | 4 +-
.../mall/product/api/ProductSpuService.java | 18 +--
.../product/api/bo/ProductSkuDetailBO.java | 56 ++++++-
.../product/api/bo/ProductSpuDetailBO.java | 36 ++++-
.../product/convert/ProductSpuConvert.java | 40 ++++-
.../mall/product/dao/ProductSkuMapper.java | 5 +-
.../service/ProductSpuServiceImpl.java | 35 ++--
.../resources/mapper/ProductSkuMapper.xml | 15 +-
promotion/promotion-application/pom.xml | 3 -
.../constant/PromotionActivityTypeEnum.java | 34 ++++
.../biz/dataobject/PromotionActivityDO.java | 27 ++++
.../service/ProductRecommendServiceImpl.java | 6 +-
29 files changed, 688 insertions(+), 75 deletions(-)
create mode 100644 order/order-application/src/main/java/cn/iocoder/mall/order/application/convert/CartConvert.java
create mode 100644 order/order-application/src/main/java/cn/iocoder/mall/order/application/vo/UsersOrderConfirmCreateVO.java
create mode 100644 order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/convert/CartConvert.java
create mode 100644 order/order-service-impl/src/main/java/cn/iocoder/mall/order/biz/service/CartServiceImpl.java
create mode 100644 promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/constant/PromotionActivityTypeEnum.java
create mode 100644 promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/PromotionActivityDO.java
diff --git a/mobile-web/src/api/order.js b/mobile-web/src/api/order.js
index c83150619..1658558ee 100644
--- a/mobile-web/src/api/order.js
+++ b/mobile-web/src/api/order.js
@@ -21,6 +21,17 @@ export function cancelOrder(id) {
});
}
+export function getConfirmCreateOrder(skuId, quantity) {
+ return request({
+ url: '/order-api/users/order/confirm_create_order',
+ method: 'get',
+ params: {
+ skuId,
+ quantity,
+ }
+ });
+}
+
export function createOrder(params) {
return request({
headers: {
diff --git a/mobile-web/src/components/common/productcard.vue b/mobile-web/src/components/common/productcard.vue
index bc30f6b23..51692d9d7 100644
--- a/mobile-web/src/components/common/productcard.vue
+++ b/mobile-web/src/components/common/productcard.vue
@@ -8,17 +8,22 @@
style="background:#fff"
>
-
- {{product.imageTag}}
+
¥{{product.price}}
-