소스 검색

无信息隐藏滚动通知

zhaoxiaohai 3 년 전
부모
커밋
e46edc0ba2
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      pages/tabbar/home/index.wxml

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

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