Lina 3 anni fa
parent
commit
7bc85c9e3a
2 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. 8 0
      api/order.js
  2. 9 2
      pages/user/user.vue

+ 8 - 0
api/order.js

@@ -150,5 +150,13 @@ export function computedOrderkey(data) {
 		method: 'post',
 		data
 	});
+}
+
+/**
+ * 订单列表
+ * @param object data
+*/
+export function getOrderList(data){
+  return request.get('order/list',data);
 }
 

+ 9 - 2
pages/user/user.vue

@@ -778,14 +778,21 @@ page {
 		margin-top: 52rpx;
 		display: flex;
 		height: 117rpx;
-		color: #fff;
+		color: #fff;
+		.tj-item:nth-child(1){
+			width: 32.8%;
+		}
+		.tj-item:nth-child(2){
+			width: 34.8%;
+		}
 		.tj-item {
 			display: flex;
 			flex-direction: column;
 			flex-grow: 1;
 			text-align: center;
 			font-size: 26rpx;
-			font-weight: 500;
+			font-weight: 500;
+			width: 33.33%;
 			.num {
 				margin-top: 32rpx;
 				font-size: 36rpx;