prize-detail.wxml 3.05 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="decoration">
    <image class="d1" src="../../image/oss/my-card/my-card-d1.png" mode="widthFix" />
    <image class="d2" src="../../image/oss/my-card/my-card-d2.png" mode="widthFix" />
    <!-- <image class="d3" src="../../image/oss/question/question-c1.png" mode="widthFix" /> -->
  </view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <!-- 奖品 -->
      <view class="prize">
        <image class="ebg" mode="widthFix" src="../../image/oss/coupon-detail/cd-c2.png" />
        <view class="cont {{used?'used':''}}">
          <view class="space1"></view>
          <view class="top">
            <view class="display">
              <image class="prod" mode="aspectFit" src="../../image/prize/prize-1.png" />
            </view>
            <view class="info">
              <view class="name">{{couponInfo.name}}</view>
              <view class="c1">手机号:{{userInfo.mobile}}</view>
              <view class="c1">派券日期:{{couponInfo.startDateStr}}</view>
              <view class="c1">有效日期:{{couponInfo.endDateStr}}</view>
            </view>
          </view>
          <!-- 二维码 -->
          <view class="qrcode">
            <image wx:if="{{qrImagePath}}" class="image" mode="widthFix" src="{{qrImagePath}}" />
            <canvas wx:else canvas-id="qrcanvas" />
          </view>
          <view class="code">{{couponInfo.couponCode}}</view>
          <!-- 预约自提按钮 -->
          <view wx:if="{{!wishInfo.storeCode}}" bindtap="onNearbyStoreHandler" class="reservation-btn">
            预约自提门店
          </view>
          <!-- 预约成功 -->
          <view wx:else class="reservation-complete">
            <view class="tips">您已成功预约,请在有效期内前往领取</view>
            <view class="line"></view>
            <view class="pos">
              <view class="info">
                <view class="tit">
                  <view class="name">{{wishInfo.storeName}}</view>
                  <view wx:if="{{wishInfo.distance}}" class="distance">
                    距您{{wishInfo.distance}}
                  </view>
                </view>
                <view class="address">{{wishInfo.storeAddress}}</view>
              </view>
              <view bindtap="onShowLocHandler" data-data="{{item}}" class="loc">
                <image class="icon" mode="widthFix" src="../../image/oss/icon/icon-loc.png" />
                <view class="txt">导航</view>
              </view>
            </view>
          </view>
        </view>
      </view>
      <!-- 使用说明 -->
      <view class="use-notice">
        <use-notice-comp></use-notice-comp>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ nearbyStoreVisible }}" position="bottom" bind:click-overlay="hideMask">
  <tips-nearby-store-comp id="nearbyStoreComp" bind:evtcomp="evtcomp" wish-info="{{wishInfo}}" location="{{location}}" selectedMode="{{true}}"></tips-nearby-store-comp>
</van-popup>