From d989984bf3927b69624d70c2312b29c3e3c67638 Mon Sep 17 00:00:00 2001 From: lvxiu_ext Date: Sat, 6 May 2023 19:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=A6=96=E9=A1=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cert/index.js | 10 +++++ src/router/index.js | 2 +- src/views/index.vue | 90 ++++++++++++++++++++++++++++++------------- 3 files changed, 74 insertions(+), 28 deletions(-) create mode 100644 src/api/cert/index.js diff --git a/src/api/cert/index.js b/src/api/cert/index.js new file mode 100644 index 0000000..e4aacaa --- /dev/null +++ b/src/api/cert/index.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +//获取首页信息 +export function getCertIndex() { + return request({ + url: '/cert/index', + method: 'get' + }) +} + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index b05d1c1..03b9960 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -66,7 +66,7 @@ export const constantRoutes = [ path: '/index', component: () => import('@/views/index'), name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + meta: { title: '系统首页', icon: 'dashboard', affix: true } } ] }, diff --git a/src/views/index.vue b/src/views/index.vue index aebae0c..60eed3e 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -10,11 +10,37 @@ - 帐户余额:¥100 - 本月消费:¥100 + 帐户余额:¥{{ userBalance }} + 本月消费:¥{{ userBalanceMonth }} 帐户等级:1 +
+ + + +
+ + + +
+
+ + + +
+
+ + + +
+
+
+
- - - - - + + + + + + + + +
@@ -34,26 +68,28 @@