index.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597
  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. }
  322. })
  323. },
  324. clickOpenChrome() {
  325. window.open('https://www.google.com/chrome')
  326. let extParams = this.isMobile() ? {} : { status: this.reportStatus }
  327. Report.reportLog({
  328. baseInfo: {
  329. appVersionCode: this.appVersionCode,
  330. mid: this.mid,
  331. pageSource: Report.pageSource.newUserLandingPage,
  332. appType,
  333. machineCode: this.mid
  334. },
  335. params: {
  336. eventData: {
  337. businessType: Report.businessType.buttonClick,
  338. objectType: Report.objectType.installButton,
  339. postId: this.detail.postId,
  340. srcContentId: this.detail.srcContentId,
  341. senderId: this.detail.srcUserId,
  342. },
  343. extParams: extParams
  344. }
  345. })
  346. },
  347. isMobile() {
  348. 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);
  349. return flag;
  350. },
  351. installExtension() {
  352. let { extensionsInstallChannel, extensionsInstallUrl } = this.config;
  353. let url = extensionsInstallUrl;
  354. let extParams = this.isMobile() ? {} : { status: this.reportStatus }
  355. Report.reportLog({
  356. baseInfo: {
  357. appVersionCode: this.appVersionCode,
  358. mid: this.mid,
  359. pageSource: Report.pageSource.newUserLandingPage,
  360. appType,
  361. machineCode: this.mid
  362. },
  363. params: {
  364. eventData: {
  365. businessType: Report.businessType.buttonClick,
  366. objectType: Report.objectType.installButton,
  367. postId: this.detail.postId,
  368. srcContentId: this.detail.srcContentId,
  369. senderId: this.detail.srcUserId,
  370. },
  371. extParams: extParams,
  372. }
  373. })
  374. switch (extensionsInstallChannel) {
  375. case "officeDownload":
  376. location.href = url;
  377. this.$router.push({
  378. path: '/install'
  379. })
  380. break;
  381. case "chromeAppStore":
  382. window.open(extensionsInstallUrl)
  383. break;
  384. }
  385. },
  386. formatTime(time, _type = 'MM-DD HH:mm:ss') {
  387. return moment(time).format(_type)
  388. },
  389. guid() {
  390. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  391. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  392. return v.toString(16);
  393. });
  394. },
  395. handleScroll(e) {
  396. e = e.target
  397. if (this.luck_list_end) {
  398. return
  399. }
  400. if ((e.clientHeight + e.scrollTop) / e.scrollHeight > .8) {
  401. this.luck_list_end = false
  402. this.page_index++
  403. this.getReceivedList()
  404. }
  405. },
  406. getFontSize(amount) {
  407. let _num = parseInt(360 / amount.length);
  408. this.amount_font_size = _num < 46 ? _num : 46;
  409. },
  410. setCookieMid() {
  411. let _cookie_mid_arr = Cookies.get('mid') || []
  412. if (_cookie_mid_arr.length > 0) {
  413. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  414. } else {
  415. this.mid = this.guid()
  416. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  417. }
  418. },
  419. async getRedPacket() {
  420. this.currencyIconPath = this.detail.postBizData.currencyIconPath
  421. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/receiveLuckdrop`, {
  422. baseInfo: {
  423. appVersionCode: this.appVersionCode,
  424. mid: this.mid
  425. },
  426. params: {
  427. postId: this.detail.postId || ''
  428. }
  429. })
  430. this.show_home = true
  431. switch (data.code.toString()) {
  432. case '0':
  433. this.getDetail()
  434. if (data.data.receiveAmount == '0') {
  435. this.reportStatus = 'empty'
  436. this.status = 'nothing'
  437. } else {
  438. if (data.data.newReceived) {
  439. this.status = 'not-open'
  440. setTimeout(() => {
  441. this.status = 'open'
  442. }, 3000)
  443. this.receiveAmount = data.data.receiveAmount
  444. } else {
  445. this.status = 'opened'
  446. }
  447. }
  448. this.getValidity(data.data.endTimestamp)
  449. this.receiveAmount = data.data.receiveAmount
  450. this.getFontSize(this.receiveAmount)
  451. break;
  452. case '2003':
  453. // this.status = 'expire'
  454. this.reportStatus = 'empty'
  455. this.getDetail()
  456. this.status = 'nothing'
  457. break
  458. // 红包被领完了
  459. case '2008':
  460. this.reportStatus = 'empty'
  461. this.getDetail()
  462. this.status = 'nothing'
  463. break
  464. case '2029':
  465. // 推文未发布
  466. this.status = 'error'
  467. break
  468. default:
  469. console.log('getRedPacket', data)
  470. // this.show_home = false
  471. this.reportStatus = 'empty'
  472. this.getDetail()
  473. this.status = 'nothing'
  474. break;
  475. }
  476. // 领取列表分页
  477. this.getReceivedList()
  478. },
  479. async getReceivedList() {
  480. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/getReceivedList`, {
  481. baseInfo: {
  482. appVersionCode: this.appVersionCode,
  483. mid: this.mid
  484. },
  485. params: {
  486. pageNum: this.page_index,
  487. pageSize: this.page_size,
  488. postId: this.detail.postId || ''
  489. }
  490. })
  491. if (data.code == 0) {
  492. if (data.data.length > 0) {
  493. this.luck_list = this.luck_list.concat(data.data)
  494. this.luck_list_end = false
  495. } else {
  496. this.luck_list_end = true
  497. }
  498. } else {
  499. console.log('getReceivedList', data)
  500. }
  501. },
  502. getValidity(end_time) {
  503. let _d1, _d2, _d3, _h, _m, _s
  504. let timer = setInterval(() => {
  505. let _time = new Date().getTime()
  506. _d3 = end_time - _time
  507. if (_d3 > 0) {
  508. _d1 = moment(end_time)
  509. _d2 = moment(_time)
  510. _h = moment.duration(_d1.diff(_d2)).hours()
  511. _m = moment.duration(_d1.diff(_d2)).minutes()
  512. _s = moment.duration(_d1.diff(_d2)).seconds()
  513. if (_h < 10) {
  514. _h = '0' + _h
  515. }
  516. if (_m < 10) {
  517. _m = '0' + _m
  518. }
  519. if (_s < 10) {
  520. _s = '0' + _s
  521. }
  522. this.validity = `${_h}:${_m}:${_s}`
  523. } else {
  524. clearInterval(timer)
  525. }
  526. }, 1000)
  527. },
  528. setPickupInfo() {
  529. let pickupInfo = {
  530. srcContentId: this.detail.srcContentId,
  531. postNickName: this.detail.postBizData.postUserInfo.nickName,
  532. createTime: Date.now(),
  533. };
  534. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  535. },
  536. async getDetail() {
  537. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  538. baseInfo: {
  539. appVersionCode: this.appVersionCode,
  540. mid: this.mid
  541. },
  542. params: {
  543. postId: this.detail.postId
  544. }
  545. })
  546. if (data.code == 0) {
  547. this.detail.postBizData = JSON.parse(data.data.postBizData)
  548. }
  549. },
  550. async getConfig() {
  551. let { data } = await axios.post(`${baseURL}/denet/base/config/getFrontConfig`, {
  552. baseInfo: {
  553. appVersionCode: this.appVersionCode,
  554. mid: this.mid
  555. },
  556. params: {
  557. }
  558. })
  559. if (data.code == 0) {
  560. this.config = data.data;
  561. }
  562. },
  563. },
  564. async asyncData(params) {
  565. let { route } = params;
  566. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  567. baseInfo: {
  568. appVersionCode: appVersionCode,
  569. mid: function () {
  570. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  571. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  572. return v.toString(16);
  573. });
  574. }()
  575. },
  576. params: {
  577. postId: route.params.id || ''
  578. }
  579. })
  580. if (data.code == 0) {
  581. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  582. data.data.postBizData = JSON.parse(data.data.postBizData)
  583. }
  584. if(data.data.postBizData === null) {
  585. data.data.postBizData = {
  586. postUserInfo: {
  587. }
  588. }
  589. }
  590. return {
  591. detail: data.data,
  592. }
  593. }
  594. },
  595. mounted() {
  596. this.getConfig()
  597. if (!this.detail.postId) {
  598. return
  599. }
  600. console.log(this.detail)
  601. //改变font-size
  602. // (function (doc, win) {
  603. // var docEI = doc.documentElement,
  604. // resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  605. // recalc = function () {
  606. // var clientWidth = docEI.clientWidth;
  607. // if (!clientWidth) return;
  608. // //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  609. // docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  610. // }
  611. // if (!doc.addEventListener) return;
  612. // win.addEventListener(resizeEvt, recalc, false);
  613. // doc.addEventListener('DOMContentLoaded', recalc, false);
  614. // })(document, window);
  615. document.documentElement.style.fontSize = '62.5%'
  616. if (this.isMobile()) {
  617. this.setCookieMid();
  618. setTimeout(() => {
  619. Report.reportLog({
  620. baseInfo: {
  621. appVersionCode: this.appVersionCode,
  622. mid: this.mid,
  623. pageSource: Report.pageSource.mobileLandingPage,
  624. appType,
  625. machineCode: this.mid
  626. },
  627. params: {
  628. eventData: {
  629. businessType: Report.businessType.pageView,
  630. postId: this.detail.postId,
  631. srcContentId: this.detail.srcContentId,
  632. senderId: this.detail.srcUserId,
  633. }
  634. }
  635. })
  636. }, 500)
  637. this.show_moblie = true
  638. this.cp_link = window.location.href
  639. // 复制链接
  640. var clipboard = new ClipboardJS('.btn');
  641. clipboard.on('success', function (e) {
  642. Toast('copy success');
  643. console.info('Action:', e.action);
  644. console.info('Text:', e.text);
  645. console.info('Trigger:', e.trigger);
  646. e.clearSelection();
  647. });
  648. clipboard.on('error', function (e) {
  649. this.layer_show = true
  650. console.error('Action:', e.action);
  651. console.error('Trigger:', e.trigger);
  652. });
  653. // 领取列表分页
  654. this.getReceivedList()
  655. } else if (isBrowser() == 'chrome') {
  656. // 领取任务红包
  657. this.setCookieMid()
  658. // 是否被领完
  659. if(this.detail.postBizData.receiveCount < this.detail.postBizData.totalCount){
  660. this.getRedPacket()
  661. }else{
  662. this.show_home = true
  663. this.status = 'nothing'
  664. this.reportStatus = 'empty'
  665. }
  666. this.setPickupInfo()
  667. setTimeout(() => {
  668. Report.reportLog({
  669. baseInfo: {
  670. appVersionCode: this.appVersionCode,
  671. mid: this.mid,
  672. pageSource: Report.pageSource.newUserLandingPage,
  673. appType,
  674. machineCode: this.mid
  675. },
  676. params: {
  677. eventData: {
  678. businessType: Report.businessType.pageView,
  679. postId: this.detail.postId,
  680. srcContentId: this.detail.srcContentId,
  681. senderId: this.detail.srcUserId,
  682. },
  683. extParams: {
  684. status: this.reportStatus,
  685. }
  686. }
  687. });
  688. }, 1000)
  689. } else {
  690. this.show_home = true
  691. this.status = 'no-chrome'
  692. this.reportStatus = 'not-chrome'
  693. Report.reportLog({
  694. baseInfo: {
  695. appVersionCode: this.appVersionCode,
  696. mid: this.mid,
  697. pageSource: Report.pageSource.newUserLandingPage,
  698. appType,
  699. machineCode: this.mid
  700. },
  701. params: {
  702. eventData: {
  703. businessType: Report.businessType.pageView,
  704. postId: this.detail.postId,
  705. srcContentId: this.detail.srcContentId,
  706. senderId: this.detail.srcUserId,
  707. },
  708. extParams: {
  709. status: this.reportStatus,
  710. }
  711. }
  712. })
  713. }
  714. }
  715. }
  716. </script>
  717. <style lang="scss" >
  718. html,
  719. body,
  720. #__nuxt,
  721. #__layout {
  722. width: 100%;
  723. height: 100%;
  724. padding: 0;
  725. margin: 0;
  726. }
  727. .moblie {
  728. display: flex;
  729. flex-wrap: wrap;
  730. height: 100%;
  731. align-content: flex-start;
  732. flex-direction: column;
  733. .layer {
  734. position: fixed;
  735. width: 100%;
  736. height: 100%;
  737. top: 0;
  738. left: 0;
  739. background: rgba(0, 0, 0, .5);
  740. .layer-box {
  741. width: 30rem;
  742. height: 17rem;
  743. background: #FFFFFF;
  744. border-radius: 11px;
  745. opacity: 1;
  746. position: absolute;
  747. top: 25rem;
  748. left: 50%;
  749. margin-left: -15rem;
  750. .layer-txt {
  751. margin: 3rem 0;
  752. width: 100%;
  753. padding: 0 2.7rem;
  754. font-weight: 600;
  755. font-size: 1.8rem;
  756. text-align: center;
  757. }
  758. .layer-btn {
  759. width: 19rem;
  760. height: 4rem;
  761. background: #389AFF;
  762. border-radius: 100px;
  763. margin: 0 auto;
  764. text-align: center;
  765. line-height: 4rem;
  766. color: #fff;
  767. font-weight: 600;
  768. font-size: 1.8rem;
  769. }
  770. }
  771. }
  772. .head-area {
  773. width: 100%;
  774. height: 11rem;
  775. text-align: center;
  776. letter-spacing: 0.3px;
  777. font-size: 2rem;
  778. text-align: center;
  779. color: #fff;
  780. background: #389AFF;
  781. border-radius: 0 586px 586px/0 0 104px 104px;
  782. display: flex;
  783. align-items: center;
  784. justify-content: center;
  785. .gift {
  786. margin-right: 1.4rem;
  787. img {
  788. width: 5.2rem;
  789. }
  790. }
  791. .txt {
  792. font-size: 1.8rem;
  793. text-align: left;
  794. }
  795. }
  796. .luck-list-title {
  797. /* margin-top: 47px;*/
  798. margin: 0 16px;
  799. padding: 14px 0 11px 0;
  800. background: #fff;
  801. display: flex;
  802. justify-content: space-between;
  803. color: #B0B0B0;
  804. border-bottom: 1px solid #D1D1D1;
  805. }
  806. .luck-list {
  807. flex: 1;
  808. width: 100%;
  809. overflow-y: auto;
  810. .luck-item {
  811. display: flex;
  812. padding: 12px 0;
  813. margin: 0 16px;
  814. border-bottom: 1px solid #F2F2F2;
  815. justify-content: space-between;
  816. position: relative;
  817. img:first-child {
  818. border-radius: 50%;
  819. }
  820. .luck-king {
  821. position: absolute;
  822. top: 36px;
  823. right: 0px;
  824. display: flex;
  825. align-items: center;
  826. img {
  827. width: 22px;
  828. height: 19px;
  829. margin: 0;
  830. }
  831. span {
  832. font-weight: 500;
  833. font-size: 12px;
  834. line-height: 14px;
  835. letter-spacing: 0.3px;
  836. color: #f5b945;
  837. }
  838. }
  839. img {
  840. width: 42px;
  841. height: 42px;
  842. margin-right: 12px;
  843. }
  844. .luck-content {
  845. flex: auto;
  846. .luck-title {
  847. font-weight: 500;
  848. font-size: 16px;
  849. letter-spacing: 0.3px;
  850. color: #444444;
  851. }
  852. .luck-time {
  853. font-weight: 400;
  854. font-size: 12px;
  855. line-height: 14px;
  856. color: #9b9b9b;
  857. }
  858. }
  859. .luck-money {
  860. display: flex;
  861. height: 17px;
  862. align-items: center;
  863. img {
  864. width: 14px;
  865. height: 14px;
  866. margin-right: 6px;
  867. }
  868. .luck-money-txt {
  869. font-weight: 500;
  870. font-size: 14px;
  871. /* identical to box height */
  872. text-align: right;
  873. letter-spacing: 0.3px;
  874. color: #444444;
  875. }
  876. }
  877. }
  878. .luck-item:last-child {
  879. border: 0;
  880. }
  881. }
  882. .area-cp-link {
  883. background: #fff;
  884. width: 100%;
  885. flex-wrap: wrap;
  886. height: 20rem;
  887. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  888. border-top-left-radius: 1rem;
  889. border-top-right-radius: 1rem;
  890. .area-list {
  891. width: 34.3rem;
  892. margin: 1.5rem auto;
  893. .item {
  894. clear: both;
  895. overflow: hidden;
  896. margin: 0.7rem 0;
  897. font-size: 1.6rem;
  898. font-weight: 500;
  899. .icon {
  900. float: left;
  901. margin-right: 0.8rem;
  902. }
  903. .font {
  904. float: left;
  905. margin-right: 0.8rem;
  906. }
  907. .pc {
  908. float: left;
  909. }
  910. }
  911. }
  912. .area-content {
  913. background: #F4F4F4;
  914. padding: 0.7rem 1rem;
  915. margin: 0 auto 1rem;
  916. width: 34.3rem;
  917. font-size: 1.3rem;
  918. border-radius: 0.5rem;
  919. word-break: break-all;
  920. }
  921. .area-btn {
  922. flex: 1;
  923. display: flex;
  924. justify-content: center;
  925. .btn {
  926. width: 34.3rem;
  927. height: 4rem;
  928. background: #389AFF;
  929. border-radius: 100px;
  930. font-size: 1.8rem;
  931. color: #FFFFFF;
  932. }
  933. }
  934. }
  935. }
  936. .content {
  937. width: 100%;
  938. height: 100%;
  939. background-size: 100%;
  940. background-repeat: no-repeat;
  941. position: relative;
  942. font-family: "SF Pro Display";
  943. font-style: normal;
  944. font-weight: 600;
  945. .not-open {
  946. display: flex;
  947. align-items: center;
  948. justify-content: center;
  949. width: 100%;
  950. height: 100%;
  951. img {
  952. width: 20rem;
  953. height: 20rem;
  954. }
  955. }
  956. .logo {
  957. position: absolute;
  958. left: 4rem;
  959. top: 1.5rem;
  960. img {
  961. width: 10.7rem;
  962. height: 3.4rem;
  963. }
  964. }
  965. .key_packet {
  966. animation: key_packet 3s;
  967. animation-delay: 0s;
  968. animation-fill-mode: forwards;
  969. }
  970. .redBag {
  971. display: flex;
  972. justify-content: flex-start;
  973. flex-direction: column;
  974. position: absolute;
  975. top: 14rem;
  976. left: 30.6rem;
  977. width: 37.5rem;
  978. height: 50rem;
  979. border-radius: 2rem;
  980. overflow-y: hidden;
  981. box-shadow: 0 0 5px #888888;
  982. background: #fff;
  983. .money-area {
  984. width: 100%;
  985. position: absolute;
  986. top: 65px;
  987. display: flex;
  988. flex-wrap: wrap;
  989. align-items: center;
  990. justify-content: center;
  991. .txt {
  992. font-weight: 800;
  993. font-size: 16px;
  994. text-align: center;
  995. letter-spacing: 0.3px;
  996. color: #FFFFFF;
  997. }
  998. .coin {
  999. text-align: center;
  1000. margin-top: 6px;
  1001. margin-bottom: 7px;
  1002. display: flex;
  1003. justify-content: center;
  1004. align-items: center;
  1005. width: 90%;
  1006. img {
  1007. width: 46px;
  1008. height: 46px;
  1009. border-radius: 50%;
  1010. border: 3px solid #FFFFFF;
  1011. }
  1012. span {
  1013. margin-left: 15px;
  1014. font-weight: 800;
  1015. font-size: 60px;
  1016. line-height: 76px;
  1017. color: #FFFFFF;
  1018. }
  1019. }
  1020. .people {
  1021. font-weight: 800;
  1022. font-size: 13px;
  1023. line-height: 16px;
  1024. letter-spacing: 0.05em;
  1025. text-align: center;
  1026. color: #FFFFFF;
  1027. }
  1028. }
  1029. .title {
  1030. position: absolute;
  1031. top: 15px;
  1032. left: 15px;
  1033. z-index: 3;
  1034. display: flex;
  1035. align-items: center;
  1036. img {
  1037. width: 24px;
  1038. height: 24px;
  1039. border: 2px solid #FFF;
  1040. border-radius: 50%;
  1041. }
  1042. span {
  1043. margin-left: 10px;
  1044. font-weight: 600;
  1045. font-size: 16px;
  1046. letter-spacing: 0.3px;
  1047. color: #fff;
  1048. }
  1049. }
  1050. img {
  1051. width: 100%;
  1052. }
  1053. .up {
  1054. position: absolute;
  1055. top: 0;
  1056. z-index: 1;
  1057. }
  1058. .down {
  1059. position: absolute;
  1060. top: 253px;
  1061. }
  1062. .open {
  1063. width: 335px;
  1064. height: 50px;
  1065. cursor: pointer;
  1066. position: absolute;
  1067. bottom: 28px;
  1068. left: 50%;
  1069. margin-left: -167.5px;
  1070. z-index: 4;
  1071. }
  1072. .open-gif {
  1073. width: 200px;
  1074. height: 200px;
  1075. text-align: center;
  1076. position: absolute;
  1077. bottom: 70px;
  1078. left: 50%;
  1079. margin-left: -100px;
  1080. z-index: 3;
  1081. }
  1082. }
  1083. .redPacket {
  1084. display: flex;
  1085. justify-content: flex-start;
  1086. flex-direction: column;
  1087. position: absolute;
  1088. top: 9rem;
  1089. left: 50%;
  1090. width: 37.5rem;
  1091. margin-left: -18rem;
  1092. height: 65rem;
  1093. border-radius: 2rem;
  1094. // background: red;
  1095. overflow-y: hidden;
  1096. box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  1097. background: #fff;
  1098. .top {
  1099. top: 0;
  1100. position: absolute;
  1101. width: 100%;
  1102. z-index: 12;
  1103. }
  1104. .down {
  1105. bottom: 0;
  1106. position: absolute;
  1107. height: 32.3rem;
  1108. z-index: 11;
  1109. }
  1110. .head {
  1111. position: relative;
  1112. .head-title {
  1113. position: absolute;
  1114. top: 0;
  1115. width: 100%;
  1116. display: flex;
  1117. align-items: center;
  1118. justify-content: center;
  1119. height: 3.6rem;
  1120. background: rgba(255, 255, 255, .1);
  1121. img {
  1122. width: 1.8rem;
  1123. height: 1.8rem;
  1124. border-radius: 50%;
  1125. border: 1px solid #fff;
  1126. }
  1127. span {
  1128. margin-left: .8rem;
  1129. font-size: 1.2rem;
  1130. color: #fff;
  1131. }
  1132. }
  1133. .head-txt {
  1134. margin-top: 4.7rem;
  1135. font-size: 2rem;
  1136. text-align: center;
  1137. color: #fff;
  1138. }
  1139. .head-area {
  1140. height: 19rem;
  1141. text-align: center;
  1142. letter-spacing: 0.3px;
  1143. font-size: 2rem;
  1144. text-align: center;
  1145. color: #fff;
  1146. background: #389AFF;
  1147. border-radius: 0 586px 586px/0 0 164px 164px;
  1148. .txt {
  1149. padding-top: 8.5rem;
  1150. }
  1151. }
  1152. .head-money {
  1153. .txt {
  1154. padding-top: 6.8rem;
  1155. font-weight: 800;
  1156. font-size: 1.5rem;
  1157. text-align: center;
  1158. letter-spacing: 0.3px;
  1159. }
  1160. .head-money-area {
  1161. display: flex;
  1162. width: 100%;
  1163. justify-content: center;
  1164. align-items: center;
  1165. img {
  1166. width: 4rem;
  1167. height: 4rem;
  1168. border: 2px solid #FFFFFF;
  1169. border-radius: 100px;
  1170. }
  1171. span {
  1172. margin-left: 1.3rem;
  1173. font-size: 4.6rem;
  1174. word-break: break-all;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. .luck-list-title {
  1180. /* margin-top: 47px;*/
  1181. margin: 0 16px;
  1182. padding: 14px 0 11px 0;
  1183. background: #fff;
  1184. display: flex;
  1185. font-weight: 500;
  1186. justify-content: space-between;
  1187. color: #B0B0B0;
  1188. border-bottom: 1px solid #F2F2F2;
  1189. }
  1190. .luck-list {
  1191. background: #fff;
  1192. overflow-y: auto;
  1193. .luck-item {
  1194. display: flex;
  1195. padding: 12px 0;
  1196. margin: 0 16px;
  1197. border-bottom: 1px solid #F2F2F2;
  1198. justify-content: space-between;
  1199. position: relative;
  1200. img:first-child {
  1201. border-radius: 50%;
  1202. }
  1203. .luck-king {
  1204. position: absolute;
  1205. top: 36px;
  1206. right: 0px;
  1207. display: flex;
  1208. align-items: center;
  1209. img {
  1210. width: 22px;
  1211. height: 19px;
  1212. margin: 0;
  1213. }
  1214. span {
  1215. font-weight: 500;
  1216. font-size: 12px;
  1217. line-height: 14px;
  1218. letter-spacing: 0.3px;
  1219. color: #f5b945;
  1220. }
  1221. }
  1222. img {
  1223. width: 42px;
  1224. height: 42px;
  1225. margin-right: 12px;
  1226. }
  1227. .luck-content {
  1228. flex: auto;
  1229. .luck-title {
  1230. font-weight: 500;
  1231. font-size: 16px;
  1232. letter-spacing: 0.3px;
  1233. color: #444444;
  1234. margin-bottom: 5px;
  1235. }
  1236. .luck-time {
  1237. font-weight: 400;
  1238. font-size: 12px;
  1239. line-height: 14px;
  1240. color: #B0B0B0;
  1241. }
  1242. }
  1243. .luck-money {
  1244. display: flex;
  1245. height: 17px;
  1246. align-items: center;
  1247. img {
  1248. width: 14px;
  1249. height: 14px;
  1250. margin-right: 6px;
  1251. }
  1252. .luck-money-txt {
  1253. font-weight: 500;
  1254. font-size: 14px;
  1255. /* identical to box height */
  1256. text-align: right;
  1257. letter-spacing: 0.3px;
  1258. color: #444444;
  1259. }
  1260. }
  1261. }
  1262. .luck-item:last-child {
  1263. border: 0;
  1264. }
  1265. }
  1266. .area {
  1267. position: absolute;
  1268. z-index: 112;
  1269. width: 100%;
  1270. .title {
  1271. z-index: 11;
  1272. margin-top: 8.5rem;
  1273. text-align: center;
  1274. img {
  1275. width: 3.6rem;
  1276. height: 3.6rem;
  1277. border: 2px solid #fff4db;
  1278. border-radius: 50%;
  1279. }
  1280. span {
  1281. letter-spacing: 0.3px;
  1282. font-size: 1.6rem;
  1283. color: #fff2d3;
  1284. }
  1285. }
  1286. .txt {
  1287. font-size: 4rem;
  1288. text-align: center;
  1289. letter-spacing: 0.03rem;
  1290. color: #fff2d3;
  1291. }
  1292. }
  1293. .key_area {
  1294. animation: key_area 1s;
  1295. animation-delay: 1s;
  1296. animation-fill-mode: forwards;
  1297. }
  1298. }
  1299. .redPacket2 {
  1300. left: 43.6rem;
  1301. margin-left: -18rem;
  1302. }
  1303. .key_install {
  1304. opacity: 0;
  1305. animation: key_install 2s;
  1306. animation-delay: 0s;
  1307. animation-fill-mode: forwards;
  1308. }
  1309. .install {
  1310. position: absolute;
  1311. top: 20rem;
  1312. left: 73.5rem;
  1313. .title {
  1314. font-size: 4.8rem;
  1315. color: #000000;
  1316. letter-spacing: 0.3px;
  1317. }
  1318. .validity {
  1319. margin-top: 1rem;
  1320. color: #FF0000;
  1321. width: 40rem;
  1322. height: 3.3rem;
  1323. line-height: 3.3rem;
  1324. font-weight: normal;
  1325. span {
  1326. font-size: 1.4rem;
  1327. }
  1328. }
  1329. .flow {
  1330. position: absolute;
  1331. margin-top: 4rem;
  1332. .line {
  1333. position: absolute;
  1334. height: 16rem;
  1335. border: 1px solid #e0e0e0;
  1336. top: 3rem;
  1337. left: 1.2rem;
  1338. }
  1339. .area_num {
  1340. display: flex;
  1341. align-items: center;
  1342. .num {
  1343. width: 2.4rem;
  1344. height: 2.4rem;
  1345. background-color: rgba(56, 154, 255, 1);
  1346. border-radius: 50%;
  1347. color: #fff;
  1348. text-align: center;
  1349. line-height: 2.4rem;
  1350. font-size: 1.4rem;
  1351. }
  1352. span {
  1353. margin-left: 1.5rem;
  1354. color: #000000;
  1355. font-size: 1.8rem;
  1356. }
  1357. }
  1358. .tip {
  1359. margin-left: 4rem;
  1360. margin-top: 0.7rem;
  1361. font-size: 1.4rem;
  1362. color: #a4a4a4;
  1363. }
  1364. .install_btn {
  1365. cursor: pointer;
  1366. margin-left: 4rem;
  1367. margin-top: 2rem;
  1368. margin-bottom: 6.7rem;
  1369. width: 23rem;
  1370. height: 5.8rem;
  1371. background: #389aff;
  1372. border-radius: 10rem;
  1373. color: #fff;
  1374. line-height: 5.8rem;
  1375. text-align: center;
  1376. font-size: 2rem;
  1377. }
  1378. }
  1379. .tip {
  1380. margin-top: 0.7rem;
  1381. font-size: 1.4rem;
  1382. color: #a4a4a4;
  1383. }
  1384. .install_btn {
  1385. cursor: pointer;
  1386. margin-top: 2rem;
  1387. margin-bottom: 6.7rem;
  1388. width: 23rem;
  1389. height: 5.8rem;
  1390. background: #389aff;
  1391. border-radius: 10rem;
  1392. color: #fff;
  1393. line-height: 5.8rem;
  1394. text-align: center;
  1395. font-size: 2rem;
  1396. }
  1397. }
  1398. .install-error {
  1399. left: 78.5rem;
  1400. .install_chrome {
  1401. cursor: pointer;
  1402. width: 24.3rem;
  1403. height: 5.8rem;
  1404. font-size: 2rem;
  1405. font-weight: 500;
  1406. letter-spacing: 0.3px;
  1407. display: flex;
  1408. align-items: center;
  1409. background: #FFFFFF;
  1410. border: 1px solid #e8e8e8;
  1411. border-radius: 10rem;
  1412. margin-top: 3.3rem;
  1413. img {
  1414. width: 3.2rem;
  1415. height: 3.2rem;
  1416. margin-left: 3.3rem;
  1417. }
  1418. span {
  1419. margin-left: 1.2rem;
  1420. }
  1421. }
  1422. }
  1423. }
  1424. @keyframes key_area {
  1425. 0% {
  1426. opacity: 1;
  1427. }
  1428. 100% {
  1429. opacity: 0;
  1430. }
  1431. }
  1432. @keyframes key_install {
  1433. 0% {
  1434. opacity: 0;
  1435. }
  1436. 100% {
  1437. opacity: 1;
  1438. }
  1439. }
  1440. @keyframes key_packet {
  1441. 0% {}
  1442. 100% {
  1443. left: 30.6rem;
  1444. margin-left: -18rem;
  1445. }
  1446. }
  1447. </style>