Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

coupon.wxml 2.6KB

5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/coupon/coupon.wxml-->
  2. <view class="container" style="background-color:#f6f6f6;">
  3. <image class="couponImg" src="../../static/coupon/Coupon1.png"></image>
  4. <view class="detailsBox shadow">
  5. <image class="bottomBg" src="../../static/coupon/bottomBg1.png"></image>
  6. <image class="decorate" src="../../static/coupon/01.png"></image>
  7. <view class="detailsInfo">
  8. <text class="txt1">{{coupon_name}}</text>
  9. <text class="txt2">购买时间:{{couponTime}}</text>
  10. </view>
  11. <view class="detailsRight" wx:if="{{type==2}}"><image class="txt" src="../../static/coupon/txt.png"></image>{{totalNums}}<text class="company">张</text>
  12. </view>
  13. <image class="logo" src="../../static/coupon/logo.png" wx:if="{{type==1}}"></image>
  14. </view>
  15. <view class="middleContent shadow">
  16. <view id="couponCheck" class="relative clearfix" wx:if="{{type==1&&state!=2}}">
  17. <image class="couponIcon" src="../../static/coupon/couponIcon.png"></image>
  18. <text class="number">券码:{{couponCode}}</text>
  19. <view class="txt">此券有效</view>
  20. </view>
  21. <view id="couponDetails" class="relative clearfix" wx:if="{{type==1&&state==2}}">
  22. <view class="title">核销详情</view>
  23. <view class="detailsItem">
  24. <view class="sign"></view>
  25. <text class="itemTitle">券码</text>
  26. <text class="itemContent">{{couponCode}}</text>
  27. </view>
  28. <view class="detailsItem">
  29. <view class="sign"></view>
  30. <text class="itemTitle">类型</text>
  31. <text class="itemContent">{{couponType}}</text>
  32. </view>
  33. <view class="detailsItem">
  34. <view class="sign"></view>
  35. <text class="itemTitle">时间</text>
  36. <text class="itemContent">{{duration}}</text>
  37. </view>
  38. <view class="state">核销成功</view>
  39. </view>
  40. <view id="vCodeBox" wx:if="{{type==2}}">
  41. <input placeholder="输入短信验证码" placeholder-style="color:#FFFFFF;font-size:30rpx;" value="{{code_num}}" bindinput="changeCode"></input>
  42. <view class="countBox">
  43. <text>核销</text>
  44. <view class="countContent">{{nums}}
  45. <image class="symbolBox" src="../../static/coupon/symbolLeft.png" style="left:-5rpx;" bindtap="reduceCoupon"></image>
  46. <image class="symbolBox" src="../../static/coupon/symbolRight.png" style="right:-5rpx;" bindtap="addCoupon"></image>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <button class="btn shadow {{state==1?'select':''}}" bindtap="writeOff" wx:if="{{state!=2}}">核销</button>
  52. <button class="btn shadow" bindtap="goHome" wx:else>确定</button>
  53. </view>