index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  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. if (!this.detail.postId) {
  342. return
  343. }
  344. //改变font-size
  345. (function (doc, win) {
  346. var docEI = doc.documentElement,
  347. resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  348. recalc = function () {
  349. var clientWidth = docEI.clientWidth;
  350. if (!clientWidth) return;
  351. //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  352. docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  353. }
  354. if (!doc.addEventListener) return;
  355. win.addEventListener(resizeEvt, recalc, false);
  356. doc.addEventListener('DOMContentLoaded', recalc, false);
  357. })(document, window);
  358. if (isBrowser() == 'chrome') {
  359. // 领取任务红包
  360. this.setCookieMid()
  361. this.getRedPacket()
  362. this.setPickupInfo()
  363. } else {
  364. this.home_show = true
  365. this.status = 'no-chrome'
  366. }
  367. }
  368. }
  369. </script>
  370. <style lang="scss" >
  371. html,
  372. body,
  373. #__nuxt,
  374. #__layout {
  375. width: 100%;
  376. height: 100%;
  377. padding: 0;
  378. margin: 0;
  379. }
  380. .content {
  381. width: 100%;
  382. height: 100%;
  383. background-size: 100%;
  384. background-repeat: no-repeat;
  385. position: relative;
  386. font-family: "SF Pro Display";
  387. font-style: normal;
  388. font-weight: 600;
  389. .logo {
  390. position: absolute;
  391. left: 4rem;
  392. top: 1.5rem;
  393. img {
  394. width: 107px;
  395. height: 40px;
  396. }
  397. }
  398. .key_packet {
  399. animation: key_packet 3s;
  400. animation-delay: 6s;
  401. animation-fill-mode: forwards;
  402. }
  403. .redPacket {
  404. display: flex;
  405. justify-content: flex-start;
  406. flex-direction: column;
  407. position: absolute;
  408. top: 9rem;
  409. left: 50%;
  410. width: 37.5rem;
  411. margin-left: -18rem;
  412. height: 65rem;
  413. border-radius: 2rem;
  414. // background: red;
  415. overflow: hidden;
  416. box-shadow: 0 0 5px #888888;
  417. .start {
  418. position: absolute;
  419. width: 10rem;
  420. height: 10rem;
  421. bottom: 24rem;
  422. left: 50%;
  423. margin-left: -5rem;
  424. z-index: 13;
  425. }
  426. .key_top {
  427. animation: key_top 4s;
  428. animation-delay: 2s;
  429. animation-fill-mode: forwards;
  430. }
  431. .top {
  432. top: 0;
  433. position: absolute;
  434. width: 100%;
  435. z-index: 12;
  436. }
  437. .down {
  438. bottom: 0;
  439. position: absolute;
  440. height: 32.3rem;
  441. z-index: 11;
  442. }
  443. .key_down {
  444. animation: key_down 4s;
  445. animation-delay: 2s;
  446. animation-fill-mode: forwards;
  447. }
  448. .head {
  449. .head-title {
  450. height: 9.7rem;
  451. line-height: 9.7rem;
  452. background: #ef4545;
  453. text-align: center;
  454. border-radius: 0 586px 586px/0 0 104px 104px;
  455. overflow: hidden;
  456. box-shadow: 0 0 5px #888888;
  457. img {
  458. width: 3rem;
  459. height: 3rem;
  460. border-radius: 50%;
  461. border: 2px solid #fff4db;
  462. }
  463. span {
  464. font-size: 1.4rem;
  465. color: #fff2d3;
  466. }
  467. }
  468. .head-txt {
  469. margin-top: 4.7rem;
  470. font-size: 2rem;
  471. text-align: center;
  472. color: #ef4545;
  473. }
  474. .head-area {
  475. height: 10rem;
  476. text-align: center;
  477. letter-spacing: 0.3px;
  478. font-size: 2rem;
  479. text-align: center;
  480. color: #ef4545;
  481. }
  482. .head-money {
  483. display: flex;
  484. align-items: center;
  485. justify-content: center;
  486. margin-bottom: 3.2rem;
  487. img {
  488. width: 4rem;
  489. height: 4rem;
  490. }
  491. span {
  492. font-size: 1.3rem;
  493. }
  494. .money-txt {
  495. font-weight: 700;
  496. font-size: 4.8rem;
  497. color: #000000;
  498. letter-spacing: 0.3px;
  499. }
  500. }
  501. }
  502. .luck-list-title {
  503. padding: 0 16px;
  504. background: #fff;
  505. color: #9b9b9b;
  506. display: flex;
  507. justify-content: space-between;
  508. }
  509. .luck-list {
  510. background: #fff;
  511. flex: 1;
  512. overflow: scroll;
  513. .luck-item {
  514. display: flex;
  515. padding: 12px 16px;
  516. border-top: 1px solid #d1d1d1;
  517. justify-content: space-between;
  518. position: relative;
  519. img:first-child {
  520. border-radius: 50%;
  521. }
  522. .luck-king {
  523. position: absolute;
  524. top: 36px;
  525. right: 16px;
  526. display: flex;
  527. align-items: center;
  528. img {
  529. width: 22px;
  530. height: 19px;
  531. margin: 0;
  532. }
  533. span {
  534. font-weight: 500;
  535. font-size: 12px;
  536. line-height: 14px;
  537. letter-spacing: 0.3px;
  538. color: #f5b945;
  539. }
  540. }
  541. img {
  542. width: 42px;
  543. height: 42px;
  544. margin-right: 12px;
  545. }
  546. .luck-content {
  547. flex: auto;
  548. .luck-title {
  549. font-weight: 500;
  550. font-size: 16px;
  551. letter-spacing: 0.3px;
  552. color: #444444;
  553. }
  554. .luck-time {
  555. font-weight: 400;
  556. font-size: 12px;
  557. line-height: 14px;
  558. color: #9b9b9b;
  559. }
  560. }
  561. .luck-money {
  562. display: flex;
  563. height: 17px;
  564. align-items: center;
  565. img {
  566. width: 14px;
  567. height: 14px;
  568. margin-right: 6px;
  569. }
  570. .luck-money-txt {
  571. font-weight: 500;
  572. font-size: 14px;
  573. /* identical to box height */
  574. text-align: right;
  575. letter-spacing: 0.3px;
  576. color: #444444;
  577. }
  578. }
  579. }
  580. }
  581. .area {
  582. position: absolute;
  583. z-index: 112;
  584. width: 100%;
  585. .title {
  586. z-index: 11;
  587. margin-top: 8.5rem;
  588. text-align: center;
  589. img {
  590. width: 3.6rem;
  591. height: 3.6rem;
  592. border: 2px solid #fff4db;
  593. border-radius: 50%;
  594. }
  595. span {
  596. letter-spacing: 0.3px;
  597. font-size: 1.6rem;
  598. color: #fff2d3;
  599. }
  600. }
  601. .txt {
  602. font-size: 4rem;
  603. text-align: center;
  604. letter-spacing: 0.03rem;
  605. color: #fff2d3;
  606. }
  607. }
  608. .key_area {
  609. animation: key_area 1s;
  610. animation-delay: 1s;
  611. animation-fill-mode: forwards;
  612. }
  613. }
  614. .redPacket2 {
  615. left: 30.6rem;
  616. margin-left: -18rem;
  617. }
  618. .key_install {
  619. opacity: 0;
  620. animation: key_install 2s;
  621. animation-delay: 6s;
  622. animation-fill-mode: forwards;
  623. }
  624. .install {
  625. position: absolute;
  626. top: 20rem;
  627. left: 78.5rem;
  628. .title {
  629. font-size: 4.8rem;
  630. color: #000000;
  631. letter-spacing: 0.3px;
  632. }
  633. .validity {
  634. padding-left: 1.5rem;
  635. margin-top: 2rem;
  636. background: rgba(166, 166, 166, 0.1);
  637. width: 40rem;
  638. height: 3.3rem;
  639. line-height: 3.3rem;
  640. span {
  641. color: #000000;
  642. font-size: 1.4rem;
  643. }
  644. }
  645. .flow {
  646. position: absolute;
  647. margin-top: 4.6rem;
  648. .line {
  649. position: absolute;
  650. height: 16rem;
  651. border: 1px solid #e0e0e0;
  652. top: 3rem;
  653. left: 1.2rem;
  654. }
  655. .area_num {
  656. display: flex;
  657. align-items: center;
  658. .num {
  659. width: 2.4rem;
  660. height: 2.4rem;
  661. background-color: rgba(56, 154, 255, 1);
  662. border-radius: 50%;
  663. color: #fff;
  664. text-align: center;
  665. line-height: 2.4rem;
  666. font-size: 1.4rem;
  667. }
  668. span {
  669. margin-left: 1.5rem;
  670. color: #000000;
  671. font-size: 1.8rem;
  672. }
  673. }
  674. .tip {
  675. margin-left: 4rem;
  676. margin-top: 0.7rem;
  677. font-size: 1.4rem;
  678. color: #a4a4a4;
  679. }
  680. .install_btn {
  681. margin-left: 4rem;
  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. .tip {
  695. margin-top: 0.7rem;
  696. font-size: 1.4rem;
  697. color: #a4a4a4;
  698. }
  699. .install_btn {
  700. margin-top: 2rem;
  701. margin-bottom: 6.7rem;
  702. width: 23rem;
  703. height: 5.8rem;
  704. background: #389aff;
  705. border-radius: 10rem;
  706. color: #fff;
  707. line-height: 5.8rem;
  708. text-align: center;
  709. font-size: 2rem;
  710. }
  711. }
  712. .install-error {
  713. left: 78.5rem;
  714. .install_chrome {
  715. cursor: pointer;
  716. width: 24.3rem;
  717. height: 5.8rem;
  718. font-size: 2rem;
  719. font-weight: 500;
  720. letter-spacing: 0.3px;
  721. display: flex;
  722. align-items: center;
  723. border: 1px solid #e8e8e8;
  724. border-radius: 10rem;
  725. margin-top: 3.3rem;
  726. img {
  727. width: 3.2rem;
  728. height: 3.2rem;
  729. margin-left: 3.3rem;
  730. }
  731. span {
  732. margin-left: 1.2rem;
  733. }
  734. }
  735. }
  736. }
  737. @keyframes key_area {
  738. 0% {
  739. opacity: 1;
  740. }
  741. 100% {
  742. opacity: 0;
  743. }
  744. }
  745. @keyframes key_install {
  746. 0% {
  747. opacity: 0;
  748. }
  749. 100% {
  750. opacity: 1;
  751. }
  752. }
  753. @keyframes key_packet {
  754. 0% {}
  755. 100% {
  756. left: 30.6rem;
  757. margin-left: -18rem;
  758. }
  759. }
  760. @keyframes key_top {
  761. 0% {
  762. top: 0;
  763. }
  764. 50% {
  765. top: -30rem;
  766. }
  767. 100% {
  768. top: -36rem;
  769. }
  770. }
  771. @keyframes key_down {
  772. 0% {
  773. bottom: 0;
  774. }
  775. 50% {
  776. bottom: -28.3rem;
  777. }
  778. 100% {
  779. bottom: -32.3rem;
  780. }
  781. }
  782. </style>