my-card.wxml 1.42 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="coupon">
        <view wx:for="{{prizeInfo}}" wx:key="{{index}}" class="coupon-item {{item.type==4?'coupon-item2':''}}">
          <image wx:if="{{item.type==4}}" class="ebg" mode="widthFix" src="../../image/oss/coupon/coupon-2.png" />
          <image wx:else class="ebg" mode="widthFix" src="../../image/oss/coupon/coupon-1.png" />
          <view class="cont">
            <view class="name">{{item.name}}</view>
            <view bindtap="onShowDetailHandler" data-data="{{item}}" class="detail">查看详情</view>
            <view class="card-info card-no">劵码:{{item.couponCode}}</view>
            <view class="card-info card-date">有效期:即日起至{{item.endDateStr}}</view>
          </view>
        </view>
      </view>
    </view>
    <!-- 查看门店需要 couponId -->
    <!-- <view class="store-btn" bindtap="onNearbyStoreHandler">
      <span class="c1">附近门店查询</span>
    </view> -->
  </view>
</view>