luckdraw.vue 54 KB

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