mycertificate.wxml
2.1 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
<!-- 电子证件 -->
<view class="mycertificate">
<image wx:if="{{list.status=='志愿者(待学习)'}}" src="http://volunteer.w.bronet.cn/imgs/idcard2.png"></image>
<image wx:else src="/imgs/dianzizhengjian1.png"></image>
<view class="mycertificate_text">
<view class="goods_left">
<view>姓名:{{list.name}}</view>
<view>身份:{{list.status}}</view>
<view>编号:{{list.user_num}}</view>
<view>学时:{{list.work_time==null?'':'list.work_time'}}</view>
</view>
<image class="One_inch_photos" src="{{list.avatar}}"></image>
</view>
</view>
<view class="mycertificate distance">
<image wx:if="{{list.status=='志愿者(待学习)'}}" src="http://volunteer.w.bronet.cn/imgs/idcard1.png"></image>
<image wx:else src="/imgs/dianzizhengjian.png"></image>
<view class="mycertificate_text">
<view class="goods_lefts">
<image class="logo" src="https://ftp.bmp.ovh/imgs/2020/10/6ce74d64f7aa1e53.png"></image>
<view>白求恩志愿者</view>
</view>
<image class="erweima" src="https://ftp.bmp.ovh/imgs/2020/10/fa5e66b52e2ccb82.jpg"></image>
</view>
<!-- 注意事项 -->
<view class="good_line">
<view></view>
注意事项
</view>
<view class="good_typeface">1. 本证件限个人使用,不得转借他人</view>
<view class="good_typeface">2. 电子证件不等效于实体证件,公益活动上岗时请佩戴您的实体证件 </view>
<view class="good_typeface">3. 特别情况未携带实体证件,需证明身份可出示此电子证件 </view>
<view class="good_typeface">4. 如实体证件丢失请及时联系白求恩志愿者中心补办</view>
</view>
<view class="btn" wx:if="{{list.status!=='志愿者(待学习)'}}">
<!-- <button hover-class="none"> 将电子证件生成图片</button> -->
<view class="generate" bindtap="getPic" data-type="{{1}}">生成正面图片</view>
<view class="generate" bindtap="getPic" data-type="{{2}}">生成背面图片</view>
</view>