index.vue 18 KB

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