新增「我的订单」页面(订单中心)
- 微信审核要求交易类小程序提交订单中心 path,之前小程序没有订单页 - 新页面 pages/orders/orders:列表展示商品名 / 状态 / 订单号 / 金额 / 下单时间,接 GET /v1/orders - 我的页新增「我的订单」入口,文案走后台配置 profile.menu.orders - utils/api.js 补 getOrders(),utils/format.js 补 toDateTimeString()
This commit is contained in:
1 parent
014fa90dcd
commit
7d5db6a867
9 files changed
+172
-1
No files matched your search
@@ -0,0 +1,58 @@
|
||||
/* pages/orders/orders.wxss */
|
||||
.order-page {
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.order-hint {
|
||||
margin-top: 200rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.order-item {
|
||||
width: 710rpx;
|
||||
margin-bottom: 20rpx;
|
||||
padding: 24rpx;
|
||||
border-radius: 20rpx;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.order-line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.order-title {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.order-status {
|
||||
font-size: 26rpx;
|
||||
color: #00aa00;
|
||||
}
|
||||
|
||||
.order-sub {
|
||||
margin-top: 12rpx;
|
||||
font-size: 24rpx;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.order-amount {
|
||||
color: #e60012;
|
||||
}
|
||||
|
||||
.order-service {
|
||||
width: 710rpx;
|
||||
margin: 40rpx 0 60rpx;
|
||||
border-radius: 45rpx;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
background-color: #4caf50;
|
||||
}
|
||||
Reference in new issue
Block a user