|
@@ -1,19 +1,21 @@
|
|
<!-- 自定义顶部栏 -->
|
|
<!-- 自定义顶部栏 -->
|
|
-<view class="nav-bar" style="height:{{navBarHeight}}px;">
|
|
|
|
- <view class="view" style="height:{{menuHeight}}px;top:{{menuTop}}px;">
|
|
|
|
- <view class="selectGrade" bindtap="showGrade">{{userInfo.gradeName}}</view>
|
|
|
|
- <view class="title">{{title}}</view>
|
|
|
|
|
|
+<block wx:if="{{showNav}}">
|
|
|
|
+ <view class="nav-bar" style="height:{{navBarHeight}}px;">
|
|
|
|
+ <view class="view" style="height:{{menuHeight}}px;top:{{menuTop}}px;">
|
|
|
|
+ <view class="selectGrade" bindtap="showGrade">{{userInfo.gradeName}}</view>
|
|
|
|
+ <view class="title">{{title}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
-</view>
|
|
|
|
-<!--
|
|
|
|
|
|
+ <!--
|
|
内容区域:
|
|
内容区域:
|
|
自定义顶部栏用的fixed定位,会遮盖到下面内容,注意设置好间距
|
|
自定义顶部栏用的fixed定位,会遮盖到下面内容,注意设置好间距
|
|
-->
|
|
-->
|
|
-<view class="content" style="margin-top:{{navBarHeight}}px;"></view>
|
|
|
|
-<view class="headerBg" style="top:{{navBarHeight}}px;"></view>
|
|
|
|
|
|
+ <view class="content" style="margin-top:{{navBarHeight}}px;"></view>
|
|
|
|
+ <view class="headerBg" style="top:{{navBarHeight}}px;"></view>
|
|
|
|
+</block>
|
|
|
|
|
|
-<view wx:if="{{isGradeShow}}" class="gradeContainer" catchtouchmove='true' style="margin-top:{{navBarHeight}}px;"
|
|
|
|
- bindtap="closeGrade">
|
|
|
|
|
|
+<view wx:if="{{isGradeShow}}" class="gradeContainer" catchtouchmove='true'
|
|
|
|
+ style="margin-top:{{showNav?navBarHeight:0}}px;" bindtap="closeGrade">
|
|
<view class="gradeBox" catchtap="selectGrade">
|
|
<view class="gradeBox" catchtap="selectGrade">
|
|
<view class="title">请选择年级</view>
|
|
<view class="title">请选择年级</view>
|
|
<view class="content">
|
|
<view class="content">
|