attentiontwo.wxml
2.3 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
<view class="myattention">
<image src="/img/atten.png"></image>
</view>
<view class="noke">[{{title}}]</view>
<view class='noketext'>{{description}}</view>
<!-- <view class="noketext up">每个方向都有同样的上升空间!</view> -->
<view class='tupic'>
<image src="/img/roletwo.png"></image>
<view class="redname">{{rings[1].description}}</view>
<view class="redkuang">{{rings[1].sort_name}}{{rings[1].percent}}</view>
<view class="pink">{{rings[0].description}}</view>
<view class="pinkkuang">{{rings[0].sort_name}}{{rings[0].percent}}</view>
<view class="yellowname">{{rings[4].description}}</view>
<view class="yellowkuang">{{rings[4].sort_name}}{{rings[4].percent}}</view>
<view class="purplename">{{rings[2].description}}</view>
<view class="purplekuang">{{rings[2].sort_name}}{{rings[2].percent}}</view>
<view class="greenname">{{rings[5].description}}</view>
<view class="greenkuang">{{rings[5].sort_name}}{{rings[5].percent}}</view>
<view class="bluename">{{rings[3].description}}</view>
<view class="bluekuang">{{rings[3].sort_name}}{{rings[3].percent}}</view>
</view>
<view class="code">
<view class="codeleft">
<image src="{{qrcode}}"></image>
</view>
<view class="coderight">
<view class="coderighttop">长按识别二维码</view>
<view class="coderighttopk">获取你的注意力测验单</view>
</view>
</view>
<view class="sharehai">
<!-- <view class="shareleft">分享给好友</view> -->
<view class="shareright" bindtap="savephoto">生成海报</view>
</view>
<!-- 海报 -->
<view class='pp' bindtap="hideceng">
<view class='imagePathBox' hidden="{{maskHidden == false}}">
<image src="{{imagePath}}" class='shengcheng'></image>
<!-- <button class='baocun' bindtap='baocun'>保存图片至相册</button> -->
<view class="share">
<!-- <view class="shareleft">分享给好友</view> -->
<button class="shareleft" catchtap="share" open-type='share'>分享给好友</button>
<view class="shareright" bindtap="baocun">保存图片</view>
</view>
</view>
<view hidden="{{maskHidden == false}}" class="mask"></view>
<view class="canvas-box">
<canvas style="width:375px;height:603px;position:fixed;top:9999px;border-radius:56rpx" canvas-id="mycanvas" />
</view>
</view>