luckdraw.vue 55 KB

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