myactivity.wxml
4.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!-- 任务栏-->
<view class="navbar">
<view class="item {{nav==1?'choose':''}}" bindtap="bindNav" data-nav="{{1}}">活动打卡</view>
<view class="item {{nav==2?'choose':''}}" bindtap="bindNav" data-nav="{{2}}">待提交报告</view>
<view class="item {{nav==3?'choose':''}}" bindtap="bindNav" data-nav="{{3}}">完成的活动</view>
</view>
<view class="line"></view>
<view class="goods_index">
<view wx:if="{{nav==1}}">
<!-- 打卡 -->
<view class="navbar">
<view class="item {{navs==1?'choose':''}}" bindtap="bindtype" data-navs="{{1}}">待打卡</view>
<view class="item {{navs==2?'choose':''}}" bindtap="bindtype" data-navs="{{2}}">已完成打卡</view>
</view>
<!-- 待打卡 -->
<view wx:if="{{navs==1}}" >
<view class="myactive_wrap" bindtap="getdaka" data-id="{{item.id}}" wx:for="{{list}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.date}}
{{item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.activity.thumbnail}}"></image>
<view class="myactive_name">
<view>{{item.activity_name}}</view>
<view class="myactive_gps">
<image src="/imgs/didian-14.png"></image> {{item.address}}
</view>
</view>
</view>
<view class="daka">待打卡</view>
</view>
</view>
<!--打卡已完成 -->
<view wx:elif="{{navs==2}}">
<view class="myactive_wrap" wx:for="{{list}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.date}}
{{ item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.activity.thumbnail}}"></image>
<view class="myactive_name">
<view>{{item.activity_name}}</view>
<view class="myactive_gps">
<image src="/imgs/didian-14.png"></image> {{item.address}}
</view>
</view>
</view>
<view class="daka">完成打卡</view>
</view>
</view>
</view>
<!--待提交报告 -->
<view wx:elif="{{nav==2}}">
<view class="myactive_wrap" wx:for="{{datalist}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.start_time}}
{{ item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.thumbnail}}"></image>
<view class="myactive_name">
<view>{{item.activity_name}}</view>
<view class="myactive_gps">
获得5小时工时
</view>
</view>
</view>
<view class="daka dasubmit" bindtap="getreport">提交报告</view>
</view>
</view>
<!-- 完成的活动 -->
<view wx:elif="{{nav==3}}">
<view class="myactive_wrap" wx:for="{{datalist}}">
<view class="myactive_time">
<image src="/imgs/shijian-19.png"></image>{{item.start_time}}
{{ item.start_clock_time}}-{{item.end_clock_time}}
</view>
<view class="myactive_list">
<image src="{{item.thumbnail}}"></image>
<view class="myactive_name">
<view>{{item.activity_name}}</view>
<view class="myactive_gps">
<image src="/imgs/didian-14.png"></image> 获得5小时工时
</view>
</view>
</view>
</view>
</view>
</view>