From 72d769fb774836b40ff5c311f4223ce02c106c7b Mon Sep 17 00:00:00 2001
From: mullins <476823686@qq.com>
Date: Mon, 11 May 2020 21:33:40 +0800
Subject: [PATCH] myOrder
---
src/pages.json | 10 +--
src/pages/index/index.vue | 2 +-
src/pages/myOrder/components/OrderCard.vue | 34 ++++----
src/pages/myOrder/myOrder.vue | 46 +++++++----
src/store/modules/myOrder.js | 126 ++++++++++++++++++++++-------
src/store/request.js | 30 ++++---
src/store/url.js | 9 ++-
7 files changed, 179 insertions(+), 78 deletions(-)
diff --git a/src/pages.json b/src/pages.json
index d99f2fb..99bcb48 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,5 +1,10 @@
{
"pages": [
+ {
+ "path" : "pages/myOrder/myOrder",
+ "style" : {
+ "navigationBarTitleText": "我的订单"}
+ },
{
"path": "pages/cart/cart",
"style": {
@@ -36,11 +41,6 @@
"navigationBarTitleText": "申请退款"
}
},
- {
- "path" : "pages/myOrder/myOrder",
- "style" : {
- "navigationBarTitleText": "我的订单"}
- },
{
"path": "pages/addAddress/addAddress",
"style": {
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 396b2b9..68e224f 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -121,7 +121,7 @@ export default {
computed: {
goodsList() {
// 也可以从 getters 获取
- console.log(this.$store.getters.list);
+ console.log('list', this.$store.state.test.list);
return this.$store.state.test.list;
}
},
diff --git a/src/pages/myOrder/components/OrderCard.vue b/src/pages/myOrder/components/OrderCard.vue
index 9baac0f..adbb338 100644
--- a/src/pages/myOrder/components/OrderCard.vue
+++ b/src/pages/myOrder/components/OrderCard.vue
@@ -57,10 +57,10 @@
再次购买
-
-
-
-
-
-
+ }
+
diff --git a/src/pages/myOrder/myOrder.vue b/src/pages/myOrder/myOrder.vue
index 5335572..3f81338 100644
--- a/src/pages/myOrder/myOrder.vue
+++ b/src/pages/myOrder/myOrder.vue
@@ -13,7 +13,10 @@
-
+
@@ -21,10 +24,12 @@