attract.wxml 2.3 KB
<!--pages/attract/attract.wxml-->
<view class='top_view'>
  <!-- <view class='top_banner'>
    <image src='{{banner}}' width='100%' mode='widthFix' bindtap='bannerDetail' id='1'></image>
  </view> -->


  <view class="swiper_image">
    <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
      <block wx:for="{{imgUrls}}" wx:key="doct">
        <swiper-item style="border-radius:10px;">
          <image src="{{item}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" />
        </swiper-item>
      </block>
    </swiper>

    <view class="dots">
      <block wx:for="{{imgUrls}}" wx:key="">
        <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
      </block>
    </view>

  </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.keywords}}">{{item.keywords}}</view>
            <view class='time'>{{item.create_time_text}}</view>
          </view>
        </view>
        <view class='new_info_image' wx:if="{{item.thumb_image}}">
          <image src='{{item.thumb_image}}' mode='widthFix'></image>
        </view>
      </navigator>
    </block>
  </view>
</view>

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