Browse Source

无信息隐藏滚动通知

zhaoxiaohai 3 years ago
parent
commit
e46edc0ba2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pages/tabbar/home/index.wxml

+ 1 - 2
pages/tabbar/home/index.wxml

@@ -21,12 +21,11 @@
 </view>
 <view style="height: 130rpx;" />
 <!-- 滚动通知 -->
-<view class="scroll-area" data-item="{{notice}}" catchtap="toMsg">
+<view class="scroll-area" data-item="{{notice}}" catchtap="toMsg" wx:if="{{notice}}">
     <van-notice-bar custom-class='notice-bar' background="none" color='#666' text="{{notice.message}}">
         <text slot="left-icon" class="iconfont icon-a-shouyexiaoxigundongquxiaoxi" />
     </van-notice-bar>
 </view>
-
 <!-- 宫格区域 -->
 <My_card custom-class='grld'>
     <navigator url="#" class="item" wx:for="{{gridList}}" wx:key="{{index}}" data-item="{{item}}" catchtap="applications">