diff --git a/pages.json b/pages.json
index 30f2813..e3978f7 100644
--- a/pages.json
+++ b/pages.json
@@ -8,6 +8,15 @@
},
"pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/order/list",
+ "style": {
+ "navigationBarTitleText": "订单"
+ },
+ "meta": {
+ "auth": true
+ }
+ },
{
"path": "pages/index/my",
"style": {
@@ -63,7 +72,7 @@
"pagePath": "pages/index/product"
},
{
- "pagePath": "pages/index/icons"
+ "pagePath": "pages/order/list"
},
{
"pagePath": "pages/index/my"
diff --git a/pages/order/detail.vue b/pages/order/detail.vue
new file mode 100644
index 0000000..0afeca7
--- /dev/null
+++ b/pages/order/detail.vue
@@ -0,0 +1,616 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatOrderStatus(state.orderInfo) }}
+
+ {{ formatOrderStatusDescription(state.orderInfo) }}
+
+
+
+
+
+
+ {{ state.orderInfo.receiverName }}
+
+ {{ state.orderInfo.receiverMobile }}
+
+
+ {{ state.orderInfo.receiverAreaName }} {{ state.orderInfo.receiverDetailAddress }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单编号:
+ {{ state.orderInfo.no }}
+
+
+
+
+ 下单时间:
+
+ {{ sheep.$helper.timeFormat(state.orderInfo.createTime, 'yyyy-mm-dd hh:MM:ss') }}
+
+
+
+ 支付时间:
+
+ {{ sheep.$helper.timeFormat(state.orderInfo.payTime, 'yyyy-mm-dd hh:MM:ss') }}
+
+
+
+ 支付方式:
+ {{ state.orderInfo.payChannelName || '-' }}
+
+
+
+
+
+
+
+ 商品总额
+
+ ¥{{ fen2yuan(state.orderInfo.totalPrice) }}
+
+
+
+ 运费
+ ¥{{ fen2yuan(state.orderInfo.deliveryPrice) }}
+
+
+
+ 优惠劵金额
+ -¥{{ fen2yuan(state.orderInfo.couponPrice) }}
+
+
+ 活动优惠
+ ¥{{ fen2yuan(state.orderInfo.discountPrice) }}
+
+
+ 会员优惠
+ -¥{{ fen2yuan(state.orderInfo.vipPrice) }}
+
+
+ {{ state.orderInfo.payStatus ? '已付款' : '需付款' }}
+ ¥{{ fen2yuan(state.orderInfo.payPrice) }}
+
+
+ 已退款
+ ¥{{ fen2yuan(state.orderInfo.refundPrice) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/order/list.vue b/pages/order/list.vue
new file mode 100644
index 0000000..f528425
--- /dev/null
+++ b/pages/order/list.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 共 {{ totalNumsPerOrder(order) }} 件商品,总金额:
+ ¥{{ fen2yuan(totalPricePerOrder(order)) }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/user/wallet/money.vue b/pages/user/wallet/money.vue
new file mode 100644
index 0000000..5c4e324
--- /dev/null
+++ b/pages/user/wallet/money.vue
@@ -0,0 +1,370 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 总收入¥{{ fen2yuan(state.summary.totalIncome) }}
+ 总支出¥{{ fen2yuan(state.summary.totalExpense) }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+ +{{ fen2yuan(item.price) }}
+ {{ fen2yuan(item.price) }}
+
+
+
+ {{ peach.$helper.timeFormat(state.createTime, 'yyyy-mm-dd hh:MM:ss') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/peach/components/p-goods-item/p-goods-item.vue b/peach/components/p-goods-item/p-goods-item.vue
new file mode 100644
index 0000000..f4926c9
--- /dev/null
+++ b/peach/components/p-goods-item/p-goods-item.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
+
+
+
+
+
+ {{ title }}
+ {{ skuString }}
+
+
+
+
+
+
+ ¥{{ fen2yuan(price) }}
+
+ x {{ num }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/peach/store/app.js b/peach/store/app.js
index 1309b11..2b13618 100644
--- a/peach/store/app.js
+++ b/peach/store/app.js
@@ -72,8 +72,8 @@ const useAppStore = defineStore(
{
activeIconUrl: 'http://mall.yudao.iocoder.cn/static/images/3-002.png',
iconUrl: 'http://mall.yudao.iocoder.cn/static/images/3-001.png',
- text: '购物车',
- url: '/pages/index/icons',
+ text: '订单',
+ url: '/pages/order/list',
},
{
activeIconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-002.png',
diff --git a/peach/ui/pb-sticky/pb-sticky.vue b/peach/ui/pb-sticky/pb-sticky.vue
new file mode 100644
index 0000000..d6ff272
--- /dev/null
+++ b/peach/ui/pb-sticky/pb-sticky.vue
@@ -0,0 +1,264 @@
+
+
+
+
+
+
+
+
+
diff --git a/peach/ui/pb-tabs/pb-tabs.vue b/peach/ui/pb-tabs/pb-tabs.vue
new file mode 100644
index 0000000..a222b40
--- /dev/null
+++ b/peach/ui/pb-tabs/pb-tabs.vue
@@ -0,0 +1,432 @@
+
+
+
+
+
+
+
+
+ {{ item[keyName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/order-empty.png b/static/order-empty.png
new file mode 100644
index 0000000..a7b46fe
Binary files /dev/null and b/static/order-empty.png differ