From 53afe7bb5a177725a4c5431cb520eb649870c9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=98=81=E8=BE=89?= Date: Wed, 19 Jan 2022 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=20=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E5=90=8D=20=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E7=BA=B8=E6=8E=8C=E6=9F=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/setting.js | 8 +++ pages.json | 22 +++++++- pages/about/index.vue | 70 +++++++++++++++++++++++++ pages/setting/index.vue | 75 +++++++++++++++++++++++++-- pages/user-info/index.vue | 104 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 275 insertions(+), 4 deletions(-) create mode 100644 apis/setting.js create mode 100644 pages/about/index.vue create mode 100644 pages/user-info/index.vue diff --git a/apis/setting.js b/apis/setting.js new file mode 100644 index 0000000..4ea84ee --- /dev/null +++ b/apis/setting.js @@ -0,0 +1,8 @@ +import http from '../utils/http/index.js' +// 修改员工姓名 +export function employeeName(data) { + return http.post({ + url: '/yyt-uec/update/my/employee-name?userId='+data.userId +'&enterpriseId=' +data.enterpriseId, + data + }) +} diff --git a/pages.json b/pages.json index 37c7963..c043322 100644 --- a/pages.json +++ b/pages.json @@ -258,7 +258,27 @@ "enablePullDownRefresh": false } } - ], + ,{ + "path" : "pages/user-info/index", + "style" : + { + "navigationBarTitleText": "用户名", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/about/index", + "style" : + { + "navigationBarTitleText": "关于", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", diff --git a/pages/about/index.vue b/pages/about/index.vue new file mode 100644 index 0000000..c608e22 --- /dev/null +++ b/pages/about/index.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/pages/setting/index.vue b/pages/setting/index.vue index 41a80ac..ed871ec 100644 --- a/pages/setting/index.vue +++ b/pages/setting/index.vue @@ -1,9 +1,78 @@ - + diff --git a/pages/user-info/index.vue b/pages/user-info/index.vue new file mode 100644 index 0000000..33c32b3 --- /dev/null +++ b/pages/user-info/index.vue @@ -0,0 +1,104 @@ + + + +