From ed32bbdeffad9fb7808b754454047b9bb7d8f016 Mon Sep 17 00:00:00 2001 From: shenyuan Date: Mon, 6 Feb 2023 17:05:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BE=85=E5=A4=84=E7=90=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/router.config.js | 8 + ant-design-vue-jeecg/src/permission.js | 2 +- .../shopping/components/Header/HeaderView.vue | 4 +- .../src/views/shopping/pages/chengyi.vue | 518 ++++++++++++++++++ .../views/shopping/pages/gerenzhongxin.vue | 28 +- .../src/views/shopping/pages/news.vue | 34 ++ .../src/views/shopping/shopHome.vue | 20 +- 7 files changed, 595 insertions(+), 19 deletions(-) create mode 100644 ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue create mode 100644 ant-design-vue-jeecg/src/views/shopping/pages/news.vue diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index 3b149bb7..6f23714e 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -652,4 +652,12 @@ export const constantRouterMap = [ path: '/shopping/order',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/pages/orderDetails'), }, + { + path: '/shopping/chengyi',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/chengyi'), + }, + { + path: '/shopping/news',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/news'), + }, ] diff --git a/ant-design-vue-jeecg/src/permission.js b/ant-design-vue-jeecg/src/permission.js index 11fee8c4..84cfc773 100644 --- a/ant-design-vue-jeecg/src/permission.js +++ b/ant-design-vue-jeecg/src/permission.js @@ -19,7 +19,7 @@ const whiteList = ['/user/login','/userequip/loginequip','/user/sgin', '/sckz/sckzzxt','/sbjm/sbjmsjkzxt','/jxgl/jxglsjkzxt','/szls/szlssjkzxt','/jxdsj/jxdsjzszxt', '/ybgl/ybglsjkzxt','/mflgl/mflglsjkzxt','/ddcl/ddclzxt','/ddgl/ddglzxt','/dyhsc/dyhsczxt','/znyy/znyysczhgkzzrj', '/znyyjc/znyycjrjxt','/gdgz/gdgzzxt','/shopping/shopHome','/shopping/clothType','/shopping/sirendingzhi', - '/shopping/ClothDetail','/shopping/person','/shopping/person','/shopping/order'] // no redirect whitelist + '/shopping/ClothDetail','/shopping/person','/shopping/person','/shopping/order','/shopping/chengyi','/shopping/news'] // no redirect whitelist router.beforeEach((to, from, next) => { NProgress.start() // start progress bar diff --git a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue index 50b7937d..b18320cb 100644 --- a/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue +++ b/ant-design-vue-jeecg/src/views/shopping/components/Header/HeaderView.vue @@ -12,10 +12,10 @@ 私人定制 - 成衣推荐 - 关于我们 diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue new file mode 100644 index 00000000..d880218c --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue @@ -0,0 +1,518 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue index 056dae28..cdfad00a 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue @@ -13,24 +13,27 @@ 我的账户 我的收藏 地址管理 - + 发票管理 - + Option 1 - + Option 2 - + Option 3 - + Option 4 全部订单 + + 全部订单 + 待支付 @@ -46,7 +49,7 @@ -
+
订单编号:{{item.orderNum}} @@ -91,7 +94,7 @@ data() { return { current: ['mail'], - allOrders:[ + allOrders1:[ { id:1, orderNum:'CN172839729', @@ -119,6 +122,7 @@ total:5912 } ], + allOrders:[], }; }, @@ -127,8 +131,14 @@ console.log(key); }, menuChange(key){ - if(key == daizhifu){ - // this.allOrders.forEach() + this.current.shift() + this.current.push(key.key) + console.log(this.allOrders) + + if(key.key == 'allorders'){ + console.log('----') + this.allOrders = this.allOrders1 + console.log(this.allOrders) } } }, diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/news.vue b/ant-design-vue-jeecg/src/views/shopping/pages/news.vue new file mode 100644 index 00000000..1f9b77ba --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/pages/news.vue @@ -0,0 +1,34 @@ + + + + + + + + + diff --git a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue index e51da067..cd27abf9 100644 --- a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue +++ b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue @@ -87,6 +87,10 @@

15分钟前定制

+
+ 更多西装 + +
@@ -129,7 +133,7 @@
- 更多衬衫 + 更多衬衫
@@ -154,7 +158,7 @@
- 更多西装 + 更多西装
@@ -181,7 +185,7 @@
- 更多衬衫 + 更多衬衫
@@ -206,7 +210,7 @@
- 更多西装 + 更多西装
@@ -233,7 +237,7 @@
- 更多衬衫 + 更多衬衫
@@ -258,20 +262,22 @@
- 更多西装 + 更多西装
+