index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <template>
  2. <div class="content" :style="{ 'backgroundImage': `url(${this.back_img})` }" v-show="home_show">
  3. <div class="logo">
  4. <img src="/svg/icon-logo.svg" alt />
  5. </div>
  6. <!-- 红包 -->
  7. <div class="redPacket" :class="{ redPacket2: status != 'open', key_packet: status == 'open' }"
  8. v-show="status != 'error'">
  9. <div class="area" :class="{ key_area: status == 'open' }" v-show="status == 'open' || status == 'no-chrome'">
  10. <div class="title">
  11. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  12. <span>Giveaways from: {{ detail.postBizData.postUserInfo.nickName }}</span>
  13. </div>
  14. <div class="txt">Good Luck!</div>
  15. </div>
  16. <img src="/svg/back-top.svg" alt class="top" v-show="status == 'open' || status == 'no-chrome'"
  17. :class="{ key_top: status == 'open' }" />
  18. <img src="/svg/back-down.svg" alt class="down" v-show="status == 'open' || status == 'no-chrome'"
  19. :class="{ key_down: status == 'open' }" />
  20. <img src="/svg/icon-usd.svg" alt class="start" v-show="status == 'no-chrome'" />
  21. <img src="/git/icon-start.gif" alt class="start" v-show="status == 'open'" />
  22. <!-- 内容 -->
  23. <div class="head">
  24. <div class="head-title">
  25. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  26. <span>Giveaways from: {{ detail.postBizData.postUserInfo.nickName }}</span>
  27. </div>
  28. <div class="head-txt" v-if="status == 'open' || status == 'opened'">Awesome! You Will Get</div>
  29. <!-- <div class="head-area" v-else-if="status == 'opened'">opened!</div> -->
  30. <div class="head-area" v-else-if="status == 'nothing'">Better luck next time!</div>
  31. <div class="head-area" v-else-if="status == 'expire'">
  32. <div>This Giveways</div>
  33. <div>expired on 03-14</div>
  34. </div>
  35. <div class="head-money" v-if="status == 'open' || status == 'opened'">
  36. <img src="/svg/icon-usd.svg" alt />
  37. <span class="money-txt">{{ receiveAmount / 100 }}</span>
  38. <div>
  39. <span>USD</span>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="luck-list-title">
  44. <div>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }} People Got
  45. </div>
  46. <div>Total ${{ detail.postBizData.amountValue / 100 || '' }} {{
  47. detail.postBizData.amountCurrencyCode ||
  48. ''
  49. }}</div>
  50. </div>
  51. <div class="luck-list" @scroll="handleScroll" ref="list">
  52. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  53. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  54. <img v-else src="/svg/icon-twitter.svg" alt />
  55. <div class="luck-content">
  56. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  57. <div class="luck-time" v-if="item.receiveTimestamp == -1">刚刚</div>
  58. <div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
  59. </div>
  60. <div class="luck-money">
  61. <img src="/svg/icon-usd.svg" alt />
  62. <div class="luck-money-txt">{{ item.amountValue / 100 }}</div>
  63. </div>
  64. <div class="luck-king" v-if="item.maxAmount">
  65. <img src="/svg/icon-king-hat.svg" alt />
  66. <span>Luckiest Draw</span>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 安装 -->
  72. <div class="install" v-if="status == 'open' || status == 'opened'" :class="{ key_install: status == 'open' }">
  73. <div class="title">Withdraw to Wallet</div>
  74. <div class="validity">
  75. <template v-if="validity_state">
  76. <span>Validity</span>
  77. <span style="color: red;">{{ validity }}</span>
  78. </template>
  79. <template v-else>
  80. <span style="color: red;">Giveaways Validity</span>
  81. </template>
  82. </div>
  83. <div class="flow">
  84. <div class="line"></div>
  85. <div class="area_num">
  86. <div class="num">1</div>
  87. <span>Install DeNet</span>
  88. </div>
  89. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  90. <div class="install_btn">Install</div>
  91. <div class="area_num">
  92. <div class="num" style="background: #E0E0E0;">2</div>
  93. <span>Complete Tasks by {{ detail.postBizData.postUserInfo.nickName }}</span>
  94. </div>
  95. <div class="tip">Follow、Like tweet、Retweet (Just 1-3 minutes)</div>
  96. </div>
  97. </div>
  98. <div class="install install-error" v-if="status == 'nothing' || status == 'expire'">
  99. <div class="title">Install DeNet</div>
  100. <div class="title">Don't miss the next Giveaway</div>
  101. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  102. <div class="install_btn">Install</div>
  103. </div>
  104. <div class="install install-error" v-if="status == 'no-chrome'">
  105. <div class="title">Open Giveaways</div>
  106. <div class="title">with chrome</div>
  107. <div class="tip">Only supports getting Giveaways through chrome</div>
  108. <div class="install_chrome">
  109. <img src="/svg/icon-chrome.svg" alt />
  110. Install Chrome
  111. </div>
  112. </div>
  113. <div v-if="status == 'error'"></div>
  114. </div>
  115. </template>
  116. <script>
  117. import axios from 'axios';
  118. import Cookies from 'js-cookie'
  119. import { isBrowser } from '../utils/help.js'
  120. var moment = require('moment');
  121. export default {
  122. name: "index",
  123. data() {
  124. return {
  125. appVersionCode: 1,
  126. mid: '',
  127. back_img: '/svg/back-denet.svg',
  128. area_show: true,
  129. home_show: false,
  130. validity: '',
  131. receiveAmount: 0,
  132. validity_state: true,
  133. detail: {
  134. postId: '',
  135. postBizData: {
  136. imagePath: '',
  137. postUserInfo: {
  138. }
  139. }
  140. },
  141. title: '',
  142. twitterTitle: 'deNet',
  143. jumpUrl: 'https://de-net-test.piaoquantv.com/',
  144. status: '',
  145. page_index: 1,
  146. page_size: 20,
  147. luck_list: [],
  148. luck_list_end: false,
  149. }
  150. },
  151. head() {
  152. return {
  153. type: '',
  154. title: this.title,
  155. appVersionCode: 1,
  156. meta: [
  157. {
  158. name: 'twitter:card',
  159. content: 'summary_large_image'
  160. },
  161. {
  162. name: 'twitter:url',
  163. content: this.jumpUrl + this.detail.postId
  164. },
  165. {
  166. name: 'twitter:title',
  167. content: this.twitterTitle
  168. },
  169. {
  170. name: 'twitter:image',
  171. content: this.detail.postBizData.imagePath || ''
  172. },
  173. {
  174. name: 'twitter:image:width',
  175. content: '1280'
  176. },
  177. {
  178. name: 'twitter:image:height',
  179. content: '720'
  180. },
  181. ]
  182. }
  183. },
  184. methods: {
  185. formatTime(time) {
  186. return moment(time).format('MM-DD hh:mm:ss')
  187. },
  188. guid() {
  189. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  190. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  191. return v.toString(16);
  192. });
  193. },
  194. handleScroll(e) {
  195. if (this.luck_list_end) {
  196. return
  197. }
  198. if ((this.$refs.list.clientHeight + this.$refs.list.scrollTop) / this.$refs.list.scrollHeight > .8) {
  199. this.luck_list_end = false
  200. this.page_index++
  201. this.getReceivedList()
  202. }
  203. },
  204. setCookieMid() {
  205. let _cookie_mid_arr = Cookies.get('mid') || []
  206. if (_cookie_mid_arr.length > 0) {
  207. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  208. } else {
  209. this.mid = this.guid()
  210. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  211. }
  212. },
  213. async getRedPacket() {
  214. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/luckdrop/receiveLuckdrop', {
  215. baseInfo: {
  216. appVersionCode: this.appVersionCode,
  217. mid: this.mid
  218. },
  219. params: {
  220. postId: this.detail.postId || ''
  221. }
  222. })
  223. this.home_show = true
  224. switch (data.code.toString()) {
  225. case '0':
  226. if (data.data.newReceived) {
  227. this.status = 'open'
  228. this.receiveAmount = data.data.receiveAmount
  229. } else {
  230. this.status = 'opened'
  231. }
  232. this.getValidity(data.data.endTimestamp)
  233. this.status = 'open'
  234. this.receiveAmount = data.data.receiveAmount
  235. break;
  236. // 红包被领完了
  237. case '2008':
  238. this.status = 'nothing'
  239. break
  240. case '2029':
  241. // 推文未发布
  242. this.status = 'error'
  243. break
  244. default:
  245. console.log('getRedPacket', data)
  246. break;
  247. }
  248. // 领取列表分页
  249. this.getReceivedList()
  250. },
  251. async getReceivedList() {
  252. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/luckdrop/getReceivedList', {
  253. baseInfo: {
  254. appVersionCode: this.appVersionCode,
  255. mid: this.mid
  256. },
  257. params: {
  258. pageNum: this.page_index,
  259. pageSize: this.page_size,
  260. postId: this.detail.postId || ''
  261. }
  262. })
  263. if (data.code == 0) {
  264. if (data.data.length > 0) {
  265. this.luck_list = this.luck_list.concat(data.data)
  266. this.luck_list_end = false
  267. } else {
  268. this.luck_list_end = true
  269. }
  270. } else {
  271. console.log('getReceivedList', data)
  272. }
  273. },
  274. getValidity(end_time) {
  275. let _d1, _d2, _d3, _h, _m, _s
  276. let timer = setInterval(() => {
  277. let _time = new Date().getTime()
  278. _d3 = end_time - _time
  279. if (_d3 > 0) {
  280. _d1 = moment(end_time)
  281. _d2 = moment(_time)
  282. _h = moment.duration(_d1.diff(_d2)).hours()
  283. _m = moment.duration(_d1.diff(_d2)).minutes()
  284. _s = moment.duration(_d1.diff(_d2)).seconds()
  285. this.validity = `${_h}:${_m}:${_s}`
  286. } else {
  287. clearInterval(timer)
  288. }
  289. }, 1000)
  290. },
  291. setPickupInfo() {
  292. let pickupInfo = { srcContentId: this.detail.srcContentId,
  293. postNickName: this.detail.postBizData.postUserInfo.nickName };
  294. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  295. }
  296. },
  297. async asyncData(params) {
  298. let { route } = params;
  299. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/getDetail', {
  300. baseInfo: {
  301. mid: function () {
  302. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  303. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  304. return v.toString(16);
  305. });
  306. }()
  307. },
  308. params: {
  309. postId: route.params.id || ''
  310. }
  311. })
  312. if (data.code == 0) {
  313. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  314. data.data.postBizData = JSON.parse(data.data.postBizData)
  315. }
  316. return {
  317. detail: data.data,
  318. }
  319. }
  320. },
  321. mounted() {
  322. //改变font-size
  323. (function (doc, win) {
  324. var docEI = doc.documentElement,
  325. resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  326. recalc = function () {
  327. var clientWidth = docEI.clientWidth;
  328. if (!clientWidth) return;
  329. //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  330. docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  331. }
  332. if (!doc.addEventListener) return;
  333. win.addEventListener(resizeEvt, recalc, false);
  334. doc.addEventListener('DOMContentLoaded', recalc, false);
  335. })(document, window);
  336. if (isBrowser() == 'chrome') {
  337. // 领取任务红包
  338. this.setCookieMid()
  339. this.getRedPacket()
  340. this.setPickupInfo()
  341. } else {
  342. this.home_show = true
  343. this.status = 'no-chrome'
  344. }
  345. }
  346. }
  347. </script>
  348. <style lang="scss" >
  349. html,
  350. body,
  351. #__nuxt,
  352. #__layout {
  353. width: 100%;
  354. height: 100%;
  355. padding: 0;
  356. margin: 0;
  357. }
  358. .content {
  359. width: 100%;
  360. height: 100%;
  361. background-size: 100%;
  362. background-repeat: no-repeat;
  363. position: relative;
  364. font-family: "SF Pro Display";
  365. font-style: normal;
  366. font-weight: 600;
  367. .logo {
  368. position: absolute;
  369. left: 4rem;
  370. top: 1.5rem;
  371. img {
  372. width: 107px;
  373. height: 40px;
  374. }
  375. }
  376. .key_packet {
  377. animation: key_packet 3s;
  378. animation-delay: 6s;
  379. animation-fill-mode: forwards;
  380. }
  381. .redPacket {
  382. display: flex;
  383. justify-content: flex-start;
  384. flex-direction: column;
  385. position: absolute;
  386. top: 9rem;
  387. left: 50%;
  388. width: 37.5rem;
  389. margin-left: -18rem;
  390. height: 65rem;
  391. border-radius: 2rem;
  392. // background: red;
  393. overflow: hidden;
  394. box-shadow: 0 0 5px #888888;
  395. .start {
  396. position: absolute;
  397. width: 10rem;
  398. height: 10rem;
  399. bottom: 24rem;
  400. left: 50%;
  401. margin-left: -5rem;
  402. z-index: 13;
  403. }
  404. .key_top {
  405. animation: key_top 4s;
  406. animation-delay: 2s;
  407. animation-fill-mode: forwards;
  408. }
  409. .top {
  410. top: 0;
  411. position: absolute;
  412. width: 100%;
  413. z-index: 12;
  414. }
  415. .down {
  416. bottom: 0;
  417. position: absolute;
  418. height: 32.3rem;
  419. z-index: 11;
  420. }
  421. .key_down {
  422. animation: key_down 4s;
  423. animation-delay: 2s;
  424. animation-fill-mode: forwards;
  425. }
  426. .head {
  427. .head-title {
  428. height: 9.7rem;
  429. line-height: 9.7rem;
  430. background: #ef4545;
  431. text-align: center;
  432. border-radius: 0 586px 586px/0 0 104px 104px;
  433. overflow: hidden;
  434. box-shadow: 0 0 5px #888888;
  435. img {
  436. width: 3rem;
  437. height: 3rem;
  438. border-radius: 50%;
  439. border: 2px solid #fff4db;
  440. }
  441. span {
  442. font-size: 1.4rem;
  443. color: #fff2d3;
  444. }
  445. }
  446. .head-txt {
  447. margin-top: 4.7rem;
  448. font-size: 2rem;
  449. text-align: center;
  450. color: #ef4545;
  451. }
  452. .head-area {
  453. height: 10rem;
  454. line-height: 10rem;
  455. text-align: center;
  456. letter-spacing: 0.3px;
  457. font-size: 2rem;
  458. text-align: center;
  459. color: #ef4545;
  460. }
  461. .head-money {
  462. display: flex;
  463. align-items: center;
  464. justify-content: center;
  465. margin-bottom: 3.2rem;
  466. img {
  467. width: 4rem;
  468. height: 4rem;
  469. }
  470. span {
  471. font-size: 1.3rem;
  472. }
  473. .money-txt {
  474. font-weight: 700;
  475. font-size: 4.8rem;
  476. color: #000000;
  477. letter-spacing: 0.3px;
  478. }
  479. }
  480. }
  481. .luck-list-title {
  482. padding: 0 16px;
  483. background: #fff;
  484. color: #9b9b9b;
  485. display: flex;
  486. justify-content: space-between;
  487. }
  488. .luck-list {
  489. background: #fff;
  490. flex: 1;
  491. overflow: scroll;
  492. .luck-item {
  493. display: flex;
  494. padding: 12px 16px;
  495. border-top: 1px solid #d1d1d1;
  496. justify-content: space-between;
  497. position: relative;
  498. img:first-child {
  499. border-radius: 50%;
  500. }
  501. .luck-king {
  502. position: absolute;
  503. top: 36px;
  504. right: 16px;
  505. display: flex;
  506. align-items: center;
  507. img {
  508. width: 22px;
  509. height: 19px;
  510. margin: 0;
  511. }
  512. span {
  513. font-weight: 500;
  514. font-size: 12px;
  515. line-height: 14px;
  516. letter-spacing: 0.3px;
  517. color: #f5b945;
  518. }
  519. }
  520. img {
  521. width: 42px;
  522. height: 42px;
  523. margin-right: 12px;
  524. }
  525. .luck-content {
  526. flex: auto;
  527. .luck-title {
  528. font-weight: 500;
  529. font-size: 16px;
  530. letter-spacing: 0.3px;
  531. color: #444444;
  532. }
  533. .luck-time {
  534. font-weight: 400;
  535. font-size: 12px;
  536. line-height: 14px;
  537. color: #9b9b9b;
  538. }
  539. }
  540. .luck-money {
  541. display: flex;
  542. height: 17px;
  543. align-items: center;
  544. img {
  545. width: 14px;
  546. height: 14px;
  547. margin-right: 6px;
  548. }
  549. .luck-money-txt {
  550. font-weight: 500;
  551. font-size: 14px;
  552. /* identical to box height */
  553. text-align: right;
  554. letter-spacing: 0.3px;
  555. color: #444444;
  556. }
  557. }
  558. }
  559. }
  560. .area {
  561. position: absolute;
  562. z-index: 112;
  563. width: 100%;
  564. .title {
  565. z-index: 11;
  566. margin-top: 8.5rem;
  567. text-align: center;
  568. img {
  569. width: 3.6rem;
  570. height: 3.6rem;
  571. border: 2px solid #fff4db;
  572. border-radius: 50%;
  573. }
  574. span {
  575. letter-spacing: 0.3px;
  576. font-size: 1.6rem;
  577. color: #fff2d3;
  578. }
  579. }
  580. .txt {
  581. font-size: 4rem;
  582. text-align: center;
  583. letter-spacing: 0.03rem;
  584. color: #fff2d3;
  585. }
  586. }
  587. .key_area {
  588. animation: key_area 1s;
  589. animation-delay: 1s;
  590. animation-fill-mode: forwards;
  591. }
  592. }
  593. .redPacket2 {
  594. left: 30.6rem;
  595. margin-left: -18rem;
  596. }
  597. .key_install {
  598. opacity: 0;
  599. animation: key_install 2s;
  600. animation-delay: 6s;
  601. animation-fill-mode: forwards;
  602. }
  603. .install {
  604. position: absolute;
  605. top: 20rem;
  606. left: 78.5rem;
  607. .title {
  608. font-size: 4.8rem;
  609. color: #000000;
  610. letter-spacing: 0.3px;
  611. }
  612. .validity {
  613. padding-left: 1.5rem;
  614. margin-top: 2rem;
  615. background: rgba(166, 166, 166, 0.1);
  616. width: 40rem;
  617. height: 3.3rem;
  618. line-height: 3.3rem;
  619. span {
  620. color: #000000;
  621. font-size: 1.4rem;
  622. }
  623. }
  624. .flow {
  625. position: absolute;
  626. margin-top: 4.6rem;
  627. .line {
  628. position: absolute;
  629. height: 16rem;
  630. border: 1px solid #e0e0e0;
  631. top: 3rem;
  632. left: 1.2rem;
  633. }
  634. .area_num {
  635. display: flex;
  636. align-items: center;
  637. .num {
  638. width: 2.4rem;
  639. height: 2.4rem;
  640. background-color: rgba(56, 154, 255, 1);
  641. border-radius: 50%;
  642. color: #fff;
  643. text-align: center;
  644. line-height: 2.4rem;
  645. font-size: 1.4rem;
  646. }
  647. span {
  648. margin-left: 1.5rem;
  649. color: #000000;
  650. font-size: 1.8rem;
  651. }
  652. }
  653. .tip {
  654. margin-left: 4rem;
  655. margin-top: 0.7rem;
  656. font-size: 1.4rem;
  657. color: #a4a4a4;
  658. }
  659. .install_btn {
  660. margin-left: 4rem;
  661. margin-top: 2rem;
  662. margin-bottom: 6.7rem;
  663. width: 23rem;
  664. height: 5.8rem;
  665. background: #389aff;
  666. border-radius: 10rem;
  667. color: #fff;
  668. line-height: 5.8rem;
  669. text-align: center;
  670. font-size: 2rem;
  671. }
  672. }
  673. .tip {
  674. margin-top: 0.7rem;
  675. font-size: 1.4rem;
  676. color: #a4a4a4;
  677. }
  678. .install_btn {
  679. margin-top: 2rem;
  680. margin-bottom: 6.7rem;
  681. width: 23rem;
  682. height: 5.8rem;
  683. background: #389aff;
  684. border-radius: 10rem;
  685. color: #fff;
  686. line-height: 5.8rem;
  687. text-align: center;
  688. font-size: 2rem;
  689. }
  690. }
  691. .install-error {
  692. left: 78.5rem;
  693. .install_chrome {
  694. cursor: pointer;
  695. width: 24.3rem;
  696. height: 5.8rem;
  697. font-size: 2rem;
  698. font-weight: 500;
  699. letter-spacing: 0.3px;
  700. display: flex;
  701. align-items: center;
  702. border: 1px solid #e8e8e8;
  703. border-radius: 10rem;
  704. margin-top: 3.3rem;
  705. img {
  706. width: 3.2rem;
  707. height: 3.2rem;
  708. margin-left: 3.3rem;
  709. }
  710. span {
  711. margin-left: 1.2rem;
  712. }
  713. }
  714. }
  715. }
  716. @keyframes key_area {
  717. 0% {
  718. opacity: 1;
  719. }
  720. 100% {
  721. opacity: 0;
  722. }
  723. }
  724. @keyframes key_install {
  725. 0% {
  726. opacity: 0;
  727. }
  728. 100% {
  729. opacity: 1;
  730. }
  731. }
  732. @keyframes key_packet {
  733. 0% {}
  734. 100% {
  735. left: 30.6rem;
  736. margin-left: -18rem;
  737. }
  738. }
  739. @keyframes key_top {
  740. 0% {
  741. top: 0;
  742. }
  743. 50% {
  744. top: -30rem;
  745. }
  746. 100% {
  747. top: -36rem;
  748. }
  749. }
  750. @keyframes key_down {
  751. 0% {
  752. bottom: 0;
  753. }
  754. 50% {
  755. bottom: -28.3rem;
  756. }
  757. 100% {
  758. bottom: -32.3rem;
  759. }
  760. }
  761. </style>