diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue index b7806c3..97ec757 100644 --- a/components/CustomTabBar.vue +++ b/components/CustomTabBar.vue @@ -54,7 +54,7 @@ export default { const pages = getCurrentPages(); const currentPage = pages[pages.length - 1]; const currentPath = currentPage.route; - tabBarList.forEach((item, index) => { + this.tabBarList.forEach((item, index) => { if (item.pagePath === currentPath) { this.currentTab = index; } @@ -63,7 +63,7 @@ export default { switchTab(index) { if (this.currentTab === index) return; uni.switchTab({ - url: '/' + tabBarList[index].pagePath + url: '/' + this.tabBarList[index].pagePath }); } } diff --git a/components/header.vue b/components/header.vue index 47c2cc1..a3e69a1 100644 --- a/components/header.vue +++ b/components/header.vue @@ -31,6 +31,7 @@ diff --git a/pages/index/readingBody.vue b/pages/index/readingBody.vue index b7be789..cf9ad4c 100644 --- a/pages/index/readingBody.vue +++ b/pages/index/readingBody.vue @@ -1,25 +1,111 @@ \ No newline at end of file + + .bg { + min-height: 100vh; + background: #FFFFFF; + display: flex; + flex-direction: column; + } + .content{ + flex: 1; + height: 200rpx; + width: 100%; + } + .top-banner { + width: 100%; + height: 100%; + } + + +