From 9a2e3a2d2ef6edf6b2d2eceaa8b1151a7acec013 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Tue, 13 Sep 2022 19:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/userstart.js | 4 +- src/components/UcHeader/Index.vue | 10 +++ src/icons/svg/home-answer.svg | 22 ++++++ src/icons/svg/home-article.svg | 22 ++++++ src/icons/svg/home-book.svg | 24 +++++++ src/icons/svg/home-case.svg | 23 +++++++ src/icons/svg/home-course.svg | 20 ++++++ src/icons/svg/home-dynamic.svg | 21 ++++++ src/icons/svg/home-follow.svg | 25 +++++++ src/icons/svg/home-note.svg | 23 +++++++ src/icons/svg/home-qa.svg | 22 ++++++ src/router/index.js | 7 ++ src/views/homepage/Index.vue | 109 ++++++++++++++++++++++++++++++ src/views/ucurrency/Index.vue | 13 +++- src/views/user/Setting.vue | 7 -- 15 files changed, 342 insertions(+), 10 deletions(-) create mode 100644 src/icons/svg/home-answer.svg create mode 100644 src/icons/svg/home-article.svg create mode 100644 src/icons/svg/home-book.svg create mode 100644 src/icons/svg/home-case.svg create mode 100644 src/icons/svg/home-course.svg create mode 100644 src/icons/svg/home-dynamic.svg create mode 100644 src/icons/svg/home-follow.svg create mode 100644 src/icons/svg/home-note.svg create mode 100644 src/icons/svg/home-qa.svg create mode 100644 src/views/homepage/Index.vue diff --git a/src/api/modules/userstart.js b/src/api/modules/userstart.js index a0b545e8..40edb20f 100644 --- a/src/api/modules/userstart.js +++ b/src/api/modules/userstart.js @@ -1,4 +1,4 @@ -import ajax from '@/utils/xajax.js' +import ajax from '../event/index.js' @@ -9,7 +9,7 @@ import ajax from '@/utils/xajax.js' * } * */ const user=function (query){ - return ajax.post('/xboe/stat/m/user/current/user',query); + return ajax.postJson('/xboe/stat/m/user/current',query); } /** diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index 00f482ce..abb0c8cb 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -115,6 +115,7 @@ + + + \ No newline at end of file diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index fed83b97..d107f4d4 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -1,6 +1,14 @@ @@ -18,6 +26,9 @@ \ No newline at end of file diff --git a/src/views/user/Setting.vue b/src/views/user/Setting.vue index 279b6888..5b1eb0fe 100644 --- a/src/views/user/Setting.vue +++ b/src/views/user/Setting.vue @@ -204,7 +204,6 @@ } }, mounted(){ - //console.log(this.userInfo,'this.userInfo') if(this.userInfo.avatar){ this.avatarUrl = this.avatar; } @@ -212,7 +211,6 @@ this.getInfo(); this.getSysTypeTree().then(rs => { this.sysTypeListMap = rs; - console.log(this.sysTypeListMap,'sysTypeListMap'); }); }, methods:{ @@ -222,7 +220,6 @@ let data = res.result.map(item => item.refId); this.checkboxGroup = data; } - console.log(res,'res'); }) }, handleClick(e){ @@ -255,16 +252,12 @@ }), load(){ userApi.detail(this.userInfo.aid).then(res=>{ - //console.log(res) if(res.status==200){ - //console.log(res) - //console.log(res.result,'res.result') this.form=res.result } }); }, openAvatar(){ - //console.log(this.avatarUrl,'this.avatarUrl'); this.dialogVisibleAvatar=true }, openPassword(){