diff --git a/front-end/mall4uni/src/pages/orderList/orderList.scss b/front-end/mall4uni/src/pages/orderList/orderList.scss
index 8db702c..e4340c0 100644
--- a/front-end/mall4uni/src/pages/orderList/orderList.scss
+++ b/front-end/mall4uni/src/pages/orderList/orderList.scss
@@ -1,40 +1,50 @@
+
diff --git a/front-end/mall4uni/src/pages/orderList/orderList.vue b/front-end/mall4uni/src/pages/orderList/orderList.vue
index 63a0ab5..5cdb49f 100644
--- a/front-end/mall4uni/src/pages/orderList/orderList.vue
+++ b/front-end/mall4uni/src/pages/orderList/orderList.vue
@@ -2,142 +2,89 @@
-
- 全部
-
-
- 待支付
-
-
- 待发货
-
-
- 待收货
-
-
- 已完成
+
+
+ {{ status.label }}
+
-
+
+
还没有任何相关订单
+
-
+
+
订单编号:{{ item.orderNumber }}
-
+
+
{{
- item.status == 1 ? '待支付' : (item.status == 2 ? '待发货' : (item.status == 3 ? '待收货' : (item.status == 5 ? '已完成' : '已取消')))
+ getStatusLabel(item.status)
}}
-
-
+
+
+
-
-
-
+
+
+
-
+
-
- {{ prod.prodName }}
-
-
- {{ prod.skuName }}
-
+ {{ prod.prodName }}
+ {{ prod.skuName }}
-
- ¥
-
-
- {{ wxs.parsePrice(prod.price)[0] }}
-
-
- .{{ wxs.parsePrice(prod.price)[1] }}
-
-
-
- x{{ prod.prodCount }}
+ ¥
+ {{ wxs.parsePrice(prod.price)[0] }}
+ .{{ wxs.parsePrice(prod.price)[1] }}
+ x{{ prod.prodCount }}
-
+
-
-
-
+
+
+
@@ -146,60 +93,47 @@
+
-
- 共1件商品
-
+ 共1件商品
合计:
-
- ¥
-
-
- {{ wxs.parsePrice(item.actualTotal)[0] }}
-
-
- .{{ wxs.parsePrice(item.actualTotal)[1] }}
-
+ ¥
+ {{ wxs.parsePrice(item.actualTotal)[0] }}
+ .{{ wxs.parsePrice(item.actualTotal)[1] }}
-
+
+
-
diff --git a/front-end/mall4uni/src/pages/pay-result/pay-result.scss b/front-end/mall4uni/src/pages/pay-result/pay-result.scss
index eb8e3e3..f857c70 100644
--- a/front-end/mall4uni/src/pages/pay-result/pay-result.scss
+++ b/front-end/mall4uni/src/pages/pay-result/pay-result.scss
@@ -1,50 +1,92 @@
+/* 定义支付状态信息的样式 */
.pay-sts {
+ /* 设置字体大小为40rpx */
font-size: 40rpx;
+ /* 设置顶部外边距为100rpx,使支付状态信息与页面顶部有一定的间距 */
margin-top: 100rpx;
+ /* 设置上下内边距为30rpx,左右内边距为0,确保文本有足够的内部空间 */
padding: 30rpx 0;
+ /* 文本居中对齐 */
text-align: center;
}
+
+/* 当支付状态为失败时,设置文本颜色为红色(#f43530),以视觉上突出错误信息 */
.pay-sts.fail {
color: #f43530;
}
+
+/* 当支付状态为成功时,设置文本颜色为绿色(#19be6b),表示操作成功 */
.pay-sts.succ {
color: #19be6b;
}
+
+/* 定义按钮组的样式 */
.btns {
+ /* 设置顶部外边距为50rpx,使按钮组与上方内容有一定的间距 */
margin-top: 50rpx;
+ /* 文本居中对齐 */
text-align: center;
+ /* 定义默认按钮样式 */
.button {
+ /* 设置圆角半径为10rpx,使按钮看起来更加圆润 */
border-radius: 10rpx;
+ /* 设置字体大小为28rpx */
font-size: 28rpx;
+ /* 设置背景颜色为白色 */
background: #fff;
+ /* 设置文本颜色为深灰色 */
color: #333;
+ /* 设置上下内边距为20rpx,左右内边距为35rpx,确保按钮内的文本有足够的内部空间 */
padding: 20rpx 35rpx;
+ /* 设置按钮宽度为300rpx,确保按钮在不同屏幕尺寸下都能保持一致的宽度 */
width: 300rpx;
+ /* 设置左右外边距为20rpx,确保按钮之间有一定的间距 */
margin: 0 20rpx;
+ /* 文本居中对齐 */
text-align: center;
}
+ /* 定义“查看订单”按钮的样式 */
.button.checkorder {
+ /* 设置背景颜色为绿色(#19be6b),表示这是一个积极的操作 */
background: #19be6b;
+ /* 设置文本颜色为白色 */
color: #fff;
+ /* 设置底部外边距为20rpx,使按钮与其他元素之间有一定的间距 */
margin-bottom: 20rpx;
+ /* 设置边框为2rpx宽的绿色实线 */
border: 2rpx solid #19be6b;
}
+ /* 定义“再次支付”按钮的样式 */
.button.payagain {
+ /* 设置背景颜色为白色 */
background: #fff;
+ /* 设置边框为2rpx宽的橙色实线 */
border: 2rpx solid #f90;
+ /* 设置文本颜色为橙色 */
color: #f90;
}
+ /* 定义“继续购物”按钮的样式 */
.button.shopcontinue {
+ /* 设置背景颜色为白色 */
background: #fff;
+ /* 设置边框为2rpx宽的绿色实线 */
border: 2rpx solid #19be6b;
+ /* 设置文本颜色为绿色 */
color: #19be6b;
}
}
+
+/* 定义提示信息的样式 */
.tips {
+ /* 设置字体大小为28rpx */
font-size: 28rpx;
+ /* 设置文本颜色为浅灰色(#999),使提示信息显得不那么显眼 */
color: #999;
+ /* 文本居中对齐 */
text-align: center;
+ /* 定义警告信息的样式 */
.warn {
+ /* 设置文本颜色为红色(#f43530),用于突出显示警告或错误信息 */
color: #f43530;
}
}
diff --git a/front-end/mall4uni/src/pages/pay-result/pay-result.vue b/front-end/mall4uni/src/pages/pay-result/pay-result.vue
index 9dae116..aada750 100644
--- a/front-end/mall4uni/src/pages/pay-result/pay-result.vue
+++ b/front-end/mall4uni/src/pages/pay-result/pay-result.vue
@@ -1,52 +1,61 @@
+
+
+
支付失败
+
+
请在
-
- 30分钟
- 内完成付款
+ 30分钟内完成付款
否则订单会被系统取消
+
+
-
+
+
查看订单
-
+
+
+
重新支付
+
+
支付成功
+
+
感谢您的购买
+
+
-
+
+
查看订单
-
+
+
+
继续购物
@@ -55,56 +64,87 @@