Commit 853e632b by luyt

feat:调整滚动,标题名字

1 parent 11df8767
......@@ -248,15 +248,15 @@ Component({
// });
// wx.$eventbus.emit('evt_page_index',idx)
//判断当前路径
let currentUrl = this.getCurrentPageUrl();
console.log('currentUrl: ', currentUrl);
if (currentUrl == "/pages/tab/index/index") {
console.log(123546)
wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop + 88 + 34 });
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
} else {
wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
}
// let currentUrl = this.getCurrentPageUrl();
// console.log('currentUrl: ', currentUrl);
// if (currentUrl == "/pages/tab/index/index") {
// console.log(123546)
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop + 88 + 34 });
// // wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
// } else {
wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop/2-10 });
// }
},
// async changeTab(e){
// let idx = e.detail
......
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">D+增值转化</navigation-bar>
<view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<!-- 头部 -->
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!