luckdraw.vue 53 KB

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