img_txt.wxml
4.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<view class='main'>
<view class='top_img'>
<image src='{{datalist.thumbnail}}'></image>
</view>
<view class='text_title'>{{datalist.activity_name}}</view>
<view class='text_time' wx:if='{{status=="1"}}'>{{datalist.time}}</view>
<view class='text_content'>
<import src="../../wxParse/wxParse.wxml" />
<template is='wxParse' data='{{wxParseData:content.nodes}}' />
</view>
<view class='memberbox' wx:if='{{datalist.join.length>0 && type != 1 && datalist.admin !=1}}'>
<view class='title'>已成功报名人员</view>
<view class='member' wx:for='{{datalist.join}}' wx:key='index'>
<view class="top">
<image src='{{item.photo}}' mode="aspectFill" />
<text>{{item.name}}</text>
</view>
<view class="duty">{{item.duty}}</view>
</view>
</view>
</view>
<view wx:if="{{type!= 1 && datalist.admin !=1}}">
<navigator class='foot' url="/pages/enroll/enroll?id={{id}}"
wx:if='{{datalist.button_status == 1 || datalist.button_status == 7}}' hover-class="none">报名</navigator>
<view class='foot' wx:if='{{datalist.button_status == 2}}' style='background: #FFD700; color: #fff;'>待审核</view>
<navigator class='foot' wx:if='{{datalist.button_status == 3}}' url="/pages/word_report/word_report?id={{id}}"
hover-class="none">工作汇报</navigator>
<view class='foot' wx:if='{{datalist.button_status == 4 || datalist.button_status == 8}}'
style='background: #ccc;color: #fff;'>工作汇报</view>
<view class='foot' wx:if='{{datalist.button_status == 5}}' style='background: #ccc;color: #fff;'>已结束</view>
<navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}' hover-class="none">成为志愿者
</navigator>
</view>
<view class="btn_box" wx:if="{{status == 1}}">
<navigator class="btn-item"
style="background: url('https://volunteer.cnpu.org/static/images/index.png') no-repeat center;background-size: cover;"
url="/pages/index/index" open-type="switchTab">首页</navigator>
<block wx:if="{{datalist.admin !=1 && datalist.is_join == 1}}">
<view class="btn-item"
style="background: url('{{datalist.button_status != 4 && datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;"
bindtap="{{datalist.button_status != 4 && datalist.activity_stage == 0 ?'edit_info':''}}"
wx:if="{{datalist.button_status == 2||datalist.button_status == 3 ||datalist.button_status == 4 || datalist.button_status==5|| datalist.button_status == 8 && datalist.admin !=1}}">
编辑</view>
<view class="btn-item"
style="background: url('{{datalist.activity_stage == 0?'https://volunteer.cnpu.org/static/images/out.png':'https://volunteer.cnpu.org/static/images/out@.png'}}') no-repeat center;background-size: cover;"
wx:if="{{datalist.button_status==8 || datalist.button_status==5 || datalist.button_status==3 && datalist.admin !=1}}"
bindtap="{{datalist.activity_stage == 0?'change_cover':''}}" data-id="1">退出</view>
</block>
<view class="btn-item"
style="background: url('https://ftp.bmp.ovh/imgs/2020/10/549450bf92e9e194.png') no-repeat center;background-size: cover;"
bindtap="change_cover" data-id="2"></view>
</view>
<view class="cover_box" catchtouchmove="true" catchtap="change_cover" data-id="{{cover_id}}" wx:if="{{cover_type}}">
<view class="show_box" wx:if="{{cover_id == 1}}">
<view class="s_title">确定退出此活动?</view>
<view class="select_box">
<view class="b_item" catchtap="change_cover" data-id="1">取消</view>
<view class="b_item" catchtap="out">确认</view>
</view>
</view>
<view class="poster_box" wx:if="{{cover_id == 2}}"
style="background: url('{{poster}}') no-repeat center;background-size: cover;">
<view class="select_box" style="margin-top:812rpx;">
<view catchtap="change_cover" catchtap="save_poster" class="b_item">保存到相册</view>
<button class="b_item" open-type="share">发送给朋友</button>
</view>
</view>
</view>
<view class="c_item" wx:for="{{join_info}}" wx:key="index">
<view class="c_title">{{item.title}}</view>
<view class="c_box">
<view class="i_info {{item.arr.length>3 && zindex<item.arr.length-1?'line':''}}" wx:for="{{item.arr}}"
wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-status="{{zitem.status}}"
data-user_id="{{zitem.user_id}}" data-join_id="{{zitem.id}}" bindtap="look_more">
<image src="{{zitem.photo}}" mode="aspectFill" />
<view class="name">{{zitem.name}}</view>
<view class="status {{zitem.status>0?(zitem.status == 2?'bgb':'bga'):'bgc'}}">
{{zitem.status>0?(zitem.status == 2?'未通过':'已通过'):'待审核'}}</view>
</view>
</view>
</view>