lottery_new.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  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.activity_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.$http.request('api/lottery_recruitment_record/get_list_all', { lottery_id: this.requestParam.id }).then((res) => {
  211. if (res.code == 'success') {
  212. if (res.data?.length > 0) {
  213. let str = '';
  214. res.data.forEach((item) => {
  215. str += `用户${item.username}已获得${item.reward_name};`;
  216. });
  217. this.lottery_list = str;
  218. }
  219. }
  220. });
  221. } else {
  222. if (re.code != 'no_login') {
  223. uni.showModal({
  224. content: re.msg,
  225. showCancel: false,
  226. });
  227. }
  228. }
  229. });
  230. this.showRecord();
  231. } else {
  232. uni.showModal({
  233. content: '未知的活动ID',
  234. showCancel: false,
  235. });
  236. }
  237. },
  238. methods: {
  239. _handleChangePage(index) {
  240. this.pageIndex = index;
  241. },
  242. onDone(index) {
  243. this.reward_info = this.prizeList[index];
  244. this.$refs.lotteryReward.open('center');
  245. this.showRecord();
  246. },
  247. onClick() {
  248. // 活动是否开始
  249. if (!this.lotteryInfo.id) {
  250. uni.showToast({
  251. title: '暂无可参与活动',
  252. icon: 'none',
  253. });
  254. return;
  255. }
  256. // 活动是否开始
  257. if (this.lotteryInfo.start_time * 1000 > new Date().getTime()) {
  258. uni.showToast({
  259. title: '活动还没开始哦',
  260. icon: 'none',
  261. });
  262. return;
  263. }
  264. // 活动是否结束
  265. if (this.lotteryInfo.end_time * 1000 <= new Date().getTime()) {
  266. uni.showToast({
  267. title: '活动已结束了哦',
  268. icon: 'none',
  269. });
  270. return;
  271. }
  272. // 次数已用完了
  273. if (this.lotteryInfo.number <= 0) {
  274. uni.showToast({
  275. title: '次数已用完了',
  276. icon: 'none',
  277. });
  278. return;
  279. }
  280. // if (!this.$checkAccess.getHasFollow()) {
  281. // this.$refs.addFollow.open('center');
  282. // return;
  283. // }
  284. // 次数操作
  285. this.lotteryInfo.number = this.lotteryInfo.number - 1;
  286. // 请求列表
  287. this.$http.request('/api/lottery_recruitment/get_reward', { lottery_id: this.lotteryInfo.id }).then((re) => {
  288. // 设置非请求中
  289. this.isReqing = false;
  290. // 成功结果
  291. if (re.code == 'success') {
  292. // 奖品列表更新
  293. this.prizeList = re.data.reward_list;
  294. // 奖品的索引
  295. return this.$refs.dialer.run(re.data.reward_index);
  296. } else {
  297. uni.showToast({
  298. title: re.msg,
  299. icon: 'none',
  300. });
  301. return;
  302. }
  303. });
  304. },
  305. closePopup() {
  306. this.$refs.addFollow.close();
  307. },
  308. closeReward() {
  309. this.$refs.lotteryReward.close();
  310. this.reward_info = {};
  311. },
  312. showRule() {
  313. this.$refs.lotteryRule.open('center');
  314. },
  315. closeRule() {
  316. this.$refs.lotteryRule.close();
  317. },
  318. showRecord() {
  319. // 活动是否开始
  320. // 请求列表
  321. this.$http.request('/api/lottery_recruitment_record/get_list', { lottery_id: this.requestParam.id }).then((re) => {
  322. // 设置非请求中
  323. this.isReqing = false;
  324. // 成功结果
  325. if (re.code == 'success') {
  326. this.recordList = re.data;
  327. } else {
  328. this.recordList = [];
  329. }
  330. });
  331. },
  332. openAddr(index) {
  333. // 选择的下标
  334. this.recordIndex = index;
  335. // 地址列表
  336. this.getAddrList(true);
  337. },
  338. // 选择地址
  339. checkedAddrItem(item) {
  340. // 判断数据
  341. this.$http.request('api/lottery_recruitment_record/set_addr', { id: this.recordList[this.recordIndex].id, addr_id: item.id }, 'post').then((callback) => {
  342. // 获取成功
  343. if (callback.code == 'success') {
  344. this.recordList[this.recordIndex].status = 1;
  345. this.recordList[this.recordIndex].state = '进行中';
  346. }
  347. this.$refs.addrPopup.close();
  348. });
  349. },
  350. getAddrList(showPopup = false) {
  351. // 判断数据
  352. this.$http.request('api/custom_addr/get_list').then((callback) => {
  353. // 获取成功
  354. if (callback.code == 'success') {
  355. this.addrList = callback.data;
  356. // 如果有的话
  357. if (this.addrList.length) {
  358. // 获取默认的
  359. for (let i in this.addrList) {
  360. // 如果是默认的
  361. if (this.addrList[i].is_default) this.checkedAddr = this.addrList[i];
  362. }
  363. // 如果没有默认的话
  364. if (!this.checkedAddr.id) {
  365. this.checkedAddr = this.addrList[this.addrList.length - 1];
  366. }
  367. }
  368. // 弹出地址层
  369. if (showPopup) this.$refs.addrPopup.open('bottom');
  370. }
  371. });
  372. },
  373. },
  374. };
  375. </script>
  376. <style lang="less" scoped>
  377. .lottery_new {
  378. box-sizing: border-box;
  379. position: relative;
  380. height: 100vh;
  381. .welcome {
  382. width: 100vw;
  383. height: 100%;
  384. display: flex;
  385. flex-direction: column;
  386. box-sizing: border-box;
  387. background: linear-gradient(to bottom, #fedc9f, #ff9861);
  388. .header {
  389. .logo {
  390. width: 100%;
  391. }
  392. .barrage-box {
  393. padding: 10rpx;
  394. width: 100%;
  395. transform-origin: 65vw 75vw;
  396. transform: rotate(0deg);
  397. white-space: nowrap;
  398. display: flex;
  399. justify-content: center;
  400. align-items: center;
  401. z-index: 3;
  402. box-sizing: border-box;
  403. background-color: #ff8b37;
  404. opacity: 0.8;
  405. overflow-x: hidden;
  406. }
  407. .text {
  408. width: 200vw; //调整文字显示
  409. font-size: 16px;
  410. color: #333;
  411. animation: aniMove 8s linear infinite;
  412. animation-fill-mode: forwards;
  413. }
  414. /* 文字滚动 */
  415. @keyframes aniMove {
  416. 0% {
  417. transform: translateX(100%);
  418. }
  419. 100% {
  420. transform: translateX(-100%);
  421. }
  422. }
  423. }
  424. .page-1 {
  425. width: 100%;
  426. display: flex;
  427. align-items: center;
  428. flex-direction: column;
  429. box-sizing: border-box;
  430. height: 100%;
  431. .activity-info {
  432. padding-top: 60rpx;
  433. display: flex;
  434. flex-direction: column;
  435. align-items: center;
  436. justify-content: center;
  437. width: 100%;
  438. .title {
  439. font-size: 46rpx;
  440. font-weight: bold;
  441. color: #fff;
  442. text-align: center;
  443. margin-bottom: 40rpx;
  444. }
  445. .active-rule {
  446. display: block;
  447. font-size: 30rpx;
  448. line-height: 40rpx;
  449. box-sizing: border-box;
  450. margin-bottom: 32rpx;
  451. width: 670rpx;
  452. height: 609rpx;
  453. overflow-y: auto;
  454. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/rule.png');
  455. background-repeat: no-repeat;
  456. background-size: 100% 100%;
  457. padding: 93rpx 48rpx;
  458. .rich_text {
  459. white-space: break-spaces;
  460. }
  461. }
  462. }
  463. .activity-btn {
  464. width: 368rpx;
  465. height: 108rpx;
  466. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/join.png');
  467. background-size: 100% 100%;
  468. background-repeat: no-repeat;
  469. // background: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/join.png') no-repeat center 100% 100%;
  470. }
  471. }
  472. }
  473. .lottery {
  474. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_background.png');
  475. background-size: 100% 100%;
  476. background-repeat: no-repeat;
  477. width: 100vw;
  478. min-height: 100vh;
  479. padding-top: 150rpx;
  480. .lottery_box {
  481. display: block;
  482. width: 750rpx;
  483. margin: 0 auto;
  484. position: relative;
  485. .lottery_bottom {
  486. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_bottom.png');
  487. background-size: 100% 100%;
  488. background-repeat: no-repeat;
  489. width: 512rpx;
  490. height: 220rpx;
  491. margin: 0 auto;
  492. display: flex;
  493. flex-direction: column;
  494. align-items: center;
  495. padding-top: 80rpx;
  496. box-sizing: border-box;
  497. .lottery_number {
  498. color: #fff;
  499. font-size: 22rpx;
  500. margin-top: 10rpx;
  501. }
  502. .lottery_btn {
  503. width: 285rpx;
  504. height: 78rpx;
  505. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_btn.png');
  506. background-repeat: no-repeat;
  507. background-size: 100% 100%;
  508. animation: pulse 1.5s infinite; /* 添加动画 */
  509. }
  510. /* 定义动画 */
  511. @keyframes pulse {
  512. 0% {
  513. transform: scale(1); /* 初始大小 */
  514. }
  515. 50% {
  516. transform: scale(1.2); /* 变大 */
  517. }
  518. 100% {
  519. transform: scale(1); /* 恢复原始大小 */
  520. }
  521. }
  522. }
  523. .lottery_rule_btn {
  524. width: 140rpx;
  525. height: 42rpx;
  526. background: #fef7db;
  527. color: #ff7f00;
  528. border-radius: 500rpx 0rpx 0rpx 500rpx;
  529. position: absolute;
  530. right: 0;
  531. top: 0;
  532. z-index: inherit;
  533. font-size: 24rpx;
  534. text-align: center;
  535. line-height: 42rpx;
  536. }
  537. // .lottery_need_score {
  538. // width: 453rpx;
  539. // height: 35rpx;
  540. // background: #d4430e;
  541. // border-radius: 0rpx 0rpx 0rpx 0rpx;
  542. // font-size: 24rpx;
  543. // color: #fff;
  544. // border-radius: 20rpx;
  545. // text-align: center;
  546. // margin: 20rpx auto 0;
  547. // opacity: 0.5;
  548. // }
  549. .lottery_record_title {
  550. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lottery_record_title.png');
  551. background-size: 100% 100%;
  552. background-repeat: no-repeat;
  553. width: 516rpx;
  554. height: 61rpx;
  555. margin: 60rpx auto 24rpx;
  556. }
  557. .lottery_record {
  558. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/lettery_record.png');
  559. background-size: 100% 100%;
  560. background-repeat: no-repeat;
  561. width: 682rpx;
  562. height: 456rpx;
  563. margin: 0 auto;
  564. overflow-y: auto;
  565. padding: 56rpx 48rpx;
  566. box-sizing: border-box;
  567. .lottery_record_none {
  568. width: 100%;
  569. height: 100%;
  570. display: flex;
  571. align-items: center;
  572. justify-content: center;
  573. color: #deb887;
  574. }
  575. .lottery_record_item {
  576. width: 586rpx;
  577. height: 93rpx;
  578. border-radius: 0rpx 0rpx 0rpx 0rpx;
  579. border-bottom: 1rpx solid #e3e3e3;
  580. display: flex;
  581. justify-content: space-between;
  582. align-items: center;
  583. .reward_name {
  584. color: #333;
  585. }
  586. .reward_time {
  587. font-size: 24rpx;
  588. color: #999999;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. .lottery_rule_box {
  595. display: flex;
  596. flex-direction: column;
  597. justify-content: center;
  598. align-items: center;
  599. .active-rule {
  600. display: block;
  601. font-size: 30rpx;
  602. line-height: 40rpx;
  603. box-sizing: border-box;
  604. margin-bottom: 32rpx;
  605. width: 670rpx;
  606. height: 609rpx;
  607. overflow-y: auto;
  608. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/rule.png');
  609. background-repeat: no-repeat;
  610. background-size: 100% 100%;
  611. padding: 93rpx 48rpx;
  612. .rich_text {
  613. white-space: break-spaces;
  614. }
  615. }
  616. }
  617. .lottery_reward_box {
  618. display: flex;
  619. flex-direction: column;
  620. justify-content: center;
  621. align-items: center;
  622. .reward_box {
  623. width: 548rpx;
  624. height: 658rpx;
  625. border-radius: 20rpx;
  626. background: linear-gradient(to bottom, #fedc9f, #ff9861);
  627. padding: 40rpx 0;
  628. box-sizing: border-box;
  629. display: flex;
  630. flex-direction: column;
  631. align-items: center;
  632. justify-content: space-between;
  633. .reward_title {
  634. font-size: 68rpx;
  635. font-weight: 400;
  636. &.get {
  637. color: #ff0000;
  638. }
  639. &.noGet {
  640. color: #fe7b2b;
  641. }
  642. }
  643. .reward_btn {
  644. width: 272rpx;
  645. height: 77rpx;
  646. color: #fff;
  647. text-align: center;
  648. line-height: 77rpx;
  649. background: linear-gradient(180deg, #ff211a 0%, #ffb883 100%);
  650. box-shadow: inset 0rpx -2rpx 1rpx 0rpx #fff6b6, inset 0rpx 4rpx 6rpx 0rpx rgba(255, 255, 255, 0.6);
  651. border-radius: 50rpx 50rpx 50rpx 50rpx;
  652. }
  653. .reward_image {
  654. width: 208rpx;
  655. height: 208rpx;
  656. background-size: 100% 100%;
  657. background-repeat: no-repeat;
  658. &.noget {
  659. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/noget.png');
  660. }
  661. &.score {
  662. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/score.png');
  663. }
  664. &.redpacket {
  665. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/redpacket.png');
  666. }
  667. &.coupon {
  668. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/coupon.png');
  669. }
  670. &.virtual_good {
  671. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/virtual_good.png');
  672. }
  673. &.others {
  674. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/others.png');
  675. }
  676. }
  677. .reward_name {
  678. color: #333;
  679. text-align: center;
  680. }
  681. }
  682. }
  683. .close-btn {
  684. background-image: url('https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/close_btn.png');
  685. background-repeat: no-repeat;
  686. background-size: 100% 100%;
  687. width: 62rpx;
  688. height: 62rpx;
  689. margin-top: 32rpx;
  690. }
  691. }
  692. </style>