index.vue 18 KB

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