index.wxml
1.5 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
<!--index.wxml-->
<swiper indicator-dots="true" autoplay="true" indicator-color='#8C9194' indicator-active-color='#ffffff' class="slide-image">
<navigator wx:for="{{datalist.slide}}" wx:key hover-class="none" url='/pages/img_txt/img_txt?id={{item.id}}&status=1' >
<swiper-item>
<image src="{{item.image}}" />
</swiper-item>
</navigator>
</swiper>
<view class='vold_line'></view>
<view class='index_volunteertitle'>
<view class='title'>志愿者</view>
<navigator url='/pages/more/more' hover-class="none">更多</navigator>
</view>
<view class='volunteerbox'>
<view class='volunteercell' wx:for='{{datalist.volunteer}}' wx:key id='{{item.id}}'>
<view class='cell_top'>
<view class='cellimg'>
<image src='{{item.photo?item.photo:"http://volunteer.w.bronet.cn/imgs/wode_02@2x.png"}}'></image>
</view>
<view>{{item.name}}</view>
</view>
<view>{{item.duty}}
</view>
</view>
</view>
<view class='vold_line'></view>
<view class='index_newbox'>
<view class='title activity_title'>活动快讯</view>
<scroll-view scroll-y='true' bindscrolltolower='getdatalist' style='height:{{scroll_height}}rpx'>
<view class='new_box' wx:for='{{activity}}' wx:key >
<navigator class='new_cell' wx:for='{{item}}' wx:key url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<view class='new_cellmain'>
<view class='new_img'>
<image src='{{item.thumbnail}}'> </image>
</view>
<view class='new_title'>{{item.activity_name}}</view>
<view>{{item.time}}</view>
</view>
</navigator>
</view>
</scroll-view>
</view>