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.

39 lines
1.9 KiB

  1. <!--pages/payment/mjCoupon/mjCoupon.wxml-->
  2. <view class='solution1' style='margin-top:30rpx;'>
  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. <view class='msg'>
  8. <view class='footer' wx:if='{{flag == "record"}}'>
  9. <text>手机号</text>
  10. <input placeholder='请输入' type='number' bindinput="getList" value='{{phone}}'></input>
  11. </view>
  12. <button wx:if='{{flag == "record"}}' class='sub-button' bindtap='submitForm'>查询</button>
  13. <button wx:if='{{flag == "coupons"}}' class='submit' hover-class='active' bindtap='gotoSaoyiSao' style='display:block;'>识别会员码查询 </button>
  14. </view>
  15. <view class='hide' wx:if="{{avaList == []}}" >
  16. <image class='jiaoyi' src='./../../../static/images/jiaoyi.png' mode='widthFix'></image>
  17. <text>暂无可赠送优惠券</text>
  18. </view>
  19. <view class='listBox' wx:if="{{avaList.length > 0}}">
  20. <view class='couList' wx:for="{{avaList}}" wx:key="index" bindtap='choicecoupon' data-index='{{index}}' data-title='{{item.title}}' data-coupon_id='{{item.coupon_id}}' data-price='{{item.price}}' data-enable='{{item.enable}}' >
  21. <view class=" clearfix {{(item.enable == 0)?'mark':''}} " >
  22. <image class='gou' mode='widthFix' src='./../../../static/images/selected2.png' wx:if='{{item.checked}}'></image>
  23. <view class='conBox' >
  24. <view>{{item.title}}</view>
  25. <view>
  26. <text>{{item.price/100}}</text>
  27. </view>
  28. </view>
  29. <view class='yxq'>
  30. <text>{{item.coupon_description}}</text>
  31. </view>
  32. <view class='yxq'>
  33. <text>有效时间:{{item.expire_time}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>