scan-result.wxml 1.61 KB
<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 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:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text>
          <view class="btn-wrap">
            <view bindtap="onScanHandler" 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>