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
42
43
44
<!--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='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>