luckdraw.vue 36 KB

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