You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.0 KiB

  1. <!--pages/couponRecord/index.wxml-->
  2. <!-- <image class='img' src='./../../static/images/bg.png' mode='widthFix'></image> -->
  3. <view class='tab' style="margin-top:20rpx;">
  4. <view class="{{flag=='coupons'?'couponsL':'couponsR'}}" bindtap='getCoupons'>赠券库存</view>
  5. <view class="{{flag=='record'?'couponsL':'couponsR'}}" bindtap='getRecord'>注券记录</view>
  6. </view>
  7. <!-- 赠券库存 -->
  8. <view wx:if='{{flag == "coupons"}}'>
  9. <view class='hide' wx:if='{{couList.length==0}}'>
  10. <image class='jiaoyi' src='./../../static/images/jiaoyi.png' mode='widthFix'></image>
  11. <text>暂无数据</text>
  12. </view>
  13. <view class="contents" wx:if='{{couList.length>0}}'>
  14. <view wx:for="{{couList}}" wx:key="index">
  15. <view class="contentL clearfix {{item.status == 1?'mark':''}} ">
  16. <view>
  17. <text>{{item.title}}</text>
  18. <text>{{'库存:'+item.merchantRemain}}</text>
  19. </view>
  20. <view wx:if="{{item.validStartDate}}">
  21. <text>{{'有效期:'+item.validStartDate+ '至' +item.validEndDate}}</text>
  22. <text class='guoqi' wx:if="{{item.status == 1}}">已作废</text>
  23. </view>
  24. <view wx:if="{{!item.validStartDate}}">
  25. <text>{{'有效期:自领取后'+ item.validDays+'日内有效'}}</text>
  26. <text class='guoqi' wx:if="{{item.status == 1}}">已作废</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="loading" wx:if="{{loading}}">
  32. {{content1}}
  33. </view>
  34. </view>
  35. <!-- 注券记录 -->
  36. <view wx:if='{{flag == "record"}}'>
  37. <view class='head'>
  38. <image src='./../../static/images/reviveimg.png' mode='widthFix'></image>
  39. <view class='time'>
  40. <view>
  41. <text>开始日期</text>
  42. <picker mode="date" value="{{date}}" start="1970-01-01" end="{{endDate}}" bindchange="bindDateChange">
  43. <view class="picker">
  44. {{date}}
  45. </view>
  46. </picker>
  47. </view>
  48. <view>
  49. <text></text>
  50. <text>至</text>
  51. </view>
  52. <view>
  53. <text>结束日期</text>
  54. <picker mode="date" value="{{date2}}" start="1970-01-01" end="{{endDate}}" bindchange="bindDateChange2">
  55. <view class="picker">
  56. {{date2}}
  57. </view>
  58. </picker>
  59. </view>
  60. </view>
  61. </view>
  62. <button class='btn' hover-class='active' bindtap='search'>查询</button>
  63. <view class="contents">
  64. <view wx:for="{{list}}" wx:key="index">
  65. <view class='date-t'>{{item.dateR}}</view>
  66. <view class='content clearfix' wx:for="{{item.value}}" wx:for-item="item01" wx:key="{{index01}}">
  67. <view>{{item01.title}}</view>
  68. <view>
  69. <text>{{item01.userName}}</text>
  70. <text>{{'用户手机:'+item01.phone}}</text>
  71. </view>
  72. <view>
  73. <text>{{'操作人:'+item01.operator}}</text>
  74. <text>{{'注券时间:'+item01.createDate01}}</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="loading" wx:if="{{loading}}">
  80. {{content}}
  81. </view>
  82. </view>