vipCard.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <view class="tabs">
  2. <view class="tabs-wrap flex-align-center tabs-radius">
  3. <view class="item flex-center line {{current == 0 ? 'active' : ''}}" bindtap="onTabsChange" data-id="0">未激活</view>
  4. <view class="item flex-center line {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">已激活</view>
  5. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">已退款</view>
  6. </view>
  7. <view class="tabs-content">
  8. <view class="item tabs-radius" wx:for="{{list}}" wx:key="index">
  9. <view class="item-top flex-align-center">
  10. <text class="ellipsis">订单编号:{{item.order_sn}}</text>
  11. <text wx:if="{{item.status == 0}}">未激活</text>
  12. <text wx:if="{{item.status == 1}}">已激活</text>
  13. <text wx:if="{{item.status == -2}}">退款中</text>
  14. <text wx:if="{{item.status == -3}}">已退款</text>
  15. </view>
  16. <view class="item-content flex">
  17. <image src="{{item.cover_url}}"></image>
  18. <view class="content flex-column">
  19. <text style="font-family: PingFangSC-Medium;color:#000;">{{item.card_name}}</text>
  20. <text style="font-size: 14px;color: #333333;">微信支付 实付¥{{item.price}}</text>
  21. <text style="font-size: 14px;color: #666666;">下单时间:{{item.create_time}}</text>
  22. </view>
  23. </view>
  24. <view class="item-btn flex-align-center" wx:if="{{item.status == 0}}">
  25. <view class="btn cancel-btn" bindtap="onCancelOrder" data-id="{{item.order_id}}">申请退款</view>
  26. <view class="btn use-btn flex-center" bindtap="onOpenPopup" data-id="{{item.order_id}}">立即激活</view>
  27. </view>
  28. </view>
  29. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  30. </view>
  31. </view>
  32. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onCancelUse">
  33. <view class="use-popup flex-column">
  34. <text style="font-size: 36rpx;">激活会员卡</text>
  35. <text style="color: #666666;margin: 28rpx 0 78rpx;">会员卡确认激活后,立即生效。</text>
  36. <!-- <view class="tips flex-column">
  37. <text class="red">[温馨提示]</text>
  38. <text class="red">确认激活后,该会员卡将立即生效;</text>
  39. <text class="red">如暂不激活,可在“已购会员卡”中去选择激活。</text>
  40. </view> -->
  41. <view class="use-btn">
  42. <view class="btn cancel flex-center" bindtap="onCancelUse">取消</view>
  43. <view class="btn confirm flex-center" bindtap="onConfirmUse">确定</view>
  44. </view>
  45. <!-- [温馨提示] 确认激活后,该会员卡将立即生效; 如暂不激活,可在“已购会员卡”中去选择激活。 -->
  46. </view>
  47. </wux-landscape>