give.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <import src="./template/introduce.wxml"/>
  2. <view class="give">
  3. <view class="give-content" wx:if="{{info.status==0}}">
  4. <view class="content-photo">
  5. <image src="{{info.avatar}}" mode="aspectFill"/>
  6. </view>
  7. <view class="font16" style="font-weight:550">{{info.nickname}}</view>
  8. <view class="give-you">赠你</view>
  9. <view class="font14 mTop10" style="font-weight:600">【冬夏令营成长卡】</view>
  10. <view class="font14 mTop5">价值1999元,免费参加活动</view>
  11. <view class="content-card">
  12. <image class="card-image" src="{{info.cardLogo}}" mode="aspectFill"/>
  13. <view class="content-card-time">
  14. <text>
  15. No.{{info.cardNo}}
  16. 有效期:{{info.expireTime}}
  17. </text>
  18. </view>
  19. </view>
  20. <input class="content-input" type="number" cursor-spacing='20' placeholder="输入手机号领取" maxlength="11" bindinput="inputChange"></input>
  21. <button class="content-button" type="warn" bindtap="submit">立即领取</button>
  22. </view>
  23. <view class="result-content" wx:else>
  24. <view class="content-card" hidden="{{info.status!=5}}">
  25. <image class="card-image" src="{{info.cardLogo}}" mode="aspectFill"/>
  26. <view class="content-card-time">
  27. <text>
  28. No.{{info.cardNo}}
  29. 有效期:{{info.expireTime}}
  30. </text>
  31. </view>
  32. </view>
  33. <view class="icon result-icon subtitleColor {{info.status==3?'icon-cry':'icon-smile'}}"></view>
  34. <view class="font14">
  35. <view wx:if="{{info.status==1}}">
  36. <text>
  37. 恭喜你,
  38. <text class="weight">【冬夏令营成长卡】</text>领取成功。
  39. </text>
  40. </view>
  41. <view wx:if="{{info.status==3}}">
  42. <text>
  43. 你来晚了,
  44. <text class="weight">【冬夏令营成长卡】</text>已被领取。
  45. </text>
  46. </view>
  47. <view wx:if="{{info.status==5}}">
  48. <text>
  49. 你送出的<text class="weight">【冬夏令营成长卡】</text>
  50. 已被<text class="subtitleColor">{{info.phone || ''}}</text>领取。
  51. </text>
  52. </view>
  53. </view>
  54. <view class="buttons-row buttons-gutter {{info.status==5?'buttons-ones':''}}">
  55. <button class='button button-radius button-plain' hidden="{{info.status==5}}">
  56. <navigator url="/pages/home/index" hover-class="none" open-type="switchTab">
  57. 查看活动
  58. </navigator>
  59. </button>
  60. </view>
  61. </view>
  62. <view class="mTop20">
  63. <template is="legal" data="{{isClass:true}}" />
  64. </view>
  65. </view>
  66. <navigator class="common_fix common_home" open-type="reLaunch" url="/pages/home/index" hover-class="none">
  67. <text class="icon icon-home"></text>
  68. </navigator>