gorgelottery.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <style lang="sass">
  2. @import "./scss/gorgelottery.scss";
  3. @import "./scss/lottery.scss";
  4. </style>
  5. <template>
  6. <div class="page-act-gorgelottery">
  7. <header class="activity-hd">
  8. <img src="./../../img/act/wzry1801/pic-banner.jpg" />
  9. </header>
  10. <section class="act-mod-act">
  11. <h2 class="mod-title mod-title1"></h2>
  12. <div class="mod-intro">
  13. <p>活动时间:1月17日-1月26日<br>通过<span class="font-yellow">3种途径</span>获得抽奖机会,最高可获得王者荣耀<span class="font-red">588点</span>券奖励,所有奖励以微信红包的形式发放。</p>
  14. </div>
  15. <h2 class="mod-title mod-title2"></h2>
  16. <ul class="list-step">
  17. <li>
  18. <p class="step">一、关注“<span class="font-yellow">峡谷小助手</span>”微信公众号,获得<span class="font-red">1</span>次抽奖机会。</p>
  19. <div class="code-wrap">
  20. <div class="code">
  21. <img src="./../../img/act/wzry1801/pic-code.jpg" />
  22. </div>
  23. <p>长按扫描二维码关注</p>
  24. </div>
  25. </li>
  26. <li>
  27. <p class="step">二、每邀请1个好友关注“峡谷小助手”,获得<span class="font-red">1</span>次抽奖机会,邀请越多,奖励越多</p>
  28. <p class="step-tip">注:好友关注后必须打开活动页面才算有效,好友取消关注重新邀请无效。</p>
  29. <span class="btn-act" @click="toggleModGuide()">邀请好友关注</span>
  30. </li>
  31. <li>
  32. <p class="step">三、活动期间,下载、安装“<a class="font-yellow" :href="downloadUrl">微剧院APP</a>”,每天用微信号登录然后观看30秒电影解说视频,每天都能获得<span class="font-red">1</span>次抽奖机会。</p>
  33. <img src="./../../img/act/wzry1801/pic-wjy.png" />
  34. <a class="btn-act" :href="downloadUrl">点击下载</a>
  35. </li>
  36. </ul>
  37. </section>
  38. <section class="act-mod-lottory">
  39. <h2 class="mod-title mod-title3"></h2>
  40. <div class="lottery-wrap">
  41. <p class="tip-lottery">
  42. <span>剩余<em>{{times}}</em>次抽奖机会</span>
  43. <span class="btn-award" @click="toggleModAward">我的奖品»</span>
  44. </p>
  45. <ul class="lottery-cot" id="lottery">
  46. <li class="lottery-item lottery-item1" data-order="0" data-score="0">
  47. <p>谢谢<br>参与</p>
  48. </li>
  49. <li class="lottery-item lottery-item2" data-order="1" data-score="2">
  50. <p>6元首<br>充英雄</p>
  51. </li>
  52. <li class="lottery-item lottery-item3" data-order="2" data-score="1">
  53. <p>10点券</p>
  54. </li>
  55. <li class="lottery-item lottery-item4" data-order="7" data-score="1">
  56. <p>10点券</p>
  57. </li>
  58. <li :class='"lottery-item btn-lottery "+(times==0?"disabled":"")' @click="startLottery()"></li>
  59. <li class="lottery-item lottery-item5" data-order="3" data-score="3">
  60. <p>588点券</p>
  61. </li>
  62. <li class="lottery-item lottery-item6" data-order="6" data-score="0">
  63. <p>谢谢<br>参与</p>
  64. </li>
  65. <li class="lottery-item lottery-item7" data-order="5" data-score="4">
  66. <p>288点券</p>
  67. </li>
  68. <li class="lottery-item lottery-item8" data-order="4" data-score="1">
  69. <p>10点券</p>
  70. </li>
  71. </ul>
  72. </div>
  73. <div class="mod-invite">
  74. <h2 class="invite-title"></h2>
  75. <p class="invite-add">已邀请<em>{{friendTotal}}</em>位好友,好友关注后额外获得<em>{{getLotteryCount}}</em>次抽奖机会</p>
  76. <ul>
  77. <li v-for="(user,index) in friends" :key="index">
  78. <img :src='user.avatar_url ? user.avatar_url : "/_src/img/pic-head.png"' onerror="this.src='https://pub.dwstatic.com/common/img/blank.png'">
  79. <p>{{user.nick_name ? user.nick_name : user.user_name}}</p>
  80. </li>
  81. </ul>
  82. </div>
  83. </section>
  84. <section class="act-mod-menu" v-if="bingoList.length>0">
  85. <h2 class="mod-title mod-title4"></h2>
  86. <div class="menu-wrap">
  87. <div class="menu-scroll">
  88. <ul class="list-menu" :style='"-webkit-transform: translateY("+scrollHeight+"px);transform: translateY("+scrollHeight+"px)"'>
  89. <li v-for="(bingo,index) in bingoList" :key="index">
  90. <p class="item-fl">
  91. <img :src='bingo.avatar ? bingo.avatar : "/_src/img/pic-head.png"' onerror="this.src='https://pub.dwstatic.com/common/img/blank.png'">
  92. <span>{{bingo.nick}}</span>
  93. </p>
  94. <p class="item-fm"></p>
  95. <p class="item-fr">{{bingo.reward}}</p>
  96. </li>
  97. </ul>
  98. </div>
  99. </div>
  100. </section>
  101. <section class="act-mod-popup popup-guide" @click="toggleModGuide" v-show="isShowGuide">
  102. <div class="mask"></div>
  103. <div class="cont-guide">
  104. <p>点击右上角,从这里分享给你的微信好友吧!</p>
  105. </div>
  106. </section>
  107. <section class="act-mod-popup popup-award" @click="toggleModAward" v-show="isShowAward">
  108. <div class="mask"></div>
  109. <div class="cont">
  110. <section class="box-award" v-if="userBingo.length>0">
  111. <ul class="list-award">
  112. <li v-for="(bingo,index) in userBingo" :key="index">
  113. <h3>{{bingo.rewardName}}</h3>
  114. <p><label>领取方式</label>: 微信关注"<span>多玩福利广场</span>",回复"领奖"即可</p>
  115. </li>
  116. </ul>
  117. </section>
  118. <section class="box-noaward" v-else>暂无奖品</section>
  119. </div>
  120. </section>
  121. <section class="act-mod-popup popup-result" v-show="isShowResult && scoreRet.amount>=0 ">
  122. <div class="mask" @click="toggleModResult"></div>
  123. <div class="cont">
  124. <div class="lot-fail" v-if="scoreRet.amount == 0">
  125. <h2><i class="icon-lot-fail"></i>抱歉,你没有中奖</h2>
  126. <p>邀请1个好友关注“<span class="font-yellow">峡谷小助手</span>”微信公众号,可再抽奖<span class="font-red">1</span>次,邀请越多,中奖几率越高。</p>
  127. <span class="btn-act" @click="toggleModGuide">邀请微信好友</span>
  128. </div>
  129. <div class="lot-success" v-else>
  130. <h2><i class="icon-lot-success"></i>恭喜,中奖啦</h2>
  131. <ul>
  132. <li><label>奖品</label>:<span class="font-red">获得10点券</span></li>
  133. <li><label>领取方式</label>:微信关注“<span class="font-yellow">多玩福利广场</span>”公众号,回复“领奖”即可。</li>
  134. </ul>
  135. <p>再邀请1个好友关注,抽588点券!</p>
  136. <span class="btn-act" @click="toggleModGuide">邀请微信好友</span>
  137. </div>
  138. </div>
  139. </section>
  140. </div>
  141. </template>
  142. <script>
  143. import gorgelottery from './js/gorgelottery.js'
  144. export default gorgelottery
  145. </script>