This commit is contained in:
haomingming
2023-03-31 13:48:32 +08:00
parent edff2d3c05
commit 52742fdbd9
16 changed files with 148 additions and 60 deletions
+13 -1
View File
@@ -5,9 +5,21 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '我的简介', //导航栏 中间的标题
},
page_meta_show: false
},
goBack(){
wx.navigateBack();
},
showPageMeta(){
console.log("showPageMeta from indenity");
this.setData({
page_meta_show: true
})
},
hidePageMeta(){
console.log("hidePageMeta from indenity");
this.setData({
page_meta_show: false
})
}
})
+6 -1
View File
@@ -1,5 +1,10 @@
<!-- 设置滚动穿透 -->
<page-meta page-style="{{ page_meta_show ? 'overflow: hidden;' : '' }}" />
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<myprofile indentity="{{false}}" />
<myprofile indentity="{{false}}"
bind:showPageMeta="showPageMeta"
bind:hidePageMeta="hidePageMeta"
/>
<view style="height: 50rpx;"></view>
</view>