index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  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-if="status != 'error'">
  9. <div class="area" :class="{ key_area: status == 'open' }" v-if="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-if="status == 'open' || status == 'no-chrome'"
  17. :class="{ key_top: status == 'open' }" />
  18. <img src="/svg/back-down.svg" alt class="down" v-if="status == 'open' || status == 'no-chrome'"
  19. :class="{ key_down: status == 'open' }" />
  20. <img src="/svg/icon-usd.svg" alt class="start" v-if="status == 'no-chrome'" />
  21. <img src="/git/icon-start.gif" alt class="start" v-if="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()
  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() {
  275. let _d1, _d2, _d3, _h, _m, _s
  276. if(!this.detail.postBizData.myReceived.taskEndTimestamp){
  277. return
  278. }
  279. let timer = setInterval(() => {
  280. let _time = new Date().getTime()
  281. _d3 = this.detail.postBizData.myReceived.taskEndTimestamp - _time
  282. if (_d3 > 0) {
  283. _d1 = moment(this.detail.postBizData.myReceived.taskEndTimestamp)
  284. _d2 = moment(_time)
  285. _h = moment.duration(_d1.diff(_d2)).hours()
  286. _m = moment.duration(_d1.diff(_d2)).minutes()
  287. _s = moment.duration(_d1.diff(_d2)).seconds()
  288. this.validity = `${_h}:${_m}:${_s}`
  289. } else {
  290. clearInterval(timer)
  291. }
  292. }, 1000)
  293. },
  294. setPickupInfo() {
  295. let pickupInfo = { srcContentId: this.detail.srcContentId,
  296. postNickName: this.detail.postBizData.postUserInfo.nickName };
  297. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  298. }
  299. },
  300. async asyncData(params) {
  301. let { route } = params;
  302. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/getDetail', {
  303. baseInfo: {
  304. mid: function () {
  305. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  306. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  307. return v.toString(16);
  308. });
  309. }()
  310. },
  311. params: {
  312. postId: route.params.id || ''
  313. }
  314. })
  315. if (data.code == 0) {
  316. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  317. data.data.postBizData = JSON.parse(data.data.postBizData)
  318. }
  319. return {
  320. detail: data.data,
  321. }
  322. }
  323. },
  324. mounted() {
  325. //改变font-size
  326. (function (doc, win) {
  327. var docEI = doc.documentElement,
  328. resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  329. recalc = function () {
  330. var clientWidth = docEI.clientWidth;
  331. if (!clientWidth) return;
  332. //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  333. docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  334. }
  335. if (!doc.addEventListener) return;
  336. win.addEventListener(resizeEvt, recalc, false);
  337. doc.addEventListener('DOMContentLoaded', recalc, false);
  338. })(document, window);
  339. if (isBrowser() == 'chrome') {
  340. // 领取任务红包
  341. this.setCookieMid()
  342. this.getRedPacket()
  343. this.setPickupInfo()
  344. } else {
  345. this.home_show = true
  346. this.status = 'no-chrome'
  347. }
  348. }
  349. }
  350. </script>
  351. <style lang="scss" >
  352. html,
  353. body,
  354. #__nuxt,
  355. #__layout {
  356. width: 100%;
  357. height: 100%;
  358. padding: 0;
  359. margin: 0;
  360. }
  361. .content {
  362. width: 100%;
  363. height: 100%;
  364. background-size: 100%;
  365. background-repeat: no-repeat;
  366. position: relative;
  367. font-family: "SF Pro Display";
  368. font-style: normal;
  369. font-weight: 600;
  370. .logo {
  371. position: absolute;
  372. left: 4rem;
  373. top: 1.5rem;
  374. img {
  375. width: 107px;
  376. height: 40px;
  377. }
  378. }
  379. .key_packet {
  380. animation: key_packet 3s;
  381. animation-delay: 6s;
  382. animation-fill-mode: forwards;
  383. }
  384. .redPacket {
  385. display: flex;
  386. justify-content: flex-start;
  387. flex-direction: column;
  388. position: absolute;
  389. top: 9rem;
  390. left: 50%;
  391. width: 37.5rem;
  392. margin-left: -18rem;
  393. height: 65rem;
  394. border-radius: 2rem;
  395. // background: red;
  396. overflow: hidden;
  397. box-shadow: 0 0 5px #888888;
  398. .start {
  399. position: absolute;
  400. width: 10rem;
  401. height: 10rem;
  402. bottom: 24rem;
  403. left: 50%;
  404. margin-left: -5rem;
  405. z-index: 13;
  406. }
  407. .key_top {
  408. animation: key_top 4s;
  409. animation-delay: 2s;
  410. animation-fill-mode: forwards;
  411. }
  412. .top {
  413. top: 0;
  414. position: absolute;
  415. width: 100%;
  416. z-index: 12;
  417. }
  418. .down {
  419. bottom: 0;
  420. position: absolute;
  421. height: 32.3rem;
  422. z-index: 11;
  423. }
  424. .key_down {
  425. animation: key_down 4s;
  426. animation-delay: 2s;
  427. animation-fill-mode: forwards;
  428. }
  429. .head {
  430. .head-title {
  431. height: 9.7rem;
  432. line-height: 9.7rem;
  433. background: #ef4545;
  434. text-align: center;
  435. border-radius: 0 586px 586px/0 0 104px 104px;
  436. overflow: hidden;
  437. box-shadow: 0 0 5px #888888;
  438. img {
  439. width: 3rem;
  440. height: 3rem;
  441. border-radius: 50%;
  442. border: 2px solid #fff4db;
  443. }
  444. span {
  445. font-size: 1.4rem;
  446. color: #fff2d3;
  447. }
  448. }
  449. .head-txt {
  450. margin-top: 4.7rem;
  451. font-size: 2rem;
  452. text-align: center;
  453. color: #ef4545;
  454. }
  455. .head-area {
  456. height: 10rem;
  457. line-height: 10rem;
  458. text-align: center;
  459. letter-spacing: 0.3px;
  460. font-size: 2rem;
  461. text-align: center;
  462. color: #ef4545;
  463. }
  464. .head-money {
  465. display: flex;
  466. align-items: center;
  467. justify-content: center;
  468. margin-bottom: 3.2rem;
  469. img {
  470. width: 4rem;
  471. height: 4rem;
  472. }
  473. span {
  474. font-size: 1.3rem;
  475. }
  476. .money-txt {
  477. font-weight: 700;
  478. font-size: 4.8rem;
  479. color: #000000;
  480. letter-spacing: 0.3px;
  481. }
  482. }
  483. }
  484. .luck-list-title {
  485. padding: 0 16px;
  486. background: #fff;
  487. color: #9b9b9b;
  488. display: flex;
  489. justify-content: space-between;
  490. }
  491. .luck-list {
  492. background: #fff;
  493. flex: 1;
  494. overflow: scroll;
  495. .luck-item {
  496. display: flex;
  497. padding: 12px 16px;
  498. border-top: 1px solid #d1d1d1;
  499. justify-content: space-between;
  500. position: relative;
  501. img:first-child {
  502. border-radius: 50%;
  503. }
  504. .luck-king {
  505. position: absolute;
  506. top: 36px;
  507. right: 16px;
  508. display: flex;
  509. align-items: center;
  510. img {
  511. width: 22px;
  512. height: 19px;
  513. margin: 0;
  514. }
  515. span {
  516. font-weight: 500;
  517. font-size: 12px;
  518. line-height: 14px;
  519. letter-spacing: 0.3px;
  520. color: #f5b945;
  521. }
  522. }
  523. img {
  524. width: 42px;
  525. height: 42px;
  526. margin-right: 12px;
  527. }
  528. .luck-content {
  529. flex: auto;
  530. .luck-title {
  531. font-weight: 500;
  532. font-size: 16px;
  533. letter-spacing: 0.3px;
  534. color: #444444;
  535. }
  536. .luck-time {
  537. font-weight: 400;
  538. font-size: 12px;
  539. line-height: 14px;
  540. color: #9b9b9b;
  541. }
  542. }
  543. .luck-money {
  544. display: flex;
  545. height: 17px;
  546. align-items: center;
  547. img {
  548. width: 14px;
  549. height: 14px;
  550. margin-right: 6px;
  551. }
  552. .luck-money-txt {
  553. font-weight: 500;
  554. font-size: 14px;
  555. /* identical to box height */
  556. text-align: right;
  557. letter-spacing: 0.3px;
  558. color: #444444;
  559. }
  560. }
  561. }
  562. }
  563. .area {
  564. position: absolute;
  565. z-index: 112;
  566. width: 100%;
  567. .title {
  568. z-index: 11;
  569. margin-top: 8.5rem;
  570. text-align: center;
  571. img {
  572. width: 3.6rem;
  573. height: 3.6rem;
  574. border: 2px solid #fff4db;
  575. border-radius: 50%;
  576. }
  577. span {
  578. letter-spacing: 0.3px;
  579. font-size: 1.6rem;
  580. color: #fff2d3;
  581. }
  582. }
  583. .txt {
  584. font-size: 4rem;
  585. text-align: center;
  586. letter-spacing: 0.03rem;
  587. color: #fff2d3;
  588. }
  589. }
  590. .key_area {
  591. animation: key_area 1s;
  592. animation-delay: 1s;
  593. animation-fill-mode: forwards;
  594. }
  595. }
  596. .redPacket2 {
  597. left: 30.6rem;
  598. margin-left: -18rem;
  599. }
  600. .key_install {
  601. opacity: 0;
  602. animation: key_install 2s;
  603. animation-delay: 6s;
  604. animation-fill-mode: forwards;
  605. }
  606. .install {
  607. position: absolute;
  608. top: 20rem;
  609. left: 78.5rem;
  610. .title {
  611. font-size: 4.8rem;
  612. color: #000000;
  613. letter-spacing: 0.3px;
  614. }
  615. .validity {
  616. padding-left: 1.5rem;
  617. margin-top: 2rem;
  618. background: rgba(166, 166, 166, 0.1);
  619. width: 40rem;
  620. height: 3.3rem;
  621. line-height: 3.3rem;
  622. span {
  623. color: #000000;
  624. font-size: 1.4rem;
  625. }
  626. }
  627. .flow {
  628. position: absolute;
  629. margin-top: 4.6rem;
  630. .line {
  631. position: absolute;
  632. height: 16rem;
  633. border: 1px solid #e0e0e0;
  634. top: 3rem;
  635. left: 1.2rem;
  636. }
  637. .area_num {
  638. display: flex;
  639. align-items: center;
  640. .num {
  641. width: 2.4rem;
  642. height: 2.4rem;
  643. background-color: rgba(56, 154, 255, 1);
  644. border-radius: 50%;
  645. color: #fff;
  646. text-align: center;
  647. line-height: 2.4rem;
  648. font-size: 1.4rem;
  649. }
  650. span {
  651. margin-left: 1.5rem;
  652. color: #000000;
  653. font-size: 1.8rem;
  654. }
  655. }
  656. .tip {
  657. margin-left: 4rem;
  658. margin-top: 0.7rem;
  659. font-size: 1.4rem;
  660. color: #a4a4a4;
  661. }
  662. .install_btn {
  663. margin-left: 4rem;
  664. margin-top: 2rem;
  665. margin-bottom: 6.7rem;
  666. width: 23rem;
  667. height: 5.8rem;
  668. background: #389aff;
  669. border-radius: 10rem;
  670. color: #fff;
  671. line-height: 5.8rem;
  672. text-align: center;
  673. font-size: 2rem;
  674. }
  675. }
  676. .tip {
  677. margin-top: 0.7rem;
  678. font-size: 1.4rem;
  679. color: #a4a4a4;
  680. }
  681. .install_btn {
  682. margin-top: 2rem;
  683. margin-bottom: 6.7rem;
  684. width: 23rem;
  685. height: 5.8rem;
  686. background: #389aff;
  687. border-radius: 10rem;
  688. color: #fff;
  689. line-height: 5.8rem;
  690. text-align: center;
  691. font-size: 2rem;
  692. }
  693. }
  694. .install-error {
  695. left: 78.5rem;
  696. .install_chrome {
  697. cursor: pointer;
  698. width: 24.3rem;
  699. height: 5.8rem;
  700. font-size: 2rem;
  701. font-weight: 500;
  702. letter-spacing: 0.3px;
  703. display: flex;
  704. align-items: center;
  705. border: 1px solid #e8e8e8;
  706. border-radius: 10rem;
  707. margin-top: 3.3rem;
  708. img {
  709. width: 3.2rem;
  710. height: 3.2rem;
  711. margin-left: 3.3rem;
  712. }
  713. span {
  714. margin-left: 1.2rem;
  715. }
  716. }
  717. }
  718. }
  719. @keyframes key_area {
  720. 0% {
  721. opacity: 1;
  722. }
  723. 100% {
  724. opacity: 0;
  725. }
  726. }
  727. @keyframes key_install {
  728. 0% {
  729. opacity: 0;
  730. }
  731. 100% {
  732. opacity: 1;
  733. }
  734. }
  735. @keyframes key_packet {
  736. 0% {}
  737. 100% {
  738. left: 30.6rem;
  739. margin-left: -18rem;
  740. }
  741. }
  742. @keyframes key_top {
  743. 0% {
  744. top: 0;
  745. }
  746. 50% {
  747. top: -30rem;
  748. }
  749. 100% {
  750. top: -36rem;
  751. }
  752. }
  753. @keyframes key_down {
  754. 0% {
  755. bottom: 0;
  756. }
  757. 50% {
  758. bottom: -28.3rem;
  759. }
  760. 100% {
  761. bottom: -32.3rem;
  762. }
  763. }
  764. </style>