luckdraw.vue 54 KB

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