From 44c8ced505ce9bb4edbb4146ac2cb8daf2c57f7b Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sat, 17 May 2025 23:12:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8F=8A=E4=BC=98=E5=8C=96=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将用户信息修改页面从 `novel/Modifyinformation.vue` 移动到 `auth/Modifyinformation.vue`,并优化了表单提交逻辑。新增了手机号绑定功能,提升了用户体验。同时,修复了页面样式和交互问题,确保功能更加完善。 - 移动并重构用户信息修改页面 - 新增手机号绑定功能 - 优化表单提交逻辑 - 修复页面样式和交互问题 --- App.vue | 2 +- api/http.js | 2 +- api/model/bookshelf.js | 5 +- api/model/login.js | 2 +- common.scss | 13 +- components/base/tabbar.vue | 4 - components/novel/novelItem.vue | 19 +- components/novel/workItem.vue | 27 +- mixins/configList.js | 2 +- pages.json | 2 +- pages/index/bookshelf.vue | 158 ++---- pages/index/center.vue | 51 +- pages/index/index.vue | 9 +- pages_order/announcement/announcementDetail.vue | 43 +- pages_order/announcement/announcements.vue | 45 +- pages_order/auth/Modifyinformation.vue | 248 +++++++++ pages_order/auth/wxLogin.vue | 56 +- pages_order/auth/wxUserInfo.vue | 105 +++- pages_order/author/editor.vue | 369 ++++++------- pages_order/novel/Giftbox.vue | 396 ++++++++------ pages_order/novel/Modifyinformation.vue | 185 ------- pages_order/novel/chapterList.vue | 42 +- pages_order/novel/createNovel.vue | 670 ++++++++++++------------ pages_order/novel/novelDetail.vue | 160 +++--- store/store.js | 72 ++- 25 files changed, 1347 insertions(+), 1340 deletions(-) create mode 100644 pages_order/auth/Modifyinformation.vue delete mode 100644 pages_order/novel/Modifyinformation.vue diff --git a/App.vue b/App.vue index cc1058b..651fe9f 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,7 @@ onLaunch: function() { }, onShow: function() { - // this.$store.commit('initConfig') + this.$store.commit('initConfig') }, onHide: function() { } diff --git a/api/http.js b/api/http.js index 6c3da63..bc01a4c 100644 --- a/api/http.js +++ b/api/http.js @@ -35,7 +35,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) { if(res.statusCode == 401 || res.data.message == '操作失败,token非法无效!' || res.data.message == '操作失败,用户不存在!'){ - store.commit('logout') + store.commit('logout', '登录过期了,你可以停留在此页面或去重新登录') console.error('登录过期'); utils.toLogin() } diff --git a/api/model/bookshelf.js b/api/model/bookshelf.js index 3e39305..5c5615b 100644 --- a/api/model/bookshelf.js +++ b/api/model/bookshelf.js @@ -30,14 +30,15 @@ const api = { url: '/all_book/saveOrUpdateBook', method: 'POST', auth: true, - limit: 500, + limit: 800, showLoading: true, }, // 增加或修改作品章节 saveOrUpdateCatalog: { url: '/all_book/saveOrUpdateCatalog', - method: 'GET', + method: 'POST', auth: true, + limit: 800, }, } diff --git a/api/model/login.js b/api/model/login.js index 7ea631c..1d34227 100644 --- a/api/model/login.js +++ b/api/model/login.js @@ -21,7 +21,7 @@ const api = { auth: true, }, // 更新用户信息 - updateUserInfo: { + updateInfo: { url: '/all_login/updateUserInfo', method: 'POST', auth: true, diff --git a/common.scss b/common.scss index 5fd3072..65f6566 100644 --- a/common.scss +++ b/common.scss @@ -24,12 +24,13 @@ .share{ padding: 0; margin: 0; - background-color: #fff; - display: flex !important; - flex-direction: column !important; - justify-content: center !important; - align-items: center !important; - font-size: 26rpx; + background-color: unset; + display: unset !important; + flex-direction: unset !important; + justify-content: unset !important; + align-items: unset !important; + font-size: unset; + line-height: unset; } .share::after{ border: none; diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index e4303da..d25d0a8 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -17,14 +17,10 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index a8833bd..11cbfab 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -97,7 +97,7 @@ 查看更多 > - @@ -115,16 +115,13 @@ import tabber from '@/components/base/tabbar.vue' import novelItem from '@/components/novel/novelItem.vue' import mixinsList from '@/mixins/list.js' - import { - mapGetters - } from 'vuex' export default { + mixins: [mixinsList], components: { tabber, PrivacyAgreementPoup, novelItem, }, - mixins: [mixinsList], data() { return { // 轮播图数据 @@ -183,7 +180,7 @@ // 获取最近更新小说列表 async getNewList() { const data = await this.$fetch('getNewList') - this.novelList = data + this.novelList = data.records }, } } diff --git a/pages_order/announcement/announcementDetail.vue b/pages_order/announcement/announcementDetail.vue index 1c5be41..a5313da 100644 --- a/pages_order/announcement/announcementDetail.vue +++ b/pages_order/announcement/announcementDetail.vue @@ -4,7 +4,10 @@ - + + + + @@ -47,41 +50,33 @@ \ No newline at end of file diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index 292f9d1..0cc5df2 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -1,30 +1,28 @@