lottery.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <view class="plv-mp-lottery" style="z-index: {{ zIndex }}" wx:if="{{ lotteryShow }}">
  2. <view class="plv-mp-lottery__head">
  3. <image
  4. bindtap="handleClick"
  5. wx:if="{{ lotteryStatus === 'list' || lotteryStatus === 'submit' }}"
  6. data-type="back"
  7. class="plv-lottery-head-image plv-mp-lottery__back"
  8. src="https://livestatic.videocc.net/assets/wimages/lottery-btn-return@2x.png" />
  9. <image
  10. bindtap="handleClick"
  11. data-type="close"
  12. class="plv-lottery-head-image plv-mp-lottery__clear"
  13. src="https://livestatic.videocc.net/assets/wimages/lottery-btn-close@2x.png" />
  14. <text class="plv-lottery-head__text">{{ headText }}</text>
  15. </view>
  16. <view class="plv-mp-lottery__start" wx:if="{{ lotteryStatus === 'start' }}">
  17. <image class="plv-lottery-start__image" src="https://livestatic.videocc.net/assets/wimages/gift.gif" />
  18. </view>
  19. <view class="plv-mp-lottery__result result-win" wx:if="{{ lotteryStatus === 'win' }}">
  20. <image class="plv-mp-lottery__result__image" src="https://livestatic.videocc.net/assets/wimages/icon-lottery-zj@2x.png" />
  21. <text class="plv-mp-lottery__result__text">恭喜您抽中“{{ prize }}”</text>
  22. <view class="plv-mp-lottery__code">兑换码为:<text class="lottery-code__text">{{ winnerCode }}</text></view>
  23. <view
  24. wx:if="{{ handleList.length > 0 }}"
  25. class="plv-mp-lottery__check__list"
  26. bindtap="handleClick"
  27. data-type="list">查看中奖名单</view>
  28. <button class="plv-lottery__result__btn result-win__button" bindtap="handleClick" data-type="submit">填写联系信息</button>
  29. </view>
  30. <view class="plv-mp-lottery__result result-submit" wx:if="{{ lotteryStatus === 'submit' }}">
  31. <text class="result-submit__text">请填写以下信息,后续会有工作人员与您联系</text>
  32. <view class="plv-mp-lottery__input__content">
  33. <input class="result-submit__input input-content" type="text" placeholder="请输入您的姓名" bindblur="getName" auto-focus />
  34. <input class="result-submit__input input-content" type="number" bindblur="checkPhone" maxlength="11" placeholder="请输入您的手机号码" />
  35. <block wx:for="{{ customInfo }}" wx:key="index">
  36. <input class="result-submit__input input-content" bindblur="getCustom" data-index="{{ index }}" type="text" placeholder="{{ item.tips }}" />
  37. </block>
  38. </view>
  39. <button class="plv-lottery__result__btn result-submit__btn" bindtap="submitInfo">提交</button>
  40. </view>
  41. <view class="plv-mp-lottery__result result-list" wx:if="{{ lotteryStatus === 'list' }}">
  42. <view class="plv-mp-lottery__list__content">
  43. <scroll-view
  44. scroll-y
  45. style="height: 100%"
  46. class="plv-mp-chatroom-scroll-view"
  47. scroll-top="{{ scrollTop }}"
  48. bindscrolltolower="getListWinners">
  49. <view class="plv-lottery-list__view" wx:for="{{ handleList }}" wx:for-item="li" wx:key="index">
  50. <text class="plv-mp-lottery__result__text list__view__text" wx:for="{{ li }}" wx:key="item">{{ item }}</text>
  51. </view>
  52. </scroll-view>
  53. </view>
  54. <button class="plv-lottery__result__btn result-list__btn" bindtap="handleClick" data-type="back">返回</button>
  55. </view>
  56. <view class="plv-mp-lottery__result result-thx" wx:if="{{ lotteryStatus === 'notWin' }}">
  57. <image class="plv-mp-lottery__result__image" src="https://livestatic.videocc.net/assets/wimages/icon-lottery-wzj@2x.png" />
  58. <text class="plv-mp-lottery__result__text">很遗憾您未中奖,谢谢参与</text>
  59. <view
  60. wx:if="{{ handleList.length > 0 }}"
  61. class="plv-mp-lottery__check__list"
  62. bindtap="handleClick"
  63. data-type="list">查看中奖名单</view>
  64. <button class="plv-lottery__result__btn result-thx__btn" bindtap="handleClick" data-type="close">我知道了</button>
  65. </view>
  66. </view>