index.vue 35 KB

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