lottery_new.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <template>
  2. <view class="lottery_new">
  3. <view class="welcome" :style="pageIndex == 1 ? 'height:auto' : ''">
  4. <!-- logo与跑马灯 -->
  5. <view class="header">
  6. <img :src="lotteryInfo.logo" class="logo" mode="widthFix" />
  7. <view class="barrage-box">
  8. <view class="text">{{ lottery_list.length == 0 ? '还没有人中奖,快来参与吧!' : lottery_list }}</view>
  9. </view>
  10. </view>
  11. <!-- 立即参与页面 -->
  12. <view class="page-1" style="padding: 0 16rpx" v-if="pageIndex == 0">
  13. <view class="activity-info">
  14. <!-- <text class="title">{{ acticve_detail?.name }}</text> -->
  15. <view class="active-rule">
  16. <rich-text :nodes="lotteryInfo.rule" class="rich_text" style="font-size: 36rpx; font-weight: 300"></rich-text>
  17. </view>
  18. </view>
  19. <view class="activity-btn" @click="_handleChangePage(1)"></view>
  20. </view>
  21. </view>
  22. <view class="lottery" v-if="pageIndex == 1">
  23. <view class="lottery_box">
  24. <view class="lottery_rule_btn" @click="showRule">活动规则</view>
  25. <l-dialer
  26. :customStyle="'width: 500rpx;height: 500rpx;margin: 0rpx auto;'"
  27. @click="onClick"
  28. dial-style="color: rgba(60,48,158,0.7); padding: 32rpx;background-image: url(https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_bg.png)"
  29. :prizeList="prizeList"
  30. :turns="5"
  31. :duration="3"
  32. @done="onDone"
  33. ref="dialer"
  34. />
  35. <view class="lottery_bottom">
  36. <view class="lottery_btn" @click="onClick"></view>
  37. <view class="lottery_number">可用次数:{{ lotteryInfo.number }}</view>
  38. </view>
  39. <!-- <view class="lottery_need_score"> </view> -->
  40. <view class="lottery_record_title"></view>
  41. <view class="lottery_record">
  42. <view class="lottery_record_none" v-if="!recordList.length">这里还是空的哦~</view>
  43. <scroll-view class="lottery_record_list" scroll-y="true">
  44. <view class="lottery_record_item" v-for="(item, index) in recordList" :key="index">
  45. <view class="reward_name">获得{{ item.reward_name }}</view>
  46. <view class="reward_time">{{ item.insert_time }}</view>
  47. </view>
  48. </scroll-view>
  49. </view>
  50. </view>
  51. <uni-popup ref="lotteryRule" type="center">
  52. <view class="lottery_rule_box">
  53. <view class="active-rule">
  54. <rich-text :nodes="lotteryInfo.rule" class="rich_text" style="font-size: 36rpx; font-weight: 300"></rich-text>
  55. </view>
  56. <view class="close-btn" @click="closeRule"></view>
  57. </view>
  58. </uni-popup>
  59. <uni-popup ref="lotteryReward" type="center">
  60. <view class="lottery_reward_box">
  61. <view class="reward_box">
  62. <view :class="['reward_title', reward_info.id == 0 ? 'noGet' : 'get']">{{ reward_info.id == 0 ? '很遗憾' : '恭喜您' }}</view>
  63. <view>
  64. <img class="reward_image" v-if="reward_info.reward_type == 5" :src="reward_info.img" />
  65. <view v-else :class="['reward_image', reward_info.id == 0 ? 'noget' : reward_enum[reward_info.reward_type]]"></view>
  66. <view class="reward_name"> {{ reward_info.id == 0 ? '谢谢参与' : reward_info.name }}</view>
  67. </view>
  68. <view class="reward_btn" @click="closeReward">{{ reward_info.id == 0 ? '我知道了' : '开心收下' }}</view>
  69. </view>
  70. <view class="close-btn" @click="closeReward"></view>
  71. </view>
  72. </uni-popup>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. lottery_list: '',
  81. pageIndex: 0,
  82. height: '',
  83. // 奖项列表,
  84. prizeList: [],
  85. // 中奖记录
  86. recordList: [],
  87. // 地址列表
  88. addrList: [],
  89. // 抽奖信息
  90. lotteryInfo: {
  91. id: 0,
  92. name: '',
  93. logo: '',
  94. number: '0',
  95. start_date: '',
  96. end_date: '',
  97. start_time: '',
  98. end_time: '',
  99. rule: '',
  100. },
  101. recordId: 0,
  102. // 请求参数
  103. requestParam: {
  104. id: 0,
  105. activity_id: 0,
  106. },
  107. reward_info: {
  108. id: 0,
  109. },
  110. reward_enum: {
  111. 1: 'score',
  112. 2: 'coupon',
  113. 3: 'redpacket',
  114. 4: 'virtual_good',
  115. 5: 'goods',
  116. 6: 'others',
  117. },
  118. };
  119. },
  120. onLoad(param) {
  121. //未登陆提醒用户登陆
  122. try {
  123. // 接收参数
  124. console.log(param, 'onload param');
  125. this.requestParam.id = param.id;
  126. this.requestParam.activity_id = param.activity_id;
  127. this.pageIndex = param.pageIndex || 0;
  128. // 如果有scene参数的话,获取其中的ID
  129. if (param.scene) {
  130. // 转键值对参数
  131. let scene = this.$http.strToParam(param.scene);
  132. // 如果没有传入ID,但是传入了场景ID,获取场景ID
  133. if (!param.id && scene.id) this.requestParam.id = scene.id;
  134. }
  135. // 窗口信息
  136. var sysinfo = uni.getWindowInfo();
  137. // 获取屏幕可用高度
  138. this.height = 'height:' + sysinfo.windowHeight + 'px;';
  139. // 监听地址变动
  140. uni.$on('addr_list_change', (data) => {
  141. // 地址列表
  142. this.addrList = data.list;
  143. });
  144. // #ifdef MP-WEIXIN
  145. //分享按钮
  146. uni.showShareMenu({
  147. withShareTicket: true,
  148. menus: ['shareAppMessage', 'shareTimeline'],
  149. });
  150. // #endif
  151. } catch (e) {
  152. console.log(e);
  153. }
  154. },
  155. onShareAppMessage(obj) {
  156. // if (obj) {
  157. // this.shareRequest();
  158. // }
  159. return {
  160. title: '999智控终端平台\n新人抽奖',
  161. path: `/pages/recruitment/lottery_new?id=${this.requestParam.id}&activity_id=${this.requestParam.activity_id}`,
  162. imageUrl: 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/20250210-143021.jpg',
  163. promise: new Promise((resolve, reject) => {
  164. this.$http.request('api/share_message/get_item', { item_id: this.requestParam.id, pages: '/pages/recruitment/lottery_new' }).then((callback) => {
  165. console.log(callback, 'api/share_message/get_item');
  166. let obj = {
  167. title: callback.data?.title == '' ? this.lotteryInfo.name : callback.data.title,
  168. path: '/pages/recruitment/lottery_new?id=' + this.requestParam.id,
  169. imageUrl: callback.data?.image_url == '' ? this.lotteryInfo.logo : callback.data.image_url,
  170. };
  171. resolve(obj);
  172. });
  173. }),
  174. };
  175. },
  176. onShow() {
  177. console.log(this.requestParam, 'onshow requestParam');
  178. if (!this.$checkAccess.checkLogin()) {
  179. uni.showModal({
  180. title: '温馨提示',
  181. content: '请先登录',
  182. confirmText: '去登录',
  183. cancelText: '取消',
  184. success: (res) => {
  185. if (res.confirm) {
  186. uni.redirectTo({
  187. url: `/pages/login/index?redirect=/pages/recruitment/lottery_new&id=${this.requestParam.id}`,
  188. });
  189. }
  190. },
  191. });
  192. return;
  193. }
  194. // 没有数据的话,或者请求中,不允许刷新
  195. if (this.isReqing) return;
  196. // 登录提示
  197. // if (!this.$checkAccess.alterLogin()) return;
  198. // 如果存在产品ID的话
  199. if (this.requestParam.id > 0) {
  200. // 设置请求中
  201. this.isReqing = true;
  202. // 请求
  203. this.$http.request('api/lottery_recruitment/get_detail', this.requestParam).then((re) => {
  204. // 设置非请求中
  205. this.isReqing = false;
  206. // 成功结果
  207. if (re.code == 'success') {
  208. this.lotteryInfo = re.data;
  209. this.prizeList = re.data.reward_list;
  210. this._getRecordList();
  211. } else {
  212. if (re.code != 'no_login') {
  213. uni.showModal({
  214. content: re.msg,
  215. showCancel: false,
  216. });
  217. }
  218. }
  219. });
  220. this.showRecord();
  221. } else {
  222. uni.showModal({
  223. content: '未知的活动ID',
  224. showCancel: false,
  225. });
  226. }
  227. },
  228. methods: {
  229. _getRecordList() {
  230. this.$http.request('api/lottery_recruitment_record/get_list_all', { lottery_id: this.requestParam.id }).then((res) => {
  231. if (res.code == 'success') {
  232. if (res.data?.length > 0) {
  233. let str = '';
  234. res.data.forEach((item) => {
  235. str += `用户${item.username}已获得${item.reward_name};`;
  236. });
  237. this.lottery_list = str;
  238. }
  239. }
  240. });
  241. },
  242. _handleChangePage(index) {
  243. this.pageIndex = index;
  244. },
  245. onDone(index) {
  246. this.reward_info = this.prizeList[index];
  247. this.$refs.lotteryReward.open('center');
  248. this.showRecord();
  249. this._getRecordList();
  250. },
  251. onClick() {
  252. // 活动是否开始
  253. if (!this.lotteryInfo.id) {
  254. uni.showToast({
  255. title: '暂无可参与活动',
  256. icon: 'none',
  257. });
  258. return;
  259. }
  260. // 活动是否开始
  261. if (this.lotteryInfo.start_time * 1000 > new Date().getTime()) {
  262. uni.showToast({
  263. title: '活动还没开始哦',
  264. icon: 'none',
  265. });
  266. return;
  267. }
  268. // 活动是否结束
  269. if (this.lotteryInfo.end_time * 1000 <= new Date().getTime()) {
  270. uni.showToast({
  271. title: '活动已结束了哦',
  272. icon: 'none',
  273. });
  274. return;
  275. }
  276. // 次数已用完了
  277. if (this.lotteryInfo.number <= 0) {
  278. uni.showToast({
  279. title: '次数已用完了',
  280. icon: 'none',
  281. });
  282. return;
  283. }
  284. // if (!this.$checkAccess.getHasFollow()) {
  285. // this.$refs.addFollow.open('center');
  286. // return;
  287. // }
  288. // 次数操作
  289. this.lotteryInfo.number = this.lotteryInfo.number - 1;
  290. // 请求列表
  291. this.$http.request('/api/lottery_recruitment/get_reward', { lottery_id: this.lotteryInfo.id }).then((re) => {
  292. // 设置非请求中
  293. this.isReqing = false;
  294. // 成功结果
  295. if (re.code == 'success') {
  296. // 奖品列表更新
  297. this.prizeList = re.data.reward_list;
  298. // 奖品的索引
  299. return this.$refs.dialer.run(re.data.reward_index);
  300. } else {
  301. uni.showToast({
  302. title: re.msg,
  303. icon: 'none',
  304. });
  305. return;
  306. }
  307. });
  308. },
  309. closePopup() {
  310. this.$refs.addFollow.close();
  311. },
  312. closeReward() {
  313. this.$refs.lotteryReward.close();
  314. this.reward_info = {};
  315. },
  316. showRule() {
  317. this.$refs.lotteryRule.open('center');
  318. },
  319. closeRule() {
  320. this.$refs.lotteryRule.close();
  321. },
  322. showRecord() {
  323. // 活动是否开始
  324. // 请求列表
  325. this.$http.request('/api/lottery_recruitment_record/get_list', { lottery_id: this.requestParam.id }).then((re) => {
  326. // 设置非请求中
  327. this.isReqing = false;
  328. // 成功结果
  329. if (re.code == 'success') {
  330. this.recordList = re.data;
  331. } else {
  332. this.recordList = [];
  333. }
  334. });
  335. },
  336. openAddr(index) {
  337. // 选择的下标
  338. this.recordIndex = index;
  339. // 地址列表
  340. this.getAddrList(true);
  341. },
  342. // 选择地址
  343. checkedAddrItem(item) {
  344. // 判断数据
  345. this.$http.request('api/lottery_recruitment_record/set_addr', { id: this.recordList[this.recordIndex].id, addr_id: item.id }, 'post').then((callback) => {
  346. // 获取成功
  347. if (callback.code == 'success') {
  348. this.recordList[this.recordIndex].status = 1;
  349. this.recordList[this.recordIndex].state = '进行中';
  350. }
  351. this.$refs.addrPopup.close();
  352. });
  353. },
  354. getAddrList(showPopup = false) {
  355. // 判断数据
  356. this.$http.request('api/custom_addr/get_list').then((callback) => {
  357. // 获取成功
  358. if (callback.code == 'success') {
  359. this.addrList = callback.data;
  360. // 如果有的话
  361. if (this.addrList.length) {
  362. // 获取默认的
  363. for (let i in this.addrList) {
  364. // 如果是默认的
  365. if (this.addrList[i].is_default) this.checkedAddr = this.addrList[i];
  366. }
  367. // 如果没有默认的话
  368. if (!this.checkedAddr.id) {
  369. this.checkedAddr = this.addrList[this.addrList.length - 1];
  370. }
  371. }
  372. // 弹出地址层
  373. if (showPopup) this.$refs.addrPopup.open('bottom');
  374. }
  375. });
  376. },
  377. },
  378. };
  379. </script>
  380. <style lang="less" scoped>
  381. .lottery_new {
  382. box-sizing: border-box;
  383. position: relative;
  384. height: 100vh;
  385. .welcome {
  386. width: 100vw;
  387. height: 100%;
  388. display: flex;
  389. flex-direction: column;
  390. box-sizing: border-box;
  391. background: linear-gradient(to bottom, #fedc9f, #ff9861);
  392. .header {
  393. .logo {
  394. width: 100%;
  395. }
  396. .barrage-box {
  397. padding: 10rpx;
  398. width: 100%;
  399. transform-origin: 65vw 75vw;
  400. transform: rotate(0deg);
  401. white-space: nowrap;
  402. display: flex;
  403. justify-content: center;
  404. align-items: center;
  405. z-index: 3;
  406. box-sizing: border-box;
  407. background-color: #ff8b37;
  408. opacity: 0.8;
  409. overflow-x: hidden;
  410. margin-top: -6rpx;
  411. }
  412. .text {
  413. width: 200vw; //调整文字显示
  414. font-size: 16px;
  415. color: #333;
  416. animation: aniMove 8s linear infinite;
  417. animation-fill-mode: forwards;
  418. }
  419. /* 文字滚动 */
  420. @keyframes aniMove {
  421. 0% {
  422. transform: translateX(100%);
  423. }
  424. 100% {
  425. transform: translateX(-100%);
  426. }
  427. }
  428. }
  429. .page-1 {
  430. width: 100%;
  431. display: flex;
  432. align-items: center;
  433. flex-direction: column;
  434. box-sizing: border-box;
  435. height: 100%;
  436. .activity-info {
  437. padding-top: 60rpx;
  438. display: flex;
  439. flex-direction: column;
  440. align-items: center;
  441. justify-content: center;
  442. width: 100%;
  443. .title {
  444. font-size: 46rpx;
  445. font-weight: bold;
  446. color: #fff;
  447. text-align: center;
  448. margin-bottom: 40rpx;
  449. }
  450. .active-rule {
  451. display: block;
  452. font-size: 30rpx;
  453. line-height: 40rpx;
  454. box-sizing: border-box;
  455. margin-bottom: 32rpx;
  456. width: 670rpx;
  457. height: 609rpx;
  458. overflow-y: auto;
  459. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/rule.png');
  460. background-repeat: no-repeat;
  461. background-size: 100% 100%;
  462. padding: 93rpx 48rpx;
  463. .rich_text {
  464. white-space: break-spaces;
  465. }
  466. }
  467. }
  468. .activity-btn {
  469. width: 368rpx;
  470. height: 108rpx;
  471. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/join.png');
  472. background-size: 100% 100%;
  473. background-repeat: no-repeat;
  474. // background: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/join.png') no-repeat center 100% 100%;
  475. }
  476. }
  477. }
  478. .lottery {
  479. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_background.png');
  480. background-size: 100% 100%;
  481. background-repeat: no-repeat;
  482. width: 100vw;
  483. min-height: 100vh;
  484. padding-top: 150rpx;
  485. .lottery_box {
  486. display: block;
  487. width: 750rpx;
  488. margin: 0 auto;
  489. position: relative;
  490. .lottery_bottom {
  491. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_bottom.png');
  492. background-size: 100% 100%;
  493. background-repeat: no-repeat;
  494. width: 512rpx;
  495. height: 220rpx;
  496. margin: 0 auto;
  497. display: flex;
  498. flex-direction: column;
  499. align-items: center;
  500. padding-top: 80rpx;
  501. box-sizing: border-box;
  502. .lottery_number {
  503. color: #fff;
  504. font-size: 22rpx;
  505. margin-top: 10rpx;
  506. }
  507. .lottery_btn {
  508. width: 285rpx;
  509. height: 78rpx;
  510. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_btn.png');
  511. background-repeat: no-repeat;
  512. background-size: 100% 100%;
  513. animation: pulse 1.5s infinite; /* 添加动画 */
  514. }
  515. /* 定义动画 */
  516. @keyframes pulse {
  517. 0% {
  518. transform: scale(1); /* 初始大小 */
  519. }
  520. 50% {
  521. transform: scale(1.2); /* 变大 */
  522. }
  523. 100% {
  524. transform: scale(1); /* 恢复原始大小 */
  525. }
  526. }
  527. }
  528. .lottery_rule_btn {
  529. width: 140rpx;
  530. height: 60rpx;
  531. background: #fef7db;
  532. color: #ff7f00;
  533. border-radius: 500rpx 0rpx 0rpx 500rpx;
  534. position: absolute;
  535. right: 0;
  536. top: 0;
  537. z-index: inherit;
  538. font-size: 26rpx;
  539. text-align: center;
  540. line-height: 60rpx;
  541. }
  542. // .lottery_need_score {
  543. // width: 453rpx;
  544. // height: 35rpx;
  545. // background: #d4430e;
  546. // border-radius: 0rpx 0rpx 0rpx 0rpx;
  547. // font-size: 24rpx;
  548. // color: #fff;
  549. // border-radius: 20rpx;
  550. // text-align: center;
  551. // margin: 20rpx auto 0;
  552. // opacity: 0.5;
  553. // }
  554. .lottery_record_title {
  555. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_record_title.png');
  556. background-size: 100% 100%;
  557. background-repeat: no-repeat;
  558. width: 516rpx;
  559. height: 61rpx;
  560. margin: 60rpx auto 24rpx;
  561. }
  562. .lottery_record {
  563. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lettery_record.png');
  564. background-size: 100% 100%;
  565. background-repeat: no-repeat;
  566. width: 682rpx;
  567. height: 456rpx;
  568. margin: 0 auto;
  569. overflow-y: auto;
  570. padding: 56rpx 48rpx;
  571. box-sizing: border-box;
  572. .lottery_record_none {
  573. width: 100%;
  574. height: 100%;
  575. display: flex;
  576. align-items: center;
  577. justify-content: center;
  578. color: #deb887;
  579. }
  580. .lottery_record_item {
  581. width: 586rpx;
  582. height: 93rpx;
  583. border-radius: 0rpx 0rpx 0rpx 0rpx;
  584. border-bottom: 1rpx solid #e3e3e3;
  585. display: flex;
  586. justify-content: space-between;
  587. align-items: center;
  588. .reward_name {
  589. color: #333;
  590. }
  591. .reward_time {
  592. font-size: 24rpx;
  593. color: #999999;
  594. }
  595. }
  596. }
  597. }
  598. }
  599. .lottery_rule_box {
  600. display: flex;
  601. flex-direction: column;
  602. justify-content: center;
  603. align-items: center;
  604. .active-rule {
  605. display: block;
  606. font-size: 30rpx;
  607. line-height: 40rpx;
  608. box-sizing: border-box;
  609. margin-bottom: 32rpx;
  610. width: 670rpx;
  611. height: 609rpx;
  612. overflow-y: auto;
  613. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/rule.png');
  614. background-repeat: no-repeat;
  615. background-size: 100% 100%;
  616. padding: 93rpx 48rpx;
  617. .rich_text {
  618. white-space: break-spaces;
  619. }
  620. }
  621. }
  622. .lottery_reward_box {
  623. display: flex;
  624. flex-direction: column;
  625. justify-content: center;
  626. align-items: center;
  627. .reward_box {
  628. width: 548rpx;
  629. height: 658rpx;
  630. border-radius: 20rpx;
  631. background: linear-gradient(to bottom, #fedc9f, #ff9861);
  632. padding: 40rpx 0;
  633. box-sizing: border-box;
  634. display: flex;
  635. flex-direction: column;
  636. align-items: center;
  637. justify-content: space-between;
  638. .reward_title {
  639. font-size: 68rpx;
  640. font-weight: 400;
  641. &.get {
  642. color: #ff0000;
  643. }
  644. &.noGet {
  645. color: #fe7b2b;
  646. }
  647. }
  648. .reward_btn {
  649. width: 272rpx;
  650. height: 77rpx;
  651. color: #fff;
  652. text-align: center;
  653. line-height: 77rpx;
  654. background: linear-gradient(180deg, #ff211a 0%, #ffb883 100%);
  655. box-shadow: inset 0rpx -2rpx 1rpx 0rpx #fff6b6, inset 0rpx 4rpx 6rpx 0rpx rgba(255, 255, 255, 0.6);
  656. border-radius: 50rpx 50rpx 50rpx 50rpx;
  657. }
  658. .reward_image {
  659. width: 208rpx;
  660. height: 208rpx;
  661. background-size: 100% 100%;
  662. background-repeat: no-repeat;
  663. &.noget {
  664. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/noget.png');
  665. }
  666. &.score {
  667. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/score.png');
  668. }
  669. &.redpacket {
  670. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/redpacket.png');
  671. }
  672. &.coupon {
  673. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/coupon.png');
  674. }
  675. &.virtual_good {
  676. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/virtual_good.png');
  677. }
  678. &.others {
  679. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/others.png');
  680. }
  681. }
  682. .reward_name {
  683. color: #333;
  684. text-align: center;
  685. }
  686. }
  687. }
  688. .close-btn {
  689. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/close_btn.png');
  690. background-repeat: no-repeat;
  691. background-size: 100% 100%;
  692. width: 62rpx;
  693. height: 62rpx;
  694. margin-top: 32rpx;
  695. }
  696. }
  697. </style>