scan-result.wxml
1.58 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
<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">
<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 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:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text>
<view class="btn-wrap">
<!-- <view class="btn">再扫一次</view> -->
<view bindtap="onMyIntegralHandler" class="btn btn2">查看我的积分</view>
<!-- <view class="btn btn2">联系客服</view> -->
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>