index.vue 18 KB

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