love.wxml
3.0 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!--pages/love/love.wxml-->
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="true" indicator-active-color='#fff'>
<block wx:for="{{postdata.slide}}">
<swiper-item>
<view class='item_img'>
<image src="{{item.image}}" class="slide-image" />
</view>
</swiper-item>
</block>
</swiper>
<view class='title_box' >
<navigator class='title_item' url='/pages/topline/topline' hover-class="other-navigator-hover">
<view class='title_img'>
<image src='https://wxapp.xianghejia.cn/imgs/bicon01@2x.png'></image>
</view>
<text>公益头条</text>
</navigator>
<navigator class='title_item' url='/pages/selfhelp/selfhelp' hover-class="other-navigator-hover">
<view class='title_img'>
<image src='https://wxapp.xianghejia.cn/imgs/bicon02@2x.png'></image>
</view>
<text>自助捐衣</text>
</navigator>
<view class='title_item' bindtap='{{haspower?"goapply":""}}'>
<button open-type='getUserInfo' bindgetuserinfo="start" wx:if='{{!haspower}}' data-exe='3'></button>
<view class='title_img'>
<image src='https://wxapp.xianghejia.cn/imgs/bicon03@2x.png'></image>
</view>
<text>我要求助</text>
</view>
<view class='title_item' bindtap="{{haspower?'gorecruit':''}}">
<button open-type='getUserInfo' bindgetuserinfo="start" wx:if='{{!haspower}}' data-exe='1'></button>
<view class='title_img'>
<image src='https://wxapp.xianghejia.cn/imgs/bicon04@2x.png'></image>
</view>
<text>志愿者招募</text>
</view>
</view>
<view class='new_box'>
<view class='new_first'>
<view class='new_first_title'>
<text>公益头条</text>
<navigator class='more' url='/pages/topline/topline' hover-class="other-navigator-hover" >更多</navigator>
</view>
<navigator class='new_first_img' url='/pages/topline_detail/topline_detail?id={{postdata.love_top[0].id}}' hover-class="other-navigator-hover" wx:if='{{postdata.love_top.length>0}}'>
<image src='{{postdata.love_top[0].thumbnail}}'></image>
</navigator>
<view class='new_first_txt'>{{postdata.love_top[0].title}}</view>
<view class='new_first_time'>{{postdata.love_top[0].start_time}}</view>
</view>
</view>
<view class='new_itembox'>
<navigator class='new_item' wx:for='{{postdata.love_left}}' wx:key url='/pages/topline_detail/topline_detail?id={{item.id}}' hover-class="other-navigator-hover">
<view class='new_icon'>
<image src='{{item.thumbnail}}'></image>
</view>
<view class='new_item_txtbox'>
<view class='new_itemtxt'>{{item.title}}</view>
<view class='new_first_time'>{{item.time}}</view>
</view>
</navigator>
</view>
<view class='share_btn' bindtap="{{haspower?'showposter':''}}">
<button open-type='getUserInfo' bindgetuserinfo="start" wx:if='{{!haspower}}' data-exe="2"></button>
<image src='https://wxapp.xianghejia.cn/imgs/love.png'></image>
</view>
<import src="../template/template.wxml"></import>
<view>
<template is="poster" data='{{...posterobj}}'></template>
</view>
<template is="callback" data='{{showlocation}}'></template>