scan-result.wxml
2.08 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
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="app__content main">
<view class="top-space"></view>
<view class="content" wx:if="{{!scaning}}">
<view wx:if="{{prizeInfo}}" class="border scan">
<view wx:if="{{prizeInfo.qrCodeStatus == 1}}" class="result success">
<text class="tips tips1">恭喜获得{{prizeInfo.pointNum}}奖金!</text>
<view class="tips tips2">
账户共有
<span class="t1">{{prizeInfo.memberPoints}}</span>
奖金
</view>
<view class="btn-wrap">
<view bindtap="onScanHandler" class="btn">再扫一次</view>
<view bindtap="onMyIntegralHandler" class="btn btn2">查看我的奖金</view>
</view>
</view>
<view wx:else class="result fail">
<!-- 码已经被使用 -->
<text wx:if="{{prizeInfo.qrCodeStatus == 2}}" class="tips tips1">
此产品码已被扫过!\n若有异常,请联系客服
</text>
<!-- 码已经被使用 -->
<text wx:elif="{{prizeInfo.qrCodeStatus == 3}}" class="tips tips1">
奖金获取失败!\n产品奖金码获取对象为:\n电工及终端消费者。
</text>
<!-- 其他异常 -->
<text wx:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text>
<view class="btn-wrap">
<!-- 非 产品奖金码获取对象为:电工及终端消费者。 -->
<block wx:if="{{prizeInfo.qrCodeStatus == 3}}">
<view bindtap="onSureHandler" class="btn">我知道了</view>
</block>
<block wx:else>
<view bindtap="onScanHandler" class="btn">再扫一次</view>
<view bindtap="onMyIntegralHandler" class="btn btn2">查看我的奖金</view>
</block>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>