luckdraw.vue 37 KB

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