-
+
{{item.status=='0'?'待付款':item.status=='1'?'待收货':item.status=='2'?'已完成':item.status=='3'?'已取消':'异常订单'}}
{{orderstatus}}
+
{{ trackingstates}}
@@ -19,23 +20,17 @@
-
- {{ datddress.recipient }}
- {{ datddress.recipientPhone }}
+ {{ item.addressUserName }}
+ {{ item.addressPhoneNumber }}
- {{ datddress.provinceName }}{{datddress.cityName}}{{datddress.districtName}}{{datddress.detailAddress}}
+ {{ item.addressProvinceName }}{{item.addressCityName}}{{item.addressCountyName}}
-
-
-
@@ -125,7 +120,7 @@
¥{{usersalesAmount}}
- 再次购买
+ 再次购买
@@ -159,6 +154,7 @@ export default {
goldmedal:[],
userproductId:'',
logisticsDate:'',
+ addressPhoneNumber:'',
userphone:'',
logisticsNumber:'',
customer:'',//联系客服或者取消订单
@@ -168,6 +164,7 @@ export default {
logisticsCompany:'',//物流公司
orderstatus: '',
goldastates:'',
+
userisdelivery:'待收货',
userdelivery: "派送中",
isshow:true,
@@ -241,11 +238,11 @@ userpay(){
}
},
//订单支付和再次购买
- onceagain(){
+ onceagain(item){
console.log(this.payorsucess);
if(this.payorsucess=='立即支付'){
console.log('----')
- this.getwei();
+ this.getwei(item);
}else{
this.$router.push({
@@ -268,6 +265,7 @@ if(data){
console.log(this.goldmedal);
for(let i=0;i
{
From 438f85e39828533d020a91c184958a6fb6d0c48a Mon Sep 17 00:00:00 2001
From: "952108534@qq.com" <952108534@qq.com>
Date: Mon, 24 Jan 2022 17:26:32 +0800
Subject: [PATCH 5/8] =?UTF-8?q?=E5=8F=AA=E8=AE=A9=E4=BC=98=E6=83=A0?=
=?UTF-8?q?=E5=88=B8=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=87=BA=E7=8E=B0=E7=AB=8B?=
=?UTF-8?q?=E5=8D=B3=E4=BD=BF=E7=94=A8=E7=9A=84=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
rc-busness/pages/personal/discount.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rc-busness/pages/personal/discount.vue b/rc-busness/pages/personal/discount.vue
index cbf93649..21bcba0d 100644
--- a/rc-busness/pages/personal/discount.vue
+++ b/rc-busness/pages/personal/discount.vue
@@ -48,7 +48,7 @@
{{item.validFrom}}至
{{item.validTo}}
-
+
立即使用
From 69c2664e21e96728882427f5e9b67fa1abb34da4 Mon Sep 17 00:00:00 2001
From: "952108534@qq.com" <952108534@qq.com>
Date: Mon, 24 Jan 2022 17:41:52 +0800
Subject: [PATCH 6/8] =?UTF-8?q?=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
rc-busness/pages/myorder/usertion.vue | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/rc-busness/pages/myorder/usertion.vue b/rc-busness/pages/myorder/usertion.vue
index ec033a2c..5a7e5d30 100644
--- a/rc-busness/pages/myorder/usertion.vue
+++ b/rc-busness/pages/myorder/usertion.vue
@@ -119,8 +119,8 @@
合计金额:
¥{{usersalesAmount}}
-
-
再次购买
+
+ {{payorsucess}}
@@ -284,7 +284,6 @@ if(data){
this.usersalesAmount=this.goldmedal[i].salesAmount;
this.addressUserName=this.goldmedal[i].addressUserName;
this.addressPhoneNumber=this.goldmedal[i].addressPhoneNumber;
-
}
console.log(this.goldmedal,this.userproductId,this.usersalesAmount);
}
@@ -295,7 +294,7 @@ if(data){
async getwei(user) {
console.log(user);
let userPayData = {
-
+
userprice: this.usersalesAmount,
orderId:this.orderNumber,
userinformation:this.addressUserName +
From bae8ab44225b13fbbddb376740572f610d178165 Mon Sep 17 00:00:00 2001
From: Carl <376654749@qq.com>
Date: Mon, 24 Jan 2022 18:24:58 +0800
Subject: [PATCH 7/8] modify coupon logic ,adding 3 verfiy
---
.../royalcanin/good/OrderController.java | 23 +++++++++++++++----
.../system/royalcanin/good/dao/OrdersDao.java | 2 ++
.../royalcanin/good/service/OrderService.java | 4 ++--
.../system/royalcanin/Order/OrderMapper.xml | 6 +++++
4 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java
index 7b3b2e4b..83d50853 100644
--- a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java
+++ b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java
@@ -12,6 +12,8 @@ import net.lab1024.smartadmin.constant.SwaggerTagConst;
import net.lab1024.smartadmin.module.system.alipay.AliPayService;
import net.lab1024.smartadmin.module.system.alipay.alipayModel.AliPayEntity;
import net.lab1024.smartadmin.module.system.alipay.conf.AlipayConfig;
+import net.lab1024.smartadmin.module.system.royalcanin.CouponService;
+import net.lab1024.smartadmin.module.system.royalcanin.coupon.CouponGetAllEntity;
import net.lab1024.smartadmin.module.system.royalcanin.good.constant.OrderResponseCodeConst;
import net.lab1024.smartadmin.module.system.royalcanin.good.model.OrderAddress;
import net.lab1024.smartadmin.module.system.royalcanin.good.model.OrderEntity;
@@ -51,6 +53,9 @@ public class OrderController {
@Autowired
private CartService cartService;
+ @Autowired
+ private CouponService couponService;
+
@ApiOperation(value = "微信支付订单", notes = "生成订单")
@PostMapping("royalcanin/generateOrderWX")
@@ -76,10 +81,18 @@ public class OrderController {
orderDatilListEntity.setEcPrice(ordersEntitys.getPayAmount());
orderDatilListJson.add(orderDatilListEntity);
if(ordersEntitys.getCouponCode() != "" && ordersEntitys.getCouponCode() != null) {
- ordersEntity.setCouponAmount(ordersEntitys.getCouponAmount());
- ordersEntity.setCouponCode(ordersEntitys.getCouponCode());
- ordersEntity.setCouponName(ordersEntitys.getCouponName());
- ordersEntity.setCouponId(ordersEntitys.getCouponId());
+ CouponGetAllEntity couponGetAllEntity = new CouponGetAllEntity ();
+ couponGetAllEntity.setMemberId(ordersEntitys.getMemberId());
+ couponGetAllEntity.setCouponCode(ordersEntitys.getCouponCode());
+ String couponInfo = couponService.couponGetAll(couponGetAllEntity);
+ JSONObject jsonObject = JSONObject.parseObject(couponInfo);
+ com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(jsonObject.getString("data"));
+ JSONObject jsonObjectData = (JSONObject)jsonArray.get(0);
+
+ ordersEntity.setCouponAmount(jsonObjectData.getString("couponAmount") == null ?jsonObjectData.getString("discount"):jsonObjectData.getString("couponAmount"));
+ ordersEntity.setCouponCode(jsonObjectData.getString("couponCode"));
+ ordersEntity.setCouponName(jsonObjectData.getString("couponName"));
+ ordersEntity.setCouponId(jsonObjectData.getString("couponId"));
total_fee = total_fee + orderService.couponTotal(ordersEntitys.getCouponTypeId(),Double.parseDouble(ordersEntitys.getCouponAmount()),Double.parseDouble(ordersEntitys.getPayAmount()),ordersEntitys.getBuyCount());
}else{
total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ;
@@ -254,7 +267,7 @@ public class OrderController {
AliPayEntity aliPayEntity = new AliPayEntity();
ordersEntity.setPayType("2");
ordersEntity.setOrderStatus("0");
- if (orderService.updateOrder(ordersEntity) == 1) {
+ if (orderService.updateOrder(ordersEntity.getOrderNo()) == 1) {
aliPayEntity.setProduct_code(ordersEntity.getProductCode());
aliPayEntity.setTotal_amount(ordersEntity.getOrderAmount());
aliPayEntity.setOut_trade_no(ordersEntity.getOrderNo());
diff --git a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/dao/OrdersDao.java b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/dao/OrdersDao.java
index 3e94deff..680a6180 100644
--- a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/dao/OrdersDao.java
+++ b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/dao/OrdersDao.java
@@ -22,4 +22,6 @@ public interface OrdersDao extends BaseMapper
{
Integer cancelOrder(String out_trade_no);
+ int updateByOrderNumber (@Param("orderNumber")String orderNumber);
+
}
diff --git a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/service/OrderService.java b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/service/OrderService.java
index d30227cc..604d183e 100644
--- a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/service/OrderService.java
+++ b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/service/OrderService.java
@@ -281,7 +281,7 @@ public class OrderService {
}
- public int updateOrder(OrderEntity orderEntity){
- return ordersDao.updateById(orderEntity);
+ public int updateOrder(String orderNumber){
+ return ordersDao.updateByOrderNumber(orderNumber);
}
}
diff --git a/smart-admin-service/smart-admin-api/src/main/resources/mapper/system/royalcanin/Order/OrderMapper.xml b/smart-admin-service/smart-admin-api/src/main/resources/mapper/system/royalcanin/Order/OrderMapper.xml
index 7e1c1f13..d1e77563 100644
--- a/smart-admin-service/smart-admin-api/src/main/resources/mapper/system/royalcanin/Order/OrderMapper.xml
+++ b/smart-admin-service/smart-admin-api/src/main/resources/mapper/system/royalcanin/Order/OrderMapper.xml
@@ -22,4 +22,10 @@
+
+ update t_good_orders
+ set pay_type ='2'
+ where order_no = #{orderNumber}
+
+
\ No newline at end of file
From a2a6ca14bd019102b47aada5a0d251a3b02a027c Mon Sep 17 00:00:00 2001
From: "952108534@qq.com" <952108534@qq.com>
Date: Mon, 24 Jan 2022 19:29:33 +0800
Subject: [PATCH 8/8] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
rc-busness/assets/css/global.less | 4 +
rc-busness/assets/css/usertion.less | 234 +++++++-----
rc-busness/pages/myorder/usertion.vue | 498 +++++++++++++-------------
rc-busness/static/images/delivery.png | Bin 0 -> 4984 bytes
4 files changed, 415 insertions(+), 321 deletions(-)
create mode 100644 rc-busness/static/images/delivery.png
diff --git a/rc-busness/assets/css/global.less b/rc-busness/assets/css/global.less
index f9ca05fc..cd1b7348 100644
--- a/rc-busness/assets/css/global.less
+++ b/rc-busness/assets/css/global.less
@@ -10,6 +10,7 @@ body {
border:unset;
}
+
.rc-menu--xs .rc-screen-reader{
left:28%;
}
@@ -141,6 +142,9 @@ picture {
margin-left: auto;
margin-right: auto;
}
+.useruantity{
+ margin: 1rem 1.25rem;
+}
.ts-remove {
text-decoration: line-through;
diff --git a/rc-busness/assets/css/usertion.less b/rc-busness/assets/css/usertion.less
index e337189e..3b51b56d 100644
--- a/rc-busness/assets/css/usertion.less
+++ b/rc-busness/assets/css/usertion.less
@@ -2,8 +2,110 @@ ul li ol li em strong i {
list-style: none;
font-style: normal;
}
+ .rc-main{
+ margin: 0;
+ padding: 0;
+ }
//手机端
@media screen and (max-width: 768px) {
+ .online{
+ margin: 0;
+ &.bold{
+ height: 0.5rem;
+ }
+ }
+ // 订单状态
+ .rc-receiving {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ // margin: 1rem 1.25rem;
+ em {
+ font-style: normal;
+ color: #e1001a;
+ font-size: 1.375rem;
+ font-weight: bold;
+ }
+ span {
+ color: #666666;
+ font-size: 0.875rem;
+ display: block;
+ margin-left: 1.125rem;
+ width: 62%;
+ margin-top: 0.5rem;
+
+ }
+ }
+ //快递列表
+ .delivery {
+ display: flex;
+ flex-direction: column;
+ margin: 1rem 1.25rem;
+ .to-delivery {
+ img{
+ width: 1rem;
+ height: 1rem;
+ object-fit: contain;
+ }
+ display: flex;
+ align-items: center;
+ font-style: normal;
+ span {
+ display: block;
+ margin-left: 0.18rem;
+ color: #333333;
+ font-size: 1rem;
+ font-weight: 500;
+ }
+ i {
+ font-style: normal;
+ margin-left: 0.5rem;
+ display: block;
+ color: #999999;
+ font-size: 0.75rem;
+ margin-top: 0.31rem;
+ }
+ }
+ .bo-delivery {
+ span {
+ font-size: 0.87rem;
+ color: #666666;
+ display: block;
+ margin-top: 0.5rem;
+ }
+ }
+ }
+ //地址列表
+ .mypersonal{
+ .my-delivery {
+ display: flex;
+ align-items: center;
+ font-style: normal;
+ span {
+ display: block;
+ font-size: 0.87rem;
+ color: #333333;
+ }
+ i {
+ font-style: normal;
+ display: block;
+ font-size: 0.87rem;
+ color: #333333;
+ margin-left: .5rem;
+ }
+ }
+ .per-delivery {
+ span {
+ font-size:0.875rem;
+ color: #666666;
+ display: block;
+ margin-top: 0.43rem;
+ }
+ }
+ }
+
+
+
.rc-margin-y--md{
width: 100%;
height: 80px;
@@ -39,83 +141,7 @@ margin-right: 20px;
.rc-foo{
display: none;
}
- .rc-receiving {
- width: 100%;
- height: 80px;
- display: flex;
- align-items: center;
- em {
- font-style: normal;
- color: #e1001a;
- font-size: 22px;
- font-weight: bold;
- }
- span {
- color: #666666;
- font-size: 12px;
- display: block;
- margin-left: 18px;
- width: 62%;
-
- }
- }
- .delivery {
- display: flex;
- flex-direction: column;
- height: 80px;
- .to-delivery {
- display: flex;
- align-items: center;
- font-style: normal;
- span {
- display: block;
- margin-left: 3px;
- }
- i {
- font-style: normal;
- margin-left: 8px;
- display: block;
- }
- }
- .bo-delivery {
- span {
- font-size: 14px;
-
- color: #666666;
- display: block;
- margin-top: 8px;
- }
- }
- }
-
- .mypersonal {
- display: flex;
- flex-direction: column;
- height: 80px;
- .my-delivery {
- display: flex;
- align-items: center;
- font-style: normal;
- span {
- display: block;
- margin-left: 3px;
- }
- i {
- font-style: normal;
- margin-left: 8px;
- display: block;
- }
- }
- .per-delivery {
- span {
- font-size: 14px;
-
- color: #666666;
- display: block;
- margin-top: 8px;
- }
- }
- }
+
.rc-usermain {
display: flex;
@@ -207,14 +233,16 @@ margin-right: 20px;
.rc-merchandise {
width: 100%;
- margin-top: 32px;
+ margin-top: 24px;
+ padding-right: 0.7rem;
+ padding-left: 0.7rem;
ul {
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
- line-height: 26px;
+ line-height: 30px;
i {
font-style: normal;
color: #666666;
@@ -240,10 +268,15 @@ margin-right: 20px;
}
}
}
+ .useruantity{
+ padding-right: 20px;
+ }
}
.rc-payment{
+ padding-right: 0.7rem;
+ padding-left: 0.7rem;
width: 100%;
margin-top: 32px;
.u-trackingnumber{
@@ -294,6 +327,48 @@ margin-right: 20px;
//pc端
@media screen and (min-width: 768px) and (max-width: 1920px) {
+
+ //快递列表
+ .delivery {
+ display: flex;
+ flex-direction: column;
+ margin: 1rem 1.25rem;
+ .to-delivery {
+ margin-top: 20px;
+ img{
+ width: 24px;
+ height: 24px;
+ object-fit: contain;
+ }
+ display: flex;
+ align-items: center;
+ font-style: normal;
+ span {
+ display: block;
+ margin-left: 16px;
+ color: #333333;
+ font-size: 18px;
+ font-weight: 500;
+ }
+ i {
+ font-style: normal;
+ margin-left: 0.5rem;
+ display: block;
+ color: #999999;
+ font-size: 0.75rem;
+ margin-top: 0.31rem;
+ }
+ }
+ .bo-delivery {
+ margin-top: 16px;
+ span {
+ font-size: 0.87rem;
+ color: #666666;
+ display: block;
+ margin-top: 16px;
+ }
+ }
+ }
.rc-margin-y--md{
display: none;
}
@@ -329,7 +404,6 @@ margin-right: 20px;
.delivery {
display: flex;
flex-direction: column;
- height: 140px;
display: flex;
justify-content: center;
.viewdetails{
diff --git a/rc-busness/pages/myorder/usertion.vue b/rc-busness/pages/myorder/usertion.vue
index 5a7e5d30..e066f05e 100644
--- a/rc-busness/pages/myorder/usertion.vue
+++ b/rc-busness/pages/myorder/usertion.vue
@@ -2,40 +2,65 @@
-
-
-
{{item.status=='0'?'待付款':item.status=='1'?'待收货':item.status=='2'?'已完成':item.status=='3'?'已取消':'异常订单'}}
-
{{orderstatus}}
+
+
+
+
+ {{
+ item.status == "0"
+ ? "待付款"
+ : item.status == "1"
+ ? "待收货"
+ : item.status == "2"
+ ? "已完成"
+ : item.status == "3"
+ ? "已取消"
+ : "异常订单"
+ }}
+ {{ orderstatus }}
+
+
+
+
+
+

+
{{ trackingstates }}
+
-
-
-
- {{ trackingstates}}
-
-
- {{ logisticsCompany }}
-
-
-
查看详情
-
![]()
-
+
+
+
-
-
- {{ item.addressUserName }}
- {{ item.addressPhoneNumber }}
-
-
- {{ item.addressProvinceName }}{{item.addressCityName}}{{item.addressCountyName}}
-
+
+
查看详情
+
-
+
+
+
+
+
+ {{ item.addressUserName }}
+ {{ item.addressPhoneNumber }}
+
+
+ {{ item.addressProvinceName }}{{ item.addressCityName
+ }}{{ item.addressCountyName }}
+
+
+
+
-
+
-
![]()
+
@@ -47,13 +72,13 @@
数量:{{ userlist.pcs }}件
¥{{ userlist.ecPrice }}
-
- {{customer}}
-
+
+ {{ customer }}
+
+
+
+ {{ customer }}
-
- {{customer}}
-
+
-
+
+
-
商品总价:
@@ -82,8 +109,10 @@
+
-
-
-
- {{payorsucess}}
-
+
+
+
+
+ {{ payorsucess }}
+
+
-
-
-
+