give.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view class="give">
  2. <view class="give-content" wx:if="{{info.status==0}}">
  3. <view class="content-photo">
  4. <image src="{{info.avatar}}" mode="aspectFill"/>
  5. </view>
  6. <view class="font16" style="font-weight:550">{{info.nickname}}</view>
  7. <view class="give-you">赠你</view>
  8. <view class="font14 mTop10">一张宝贝走天下<text style="font-weight:600">【现金券】</text></view>
  9. <view class="content-card">
  10. <view class="content-card-time">
  11. <view class="font14 middle white">—<text class="content-card-title middle">{{info.description}}</text>—</view>
  12. <view class="font16 white">¥<text class="font35">{{info.price}}</text></view>
  13. <view class="white">{{info.expireTime}}</view>
  14. </view>
  15. </view>
  16. <input class="content-input" type="number" cursor-spacing='20' placeholder="输入手机号领取" maxlength="11" bindinput="inputChange"></input>
  17. <button class="content-button" type="warn" bindtap="submit">立即领取</button>
  18. </view>
  19. <view class="result-content" wx:else>
  20. <view class="content-card" hidden="{{info.status!=5}}">
  21. <view class="content-card-time">
  22. <view class="font14 middle white">—<text class="content-card-title middle">{{info.description}}</text>—</view>
  23. <view class="font16 white">¥<text class="font35">{{info.price}}</text></view>
  24. <view class="white">{{info.expireTime}}</view>
  25. </view>
  26. </view>
  27. <view class="icon result-icon subtitleColor {{info.status==3?'icon-cry':'icon-smile'}}"></view>
  28. <view class="font14">
  29. <view wx:if="{{info.status==1}}">
  30. <text>
  31. 恭喜你,
  32. <text class="weight">【现金券】</text>领取成功。
  33. </text>
  34. </view>
  35. <view wx:if="{{info.status==3}}">
  36. <text>
  37. 你来晚了,
  38. <text class="weight">【现金券】</text>已被领取。
  39. </text>
  40. </view>
  41. <view wx:if="{{info.status==5}}">
  42. <text>
  43. 你送出的<text class="weight">【现金券】</text>
  44. 已被<text class="subtitleColor">{{info.phone || ''}}</text>领取。
  45. </text>
  46. </view>
  47. </view>
  48. <view class="buttons-row buttons-gutter buttons-ones}}">
  49. <button class='button button-radius button-plain' wx:if="{{info.status!=5}}">
  50. <navigator url="/pages/home/index" hover-class="none" open-type="switchTab">
  51. 查看活动
  52. </navigator>
  53. </button>
  54. <button class='button button-radius button-subtitle' bindtap="seeCard" wx:else>查看现金券</button>
  55. </view>
  56. </view>
  57. </view>
  58. <recommend aid="-1" wx:if="{{info.articleType!=1}}"/>
  59. <navigator class="common_fix common_home" open-type="reLaunch" url="/pages/home/index" hover-class="none">
  60. <text class="icon icon-home"></text>
  61. </navigator>