detail.wxml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!--pages/luckDraw/detail.wxml-->
  2. <view class="page" wx:if="{{showPage}}" style="background-color: {{bgColor}};">
  3. <view class="head-bg">
  4. <image src="{{themePic}}" mode="widthFix"/>
  5. </view>
  6. <!-- 抽奖视图 -->
  7. <view class="luck-draw-box">
  8. <view class="luck-draw-body">
  9. <view class="luck-draw-tip">
  10. <image class="_niyou" src="/images/luck-draw/niyou.png" />
  11. <image wx:for="{{remainNumSplits}}" wx:key="key" class="_num _{{item}}" src="/images/luck-draw/{{item}}.png" />
  12. <image class="_ci" src="/images/luck-draw/ci.png" />
  13. <image class="_cjjh" src="/images/luck-draw/cjjh.png" />
  14. </view>
  15. <view class="luck-draw-record-btn" catchtap="toLuckDrawPage">抽奖记录</view>
  16. <!-- 奖品转盘 -->
  17. <view class="luck-draw-gifts">
  18. <view wx:for="{{giftList}}" wx:key="idx" wx:for-index="idx" class="_gift _pos_{{idx}}">
  19. <view class="_ico">
  20. <image wx:if="item.iconPath" src="{{item.iconUrl}}"/>
  21. </view>
  22. <view class="_text">
  23. <text></text>
  24. </view>
  25. <image class="_bg" src="{{item.active ? '/images/luck-draw/gift-booth-active.png': '/images/luck-draw/gift-booth.png'}}" />
  26. </view>
  27. <!-- 抽奖按钮 -->
  28. <block wx:if="{{forbidTurn}}">
  29. <view class="_gift _turn_btn">
  30. <image class="_bg" src="/images/luck-draw/gift-booth-center-disable.png" />
  31. </view>
  32. </block>
  33. <block wx:else>
  34. <view class="_gift _turn_btn" catchtap="turnPrize">
  35. <button wx:if="{{!isLogin}}" class="phone-button" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" />
  36. <image class="_bg" src="/images/luck-draw/gift-booth-center.png" />
  37. <view wx:if="{{isLogin}}" class="_nums">
  38. <text>{{remainNum}}/{{allNum}}</text>
  39. </view>
  40. </view>
  41. </block>
  42. </view>
  43. </view>
  44. <!-- 背景 -->
  45. <view class="luck-draw-bg">
  46. <image src="{{boxBgPic}}" />
  47. </view>
  48. </view>
  49. <!-- 活动规则 -->
  50. <view class="block-item-title">
  51. <view/>
  52. <text>活动规则</text>
  53. <view/>
  54. </view>
  55. <view class="rule-des">
  56. <text>{{ruleDesc}}</text>
  57. </view>
  58. <!-- 中奖名单 -->
  59. <view class="block-item-title">
  60. <view/>
  61. <text>中奖名单</text>
  62. <view/>
  63. </view>
  64. <view class="hit-record-list">
  65. <view class="_item" wx:for="{{hitRecordList}}" wx:key="key">
  66. <view>{{item.mobile}}</view>
  67. <viwe>{{item.goodsName}}</viwe>
  68. </view>
  69. </view>
  70. <!-- 中奖对话框 -->
  71. <view class="dlg" wx:if="{{showHitPrizeDlg}}">
  72. <view class="prize-body">
  73. <view class="prize-title">
  74. 恭喜您中奖了!
  75. </view>
  76. <view class="prize-subtitle">{{hitResult.goodsName}}</view>
  77. <view class="prize-figure">
  78. <!-- 图片封面 -->
  79. <image wx:if="{{hitResult.goodsBigImage}}" src="{{hitResult.goodsBigImage}}" mode="aspectFit" />
  80. <image src="/images/luck-draw/gift.png" mode="aspectFit" wx:else />
  81. </view>
  82. <view class="prize-tip">{{hitResult.hitDesc || ""}}</view>
  83. <view class="btns">
  84. <view class="_btn _confirm" catchtap="closeDlg">确定</view>
  85. <jumpmallapp wx:if="{{hitResult.goodsType == 1}}" class="_btn _exchange">去使用</jumpmallapp>
  86. <view wx:if="{{hitResult.goodsType == 3}}" catchtap="toLookHitPhoto" class="_btn _exchange">去使用</view>
  87. </view>
  88. <image class="_bg" src="{{popBgPic}}" />
  89. </view>
  90. <view class="_layer" catchtap="closeDlg" />
  91. </view>
  92. <!-- 未中奖对话框 -->
  93. <view class="dlg" wx:if="{{showNoHitPrizeDlg}}">
  94. <view class="prize-body">
  95. <view class="prize-title">
  96. 再接再厉!
  97. </view>
  98. <view class="prize-subtitle">离奖品只差一个手势~</view>
  99. <view class="prize-figure">
  100. <image wx:if="{{noHitResult.goodsBigImage}}" src="{{noHitResult.goodsBigImage}}" mode="aspectFit" />
  101. <image src="/images/luck-draw/nogift.png" mode="aspectFit" wx:else />
  102. </view>
  103. <view class="prize-tip">点击确认继续抽奖!</view>
  104. <view class="btns">
  105. <view class="_btn _share" catchtap="closeDlg">确认</view>
  106. </view>
  107. <image class="_bg" src="{{popBgPic}}" />
  108. </view>
  109. <view class="_layer" catchtap="closeDlg" />
  110. </view>
  111. <!-- 需要分享显示 -->
  112. <view class="dlg" wx:if="{{showNeedShareDlg}}">
  113. <view class="prize-body">
  114. <view class="prize-title">
  115. 再接再厉!
  116. </view>
  117. <view class="prize-subtitle">离奖品只差一个手势~</view>
  118. <view class="prize-figure">
  119. <image wx:if="{{noHitResult.goodsBigImage}}" src="{{noHitResult.goodsBigImage}}" mode="aspectFit" />
  120. <image src="/images/luck-draw/nogift.png" mode="aspectFit" wx:else />
  121. </view>
  122. <view class="prize-tip">分享可获得更多抽奖机会!</view>
  123. <view class="btns">
  124. <button class="_btn _share" open-type="share">分享</button>
  125. </view>
  126. <image class="_bg" src="{{popBgPic}}" />
  127. </view>
  128. <view class="_layer" catchtap="closeDlg" />
  129. </view>
  130. <!-- 状态 -->
  131. <view wx:if="{{status != 2}}" class="status_tip_layer" catchtap="turnActivityListPage">
  132. <view class="_text" wx:if="{{errMessage}}">
  133. <view>{{errMessage}}</view>
  134. </view>
  135. <view wx:elif="{{status == 3}}" class="_text">
  136. <view>此活动已结束</view>
  137. <view>敬请关注其他活动...</view>
  138. </view>
  139. <view class="_text" wx:else>
  140. <view>距活动开启还剩</view>
  141. <view>{{countDownTime}}</view>
  142. </view>
  143. </view>
  144. </view>
  145. <custom-preview-image wx:if="{{showCustomPreview}}" src="{{previewImgSrc}}" bind:closeCallback="closePreviewImage"/>