diff --git a/pages.json b/pages.json index 94f1d22..00d2d70 100644 --- a/pages.json +++ b/pages.json @@ -8,7 +8,8 @@ "style": { "navigationBarTitleText": "首页", "enablePullDownRefresh":true, - "navigationStyle": "custom" + "navigationStyle": "custom", + "navigationBarTextStyle": "white" } }, { diff --git a/pages/discover/discoverdetails.vue b/pages/discover/discoverdetails.vue index 0a79e67..878fd57 100644 --- a/pages/discover/discoverdetails.vue +++ b/pages/discover/discoverdetails.vue @@ -129,7 +129,7 @@ - + diff --git a/pages/index/category/category.vue b/pages/index/category/category.vue index 987f221..b3eb95e 100644 --- a/pages/index/category/category.vue +++ b/pages/index/category/category.vue @@ -30,7 +30,7 @@ - + @@ -109,6 +109,9 @@ otherHeight(){ // 屏幕可用总高度 - 导航条高度 - tabs高度 - tabbar高度 - 筛选高度 return `calc(${this.scrollH}px - ${this.nav_height}px - 90rpx - 120rpx - 105rpx)`; + }, + autoScrollHeight(){ + return `calc(${this.scrollH}px - ${this.nav_height}px - 90rpx - 120rpx - 300rpx)`; } }, components: { diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue index d8147f6..d5f543e 100644 --- a/pages/index/index/index.vue +++ b/pages/index/index/index.vue @@ -579,8 +579,16 @@ onPageScroll(event){ if(event.scrollTop >= 100){ this.nav_bg_color = '#ffffff'; + uni.setNavigationBarColor({ + frontColor: "#000000", + backgroundColor: "#0000000" + }) }else{ this.nav_bg_color = 'transparent'; + uni.setNavigationBarColor({ + frontColor: "#ffffff", + backgroundColor: "#FFFFFF" + }) } }, //下拉刷新 diff --git a/pages/user/agreement/agreement.vue b/pages/user/agreement/agreement.vue index f49039e..f8b05d7 100644 --- a/pages/user/agreement/agreement.vue +++ b/pages/user/agreement/agreement.vue @@ -1,5 +1,6 @@