index.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <nav type="back" title="{{luckyDrawRules.name}}" background-color="#FFB82E"></nav>
  2. <block wx:if="{{ luckyDrawRules && (giftModules && giftModules.length > 0) }}">
  3. <view class="box" style="background-image: url('{{luckyDrawRules.bgImg}}')">
  4. <view class="my-integral">我的积分:{{account.credit ? account.credit : 0}}</view>
  5. <view class="draw">
  6. <draw gifts="{{giftModules}}" prize-id="{{prizeId}}"
  7. count="{{account.credit ? account.credit : 0}}"
  8. enable="{{enable}}"
  9. config="{{config}}"
  10. bind:LuckDraw="onLuckDrawHandle"
  11. bindNotEnough="onNotEnoughHandle"
  12. bindLuckDrawFinish="onLuckDrawFinishHandle">
  13. </draw>
  14. </view>
  15. <view class="prize-box">
  16. <view class="prize">抽奖规则: {{luckyDrawRules.credit ? luckyDrawRules.credit + '积分一次' : "免费抽奖"}} </view>
  17. <view class="details">
  18. <rich-text nodes="{{luckyDrawRules.content}}" style="width: 92%;height: 100%; margin-right: 0 auto;">
  19. </rich-text>
  20. </view>
  21. </view>
  22. <view class="record">
  23. <view class="record-top">中奖记录:</view>
  24. <scroll-view class="record-x" scroll-y="true">
  25. <block wx:for="{{giftList}}" class="item" wx:key="index">
  26. <view class="record-txt">
  27. <view class="record-name">{{item.module.name}}</view>
  28. <view class="record-time">{{item.joinTime}}</view>
  29. <view wx:if="{{item.name}}">
  30. <view class="record-title">已领取</view>
  31. </view>
  32. <view wx:elif="{{!item.name}}">
  33. <view class="record-titles" data-item="{{item}}" bindtap="shopsubmit">领取</view>
  34. </view>
  35. </view>
  36. </block>
  37. </scroll-view>
  38. </view>
  39. </view>
  40. <view class="shop-mask" catchtouchmove="shoppreventTouchMove" wx:if="{{twoModal}}">
  41. <view class="shop-modalDlg" wx:if="{{twoModal}}">
  42. <text class='modalDlg-txtt'>请填写收货信息,确认之后无法更改!</text>
  43. <van-cell-group>
  44. <van-field model:value="{{ name }}" label="收件人姓名" placeholder="请输入收件人姓名" />
  45. <van-field model:value="{{ mobile }}" label="手机号" placeholder="请输入收件人手机号" />
  46. <view class="input-box">
  47. <view class="input-txt">收货地址</view>
  48. <picker class="input-address" mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  49. <view class="shop-inputs">
  50. {{region[0]}} {{region[1]}} {{region[2]}}
  51. </view>
  52. </picker>
  53. </view>
  54. <van-field model:value="{{ address }}" label="详细地址" placeholder="请输入收货地址" />
  55. </van-cell-group>
  56. <image src="https://file-cloud.fmode.cn/lb486SzXLP/20211104/i717lg055104.png" class="ruleHide" bindtap="hideRule" />
  57. <button class="confirm-next" bindtap="submit">确认</button>
  58. </view>
  59. </view>
  60. </block>
  61. <block wx:else>
  62. <van-empty description="暂时还未开启抽奖" />
  63. </block>