From e1e67e9ae247e680a88b83a8ea2d8ded77ca386d Mon Sep 17 00:00:00 2001 From: "952108534@qq.com" <952108534@qq.com> Date: Fri, 21 Jan 2022 19:46:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-busness/ajax/getData.js | 2 +- rc-busness/assets/css/orderquantity.less | 64 ++++- rc-busness/pages/personal/useraddress.vue | 291 ++++++++++++---------- 3 files changed, 215 insertions(+), 142 deletions(-) diff --git a/rc-busness/ajax/getData.js b/rc-busness/ajax/getData.js index c5b9404b..c90de64d 100644 --- a/rc-busness/ajax/getData.js +++ b/rc-busness/ajax/getData.js @@ -267,7 +267,7 @@ export const searchchanpin = (stype,usertype,curPage,curRow) => { //查询订单 export const userindent = (phoneNumber,orderNumber,) => { var data = { - phoneNumber:'18112621098', + phoneNumber:phoneNumber, orderNumber:orderNumber, } return fetch('orderMaster/?type=query', data, 'POST' ) diff --git a/rc-busness/assets/css/orderquantity.less b/rc-busness/assets/css/orderquantity.less index 0698f7a2..4b8fc3e6 100644 --- a/rc-busness/assets/css/orderquantity.less +++ b/rc-busness/assets/css/orderquantity.less @@ -3,6 +3,7 @@ @media screen and (max-width:768px){ + .active { font-size: 14px; color: #e2001a; @@ -13,19 +14,64 @@ color: #444444; cursor: pointer; } - - .usercontshow{ padding: 0 1.5rem; - .online{ + .rc-usermaina{ + width: 100%; + height: 100%; + .online{ margin: 0; + margin-top: 1.5rem; &.bold{ height: 0.5rem; } } - .rc-usermaina{ - width: 100%; - height: 100%; + .rc-price{ + display: flex; + justify-content: space-between; + i{ + list-style: none; + font-style: normal; + font-weight: bold; + } + em{ + list-style: none; + font-style: normal; + } + strong{ + list-style: none; + font-style: normal; + } + + .priceleft{ + color: #666666; + font-size: 14px; + display: flex; + align-items: center; + margin-top: 19px; + em{ + margin-left: 8px; + } + } + .priceright{ + display: flex; + margin-top: 19px; + align-items: center; + strong{ + color: #333333; + font-size: 14px; + } + i{ + font-size: 18px; + color: #E1001A; + margin-left: 3px; + } + + + } + + } + } .rc-headera { display: flex; @@ -39,7 +85,6 @@ .rc-center { width: 100%; - height: 245px; margin-top: 8px; .rc-usermain { .pc-bottom{ @@ -60,7 +105,6 @@ } .rc-right { - .rc-userbottomm{ display: none; } @@ -110,8 +154,8 @@ .rc-bottom { display: flex; align-items: center; - justify-content: center; - margin-top: 24px; + justify-content: flex-end; + margin-top: 26px; span { display: block; width: 130px; diff --git a/rc-busness/pages/personal/useraddress.vue b/rc-busness/pages/personal/useraddress.vue index 3bbf2525..8bd2a8a4 100644 --- a/rc-busness/pages/personal/useraddress.vue +++ b/rc-busness/pages/personal/useraddress.vue @@ -1,86 +1,126 @@ From 38792ccbd60007034acd6140618758cd1a9cf36d Mon Sep 17 00:00:00 2001 From: "952108534@qq.com" <952108534@qq.com> Date: Fri, 21 Jan 2022 23:32:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-busness/ajax/getData.js | 5 +- rc-busness/assets/css/orderquantity.less | 77 ++- rc-busness/assets/css/usertion.less | 602 +++++++++++++++++++ rc-busness/pages/myorder/usertion.vue | 698 ++-------------------- rc-busness/pages/personal/useraddress.vue | 36 +- 5 files changed, 749 insertions(+), 669 deletions(-) create mode 100644 rc-busness/assets/css/usertion.less diff --git a/rc-busness/ajax/getData.js b/rc-busness/ajax/getData.js index c90de64d..ab6a7621 100644 --- a/rc-busness/ajax/getData.js +++ b/rc-busness/ajax/getData.js @@ -283,10 +283,11 @@ export const userin = (orderNumber,) => { //取消订单 -export const canceldanhao = (orderNumber) => { +export const canceldanhao = (phoneNumber,orderNumber) => { var data = { - + phoneNumber:phoneNumber, orderNumber:orderNumber, + } return fetch('cancelOrder/', data, 'POST' ) } diff --git a/rc-busness/assets/css/orderquantity.less b/rc-busness/assets/css/orderquantity.less index 4b8fc3e6..68bf3653 100644 --- a/rc-busness/assets/css/orderquantity.less +++ b/rc-busness/assets/css/orderquantity.less @@ -3,7 +3,12 @@ @media screen and (max-width:768px){ - + .online{ + margin: 0; + &.bold{ + height: 8px; + } +} .active { font-size: 14px; color: #e2001a; @@ -16,16 +21,17 @@ } .usercontshow{ padding: 0 1.5rem; + .online{ + margin: 0; + &.bold{ + height: 8px; + margin-top: 1.5rem; + } + } .rc-usermaina{ width: 100%; height: 100%; - .online{ - margin: 0; - margin-top: 1.5rem; - &.bold{ - height: 0.5rem; - } - } + .rc-price{ display: flex; justify-content: space-between; @@ -211,6 +217,13 @@ } @media screen and (min-width: 769px) { + .online{ + margin: 0; + display: none; +} +.rc-usermaina{ + border: 1px solid #D7D7D7; +} .active { font-size: 18px; color: #e2001a; @@ -258,8 +271,6 @@ .rc-center { width: 100%; - height: 220px; - border: 1px solid #D7D7D7; .rc-usermain { display: flex; justify-content: space-between; @@ -358,6 +369,52 @@ .rc-bottom { display: none; } + .rc-price{ + height: 60px; + display: flex; + align-items: center; + border-top: 1px solid #D7D7D7; + .priceleft{ + margin-left: 40px; + font-size: 16px; + color: #333333; + em{ + font-style: normal; + list-style: none; + } + strong{ + font-style: normal; + list-style: none; + } + i{ + font-style: normal; + list-style: none; + } + + } + .priceright{ + margin-right: 45px; + font-style: normal; + list-style: none; + em{ + font-style: normal; + list-style: none; + } + strong{ + font-style: normal; + list-style: none; + font-size: 18px; + color: #333333; + } + i{ + font-style: normal; + list-style: none; + font-size: 20px; + color: #E1001A; + + } + } + } } .rc-title { diff --git a/rc-busness/assets/css/usertion.less b/rc-busness/assets/css/usertion.less new file mode 100644 index 00000000..ce27413d --- /dev/null +++ b/rc-busness/assets/css/usertion.less @@ -0,0 +1,602 @@ +ul li ol li em strong i { + list-style: none; + font-style: normal; + } + //手机端 +@media screen and (max-width: 768px) { + .rc-main { + padding: 20px 17px; + margin-top: 90px; + .rc-userbottom{ + display: none; + } + .viewdetails{ + display: none; + } + .rc-foo{ + display: none; + } + .rc-receiving { + width: 100%; + height: 80px; + display: flex; + align-items: center; + em { + font-style: normal; + color: #e1001a; + font-size: 22px; + } + 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; + .rc-image { + border: 1px solid #d8d8d8; + margin-top: 17px; + height: 96px; + img { + width: 96px; + height: 96px; + display: block; + } + } + + .rc-right { + .rc-userbottomm { + display: none; + } + display: flex; + flex-direction: column; + width: 100%; + margin-left: 16px; + justify-content: center; + em { + font-style: normal; + display: block; + font-size: 16px; + margin-top: 18px; + font-weight: bold; + + color: #e1001a; + } + } + .rc-userright { + display: flex; + flex-direction: column; + color: #666666; + font-size: 14px; + span { + display: block; + margin-top: 16px; + } + } + .rc-userbottom { + display: flex; + justify-content: space-between; + margin-top: 8px; + span { + color: #666666; + font-size: 14px; + } + i { + font-style: normal; + color: #e1001a; + font-size: 18px; + font-weight: bold; + } + .rc-bottom{ + display: none; + } + } + .rc-bottomm { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 24px; + span { + display: block; + width: 130px; + display: flex; + align-items: center; + line-height: 40px; + text-align: center; + color: #e2001a; + height: 40px; + font-size: 12px; + border: 2px solid #e2001a; + justify-content: center; + border-radius: 30px; + font-weight: bold; + } + span:last-child { + margin-left: 15px; + } + } + } + + + .rc-merchandise { + width: 100%; + margin-top: 32px; + + ul { + width: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 26px; + i { + font-style: normal; + color: #666666; + font-size: 14px; + } + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + span { + font-size: 14px; + + color: #333333; + + } + } + li:last-child { + i { + color: #e1001a; + font-size: 16px; + font-style: normal; + } + } + } + } + + + .rc-payment{ + width: 100%; + margin-top: 32px; + .u-trackingnumber{ + display: flex; + align-items: center; + i { + font-size: 14px; + font-style: normal; + margin-right: 16px; + + } + img{ + width: 8px; + height: 16px; + } + } + ul { + width: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 26px; + i { + font-style: normal; + color: #666666; + font-size: 14px; + } + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + span { + font-size: 14px; + + color: #333333; + + } + } + + } + } + + } +} + + + +//pc端 +@media screen and (min-width: 768px) and (max-width: 1920px) { + + .rc-main { + margin: 0 auto; + margin-top: 90px; + + .rc-userbottomm{ + display: none; + } + .rc-border{ + width: 100%; + border-bottom: 1px solid #D7D7D7; + margin-top: 32px; + } + .rc-receiving { + width: 100%; + height: 80px; + display: flex; + flex-direction: column; + em { + font-style: normal; + color: #E1001A; + font-size: 26px; + } + span { + color: #666666; + font-size: 16px; + display: block; + margin-top: 25px; + } + } + .delivery { + display: flex; + flex-direction: column; + height: 140px; + display: flex; + justify-content: center; + .viewdetails{ + display: flex; + align-items: center; + justify-content: flex-end; + span{ + color:#444444; + font-size: 18px; + display: block; + margin-right: 8px; + } + img{ + width: 8px; + height: 16px; + } + } + + .to-delivery { + display: flex; + align-items: center; + font-style: normal; + span { + display: block; + // margin-left: 16px; + font-size: 18px; + color: #333333; + } + i { + font-style: normal; + margin-left: 8px; + display: block; + font-size: 18px; + color: #999999; + } + } + .bo-delivery { + span { + font-size: 16px; + color: #666666; + display: block; + margin-top: 16px; + } + } + } + + .mypersonal { + display: flex; + flex-direction: column; + height: 140px; + justify-content: center; + .my-delivery { + display: flex; + align-items: center; + font-style: normal; + span { + display: block; + margin-left: 3px; + font-size: 18px; + color: #333333; + } + i { + font-style: normal; + margin-left: 8px; + display: block; + font-size: 18px; + color: #333333; + } + } + .per-delivery { + span { + font-size: 18px; + color: #666666; + display: block; + margin-top: 16px; + } + } + } + + .rc-usermain { + display: flex; + .rc-image { + border: 1px solid #d8d8d8; + margin-top: 17px; + img { + width: 96px; + height: 96px; + display: block; + } + } + + .rc-right { + .rc-bottomm{ + display: none; + } + .rc-usercenter{ + display: flex; + justify-content: center; + flex-direction: column; + em { + font-style: normal; + display: block; + font-size: 18px; + font-weight: bold; + margin-top: 17px; + color: #e1001a; + } + } + + display: flex; + + width: 100%; + margin-left: 16px; + + + } + .rc-userright { + display: flex; + flex-direction: column; + color: #666666; + font-size: 16px; + span { + display: block; + margin-top: 16px; + font-size: 16px; + } + } + .rc-userbottom { + display: flex; + + width: 80%; + justify-content: space-between; + align-items: center; + margin-left: 119px; + span { + color: #E1001A; + font-size: 20px; + } + i { + font-style: normal; + color: #e1001a; + font-size: 20px; + font-weight: bold; + } + .rc-bottom { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 24px; + span { + display: block; + width: 164px; + display: flex; + align-items: center; + line-height: 40px; + text-align: center; + color: #e2001a; + height: 40px; + border: 2px solid #e2001a; + justify-content: center; + border-radius: 30px; + font-weight: bold; + font-size: 14px; + } + + } + + } + } + + .rc-merchandise { + width: 100%; + margin-top: 32px; + + ul { + width: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 40px; + font-size: 18px; + i { + font-style: normal; + color: #666666; + + } + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + span { + color: #333333; + + } + } + li:last-child { + i { + color: #e1001a; + font-size: 20px; + font-style: normal; + } + } + } + } + + + .rc-payment{ + width: 100%; + margin-top: 80px; + .u-trackingnumber{ + display: flex; + align-items: center; + i { + font-size: 18px; + font-style: normal; + margin-right: 16px; + + } + img{ + width: 8px; + height: 16px; + } + } + ul { + width: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 40px; + font-size: 18px; + i { + font-style: normal; + color: #666666; + display: block; + + } + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + span { + + + color: #333333; + + } + } + + } + } + .rc-foot{ + display: flex; + flex-direction: column; + .rc-foo{ + display: flex; + justify-content: flex-end; + flex-direction: column; + align-items: self-end; + i{ + font-style: normal; + color:#333333; + font-size: 20px; + margin-right: 20px; + + } + em{ + font-style: normal; + color: #E1001A; + font-size: 26px; + + } + span{ + display: block; + width: 164px; + margin-top: 36px; + background: #E2001A; + line-height: 48px; + text-align: center; + color: white; + font-size: 16px; + +height: 48px; + +border-radius: 30px; + } + + } + } + + } + + + + +} \ No newline at end of file diff --git a/rc-busness/pages/myorder/usertion.vue b/rc-busness/pages/myorder/usertion.vue index 5310d762..02e0ef4a 100644 --- a/rc-busness/pages/myorder/usertion.vue +++ b/rc-busness/pages/myorder/usertion.vue @@ -1,9 +1,7 @@ \ No newline at end of file diff --git a/rc-busness/pages/personal/useraddress.vue b/rc-busness/pages/personal/useraddress.vue index 8bd2a8a4..e9e29a13 100644 --- a/rc-busness/pages/personal/useraddress.vue +++ b/rc-busness/pages/personal/useraddress.vue @@ -14,7 +14,7 @@ {{ item.title }} -
+
{{ item.title }} @@ -54,7 +54,7 @@
数量:{{ item.pcs }}件 - ¥{{ item.salesAmount }} + ¥{{ }}
¥{{ item.userprice }} @@ -68,11 +68,11 @@ 查看订单
-
+
数量: - 共1件商品 + 共{{item.lengthnum}}件商品
总计: @@ -106,6 +106,9 @@ }}
+ +
+ @@ -262,23 +265,27 @@ export default { this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber; this.useralllist[i].status = this.goldmedal[i].status; this.useralllist[i].salesAmount = this.goldmedal[i].salesAmount; - + this.useralllist[i].lengthnum=this.goldmedal[i].orderDetailList.length } console.log(this.useralllist); }, async canceldanhao(orderNumber) { - let data = await canceldanhao(orderNumber); + let data = await canceldanhao(this.userdata,orderNumber); if (data) { this.$message({ type: "warning", message: "取消订单成功", }); - this.indet(this.userdata.data.mobile); + setTimeout(() => { + this.indet(); + }, 500); + } }, userpay(item, index) { + console.log(item) if (item.status == 0) { this.canceldanhao(item.orderNumber); } @@ -289,13 +296,14 @@ export default { stype: 1, }, }); - } else if (item.buttontitle == "再次购买") { - this.$router.push({ - path: "/myorder/userrecord", - query: { - stype: 1, - }, - }); + } else if (item.status == 3) { + this.$router.push({ + path: "/productdetails/producted", + query: { + stype: 1, + productCode:item.productId + }, + }); } }, selectGoods(item, index) { From 95614b9c663ba9c13ad056a54170ea69a49a2ed5 Mon Sep 17 00:00:00 2001 From: "952108534@qq.com" <952108534@qq.com> Date: Sat, 22 Jan 2022 19:22:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-busness/assets/css/orderquantity.less | 6 +- rc-busness/assets/css/usertion.less | 32 ++++- rc-busness/pages/myorder/usertion.vue | 165 ++++++++++++++++++---- rc-busness/pages/personal/useraddress.vue | 161 +++++++++++++++++++-- 4 files changed, 318 insertions(+), 46 deletions(-) diff --git a/rc-busness/assets/css/orderquantity.less b/rc-busness/assets/css/orderquantity.less index 68bf3653..a5ff465c 100644 --- a/rc-busness/assets/css/orderquantity.less +++ b/rc-busness/assets/css/orderquantity.less @@ -1,7 +1,8 @@ - - +.usercontshow{ + min-height: 70vh; +} @media screen and (max-width:768px){ .online{ margin: 0; @@ -271,6 +272,7 @@ .rc-center { width: 100%; + margin-bottom: 40px; .rc-usermain { display: flex; justify-content: space-between; diff --git a/rc-busness/assets/css/usertion.less b/rc-busness/assets/css/usertion.less index ce27413d..b1f60ef8 100644 --- a/rc-busness/assets/css/usertion.less +++ b/rc-busness/assets/css/usertion.less @@ -4,9 +4,32 @@ ul li ol li em strong i { } //手机端 @media screen and (max-width: 768px) { + .rc-margin-y--md{ + width: 100%; +height: 80px; +background: #FFFFFF; +box-shadow: 0px -5px 6px rgba(0, 0, 0, 0.1); +padding: 0; +display: flex; +align-items: center; +justify-content: flex-end; +margin: 0; +.ts-standard-btn{ + width: 155px; +height: 48px; +background: #E2001A; +border-radius: 30px; +color: #FFFFFF; +font-size: 14px; +display: flex; +align-items: center; +justify-content: center; +margin: 0; +padding: 0; +margin-right: 20px; +} + } .rc-main { - padding: 20px 17px; - margin-top: 90px; .rc-userbottom{ display: none; } @@ -25,6 +48,7 @@ ul li ol li em strong i { font-style: normal; color: #e1001a; font-size: 22px; + font-weight: bold; } span { color: #666666; @@ -269,7 +293,9 @@ ul li ol li em strong i { //pc端 @media screen and (min-width: 768px) and (max-width: 1920px) { - + .rc-margin-y--md{ + display: none; + } .rc-main { margin: 0 auto; margin-top: 90px; diff --git a/rc-busness/pages/myorder/usertion.vue b/rc-busness/pages/myorder/usertion.vue index 02e0ef4a..3b2a4acd 100644 --- a/rc-busness/pages/myorder/usertion.vue +++ b/rc-busness/pages/myorder/usertion.vue @@ -1,6 +1,7 @@ diff --git a/rc-busness/pages/personal/useraddress.vue b/rc-busness/pages/personal/useraddress.vue index e9e29a13..28dd88a6 100644 --- a/rc-busness/pages/personal/useraddress.vue +++ b/rc-busness/pages/personal/useraddress.vue @@ -41,11 +41,11 @@ }} -
+
-
+
{{ item.usereat }}
@@ -64,8 +64,28 @@
- 再次购买 - 查看订单 + {{ + item.status == "0" + ? "取消订单" + : item.status == "1" + ? "确认收货" + : item.status == "2" + ? "再次购买" + : item.status == "3" + ? "再次购买" + : "异常订单" + }} + {{ + item.status == "0" + ? "立即支付" + : item.status == "1" + ? "查看订单" + : item.status == "2" + ? "查看订单" + : item.status == "3" + ? "查看订单" + : "异常订单" + }}
@@ -111,17 +131,27 @@
+