luckdraw.vue 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432
  1. <!-- 红包玩法落地页 -->
  2. <template>
  3. <div class="content">
  4. <template v-if="isLoading">
  5. <img class="loading" src="../static/svg/icon-loading.svg" />
  6. </template>
  7. <template v-else>
  8. <template v-if="isMobile">
  9. <!-- 手机端 -->
  10. <div class="small" :class="{
  11. bg: status === 'not-open',
  12. custom: detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled,
  13. }">
  14. <template v-if="status === 'not-open'">
  15. <template
  16. v-if="detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled">
  17. <img class="customImg" :src="detail.postBizData.customPosterInstalled" />
  18. </template>
  19. <template v-else>
  20. <template v-if="isMoneyPrize">
  21. <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
  22. <div class="head">
  23. <img :src="detail.postBizData.postUserInfo.avatarUrl" />
  24. <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
  25. </div>
  26. <div class="price">
  27. <div class="usdt">
  28. <span>
  29. {{detail.postBizData.amountCurrencyCode == 'USD' ? 'US Dollar' : detail.postBizData.tokenSymbol}}
  30. </span>
  31. &nbsp;GIVEAWAY
  32. </div>
  33. <div class="money">
  34. <img :src="detail.postBizData.currencyIconPath" />
  35. <font-amount :fontSize="60" :amount="detail.postBizData.amountValue">
  36. </font-amount>
  37. </div>
  38. </div>
  39. <div class="time">
  40. <img class="img" :src=" require('../static/svg/icon-time.svg') " />
  41. {{ validity || '00:00:00' }}
  42. </div>
  43. <div class="box">
  44. <img src="../static/subject/icon-box.png" />
  45. </div>
  46. </template>
  47. <template v-else>
  48. <custom-card-cover :totalCount="detail.postBizData.totalCount"
  49. :amountValue="detail.postBizData.amountValue"
  50. :tokenSymbol="detail.postBizData.tokenSymbol"
  51. :currencyIconUrl="detail.postBizData.iconPath" :playType="2" :validity="validity"
  52. :userInfo="{
  53. nickName: detail.postBizData.postUserInfo.nickName,
  54. avatarUrl: detail.postBizData.postUserInfo.avatarUrl
  55. }" :rewardType="detail.postBizData.rewardType"
  56. :customizedReward="detail.postBizData.customizedReward" :showBottomInfo="false">
  57. </custom-card-cover>
  58. </template>
  59. </template>
  60. </template>
  61. <template v-else>
  62. <div class="succTop">
  63. <template v-if="status === 'opened'">
  64. <img class="img" :src=" require('../static/svg/icon-luck-rabbit.svg') " />
  65. <p class="tips">Good Luck Next Time!</p>
  66. </template>
  67. <template v-else-if="status === 'expire'">
  68. <!-- <img class="img" :src=" require('../static/svg/icon-luck-complete.svg') " />
  69. <p class="tips">This Draw is Complete</p> -->
  70. <p class="expire">This Giveaways<br />expired on {{
  71. formatTime(detail.postBizData.endTimestamp, 'MM-DD') }}</p>
  72. </template>
  73. <template v-else>
  74. <p class="win">🎉 Awesome! You Will Get</p>
  75. <div class="win-money">
  76. <img :src="detail.postBizData.currencyIconPath" />
  77. <font-amount :fontSize="46" :amount="receiveAmount"></font-amount>
  78. </div>
  79. </template>
  80. </div>
  81. <div class="succTitle">
  82. <span>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }}
  83. Winners</span>
  84. <span v-if="isMoneyPrize">{{ detail.postBizData.receiveAmountValue }} / {{
  85. detail.postBizData.amountValue || '' }} {{ detail.postBizData.currencySymbol || ''
  86. }}</span>
  87. </div>
  88. <div class="luck-list" @scroll="handleScroll($event)">
  89. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  90. <div class="userLogo">
  91. <img class="medal" v-if="i < 2"
  92. :src=" require('../static/svg/icon-medal-' + i + '.svg') " />
  93. <img class="header" v-if="item.simpleUserInfoVO.avatarUrl"
  94. :src="item.simpleUserInfoVO.avatarUrl" alt />
  95. <img class="header" v-else src="/svg/icon-twitter.svg" alt />
  96. </div>
  97. <div class="luck-content">
  98. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  99. <div class="luck-time">{{ formatTime(item.receiveTimestamp, 'MM-DD HH:mm') }}</div>
  100. </div>
  101. <div class="luck-money" v-if="isMoneyPrize">
  102. <img :src="item.currencyIconPath" alt />
  103. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  104. </div>
  105. <div class="luck-custom-prize" v-else>winner</div>
  106. <div class="luck-king" v-if="isMoneyPrize && item.maxAmount">
  107. <img src="/svg/icon-king-hat.svg" alt />
  108. <span>Luckiest Draw</span>
  109. </div>
  110. </div>
  111. </div>
  112. </template>
  113. <div class="area-cp-link">
  114. <div class="area-list">
  115. <div class="item">
  116. <div class="icon"><img :src=" require('../static/subject/01.svg') " /></div>
  117. <div class="font">Complete the tasks on tweet</div>
  118. </div>
  119. <div class="item">
  120. <div class="icon"><img :src=" require('../static/subject/02.svg') " /></div>
  121. <div class="font">Open link on PC to draw</div>
  122. <div class="pc"><img :src=" require('../static/subject/pc.svg') " /></div>
  123. </div>
  124. </div>
  125. <div class="area-content">
  126. {{ linkHref }}
  127. </div>
  128. <div class="area-btn">
  129. <div class="btn" :data-clipboard-text="linkHref" @click="copyLinkHandle">Copy Link</div>
  130. </div>
  131. </div>
  132. <div class="layer" v-show="layer_show">
  133. <div class="layer-box">
  134. <div class="layer-txt">Unable to copy, please enter the link manually</div>
  135. <div class="layer-btn" @click="layer_show = false">Done</div>
  136. </div>
  137. </div>
  138. </div>
  139. </template>
  140. <!-- PC端 -->
  141. <template v-else>
  142. <div class="logo">
  143. <img src="/img/icon-logo.png" />
  144. </div>
  145. <div class="show">
  146. <div class="center">
  147. <div class="head-in-custom" v-if="!isMoneyPrize">
  148. <img :src="detail.postBizData.postUserInfo.avatarUrl" />
  149. <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
  150. </div>
  151. <div class="giveaway" :class="{
  152. bg: status === 'not-open',
  153. custom: detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled,
  154. 'auto-height': !isMoneyPrize
  155. }">
  156. <div v-if="status === 'not-open'">
  157. <template
  158. v-if="detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled">
  159. <!-- <img class="customImg" :src="detail.postBizData.customPosterInstalled" />
  160. <div class="customBottom">
  161. <div class="theme">
  162. <img class="icon" :src="require('../static/svg/icon-last-time.svg')"/>
  163. <span class="time2">{{ validity || '00:00:00' }}</span>
  164. <span class="info">Left</span>
  165. </div>
  166. <div class="winner-info">
  167. <span class="count">{{detail.postBizData.totalCount}} Winners</span>
  168. <span>to Share </span>
  169. <span class="prize-name">{{detail.postBizData.amountValue + ' ' + detail.postBizData.currencySymbol}}</span>
  170. </div>
  171. </div> -->
  172. <custom-card-cover :totalCount="detail.postBizData.totalCount"
  173. :amountValue="detail.postBizData.amountValue"
  174. :tokenSymbol="detail.postBizData.tokenSymbol"
  175. :currencyIconUrl="detail.postBizData.iconPath" :playType="2" :posterType="2"
  176. :customPosterInstalled="detail.postBizData.customPosterInstalled"
  177. :validity="validity" :userInfo="{
  178. nickName: detail.postBizData.postUserInfo.nickName,
  179. avatarUrl: detail.postBizData.postUserInfo.avatarUrl
  180. }" :rewardType="detail.postBizData.rewardType"
  181. :customizedReward="detail.postBizData.customizedReward" :showBottomInfo="true">
  182. </custom-card-cover>
  183. </template>
  184. <template v-else>
  185. <!-- 旧版 样式,后续更新时在 custom-card-cover 公共组件内维护-->
  186. <template v-if="isMoneyPrize">
  187. <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
  188. <div class="head">
  189. <img :src="detail.postBizData.postUserInfo.avatarUrl" />
  190. <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
  191. </div>
  192. <div class="price">
  193. <div class="usdt">
  194. <span>
  195. {{detail.postBizData.amountCurrencyCode == 'USD' ? 'US Dollar' : detail.postBizData.tokenSymbol}}
  196. </span>
  197. &nbsp;GIVEAWAY
  198. </div>
  199. <div class="money">
  200. <img :src="detail.postBizData.currencyIconPath" />
  201. <font-amount :fontSize="60" :amount="detail.postBizData.amountValue">
  202. </font-amount>
  203. </div>
  204. </div>
  205. <div class="time">
  206. <img class="img" :src=" require('../static/svg/icon-time.svg') " />
  207. {{ validity || '00:00:00' }}
  208. </div>
  209. <div class="box">
  210. <img src="../static/subject/icon-box.png" />
  211. </div>
  212. </template>
  213. <template v-else>
  214. <custom-card-cover :totalCount="detail.postBizData.totalCount"
  215. :amountValue="detail.postBizData.amountValue"
  216. :tokenSymbol="detail.postBizData.tokenSymbol"
  217. :currencyIconUrl="detail.postBizData.iconPath" :playType="2"
  218. :validity="validity" :userInfo="{
  219. nickName: detail.postBizData.postUserInfo.nickName,
  220. avatarUrl: detail.postBizData.postUserInfo.avatarUrl
  221. }" :rewardType="detail.postBizData.rewardType"
  222. :customizedReward="detail.postBizData.customizedReward"
  223. :showBottomInfo="true"></custom-card-cover>
  224. </template>
  225. </template>
  226. </div>
  227. <template v-else>
  228. <div class="succTop">
  229. <template v-if="status === 'opened'">
  230. <img class="img" :src=" require('../static/svg/icon-luck-rabbit.svg') " />
  231. <p class="tips">Good Luck Next Time!</p>
  232. </template>
  233. <template v-else-if="status === 'expire'">
  234. <!-- <img class="img" :src=" require('../static/svg/icon-luck-complete.svg') " />
  235. <p class="tips">This Draw is Complete</p> -->
  236. <p class="expire">This Giveaways<br />expired on {{
  237. formatTime(detail.postBizData.endTimestamp, 'MM-DD') }}</p>
  238. </template>
  239. <template v-else>
  240. <p class="win">🎉 Awesome! You are Winner!</p>
  241. <div class="win-money">
  242. <img :src="detail.postBizData.currencyIconPath" />
  243. <font-amount :fontSize="46" :amount="receiveAmount"></font-amount>
  244. </div>
  245. </template>
  246. </div>
  247. <div class="succTitle">
  248. <span>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount ||
  249. 0 }} Winners</span>
  250. <span v-if="isMoneyPrize">{{ detail.postBizData.receiveAmountValue }} / {{
  251. detail.postBizData.amountValue || '' }} {{ detail.postBizData.currencySymbol ||
  252. '' }}</span>
  253. </div>
  254. <div class="luck-list" @scroll="handleScroll($event)">
  255. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  256. <div class="userLogo">
  257. <img class="medal" v-if="i < 2"
  258. :src=" require('../static/svg/icon-medal-' + i + '.svg') " />
  259. <img class="header" v-if="item.simpleUserInfoVO.avatarUrl"
  260. :src="item.simpleUserInfoVO.avatarUrl" alt />
  261. <img class="header" v-else src="/svg/icon-twitter.svg" alt />
  262. </div>
  263. <div class="luck-content">
  264. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User'
  265. }}</div>
  266. <div class="luck-time">{{ formatTime(item.receiveTimestamp, 'MM-DD HH:mm')
  267. }}</div>
  268. </div>
  269. <div class="luck-money" v-if="isMoneyPrize">
  270. <img :src="item.currencyIconPath" alt />
  271. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  272. </div>
  273. <div class="luck-custom-prize" v-else>winner</div>
  274. <div class="luck-king" v-if="isMoneyPrize && item.maxAmount">
  275. <img src="/svg/icon-king-hat.svg" alt />
  276. <span>Luckiest Draw</span>
  277. </div>
  278. </div>
  279. </div>
  280. </template>
  281. </div>
  282. <div class="desc">
  283. <template v-if="isChrome">
  284. <template v-if="status === 'not-open'">
  285. <div class="title">Install DeNet Plugin<br />to Draw Prizes</div>
  286. <div class="issue">DeNet will detect task situation to issue Giveaway</div>
  287. </template>
  288. <template v-else>
  289. <div class="title">Install the Denet plugin<br />to not miss the next draw</div>
  290. </template>
  291. <img class="button" @click="installExtension"
  292. src="../static/svg/icon-install-nft-plugin.svg" />
  293. </template>
  294. <template v-else>
  295. <div class="title">Get Giveaway<br />with chrome</div>
  296. <div class="issue">Only supports getting Giveaways through chrome</div>
  297. <img class="button" @click="clickOpenChrome"
  298. src="../static/svg/icon-install-nft-chrome.svg" />
  299. </template>
  300. </div>
  301. </div>
  302. </div>
  303. </template>
  304. </template>
  305. </div>
  306. </template>
  307. <script>
  308. import axios from 'axios'
  309. import Cookies from 'js-cookie'
  310. import { Toast } from 'vant';
  311. import { isBrowser, appType, appVersionCode, formatSecondsAsDaysOrTime } from '../utils/help.js'
  312. import FontAmount from '../components/FontAmount.vue'
  313. import CustomCardCover from '../components/CustomCardCover.vue'
  314. import Report from "../log-center/log"
  315. import { RewardType } from '../types';
  316. var moment = require('moment');
  317. var ClipboardJS = require('clipboard')
  318. const api = {
  319. prod: 'https://api.denetme.net',
  320. pre: 'https://preapi.denetme.net',
  321. test: 'https://testapi.denetme.net'
  322. }
  323. const page = {
  324. prod: "https://h5.denetme.net",
  325. pre: "https://preh5.denetme.net",
  326. test: 'https://testh5.denetme.net'
  327. }
  328. const jumpUrl = page[process.env.NUXT_ENV.MODE] + '/'
  329. const baseURL = api[process.env.NUXT_ENV.MODE]
  330. export default {
  331. name: 'luckdraw',
  332. components: {
  333. FontAmount,CustomCardCover
  334. },
  335. head() {
  336. return {
  337. type: '',
  338. title: this.title,
  339. appVersionCode: appVersionCode,
  340. meta: [
  341. // facebook
  342. {
  343. name: 'og:url',
  344. content: this.jumpUrl + 'luckdraw/' + this.detail.postId
  345. },
  346. {
  347. name: 'og:title',
  348. content: this.metaTitle
  349. },
  350. {
  351. name: 'og:image',
  352. content: this.detail.postBizData.imagePath || this.detail.postBizData.customPosterUninstalled || ''
  353. },
  354. // twitter
  355. {
  356. name: 'twitter:card',
  357. content: 'summary_large_image'
  358. },
  359. {
  360. name: 'twitter:url',
  361. content: this.jumpUrl + 'luckdraw/' + this.detail.postId
  362. },
  363. {
  364. name: 'twitter:title',
  365. content: this.metaTitle
  366. },
  367. {
  368. name: 'twitter:image',
  369. content: this.detail.postBizData.imagePath || this.detail.postBizData.customPosterUninstalled || ''
  370. }
  371. ]
  372. }
  373. },
  374. data() {
  375. return {
  376. detail: {
  377. postId: '',
  378. postBizData: {
  379. imagePath: '',
  380. postUserInfo: {},
  381. amountValue: '0',
  382. }
  383. },
  384. luck_list: [],
  385. luck_list_end: false,
  386. layer_show: false,
  387. isLoading: true,
  388. isMobile: false,
  389. isChrome: false,
  390. config: {},
  391. mid: '',
  392. status: '', // not-open->未打开 opened->没有抽中 success->抽中了 expire->过期
  393. page_index: 1,
  394. page_size: 20,
  395. validity: '',
  396. receiveAmount: '0',
  397. title: 'DeNet Giveaway',
  398. jumpUrl: jumpUrl,
  399. metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
  400. reportStatus: 'normal',
  401. customCover: '',
  402. customGiveaway: '',
  403. }
  404. },
  405. computed: {
  406. // 货币类型的奖品
  407. isMoneyPrize() {
  408. return this.detail.postBizData.rewardType === RewardType.money;
  409. }
  410. },
  411. mounted() {
  412. this.getConfig()
  413. this.setCookieMid()
  414. this.checkBrowser()
  415. this.handleStatusPage()
  416. this.isLoading = false;
  417. // 复制链接
  418. var clipboard = new ClipboardJS('.btn');
  419. clipboard.on('success', function (e) {
  420. Toast('copy success');
  421. e.clearSelection();
  422. });
  423. clipboard.on('error', function (e) {
  424. this.layer_show = true
  425. });
  426. },
  427. async asyncData(params) {
  428. let { route } = params;
  429. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  430. baseInfo: {
  431. appVersionCode: appVersionCode,
  432. mid: function () {
  433. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  434. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  435. return v.toString(16);
  436. });
  437. }()
  438. },
  439. params: {
  440. postId: route.params.id || ''
  441. }
  442. })
  443. if (data.code == 0) {
  444. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  445. data.data.postBizData = JSON.parse(data.data.postBizData)
  446. }
  447. if (data.data.postBizData === null) {
  448. data.data.postBizData = {
  449. postUserInfo: {}
  450. }
  451. }
  452. return {
  453. detail: data.data,
  454. customCover: data.data.postBizData && data.data.postBizData.posterType == 2 ? 1 : 0,
  455. customGiveaway: data.data.postBizData && data.data.postBizData.rewardType == 2 ? 1 : 0,
  456. }
  457. }
  458. },
  459. methods: {
  460. checkBrowser() {
  461. this.linkHref = window.location.href;
  462. this.isChrome = isBrowser() == 'chrome';
  463. this.isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
  464. if (!this.isChrome) {
  465. this.status = 'no-chrome'
  466. } else {
  467. this.setPickupInfo()
  468. }
  469. // report
  470. setTimeout(() => {
  471. this.reportData()
  472. }, 500)
  473. },
  474. async getConfig() {
  475. let { data } = await axios.post(`${baseURL}/denet/base/config/getFrontConfig`, {
  476. baseInfo: {
  477. appVersionCode: appVersionCode,
  478. mid: this.mid
  479. },
  480. params: {}
  481. })
  482. if (data.code == 0) {
  483. this.config = data.data;
  484. }
  485. },
  486. setCookieMid() {
  487. let _cookie_mid_arr = Cookies.get('mid') || []
  488. if (_cookie_mid_arr.length > 0) {
  489. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  490. } else {
  491. this.mid = this.guid()
  492. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  493. }
  494. },
  495. guid() {
  496. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  497. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  498. return v.toString(16);
  499. });
  500. },
  501. clickOpenChrome() {
  502. window.open('https://www.google.com/chrome')
  503. let extParams = this.isMobile ? {} : { status: this.reportStatus }
  504. Report.reportLog({
  505. baseInfo: {
  506. appVersionCode: appVersionCode,
  507. mid: this.mid,
  508. pageSource: Report.pageSource.newUserLandingPage,
  509. appType,
  510. machineCode: this.mid
  511. },
  512. params: {
  513. eventData: {
  514. businessType: Report.businessType.buttonClick,
  515. objectType: Report.objectType.installButton,
  516. postId: this.detail.postId,
  517. srcContentId: this.detail.srcContentId,
  518. senderId: this.detail.srcUserId,
  519. redPacketType: 1,
  520. customCover: this.customCover,
  521. customGiveaway: this.customGiveaway,
  522. },
  523. extParams: extParams
  524. }
  525. })
  526. },
  527. installExtension() {
  528. let { extensionsInstallChannel, extensionsInstallUrl } = this.config;
  529. let extParams = this.isMobile ? {} : { status: this.reportStatus }
  530. Report.reportLog({
  531. baseInfo: {
  532. appVersionCode: appVersionCode,
  533. mid: this.mid,
  534. pageSource: Report.pageSource.newUserLandingPage,
  535. appType,
  536. machineCode: this.mid
  537. },
  538. params: {
  539. eventData: {
  540. businessType: Report.businessType.buttonClick,
  541. objectType: Report.objectType.installButton,
  542. postId: this.detail.postId,
  543. srcContentId: this.detail.srcContentId,
  544. senderId: this.detail.srcUserId,
  545. redPacketType: 1,
  546. customCover: this.customCover,
  547. customGiveaway: this.customGiveaway,
  548. },
  549. extParams: extParams,
  550. }
  551. })
  552. switch (extensionsInstallChannel) {
  553. case "officeDownload":
  554. location.href = url;
  555. this.$router.push({
  556. path: '/install'
  557. })
  558. break;
  559. case "chromeAppStore":
  560. window.open(extensionsInstallUrl)
  561. break;
  562. }
  563. },
  564. setPickupInfo() {
  565. let pickupInfo = {
  566. srcContentId: this.detail.srcContentId || '',
  567. postNickName: this.detail.postBizData.postUserInfo.nickName || '',
  568. createTime: Date.now(),
  569. jump_type: 'luck_draw',
  570. };
  571. Cookies.set('jump_info', JSON.stringify(pickupInfo), { expires: 100 });
  572. },
  573. formatTime(time, _type = 'MM-DD HH:mm:ss') {
  574. return moment(time).format(_type)
  575. },
  576. getValidity(end_time) {
  577. let timer = setInterval(() => {
  578. let time = moment(new Date().getTime())
  579. let endTime = moment(end_time + 5000)
  580. let downTime = (endTime - time) || 0
  581. if (downTime > 0) {
  582. this.validity = formatSecondsAsDaysOrTime(downTime / 1000);
  583. } else {
  584. this.validity = `00:00:00`
  585. this.getDetail(() => {
  586. this.handleStatusPage()
  587. })
  588. clearInterval(timer)
  589. }
  590. }, 1000)
  591. },
  592. handleScroll(e) {
  593. e = e.target
  594. if (this.luck_list_end) {
  595. return
  596. }
  597. if ((e.clientHeight + e.scrollTop) / e.scrollHeight > .8) {
  598. this.luck_list_end = false
  599. this.page_index++
  600. this.getReceivedList()
  601. }
  602. },
  603. handleStatusPage() {
  604. // 如果 我领取过了
  605. // taskFinishStatus 任务完成状态(0:未完成,1:已完成,2:已过期)
  606. if (this.detail.postBizData.myReceived) {
  607. this.receiveAmount = this.detail.postBizData.myReceived.amountValue || 0
  608. // 如果 任务完成状态 = 未完成
  609. if (this.detail.postBizData.myReceived.taskFinishStatus == 0) {
  610. // 显示任务未完成页面
  611. this.status = `opened`
  612. } else if (this.detail.postBizData.myReceived.taskFinishStatus == 1) {
  613. //如果 任务完成状态 = 已经完成
  614. if (this.receiveAmount == 0) {
  615. // 领取到空红包
  616. this.status = `opened`
  617. this.reportStatus = `empty`
  618. } else {
  619. // 显示成功页面
  620. this.status = `success`
  621. }
  622. } else {
  623. // 如果 任务完成状态 = 已经过期
  624. if (this.detail.postBizData.status == 1) {
  625. // 显示未打开页面
  626. this.status = 'not-open'
  627. } else {
  628. // 显示已经过期页面
  629. this.status = 'expire'
  630. this.reportStatus = `empty`
  631. }
  632. }
  633. } else {
  634. // 如果 我没有领取过
  635. // 如果 红包状态 = 进行中
  636. if (this.detail.postBizData.status == 1) {
  637. // 如果 过了红包的领取截止时间 = true
  638. if (this.detail.postBizData.receiveTimeExpired) {
  639. // 显示过期页面
  640. this.status = 'expire'
  641. this.reportStatus = `empty`
  642. } else {
  643. // 如果 过了红包的领取截止时间 = false
  644. // 显示未打开页面
  645. this.status = 'not-open'
  646. }
  647. } else {
  648. // 红包状态 = 已经结束了 | 已经终止 | 终止退款中
  649. // 显示过期页面
  650. this.status = 'expire'
  651. this.reportStatus = `empty`
  652. }
  653. }
  654. // getList
  655. if (this.status !== 'not-open') {
  656. this.getReceivedList()
  657. } else {
  658. this.getValidity(this.detail.postBizData.endTimestamp)
  659. }
  660. },
  661. async getDetail(fn) {
  662. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  663. baseInfo: {
  664. appVersionCode: appVersionCode,
  665. mid: this.mid
  666. },
  667. params: {
  668. postId: this.detail.postId
  669. }
  670. })
  671. if (data.code == 0) {
  672. this.detail.postBizData = JSON.parse(data.data.postBizData)
  673. this.customCover = this.detail.postBizData && this.detail.postBizData.posterType == 2 ? 1 : 0;
  674. this.customGiveaway = this.detail.postBizData && this.detail.postBizData.rewardType == 2 ? 1 : 0;
  675. if (fn) fn();
  676. }
  677. },
  678. async getReceivedList() {
  679. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/getReceivedList`, {
  680. baseInfo: {
  681. appVersionCode: appVersionCode,
  682. mid: this.mid
  683. },
  684. params: {
  685. pageNum: this.page_index,
  686. pageSize: this.page_size,
  687. postId: this.detail.postId || ''
  688. }
  689. })
  690. if (data.code == 0) {
  691. if (data.data.length > 0) {
  692. this.luck_list = this.luck_list.concat(data.data)
  693. this.luck_list_end = false
  694. } else {
  695. this.luck_list_end = true
  696. }
  697. }
  698. },
  699. copyLinkHandle() {
  700. Report.reportLog({
  701. baseInfo: {
  702. appVersionCode: appVersionCode,
  703. mid: this.mid,
  704. pageSource: Report.pageSource.mobileLandingPage,
  705. appType,
  706. machineCode: this.mid
  707. },
  708. params: {
  709. eventData: {
  710. businessType: Report.businessType.buttonClick,
  711. objectType: Report.objectType.copyLinkButton,
  712. postId: this.detail.postId || '',
  713. srcContentId: this.detail.srcContentId || '',
  714. senderId: this.detail.srcUserId || '',
  715. redPacketType: 1,
  716. customCover: this.customCover,
  717. customGiveaway: this.customGiveaway,
  718. }
  719. }
  720. })
  721. },
  722. reportData() {
  723. if (this.isMobile) {
  724. // 手机端
  725. Report.reportLog({
  726. baseInfo: {
  727. appVersionCode: appVersionCode,
  728. mid: this.mid,
  729. pageSource: Report.pageSource.mobileLandingPage,
  730. appType,
  731. machineCode: this.mid
  732. },
  733. params: {
  734. eventData: {
  735. businessType: Report.businessType.pageView,
  736. postId: this.detail.postId,
  737. srcContentId: this.detail.srcContentId,
  738. senderId: this.detail.srcUserId,
  739. redPacketType: 1,
  740. customCover: this.customCover,
  741. customGiveaway: this.customGiveaway,
  742. }
  743. }
  744. })
  745. } else if (this.isChrome) {
  746. // pc端
  747. Report.reportLog({
  748. baseInfo: {
  749. appVersionCode: appVersionCode,
  750. mid: this.mid,
  751. pageSource: Report.pageSource.newUserLandingPage,
  752. appType,
  753. machineCode: this.mid
  754. },
  755. params: {
  756. eventData: {
  757. businessType: Report.businessType.pageView,
  758. postId: this.detail.postId,
  759. srcContentId: this.detail.srcContentId,
  760. senderId: this.detail.srcUserId,
  761. redPacketType: 1,
  762. customCover: this.customCover,
  763. customGiveaway: this.customGiveaway,
  764. },
  765. extParams: {
  766. status: this.reportStatus,
  767. }
  768. }
  769. });
  770. } else {
  771. Report.reportLog({
  772. baseInfo: {
  773. appVersionCode: appVersionCode,
  774. mid: this.mid,
  775. pageSource: Report.pageSource.newUserLandingPage,
  776. appType,
  777. machineCode: this.mid
  778. },
  779. params: {
  780. eventData: {
  781. businessType: Report.businessType.pageView,
  782. postId: this.detail.postId,
  783. srcContentId: this.detail.srcContentId,
  784. senderId: this.detail.srcUserId,
  785. redPacketType: 1,
  786. customCover: this.customCover,
  787. customGiveaway: this.customGiveaway,
  788. },
  789. extParams: {
  790. status: 'not-chrome',
  791. }
  792. }
  793. })
  794. }
  795. }
  796. }
  797. }
  798. </script>
  799. <style lang="scss">
  800. html,
  801. body,
  802. #__nuxt,
  803. #__layout {
  804. width: 100%;
  805. height: 100%;
  806. padding: 0;
  807. margin: 0;
  808. }
  809. .content {
  810. overflow: hidden;
  811. width: 100%;
  812. height: 100%;
  813. background: #fff;
  814. .loading {
  815. position: absolute;
  816. transform: translate(-50%, -50%);
  817. top: 50%;
  818. left: 50%;
  819. margin: auto;
  820. width: 40px;
  821. border-radius: 50%;
  822. }
  823. .logo {
  824. display: flex;
  825. align-items: center;
  826. height: 70px;
  827. margin-left: 25px;
  828. img {
  829. width: 99px;
  830. height: 32px;
  831. }
  832. }
  833. .show {
  834. display: flex;
  835. align-items: center;
  836. height: calc(100% - 70px);
  837. .center {
  838. display: flex;
  839. margin: -50px auto 0;
  840. justify-content: space-between;
  841. width: 1000px;
  842. position: relative;
  843. .head-in-custom {
  844. position: absolute;
  845. bottom: 100%;
  846. left: 0;
  847. background: #fff;
  848. display: flex;
  849. align-items: center;
  850. font-weight: 500;
  851. font-size: 15px;
  852. color: #000;
  853. height: 54px;
  854. img {
  855. width: 30px;
  856. height: 30px;
  857. border-radius: 50%;
  858. margin-right: 10px;
  859. }
  860. }
  861. .giveaway {
  862. position: relative;
  863. overflow: hidden;
  864. width: 375px;
  865. height: 500px;
  866. border-radius: 20px;
  867. background-color: #fff;
  868. box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  869. &.bg {
  870. background: linear-gradient(17.98deg, #3438FF 3.69%, #8B56FC 74.32%);
  871. }
  872. &.custom {
  873. background: unset;
  874. height: auto!important;
  875. }
  876. &.auto-height {
  877. height: auto;
  878. }
  879. .lottery {
  880. position: absolute;
  881. top: 0;
  882. right: 0;
  883. width: 110px;
  884. height: 94px;
  885. }
  886. .head {
  887. display: flex;
  888. height: 50px;
  889. align-items: center;
  890. img {
  891. width: 20px;
  892. height: 20px;
  893. border-radius: 50%;
  894. margin: 0 10px 0 15px;
  895. border: solid 2px #fff;
  896. }
  897. span {
  898. color: #fff;
  899. font-size: 13px;
  900. font-weight: 700;
  901. line-height: 16px;
  902. letter-spacing: 0.005em;
  903. }
  904. }
  905. .price {
  906. text-align: center;
  907. .usdt {
  908. margin: 10px 0;
  909. color: #FFFFFF;
  910. font-weight: bold;
  911. font-size: 16px;
  912. line-height: 20px;
  913. text-align: center;
  914. letter-spacing: 0.3px;
  915. display: flex;
  916. align-items: center;
  917. justify-content: center;
  918. span {
  919. color: #F9C545;
  920. }
  921. }
  922. .money {
  923. display: flex;
  924. align-items: center;
  925. justify-content: center;
  926. img {
  927. width: 46px;
  928. height: 46px;
  929. margin-right: 15px;
  930. border-radius: 50%;
  931. border: solid 3px #fff;
  932. }
  933. span {
  934. color: #fff;
  935. font-size: 60px;
  936. font-weight: 800;
  937. line-height: 76px;
  938. }
  939. }
  940. }
  941. .time {
  942. display: flex;
  943. height: 46px;
  944. color: #FFCC4D;
  945. align-items: center;
  946. justify-content: center;
  947. font-weight: bold;
  948. font-size: 26px;
  949. line-height: 33px;
  950. text-align: center;
  951. background: rgba($color: #000000, $alpha: .15);
  952. .img {
  953. width: 26px;
  954. margin-right: 10px;
  955. }
  956. }
  957. .box {
  958. margin: auto;
  959. width: 200px;
  960. height: 200px;
  961. margin-top: 27px;
  962. img {
  963. width: 100%;
  964. height: 100%;
  965. }
  966. }
  967. }
  968. .desc {
  969. width: 520px;
  970. .title {
  971. color: #2C2C2C;
  972. font-size: 36px;
  973. line-height: 40px;
  974. font-weight: 900;
  975. margin-top: 90px;
  976. margin-bottom: 20px;
  977. }
  978. .issue {
  979. font-size: 15px;
  980. color: #A4A4A4;
  981. }
  982. .button {
  983. cursor: pointer;
  984. height: 64px;
  985. margin-top: 30px;
  986. }
  987. }
  988. }
  989. }
  990. }
  991. .small {
  992. width: 100%;
  993. height: 100%;
  994. position: relative;
  995. background-color: #fff;
  996. &.bg {
  997. background: linear-gradient(17.98deg, #3438FF 3.69%, #8B56FC 74.32%);
  998. }
  999. &.custom {
  1000. background: #111214!important;
  1001. }
  1002. .lottery {
  1003. position: absolute;
  1004. top: 0;
  1005. right: 0;
  1006. width: 110px;
  1007. height: 94px;
  1008. }
  1009. .luck-list {
  1010. height: calc(100% - 430px);
  1011. }
  1012. .head {
  1013. display: flex;
  1014. height: 50px;
  1015. align-items: center;
  1016. img {
  1017. width: 20px;
  1018. height: 20px;
  1019. border-radius: 50%;
  1020. margin: 0 10px 0 15px;
  1021. border: solid 2px #fff;
  1022. }
  1023. span {
  1024. color: #fff;
  1025. font-size: 13px;
  1026. font-weight: 700;
  1027. line-height: 16px;
  1028. letter-spacing: 0.005em;
  1029. }
  1030. }
  1031. .price {
  1032. text-align: center;
  1033. .usdt {
  1034. margin: 10px 0;
  1035. color: #FFFFFF;
  1036. font-weight: bold;
  1037. font-size: 16px;
  1038. line-height: 20px;
  1039. text-align: center;
  1040. letter-spacing: 0.3px;
  1041. display: flex;
  1042. align-items: center;
  1043. justify-content: center;
  1044. span {
  1045. color: #F9C545;
  1046. }
  1047. }
  1048. .money {
  1049. display: flex;
  1050. align-items: center;
  1051. justify-content: center;
  1052. img {
  1053. width: 46px;
  1054. height: 46px;
  1055. margin-right: 15px;
  1056. border-radius: 50%;
  1057. border: solid 3px #fff;
  1058. }
  1059. span {
  1060. color: #fff;
  1061. font-size: 60px;
  1062. font-weight: 800;
  1063. line-height: 76px;
  1064. }
  1065. }
  1066. }
  1067. .time {
  1068. display: flex;
  1069. height: 46px;
  1070. color: #FFCC4D;
  1071. align-items: center;
  1072. justify-content: center;
  1073. font-weight: bold;
  1074. font-size: 26px;
  1075. line-height: 33px;
  1076. text-align: center;
  1077. background: rgba($color: #000000, $alpha: .15);
  1078. .img {
  1079. width: 26px;
  1080. margin-right: 10px;
  1081. }
  1082. }
  1083. .box {
  1084. margin: auto;
  1085. width: 200px;
  1086. height: 200px;
  1087. margin-top: 27px;
  1088. img {
  1089. width: 100%;
  1090. height: 100%;
  1091. }
  1092. }
  1093. .area-cp-link {
  1094. position: absolute;
  1095. bottom: 0;
  1096. background: #fff;
  1097. overflow: hidden;
  1098. width: 100%;
  1099. flex-wrap: wrap;
  1100. height: 238px;
  1101. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  1102. border-top-left-radius: 10px;
  1103. border-top-right-radius: 10px;
  1104. .area-list {
  1105. clear: both;
  1106. margin: 15px;
  1107. .item {
  1108. clear: both;
  1109. overflow: hidden;
  1110. margin: 7px 0;
  1111. font-size: 16px;
  1112. font-weight: 500;
  1113. .icon {
  1114. float: left;
  1115. margin-right: 8px;
  1116. margin-top: -2px;
  1117. }
  1118. .font {
  1119. float: left;
  1120. margin-right: 8px;
  1121. }
  1122. .pc {
  1123. float: left;
  1124. margin-top: -2px;
  1125. }
  1126. }
  1127. }
  1128. .area-content {
  1129. margin: 0 15px;
  1130. color: #4B4B4B;
  1131. padding: 7px 10px;
  1132. font-size: 13px;
  1133. border-radius: 5px;
  1134. background: #F4F4F4;
  1135. word-break: break-all;
  1136. }
  1137. .area-btn {
  1138. flex: 1;
  1139. display: flex;
  1140. justify-content: center;
  1141. .btn {
  1142. margin: 15px 15px 0 15px;
  1143. display: inline-block;
  1144. width: 100%;
  1145. height: 47px;
  1146. font-size: 18px;
  1147. line-height: 34px;
  1148. color: #FFFFFF;
  1149. border-radius: 100px;
  1150. background: #389AFF;
  1151. }
  1152. }
  1153. }
  1154. }
  1155. .layer {
  1156. position: fixed;
  1157. width: 100%;
  1158. height: 100%;
  1159. top: 0;
  1160. left: 0;
  1161. background: rgba(0, 0, 0, .5);
  1162. .layer-box {
  1163. width: 300px;
  1164. height: 170px;
  1165. background: #FFFFFF;
  1166. border-radius: 11px;
  1167. opacity: 1;
  1168. position: absolute;
  1169. top: 250px;
  1170. left: 50%;
  1171. margin-left: -150px;
  1172. .layer-txt {
  1173. margin: 30px 0;
  1174. width: 100%;
  1175. padding: 0 27px;
  1176. font-weight: 600;
  1177. font-size: 18px;
  1178. text-align: center;
  1179. }
  1180. .layer-btn {
  1181. width: 190px;
  1182. height: 40px;
  1183. background: #389AFF;
  1184. border-radius: 100px;
  1185. margin: 0 auto;
  1186. text-align: center;
  1187. line-height: 40px;
  1188. color: #fff;
  1189. font-weight: 600;
  1190. font-size: 18px;
  1191. }
  1192. }
  1193. }
  1194. .luck-list {
  1195. flex: 1;
  1196. width: 100%;
  1197. height: 310px;
  1198. overflow-y: auto;
  1199. .luck-item {
  1200. display: flex;
  1201. padding: 12px 0;
  1202. margin: 0 16px;
  1203. border-bottom: 1px solid #F2F2F2;
  1204. justify-content: space-between;
  1205. position: relative;
  1206. .header {
  1207. border-radius: 50%;
  1208. }
  1209. .luck-king {
  1210. position: absolute;
  1211. top: 36px;
  1212. right: 0px;
  1213. display: flex;
  1214. align-items: center;
  1215. img {
  1216. width: 22px;
  1217. height: 19px;
  1218. margin: 0;
  1219. }
  1220. span {
  1221. font-weight: 500;
  1222. font-size: 12px;
  1223. line-height: 14px;
  1224. letter-spacing: 0.3px;
  1225. color: #f5b945;
  1226. }
  1227. }
  1228. .userLogo {
  1229. position: relative;
  1230. width: 42px;
  1231. height: 42px;
  1232. margin-right: 12px;
  1233. .medal {
  1234. position: absolute;
  1235. right: -5px;
  1236. bottom: -5px;
  1237. width: 18px;
  1238. height: 18px;
  1239. }
  1240. img {
  1241. width: 100%;
  1242. height: 100%;
  1243. }
  1244. }
  1245. .luck-content {
  1246. flex: auto;
  1247. .luck-title {
  1248. font-weight: 500;
  1249. font-size: 16px;
  1250. letter-spacing: 0.3px;
  1251. color: #444444;
  1252. }
  1253. .luck-time {
  1254. font-weight: 400;
  1255. font-size: 12px;
  1256. line-height: 14px;
  1257. color: #9b9b9b;
  1258. }
  1259. }
  1260. .luck-money {
  1261. display: flex;
  1262. height: 17px;
  1263. align-items: center;
  1264. img {
  1265. width: 14px;
  1266. height: 14px;
  1267. margin-right: 6px;
  1268. }
  1269. .luck-money-txt {
  1270. font-weight: 500;
  1271. font-size: 14px;
  1272. /* identical to box height */
  1273. text-align: right;
  1274. letter-spacing: 0.3px;
  1275. color: #444444;
  1276. }
  1277. }
  1278. .luck-custom-prize {
  1279. font-weight: 500;
  1280. font-size: 14px;
  1281. letter-spacing: 0.3px;
  1282. color: #F5B945;
  1283. }
  1284. }
  1285. .luck-item:last-child {
  1286. border: 0;
  1287. }
  1288. }
  1289. .succTop {
  1290. display: flex;
  1291. align-items: center;
  1292. flex-direction: column;
  1293. justify-content: center;
  1294. height: 150px;
  1295. margin-bottom: 13px;
  1296. background: #7D52FD;
  1297. border-radius: 0 586px 586px/0 0 104px 104px;
  1298. .img {
  1299. height: 62px;
  1300. }
  1301. .expire {
  1302. color: #FFFFFF;
  1303. font-size: 22px;
  1304. font-weight: 800;
  1305. line-height: 36px;
  1306. margin-top: 15px;
  1307. text-align: center;
  1308. }
  1309. .tips {
  1310. color: #FFFFFF;
  1311. font-size: 22px;
  1312. font-weight: 800;
  1313. line-height: 26px;
  1314. margin-top: 15px;
  1315. }
  1316. .win {
  1317. font-size: 21px;
  1318. font-weight: 800;
  1319. color: #fff;
  1320. }
  1321. .win-money {
  1322. display: flex;
  1323. margin-top: -10px;
  1324. align-items: center;
  1325. justify-content: center;
  1326. img {
  1327. width: 44px;
  1328. height: 44px;
  1329. margin-right: 15px;
  1330. border-radius: 50%;
  1331. border: solid 3px #fff;
  1332. }
  1333. span {
  1334. color: #fff;
  1335. font-size: 60px;
  1336. font-weight: 800;
  1337. line-height: 76px;
  1338. }
  1339. }
  1340. }
  1341. .succTitle {
  1342. display: flex;
  1343. padding: 5px 0;
  1344. justify-content: space-between;
  1345. box-shadow: inset 0px -1px 0px #F2F2F2;
  1346. span {
  1347. margin: 0 16px;
  1348. font-size: 12px;
  1349. color: #B0B0B0;
  1350. &:last-child {
  1351. text-align: right;
  1352. }
  1353. }
  1354. }
  1355. .customImg {
  1356. width: 100%;
  1357. min-height: 373px;
  1358. }
  1359. .customBottom {
  1360. width: 100%;
  1361. background:#111214;
  1362. padding: 10px 16px;
  1363. font-weight: 500;
  1364. font-size: 12px;
  1365. line-height: 14px;
  1366. letter-spacing: 0.3px;
  1367. color: #838383;
  1368. line-height: 20px;
  1369. .theme {
  1370. display: flex;
  1371. height: 20px;
  1372. align-items: center;
  1373. justify-content: flex-start;
  1374. .icon {
  1375. width: 12px;
  1376. }
  1377. .time2 {
  1378. margin: 0 4px;
  1379. color: #1D9BF0;
  1380. }
  1381. }
  1382. .winner-info {
  1383. display: flex;
  1384. height: 20px;
  1385. align-items: center;
  1386. justify-content: flex-start;
  1387. .count{
  1388. color: #1D9BF0;
  1389. margin-right: 4px;
  1390. }
  1391. .prize-name {
  1392. color: #1D9BF0;
  1393. margin-left: 4px;
  1394. }
  1395. }
  1396. }
  1397. </style>