From 5889bef48ee984bc4afac3859a496b164d436598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 16 Jul 2025 10:15:43 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=20-=20=E5=BE=85=E4=BB=98=E6=AC=BE=20=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/myOrders/index/index.vue | 42 ++--- packages/myOrders/orderDetails/index.css | 207 +++++++++++++++++++++++ packages/myOrders/orderDetails/index.vue | 207 +++++++++++++++++++++++ pages.json | 6 + 4 files changed, 442 insertions(+), 20 deletions(-) create mode 100644 packages/myOrders/orderDetails/index.css create mode 100644 packages/myOrders/orderDetails/index.vue diff --git a/packages/myOrders/index/index.vue b/packages/myOrders/index/index.vue index 389c7fb2..6e6383c9 100644 --- a/packages/myOrders/index/index.vue +++ b/packages/myOrders/index/index.vue @@ -15,7 +15,7 @@ - + 提交订单:{{ item.createTime }} @@ -54,6 +54,8 @@ + \ No newline at end of file diff --git a/pages.json b/pages.json index 3eb7100a..7d03fbbf 100644 --- a/pages.json +++ b/pages.json @@ -737,6 +737,12 @@ "style": { "navigationBarTitleText": "我的订单" } + }, + { + "path": "orderDetails/index", + "style": { + "navigationBarTitleText": "我的订单" + } } ] } From 1852c984630bdff1f11640c276b5ee390df0d321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 16 Jul 2025 18:17:59 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/myOrders/index/index.css | 34 +++- packages/myOrders/index/index.vue | 115 ++++++++++-- packages/myOrders/logistics/index.css | 215 +++++++++++++++++++++++ packages/myOrders/logistics/index.vue | 169 ++++++++++++++++++ packages/myOrders/orderDetails/index.css | 38 +++- packages/myOrders/orderDetails/index.vue | 200 ++++++++++++++------- pages.json | 6 + 7 files changed, 693 insertions(+), 84 deletions(-) create mode 100644 packages/myOrders/logistics/index.css create mode 100644 packages/myOrders/logistics/index.vue diff --git a/packages/myOrders/index/index.css b/packages/myOrders/index/index.css index e484c0d9..f3ad47ab 100644 --- a/packages/myOrders/index/index.css +++ b/packages/myOrders/index/index.css @@ -49,6 +49,7 @@ page { .order-header { display: flex; justify-content: space-between; + align-items: center; padding: 20rpx; font-size: 24rpx; color: #a3a3a3; @@ -60,6 +61,26 @@ page { font-weight: bold; } +.status2 { + color: #333; + font-weight: bold; + border: 1rpx solid #f83d19; + display: flex; + padding: 10rpx; + border-radius: 10rpx; +} + +.status2 img { + width: 30rpx; + height: 30rpx; + margin-right: 10rpx; +} + +.status3 { + color: #949494; + font-weight: bold; +} + .goods-list { display: flex; flex-wrap: wrap; @@ -90,7 +111,7 @@ page { justify-content: flex-end; } -.order-footer-text text{ +.order-footer-text text { color: #ff3710; margin-left: 10rpx; font-weight: bold; @@ -110,6 +131,17 @@ page { border: 1rpx solid #ddd; border-radius: 30rpx; font-size: 24rpx; + margin: 0; +} + +.yfd-btn { + width: 160rpx; + height: 60rpx; + background: #ffebcb; + color: #802002; + border: none; + border-radius: 30rpx; + font-size: 24rpx; margin: 0 20rpx; } diff --git a/packages/myOrders/index/index.vue b/packages/myOrders/index/index.vue index 6e6383c9..abb3b64c 100644 --- a/packages/myOrders/index/index.vue +++ b/packages/myOrders/index/index.vue @@ -15,15 +15,26 @@ - + - + 提交订单:{{ item.createTime }} - {{ item.status }} + {{ item.status }} + + + {{ item.status }} + + {{ item.status }} - + - 共{{ item.totalCount }}件商品,共计 {{ item.totalPrice }} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -54,7 +100,7 @@ + + \ No newline at end of file diff --git a/packages/myOrders/orderDetails/index.css b/packages/myOrders/orderDetails/index.css index 779d9d76..35f66982 100644 --- a/packages/myOrders/orderDetails/index.css +++ b/packages/myOrders/orderDetails/index.css @@ -25,6 +25,14 @@ page { .tips { font-size: 24rpx; opacity: 0.9; + display: flex; + align-items: center; +} + +.phone { + width: 30rpx; + height: 30rpx; + margin-left: 5rpx; } /* 订单金额 */ @@ -67,11 +75,27 @@ page { } .goods-item { + /* display: flex; + margin-bottom: 20rpx; + margin-top: 20rpx; */ +} + +.goods-content { display: flex; margin-bottom: 20rpx; margin-top: 20rpx; } +.goods-info-tk{ + width: 150rpx; + height: 35rpx; + position: relative; + left: 550rpx; + font-size: 26rpx; + font-weight: bold; + color: #fe380c; +} + .goods-img { width: 120rpx; height: 120rpx; @@ -159,7 +183,7 @@ page { font-size: 26rpx; } -.info-value text{ +.info-value text { color: #f64927; font-size: 26rpx; margin-left: 10rpx; @@ -188,7 +212,17 @@ page { height: 80rpx; background: #d9d9d9; color: #333; - border: 1rpx solid #ddd; + border-radius: 8rpx; + margin-right: 20rpx; + font-size: 30rpx; + border-radius: 50rpx; +} + +.yfd-btn { + flex: 1; + height: 80rpx; + background: #ffebcb; + color: #802002; border-radius: 8rpx; margin-right: 20rpx; font-size: 30rpx; diff --git a/packages/myOrders/orderDetails/index.vue b/packages/myOrders/orderDetails/index.vue index 2830680f..972d253c 100644 --- a/packages/myOrders/orderDetails/index.vue +++ b/packages/myOrders/orderDetails/index.vue @@ -1,36 +1,69 @@ diff --git a/packages/myOrders/logistics/index.vue b/packages/myOrders/logistics/index.vue index 10cec369..d5929f43 100644 --- a/packages/myOrders/logistics/index.vue +++ b/packages/myOrders/logistics/index.vue @@ -146,8 +146,8 @@ export default { // 地图显示区域 points: [ - { latitude: 39.915, longitude: 116.42 }, - { latitude: 39.90469, longitude: 116.40717 }, + { latitude: 39.876, longitude: 116.435 }, + { latitude: 39.886, longitude: 116.395 }, ], }; }, diff --git a/packages/myOrders/orderDetails/index.vue b/packages/myOrders/orderDetails/index.vue index 972d253c..cdb3bf3f 100644 --- a/packages/myOrders/orderDetails/index.vue +++ b/packages/myOrders/orderDetails/index.vue @@ -150,7 +150,7 @@ - + @@ -263,6 +263,10 @@ export default { checkLogistics() { NavgateTo(`/packages/myOrders/logistics/index`); }, + + orderEvaluate(){ + NavgateTo(`/packages/myOrders/orderEvaluate/index`); + } }, }; diff --git a/packages/myOrders/orderEvaluate/index.css b/packages/myOrders/orderEvaluate/index.css new file mode 100644 index 00000000..b897d90a --- /dev/null +++ b/packages/myOrders/orderEvaluate/index.css @@ -0,0 +1,202 @@ +page { + background-color: #f0f2f5; + min-height: 100vh; + overflow-y: hidden; +} + +.container { + padding: 20rpx; +} + +/* 商品图片区域 */ +.goods-scroll { + width: 96%; + white-space: nowrap; + margin-bottom: 30rpx; + padding: 20rpx 15rpx; + background-color: #ffffff; +} + +.goods-list { + display: inline-flex; +} + +.goods-item { + width: 120rpx; + height: 120rpx; + margin-right: 16rpx; + border-radius: 8rpx; + overflow: hidden; +} + +.goods-img { + width: 100%; + height: 100%; + object-fit: cover; +} + +/* 订单编号 */ +.order-info { + display: flex; + justify-content: space-between; + padding: 20rpx 0; + border-bottom: 1rpx solid #EEEEEE; + margin-bottom: 30rpx; +} + +.order-label { + font-size: 26rpx; + color: #9a9a9a; +} + +.order-value { + font-size: 26rpx; + color: #333333; +} + +/* 评分区域 */ +.rating{ + width: 460rpx; + display: flex; + justify-content: space-between; + margin: 0 0 20rpx 180rpx; + color: #a6a6a6; +} + +.rating-section { + background-color: #FFFFFF; + border-radius: 16rpx; + padding: 20rpx; + margin-bottom: 30rpx; + height: 80vh; +} + +.rating-item { + display: flex; + align-items: center; + margin-bottom: 30rpx; +} + +.rating-item:last-child { + margin-bottom: 0; +} + +.rating-label { + width: 160rpx; + font-size: 28rpx; + color: #333333; + font-weight: bold; +} + +/* 评价输入 */ +.comment-section { + padding: 20rpx; + margin-bottom: 30rpx; + border-top: 1rpx solid #f5f5f5; +} + +.comment-input { + width: 100%; + min-height: 100rpx; + font-size: 26rpx; + color: #333333; + line-height: 1.5; +} + +/* 图片上传 */ +.upload-section { + /* background-color: #FFFFFF; */ + border-radius: 16rpx; + padding: 20rpx; + margin-bottom: 40rpx; + display: flex; +} + +.upload-btn { + display: flex; + width: 150rpx; + height: 150rpx; + padding: 15rpx; + background-color: #f6f6f6; + flex-direction: column; + justify-content: center; + align-items: center; + margin-bottom: 20rpx; + border-radius: 20rpx; +} + +.upload-icon { + width: 60rpx; + height: 50rpx; + margin-right: 10rpx; +} + +.upload-text { + font-size: 28rpx; + color: #333333; + margin: 10rpx 0; +} + +.upload-count { + font-size: 28rpx; + color: #999999; +} + +.image-list { + display: flex; + /* flex-wrap: wrap; */ +} + +.image-item { + width: 170rpx; + height: 170rpx; + margin-right: 20rpx; + margin-bottom: 20rpx; + position: relative; + border-radius: 20rpx; + overflow: hidden; +} + +.uploaded-img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.delete-btn { + position: absolute; + top: -10rpx; + right: -10rpx; + width: 36rpx; + height: 36rpx; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} + +.delete-icon { + color: #FFFFFF; + font-size: 24rpx; + font-weight: bold; +} + +/* 提交按钮 */ +.submit-btn { + width: 90%; + height: 98rpx; + background-color: #ff4117; + border-radius: 49rpx; + display: flex; + justify-content: center; + align-items: center; + margin-top: 20rpx; + margin: 0 auto; +} + +.btn-text { + font-size: 32rpx; + color: #FFFFFF; + font-weight: bold; +} \ No newline at end of file diff --git a/packages/myOrders/orderEvaluate/index.vue b/packages/myOrders/orderEvaluate/index.vue new file mode 100644 index 00000000..9471a14c --- /dev/null +++ b/packages/myOrders/orderEvaluate/index.vue @@ -0,0 +1,179 @@ + + + + + \ No newline at end of file diff --git a/packages/myOrders/selfPickUpSite/index.css b/packages/myOrders/selfPickUpSite/index.css new file mode 100644 index 00000000..e69de29b diff --git a/packages/myOrders/selfPickUpSite/index.vue b/packages/myOrders/selfPickUpSite/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/packages/myOrders/submitOrder/index.css b/packages/myOrders/submitOrder/index.css new file mode 100644 index 00000000..e69de29b diff --git a/packages/myOrders/submitOrder/index.vue b/packages/myOrders/submitOrder/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/pages.json b/pages.json index 6f8ff747..349b98ec 100644 --- a/pages.json +++ b/pages.json @@ -761,6 +761,24 @@ "style": { "navigationBarTitleText": "物流跟踪" } + }, + { + "path": "orderEvaluate/index", + "style": { + "navigationBarTitleText": "评价" + } + }, + { + "path": "submitOrder/index", + "style": { + "navigationBarTitleText": "提交订单" + } + }, + { + "path": "selfPickUpSite/index", + "style": { + "navigationBarTitleText": "选择自提点" + } } ] } From fdd5bbfb3b32e80a0af09ef1622542534ce78c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Thu, 17 Jul 2025 18:25:20 +0800 Subject: [PATCH 4/7] =?UTF-8?q?feat=20:=20=E5=AF=B9=E6=8E=A5=E5=95=86?= =?UTF-8?q?=E5=9F=8E=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/shop.js | 2 +- packages/shop/index/index.vue | 792 ++++++++++++++++++++-------------- 2 files changed, 463 insertions(+), 331 deletions(-) diff --git a/api/shop.js b/api/shop.js index 192cd1ce..3b0214b3 100644 --- a/api/shop.js +++ b/api/shop.js @@ -6,5 +6,5 @@ export const apiArr = { getCarCount:"/api/v2/wechat/commodity/cart/all_count",//购物车数量 addCar:"/api/v2/wechat/commodity/cart/add",//添加购物车 deleteCar:"/api/v2/wechat/commodity/cart/delete",//删除购物车 - updateCar:"/api/v2/wechat/commodity/cart/update", + updateCar:"/api/v2/wechat/commodity/cart/update",//更新购物车 } \ No newline at end of file diff --git a/packages/shop/index/index.vue b/packages/shop/index/index.vue index 3733ceba..4bcdc7e3 100644 --- a/packages/shop/index/index.vue +++ b/packages/shop/index/index.vue @@ -1,368 +1,500 @@