From 88e2d6542bbdc33807af4cd6c2b11433cfdc4d84 Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Wed, 15 Nov 2023 23:16:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 11 ++++++- pages/my/edit/edit.vue | 66 ++++++++++++++++++++++++++++++++++++++++++ pages/my/my.vue | 12 +++++++- service/request.js | 6 ++++ 4 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 pages/my/edit/edit.vue diff --git a/pages.json b/pages.json index 0840704..db52186 100644 --- a/pages.json +++ b/pages.json @@ -163,7 +163,16 @@ "enablePullDownRefresh": false } } - ], + ,{ + "path" : "pages/my/edit/edit", + "style" : + { + "navigationBarTitleText": "修改个人信息", + "enablePullDownRefresh": false + } + + } + ], "tabBar": { "color": "#CCCCCC", "borderStyle": "white", diff --git a/pages/my/edit/edit.vue b/pages/my/edit/edit.vue new file mode 100644 index 0000000..91a2580 --- /dev/null +++ b/pages/my/edit/edit.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/pages/my/my.vue b/pages/my/my.vue index 343daf8..37331f3 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -7,7 +7,8 @@ {{username}} - 账号:{{account}} + 账号:{{account}} + @@ -85,6 +86,11 @@ uni.navigateTo({ url: '/pages/Partnerships/Partnerships' }) + }, + toEdit(){ + uni.navigateTo({ + url:'/pages/my/edit/edit' + }) } //---------页面调用接口示例------------ // getInfo() { @@ -127,6 +133,10 @@ .account { font-size: 15px; font-weight: 1rpx; + display: flex; + } + .edit-icon{ + } } diff --git a/service/request.js b/service/request.js index dd9939f..628d36b 100644 --- a/service/request.js +++ b/service/request.js @@ -201,6 +201,12 @@ const apiService = { return new Promise((resolve, reject) => { resolve(service.get(url)) }) + }, + editPersonInfo(data){ + const url = `/center/userupdate` + return new Promise((resolve,reject) => { + resolve(service.post(url,data)) + }) } } export { From 9f449b67664aca4a67d9a2cc5f83aa096653f569 Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Wed, 15 Nov 2023 23:37:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=B1=95=E7=A4=BA=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/my.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/my/my.vue b/pages/my/my.vue index f06f4e7..bbb5e5d 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -43,8 +43,8 @@ data() { return { src: 'https://cdn.uviewui.com/uview/album/2.jpg', - account: '123456', - username: '用户名', + account: '', + username: '', isLoad: true } }, @@ -54,6 +54,8 @@ return } this.isLoad = true + this.$data.account = wx.getStorageSync('account') + this.$data.username = wx.getStorageSync('nickname') }, methods: { reOnLoad() {