my.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--pointExchange/pages/my/my.wxml-->
  2. <view class='w100 flex-a-center flex-bet view-li-wrap'>
  3. <view wx:for="{{typeList}}" class="view-li {{typeListIndex == index? 'view-li-active' : ''}}" data-index="{{index}}" bindtap="switchType">
  4. {{item.name}}
  5. </view>
  6. </view>
  7. <view class="main">
  8. <block wx:if="{{listData.length>0}}">
  9. <scroll-view scroll-y>
  10. <view class="card" wx:for="{{listData}}" data-id="{{item.proId}}" bindtap="toDatail">
  11. <view style="{{item.statusName=='未使用'?('background-image: url('+appAssetsUrl+'/images/status/status1.png);'):''}}" class="status">
  12. {{item.statusName}}
  13. </view>
  14. <image mode="aspectFill" src="{{item.homeUrl}}" class="head"></image>
  15. <view class="right">
  16. <view class="title">{{item.productName}}</view>
  17. <view class="tip">{{item.storeName}}</view>
  18. <view class="addr">
  19. <i class="iconfont icon-dizhi icon-home-dizhi"></i>
  20. <text class="area">{{item.addr}}</text>
  21. </view>
  22. <view class="sub">
  23. {{item.createTime}}
  24. </view>
  25. <button wx:if="{{item.statusName=='未使用'}}" class="btn" catchtap="showPopup" data-name="popup3" data-cdkey="{{item.cdkey}}" data-needScore="{{item.needScore}}" data-cdkey="{{item.cdkey}}">确认使用</button>
  26. </view>
  27. </view>
  28. </scroll-view>
  29. </block>
  30. <block wx:if="{{listData.length==0}}">
  31. <view class='tc h100'>
  32. <image src="{{nodata}}" class='nodata-img'></image>
  33. </view>
  34. </block>
  35. </view>
  36. <popup2 id='popup3' title='确认使用' btn_no='取消使用' btn_ok='确定使用' bind:error="_error"
  37. bind:success="applyCoupon" data-name="popup3">
  38. <view slot="content" style="width: 60%;padding: 44rpx 0 38rpx 0;">
  39. 请在店员指导下使用该券兑换码:<text style="color: #0090FF;">{{itemData.cdkey}}</text>
  40. </view>
  41. </popup2>