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 @@