dangjianwork.wxml 2.4 KB
<!--pages/attract/attract.wxml-->
<view class='top_view'>

<view class="swiper_image" wx:if="{{imgUrls.length!=0}}">
    <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" >
      <block wx:for="{{imgUrls}}" wx:key="doct">
        <swiper-item style="border-radius:10px;" >
          <image src="{{item.image}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150"  data-src="{{item.url}}" data-id="{{item.id}}" bindtap='bannerDetail' data-title="{{item.title}}" data-content="{{item.content}}"/>
        </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?"nameactive":""}}' 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;margin-top:{{top}}">
  <view class='news_detail_items'>
    <block wx:for='{{list}}' wx:key=''> 
        <navigator class='news_detail_item' url='/pages/attract/dangjiandetail/dangjiandetail?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>