attract.wxml
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--pages/attract/attract.wxml-->
<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>
<!-- 新闻 -->
<scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="news_detail_container" hidden='{{!ifData}}' scrollTop="{{scrollTop}}" scrollY="true" style="height:{{windowHeight-200}}px;">
<view class='news_detail_items'>
<block wx:for='{{list}}' wx:key=''>
<navigator class='news_detail_item' url='/pages/attract/detail/detail?id={{item.id}}' id="{{item.id}}" bindtap='btn_matrix'>
<view class='new_info'>
<view class='new_title'>{{item.title}}</view>
<view class='new_time_address'>
<view class='form' wx:if="{{item.from}}">{{item.from}}</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.photos[0]}}' mode='widthFix'></image>
</view>
</navigator>
</block>
</view>
</scroll-view>
<view class="none-box" hidden="{{ifData}}">
<view>暂无相关信息</view>
</view>