clock.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
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
103
104
105
106
<view class="dengbox" wx:if="{{qrcode==''&&token!=''}}">
<view class="writebac">
<!-- -->
<view class="toppic">
<image src="/img/write.png"></image>
</view>
<view class="writename">请先登记个人信息</view>
<view class="writebtn" bindtap="dengji">去登记</view>
</view>
</view>
<view class="{{day<14&&status==2?'dakapagered':'dakapageblue'}}" wx:else>
<view class="clockbac">
<!-- -->
<!-- 打卡图标-->
<view class="clockpic" wx:if="{{day<14&&status==2}}">
<image src="/img/rediusse.png"></image>
</view>
<view class="clockpic" wx:else>
<image src="/img/clocksuccess.png"></image>
</view>
<view class="clocknameone" wx:if="{{token!=''}}">打卡成功</view>
<view class="clocknameone" wx:else>等待打卡</view>
<view wx:if="{{token!=''&&qrcode!=''}}">
<view class="clocktext" wx:if="{{is_first==1}}">
您已完成
<text class="first">首次</text>打卡
</view>
<view class="clocktext" wx:else>
您距离首次打卡
<text class="first">{{day}}</text>天
</view>
</view>
<!-- 打卡时间 -->
<view class="clocktimebox" wx:if="{{qrcode!=''&&token!=''}}">
<view class="clocktimetop flextwo onetop">
<view class="clocktimeleft">
首次打卡
</view>
<view class="clocktimeright">
<view class="clockname">
{{first_scan.company_name}}
</view>
<view class="clocktime">{{first_scan.createtime}}</view>
</view>
</view>
<view class="clocktimetop flextwo sectop">
<view class="clocktimeleft">
本次打卡
</view>
<view class="clocktimeright">
<view class="clockname">
{{this_scan.company_name}}
</view>
<view class="clocktime">{{this_scan.createtime}}</view>
</view>
</view>
</view>
<!-- 外地还是本地 -->
<view class="waiben" wx:if="{{token!=''&&qrcode!=''}}">
<!-- -->
<view class="wai" wx:if="{{status=='1'}}">{{address}}</view>
<view class="nei" wx:else>{{address}}</view>
<view class="writebtn jilubtn redbtn" bindtap="clocklist" wx:if="{{day<14&&status==2}}">打卡记录</view>
<view class="writebtn jilubtn " bindtap="clocklist" wx:else>打卡记录</view>
<!-- 页面二维码 -->
<view class="jiaotop">
<view class="botjiao" bindtap="sub">
<image src="/img/icon_q.png"></image>
</view>
</view>
</view>
</view>
</view>
<!-- 弹层二维码 -->
<view class="registerk" wx:if="{{showcode}}">
<view class="codewrap">
<view class="codetop">
<image src="/img/codetopimg.png"></image>
<view class="codename">我的二维码</view>
</view>
<view class="codekimg" bindlongpress="baocun">
<image src="{{codeurl}}"></image>
</view>
<view class="ansave">长按保存二维码</view>
</view>
<view class="closeimg" bindtap="closecode">
<image src="/img/closecode.png"></image>
</view>
</view>