luckdraw.vue 37 KB

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