index.vue 18 KB

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