scan-result.wxml 2.41 KB
<wxs module="filter" src="../../utils/utilswxs.wxs"></wxs>
<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">恭喜获得{{filter.Fen2Yuan(prizeInfo.pointNum)}}奖金!</text>
          <view class="tips tips2">
            账户共有
            <span class="t1">{{filter.Fen2Yuan(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>
          <!-- 0、码不存在 -->
          <text wx:elif="{{prizeInfo.qrCodeStatus == 0}}" class="tips tips1">此产品码不存在!\n若有异常,请联系客服</text>
          <text wx:else class="tips tips1">{{errMsg}}\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>