index.vue 18 KB

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