attract.wxml 1.7 KB
<!--pages/attract/attract.wxml-->
<view class='top_view'>
  <view class='top_banner'>
  <image src='/images/zhaoshang.png' width='100%' mode='widthFix'  bindtap='bannerDetail' id='1'></image>
</view>

<!-- 菜单按钮 -->
<view class='menu_content'>
  <scroll-view class='menu_items' scroll-x="true" scroll-left="{{navScrollLeft}}" scroll-with-animation="{{true}}">
    <block wx:for='{{policyList}}' wx:key=''>
      <view class='menu_item {{currentTab== index?"active":""}}' bindtap='switchTab' data-current='{{index}}' id='{{item.id}}'>
        {{item.name}}
      </view>
    </block>
  </scroll-view>
  <!-- <view class='paixun'>
    <image src='/images/shaixuan@3x.png' mode='widthFix'></image>
  </view> -->
</view>
</view>

<!-- 新闻 -->
<view class="news_detail_container" hidden='{{!ifData}}' style="height:{{windowHeight-205}}px;">
  <view class='news_detail_items'>
    <block wx:for='{{list}}' wx:key=''> 
        <navigator class='news_detail_item' url='/pages/attract/articleDetail/articleDetail?id={{item.id}}' id="{{item.id}}" >
          <view class='new_info'>
            <view class='new_title'><text class='recommond' wx:if='{{item.recommend}}'>推荐</text>{{item.title}}</view>
            <view class='new_time_address'>
              <view class='form' wx:if="{{item.from}}">{{item.source}}</view>
              <view class='time'>{{item.create_time_text}}</view>
            </view>
          </view>
          <view class='new_info_image' wx:if="{{item.photos.length>0}}">
            <image src='{{item.thumb_image}}' mode='widthFix'></image>
          </view>
        </navigator>
    </block>
  </view>
</view>

<view class="none-box" hidden="{{ifData}}">
    <view>暂无相关信息</view>
</view>