index.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592
  1. <template>
  2. <div style="width: 100%; height: 100%;">
  3. <div class="content" :style="{ 'background': `#F5FAFF` }" v-show="show_home" v-if="detail">
  4. <div class="logo">
  5. <img src="/img/icon-logo.png" alt />
  6. </div>
  7. <!-- 未开始 -->
  8. <div class="not-open" v-show="status == 'not-open'">
  9. <img src="/subject/001.gif">
  10. </div>
  11. <!-- 红包打开 -->
  12. <div class="redPacket"
  13. :class="{ redPacket2: status != 'open', key_packet: status == 'open' }"
  14. v-if="status != 'nothing'"
  15. v-show="status != 'not-open'">
  16. <!-- 内容 -->
  17. <div class="head">
  18. <div class="head-title">
  19. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  20. <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
  21. </div>
  22. <!-- <div class="head-txt" v-if="status == 'open' || status == 'opened'">Awesome! You Will Get</div> -->
  23. <!-- <div class="head-area" v-else-if="status == 'opened'">opened!</div> -->
  24. <!-- 红包被领完了 -->
  25. <div class="head-area" v-if="status == 'nothing'">
  26. <div class="txt">Better luck next time!</div>
  27. </div>
  28. <!-- 过期 -->
  29. <div class="head-area expire" v-if="status == 'expire'">
  30. <div class="txt">This Giveaways</div>
  31. <div class="titme">expired on {{ formatTime(detail.postBizData.endTimestamp, 'MM-DD') }}</div>
  32. </div>
  33. <!-- 非chrome浏览器 -->
  34. <div class="head-area expire" v-if="status == 'no-chrome'">
  35. <div class="txt">Get Giveaways</div>
  36. <div class="titme">with chrome</div>
  37. </div>
  38. <!-- 领取成功 -->
  39. <div class="head-area head-money" v-if="status == 'open' || status == 'opened'">
  40. <div class="txt">AWESOME! YOU Will GET</div>
  41. <div class="head-money-area">
  42. <img :src="currencyIconPath" alt />
  43. <span class="money-txt" :style="{ fontSize: amount_font_size + 'px' }">{{ receiveAmount }}</span>
  44. </div>
  45. </div>
  46. </div>
  47. <!-- 领取列表 -->
  48. <div class="luck-list-title">
  49. <div>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }} Winners
  50. </div>
  51. <div> {{ detail.postBizData.receiveAmountValue }} / {{
  52. detail.postBizData.amountValue || ''
  53. }} {{ detail.postBizData.currencySymbol || '' }}</div>
  54. </div>
  55. <div class="luck-list" @scroll="handleScroll($event)">
  56. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  57. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  58. <img v-else src="/svg/icon-twitter.svg" alt />
  59. <div class="luck-content">
  60. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  61. <div class="luck-time">{{ formatTime(item.receiveTimestamp, 'MM-DD HH:mm') }}</div>
  62. </div>
  63. <div class="luck-money">
  64. <img :src="item.currencyIconPath" alt />
  65. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  66. </div>
  67. <div class="luck-king" v-if="item.maxAmount">
  68. <img src="/svg/icon-king-hat.svg" alt />
  69. <span>Luckiest Draw</span>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="redBag" v-else>
  75. <img src="/subject/001-card.png" alt="">
  76. <img class="open-gif" src="/subject/001.gif" />
  77. <div class="title" v-if="detail.postBizData.postUserInfo">
  78. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  79. <span>{{ detail.postBizData.postUserInfo.nickName || 'FutureDoctor' }}</span>
  80. </div>
  81. <div class="money-area">
  82. <div class="txt">{{ detail.postBizData.currencySymbol }} GIVEAWAY</div>
  83. <div class="coin">
  84. <img :src="detail.postBizData.currencyIconPath" alt />
  85. <font-amount :amount="detail.postBizData.amountValue"></font-amount>
  86. </div>
  87. <div class="people">{{ detail.postBizData.totalCount }} WINNERS TO SHARE</div>
  88. </div>
  89. </div>
  90. <!-- 安装 -->
  91. <div class="install" v-if="status == 'nothing' || status == 'open' || status == 'opened'"
  92. :class="{ key_install: status == 'open' }">
  93. <div v-if="status == 'nothing'">
  94. <div class="title">Install Denet to Draw</div>
  95. </div>
  96. <div v-else>
  97. <div class="title">Withdraw to Wallet</div>
  98. <div class="validity">
  99. <template v-if="validity_state">
  100. <span style="color:#FFA620;">Remaining valid time </span>
  101. <span style="color: #FFA620;">{{ validity }}</span>
  102. </template>
  103. <template v-else>
  104. <span style="color: #FFA620;">Giveaways Validity</span>
  105. </template>
  106. </div>
  107. </div>
  108. <div class="flow">
  109. <div class="line"></div>
  110. <div class="area_num">
  111. <div class="num">1</div>
  112. <span>Install DeNet</span>
  113. </div>
  114. <div class="tip">Used to verify tasks and get rewards</div>
  115. <div class="install_btn" @click="installExtension">Install</div>
  116. <div class="area_num">
  117. <div class="num">2</div>
  118. <span v-if="status == 'nothing'">Complete Tasks</span>
  119. <span v-else>Complete Tasks by {{ detail.postBizData.postUserInfo.nickName }}</span>
  120. </div>
  121. <div class="tip">Complete like, retweet and follow in a simple way</div>
  122. </div>
  123. </div>
  124. <!-- 过期 -->
  125. <div class="install install-error" v-if="status == 'expire'">
  126. <div class="title">Install DeNet</div>
  127. <div class="title">Don't miss the next Giveaway</div>
  128. <div class="tip">Used to verify tasks and get rewards</div>
  129. <div class="install_btn" @click="installExtension">Install</div>
  130. </div>
  131. <!-- 非chrome 浏览器状态 -->
  132. <div class="install install-error" v-if="status == 'no-chrome'">
  133. <div class="title">Open Giveaways</div>
  134. <div class="title">with chrome</div>
  135. <div class="tip">Only supports getting Giveaways through chrome</div>
  136. <div class="install_chrome" @click="clickOpenChrome()">
  137. <img src="/svg/icon-chrome.svg" alt />
  138. Install Chrome
  139. </div>
  140. </div>
  141. <div v-if="status == 'error'"></div>
  142. </div>
  143. <div v-if="show_moblie" class="moblie">
  144. <div class="head-area">
  145. <div class="gift">
  146. <img :src=" require('../static/subject/gift.svg') " />
  147. </div>
  148. <div class="txt">
  149. <div>Complete tasks</div>
  150. <div>to Draw Prizes</div>
  151. </div>
  152. </div>
  153. <!-- 领取列表 -->
  154. <div class="luck-list" @scroll="handleScroll($event)">
  155. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  156. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  157. <img v-else src="/svg/icon-twitter.svg" alt />
  158. <div class="luck-content">
  159. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  160. <div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
  161. </div>
  162. <div class="luck-money">
  163. <img :src="item.currencyIconPath" alt />
  164. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  165. </div>
  166. <div class="luck-king" v-if="item.maxAmount">
  167. <img src="/svg/icon-king-hat.svg" alt />
  168. <span>Luckiest Draw</span>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="area-cp-link">
  173. <div class="area-list">
  174. <div class="item">
  175. <div class="icon"><img :src=" require('../static/subject/01.svg') " /></div>
  176. <div class="font">Complete the tasks on tweet</div>
  177. </div>
  178. <div class="item">
  179. <div class="icon"><img :src=" require('../static/subject/02.svg') " /></div>
  180. <div class="font">Open link on PC to draw</div>
  181. <div class="pc"><img :src=" require('../static/subject/pc.svg') " /></div>
  182. </div>
  183. </div>
  184. <div class="area-content">
  185. {{ cp_link }}
  186. </div>
  187. <div class="area-btn">
  188. <div class="btn" :data-clipboard-text="cp_link" @click="copyLinkHandle">Copy Link</div>
  189. </div>
  190. </div>
  191. <div class="layer" v-show="layer_show">
  192. <div class="layer-box">
  193. <div class="layer-txt">Unable to copy, please enter the link manually</div>
  194. <div class="layer-btn" @click="layer_show = false">Done</div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </template>
  200. <script>
  201. import axios from 'axios';
  202. import Cookies from 'js-cookie'
  203. import { isBrowser } from '../utils/help.js'
  204. import Report from "../log-center/log"
  205. import { Toast } from 'vant';
  206. import FontAmount from '../components/FontAmount.vue'
  207. var moment = require('moment');
  208. var ClipboardJS = require('clipboard')
  209. const api = {
  210. prod: 'https://api.denetme.net',
  211. pre: 'https://preapi.denetme.net',
  212. test: 'https://testapi.denetme.net'
  213. }
  214. const page = {
  215. prod: "https://h5.denetme.net",
  216. pre: "https://preh5.denetme.net",
  217. test: 'https://testh5.denetme.net'
  218. }
  219. const jumpUrl = page[process.env.NUXT_ENV.MODE] + '/'
  220. const baseURL = api[process.env.NUXT_ENV.MODE]
  221. const appType = 1;
  222. let appVersionCode = 6;
  223. export default {
  224. name: "index",
  225. data() {
  226. return {
  227. cp_link: '',
  228. appVersionCode: appVersionCode,
  229. mid: '',
  230. show_moblie: false,
  231. show_home: false,
  232. layer_show: false,
  233. amount_font_size:46,
  234. validity: '',
  235. receiveAmount: 0,
  236. validity_state: true,
  237. detail: {
  238. postId: '',
  239. postBizData: {
  240. imagePath: '',
  241. postUserInfo: {
  242. }
  243. }
  244. },
  245. currencyIconPath: '',
  246. title: 'DeNet Giveaway',
  247. metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
  248. jumpUrl: jumpUrl,
  249. status: '',
  250. reportStatus: 'normal',
  251. page_index: 1,
  252. page_size: 20,
  253. luck_list: [],
  254. luck_list_end: false,
  255. config: {
  256. extensionsInstallChannel: 'officeDownload', // chromeAppStore
  257. extensionsInstallUrl: ''
  258. }
  259. }
  260. },
  261. components: {
  262. FontAmount,
  263. },
  264. head() {
  265. return {
  266. type: '',
  267. title: this.title,
  268. appVersionCode: 3,
  269. meta: [
  270. // facebook
  271. {
  272. name: 'og:url',
  273. content: this.jumpUrl + this.detail.postId
  274. },
  275. {
  276. name: 'og:title',
  277. content: this.metaTitle
  278. },
  279. {
  280. name: 'og:image',
  281. content: this.detail.postBizData.imagePath || ''
  282. },
  283. // twitter
  284. {
  285. name: 'twitter:card',
  286. content: 'summary_large_image'
  287. },
  288. {
  289. name: 'twitter:url',
  290. content: this.jumpUrl + this.detail.postId
  291. },
  292. {
  293. name: 'twitter:title',
  294. content: this.metaTitle
  295. },
  296. {
  297. name: 'twitter:image',
  298. content: this.detail.postBizData.imagePath || ''
  299. }
  300. ]
  301. }
  302. },
  303. methods: {
  304. copyLinkHandle() {
  305. Report.reportLog({
  306. baseInfo: {
  307. appVersionCode: this.appVersionCode,
  308. mid: this.mid,
  309. pageSource: Report.pageSource.mobileLandingPage,
  310. appType,
  311. machineCode: this.mid
  312. },
  313. params: {
  314. eventData: {
  315. businessType: Report.businessType.buttonClick,
  316. objectType: Report.objectType.copyLinkButton,
  317. postId: this.detail.postId,
  318. srcContentId: this.detail.srcContentId,
  319. senderId: this.detail.srcUserId,
  320. status: '',
  321. },
  322. }
  323. })
  324. },
  325. clickOpenChrome() {
  326. window.open('https://www.google.com/chrome')
  327. Report.reportLog({
  328. baseInfo: {
  329. appVersionCode: this.appVersionCode,
  330. mid: this.mid,
  331. pageSource: Report.pageSource.newUserLandingPage,
  332. appType,
  333. machineCode: this.mid
  334. },
  335. params: {
  336. eventData: {
  337. businessType: Report.businessType.buttonClick,
  338. objectType: Report.objectType.installButton,
  339. postId: this.detail.postId,
  340. srcContentId: this.detail.srcContentId,
  341. senderId: this.detail.srcUserId,
  342. status: '',
  343. },
  344. }
  345. })
  346. },
  347. isMobile() {
  348. let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
  349. return flag;
  350. },
  351. installExtension() {
  352. let { extensionsInstallChannel, extensionsInstallUrl } = this.config;
  353. let url = extensionsInstallUrl;
  354. Report.reportLog({
  355. baseInfo: {
  356. appVersionCode: this.appVersionCode,
  357. mid: this.mid,
  358. pageSource: Report.pageSource.newUserLandingPage,
  359. appType,
  360. machineCode: this.mid
  361. },
  362. params: {
  363. eventData: {
  364. businessType: Report.businessType.buttonClick,
  365. objectType: Report.objectType.installButton,
  366. postId: this.detail.postId,
  367. srcContentId: this.detail.srcContentId,
  368. senderId: this.detail.srcUserId,
  369. status: '',
  370. },
  371. }
  372. })
  373. switch (extensionsInstallChannel) {
  374. case "officeDownload":
  375. location.href = url;
  376. this.$router.push({
  377. path: '/install'
  378. })
  379. break;
  380. case "chromeAppStore":
  381. window.open(extensionsInstallUrl)
  382. break;
  383. }
  384. },
  385. formatTime(time, _type = 'MM-DD HH:mm:ss') {
  386. return moment(time).format(_type)
  387. },
  388. guid() {
  389. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  390. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  391. return v.toString(16);
  392. });
  393. },
  394. handleScroll(e) {
  395. e = e.target
  396. if (this.luck_list_end) {
  397. return
  398. }
  399. if ((e.clientHeight + e.scrollTop) / e.scrollHeight > .8) {
  400. this.luck_list_end = false
  401. this.page_index++
  402. this.getReceivedList()
  403. }
  404. },
  405. getFontSize(amount) {
  406. let _num = parseInt(360 / amount.length);
  407. this.amount_font_size = _num < 46 ? _num : 46;
  408. },
  409. setCookieMid() {
  410. let _cookie_mid_arr = Cookies.get('mid') || []
  411. if (_cookie_mid_arr.length > 0) {
  412. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  413. } else {
  414. this.mid = this.guid()
  415. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  416. }
  417. },
  418. async getRedPacket() {
  419. this.currencyIconPath = this.detail.postBizData.currencyIconPath
  420. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/receiveLuckdrop`, {
  421. baseInfo: {
  422. appVersionCode: this.appVersionCode,
  423. mid: this.mid
  424. },
  425. params: {
  426. postId: this.detail.postId || ''
  427. }
  428. })
  429. this.show_home = true
  430. switch (data.code.toString()) {
  431. case '0':
  432. this.getDetail()
  433. if (data.data.receiveAmount == '0') {
  434. this.reportStatus = 'empty'
  435. this.status = 'nothing'
  436. } else {
  437. if (data.data.newReceived) {
  438. this.status = 'not-open'
  439. setTimeout(() => {
  440. this.status = 'open'
  441. }, 3000)
  442. this.receiveAmount = data.data.receiveAmount
  443. } else {
  444. this.status = 'opened'
  445. }
  446. }
  447. this.getValidity(data.data.endTimestamp)
  448. this.receiveAmount = data.data.receiveAmount
  449. this.getFontSize(this.receiveAmount)
  450. break;
  451. case '2003':
  452. // this.status = 'expire'
  453. this.reportStatus = 'empty'
  454. this.getDetail()
  455. this.status = 'nothing'
  456. break
  457. // 红包被领完了
  458. case '2008':
  459. this.reportStatus = 'empty'
  460. this.getDetail()
  461. this.status = 'nothing'
  462. break
  463. case '2029':
  464. // 推文未发布
  465. this.status = 'error'
  466. break
  467. default:
  468. console.log('getRedPacket', data)
  469. // this.show_home = false
  470. this.reportStatus = 'empty'
  471. this.getDetail()
  472. this.status = 'nothing'
  473. break;
  474. }
  475. // 领取列表分页
  476. this.getReceivedList()
  477. },
  478. async getReceivedList() {
  479. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/getReceivedList`, {
  480. baseInfo: {
  481. appVersionCode: this.appVersionCode,
  482. mid: this.mid
  483. },
  484. params: {
  485. pageNum: this.page_index,
  486. pageSize: this.page_size,
  487. postId: this.detail.postId || ''
  488. }
  489. })
  490. if (data.code == 0) {
  491. if (data.data.length > 0) {
  492. this.luck_list = this.luck_list.concat(data.data)
  493. this.luck_list_end = false
  494. } else {
  495. this.luck_list_end = true
  496. }
  497. } else {
  498. console.log('getReceivedList', data)
  499. }
  500. },
  501. getValidity(end_time) {
  502. let _d1, _d2, _d3, _h, _m, _s
  503. let timer = setInterval(() => {
  504. let _time = new Date().getTime()
  505. _d3 = end_time - _time
  506. if (_d3 > 0) {
  507. _d1 = moment(end_time)
  508. _d2 = moment(_time)
  509. _h = moment.duration(_d1.diff(_d2)).hours()
  510. _m = moment.duration(_d1.diff(_d2)).minutes()
  511. _s = moment.duration(_d1.diff(_d2)).seconds()
  512. if (_h < 10) {
  513. _h = '0' + _h
  514. }
  515. if (_m < 10) {
  516. _m = '0' + _m
  517. }
  518. if (_s < 10) {
  519. _s = '0' + _s
  520. }
  521. this.validity = `${_h}:${_m}:${_s}`
  522. } else {
  523. clearInterval(timer)
  524. }
  525. }, 1000)
  526. },
  527. setPickupInfo() {
  528. let pickupInfo = {
  529. srcContentId: this.detail.srcContentId,
  530. postNickName: this.detail.postBizData.postUserInfo.nickName,
  531. createTime: Date.now(),
  532. };
  533. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  534. },
  535. async getDetail() {
  536. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  537. baseInfo: {
  538. appVersionCode: this.appVersionCode,
  539. mid: this.mid
  540. },
  541. params: {
  542. postId: this.detail.postId
  543. }
  544. })
  545. if (data.code == 0) {
  546. this.detail.postBizData = JSON.parse(data.data.postBizData)
  547. }
  548. },
  549. async getConfig() {
  550. let { data } = await axios.post(`${baseURL}/denet/base/config/getFrontConfig`, {
  551. baseInfo: {
  552. appVersionCode: this.appVersionCode,
  553. mid: this.mid
  554. },
  555. params: {
  556. }
  557. })
  558. if (data.code == 0) {
  559. this.config = data.data;
  560. }
  561. },
  562. },
  563. async asyncData(params) {
  564. let { route } = params;
  565. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  566. baseInfo: {
  567. appVersionCode: appVersionCode,
  568. mid: function () {
  569. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  570. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  571. return v.toString(16);
  572. });
  573. }()
  574. },
  575. params: {
  576. postId: route.params.id || ''
  577. }
  578. })
  579. if (data.code == 0) {
  580. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  581. data.data.postBizData = JSON.parse(data.data.postBizData)
  582. }
  583. if(data.data.postBizData === null) {
  584. data.data.postBizData = {
  585. postUserInfo: {
  586. }
  587. }
  588. }
  589. return {
  590. detail: data.data,
  591. }
  592. }
  593. },
  594. mounted() {
  595. this.getConfig()
  596. if (!this.detail.postId) {
  597. return
  598. }
  599. console.log(this.detail)
  600. //改变font-size
  601. // (function (doc, win) {
  602. // var docEI = doc.documentElement,
  603. // resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  604. // recalc = function () {
  605. // var clientWidth = docEI.clientWidth;
  606. // if (!clientWidth) return;
  607. // //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  608. // docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  609. // }
  610. // if (!doc.addEventListener) return;
  611. // win.addEventListener(resizeEvt, recalc, false);
  612. // doc.addEventListener('DOMContentLoaded', recalc, false);
  613. // })(document, window);
  614. document.documentElement.style.fontSize = '62.5%'
  615. if (this.isMobile()) {
  616. this.setCookieMid();
  617. setTimeout(() => {
  618. Report.reportLog({
  619. baseInfo: {
  620. appVersionCode: this.appVersionCode,
  621. mid: this.mid,
  622. pageSource: Report.pageSource.mobileLandingPage,
  623. appType,
  624. machineCode: this.mid
  625. },
  626. params: {
  627. eventData: {
  628. businessType: Report.businessType.pageView,
  629. postId: this.detail.postId,
  630. srcContentId: this.detail.srcContentId,
  631. senderId: this.detail.srcUserId,
  632. status: this.reportStatus,
  633. },
  634. }
  635. })
  636. }, 500)
  637. this.show_moblie = true
  638. this.cp_link = window.location.href
  639. // 复制链接
  640. var clipboard = new ClipboardJS('.btn');
  641. clipboard.on('success', function (e) {
  642. Toast('copy success');
  643. console.info('Action:', e.action);
  644. console.info('Text:', e.text);
  645. console.info('Trigger:', e.trigger);
  646. e.clearSelection();
  647. });
  648. clipboard.on('error', function (e) {
  649. this.layer_show = true
  650. console.error('Action:', e.action);
  651. console.error('Trigger:', e.trigger);
  652. });
  653. // 领取列表分页
  654. this.getReceivedList()
  655. } else if (isBrowser() == 'chrome') {
  656. // 领取任务红包
  657. this.setCookieMid()
  658. // 是否被领完
  659. if(this.detail.postBizData.receiveCount < this.detail.postBizData.totalCount){
  660. this.getRedPacket()
  661. }else{
  662. this.show_home = true
  663. this.status = 'nothing'
  664. this.reportStatus = 'empty'
  665. }
  666. this.setPickupInfo()
  667. setTimeout(() => {
  668. Report.reportLog({
  669. baseInfo: {
  670. appVersionCode: this.appVersionCode,
  671. mid: this.mid,
  672. pageSource: Report.pageSource.newUserLandingPage,
  673. appType,
  674. machineCode: this.mid
  675. },
  676. params: {
  677. eventData: {
  678. businessType: Report.businessType.pageView,
  679. postId: this.detail.postId,
  680. srcContentId: this.detail.srcContentId,
  681. senderId: this.detail.srcUserId,
  682. status: this.reportStatus,
  683. },
  684. }
  685. });
  686. }, 1000)
  687. } else {
  688. this.show_home = true
  689. this.status = 'no-chrome'
  690. this.reportStatus = 'not-chrome'
  691. Report.reportLog({
  692. baseInfo: {
  693. appVersionCode: this.appVersionCode,
  694. mid: this.mid,
  695. pageSource: Report.pageSource.newUserLandingPage,
  696. appType,
  697. machineCode: this.mid
  698. },
  699. params: {
  700. eventData: {
  701. businessType: Report.businessType.pageView,
  702. postId: this.detail.postId,
  703. srcContentId: this.detail.srcContentId,
  704. senderId: this.detail.srcUserId,
  705. status: this.reportStatus,
  706. },
  707. }
  708. })
  709. }
  710. }
  711. }
  712. </script>
  713. <style lang="scss" >
  714. html,
  715. body,
  716. #__nuxt,
  717. #__layout {
  718. width: 100%;
  719. height: 100%;
  720. padding: 0;
  721. margin: 0;
  722. }
  723. .moblie {
  724. display: flex;
  725. flex-wrap: wrap;
  726. height: 100%;
  727. align-content: flex-start;
  728. flex-direction: column;
  729. .layer {
  730. position: fixed;
  731. width: 100%;
  732. height: 100%;
  733. top: 0;
  734. left: 0;
  735. background: rgba(0, 0, 0, .5);
  736. .layer-box {
  737. width: 30rem;
  738. height: 17rem;
  739. background: #FFFFFF;
  740. border-radius: 11px;
  741. opacity: 1;
  742. position: absolute;
  743. top: 25rem;
  744. left: 50%;
  745. margin-left: -15rem;
  746. .layer-txt {
  747. margin: 3rem 0;
  748. width: 100%;
  749. padding: 0 2.7rem;
  750. font-weight: 600;
  751. font-size: 1.8rem;
  752. text-align: center;
  753. }
  754. .layer-btn {
  755. width: 19rem;
  756. height: 4rem;
  757. background: #389AFF;
  758. border-radius: 100px;
  759. margin: 0 auto;
  760. text-align: center;
  761. line-height: 4rem;
  762. color: #fff;
  763. font-weight: 600;
  764. font-size: 1.8rem;
  765. }
  766. }
  767. }
  768. .head-area {
  769. width: 100%;
  770. height: 11rem;
  771. text-align: center;
  772. letter-spacing: 0.3px;
  773. font-size: 2rem;
  774. text-align: center;
  775. color: #fff;
  776. background: #389AFF;
  777. border-radius: 0 586px 586px/0 0 104px 104px;
  778. display: flex;
  779. align-items: center;
  780. justify-content: center;
  781. .gift {
  782. margin-right: 1.4rem;
  783. img {
  784. width: 5.2rem;
  785. }
  786. }
  787. .txt {
  788. font-size: 1.8rem;
  789. text-align: left;
  790. }
  791. }
  792. .luck-list-title {
  793. /* margin-top: 47px;*/
  794. margin: 0 16px;
  795. padding: 14px 0 11px 0;
  796. background: #fff;
  797. display: flex;
  798. justify-content: space-between;
  799. color: #B0B0B0;
  800. border-bottom: 1px solid #D1D1D1;
  801. }
  802. .luck-list {
  803. flex: 1;
  804. width: 100%;
  805. overflow-y: auto;
  806. .luck-item {
  807. display: flex;
  808. padding: 12px 0;
  809. margin: 0 16px;
  810. border-bottom: 1px solid #F2F2F2;
  811. justify-content: space-between;
  812. position: relative;
  813. img:first-child {
  814. border-radius: 50%;
  815. }
  816. .luck-king {
  817. position: absolute;
  818. top: 36px;
  819. right: 0px;
  820. display: flex;
  821. align-items: center;
  822. img {
  823. width: 22px;
  824. height: 19px;
  825. margin: 0;
  826. }
  827. span {
  828. font-weight: 500;
  829. font-size: 12px;
  830. line-height: 14px;
  831. letter-spacing: 0.3px;
  832. color: #f5b945;
  833. }
  834. }
  835. img {
  836. width: 42px;
  837. height: 42px;
  838. margin-right: 12px;
  839. }
  840. .luck-content {
  841. flex: auto;
  842. .luck-title {
  843. font-weight: 500;
  844. font-size: 16px;
  845. letter-spacing: 0.3px;
  846. color: #444444;
  847. }
  848. .luck-time {
  849. font-weight: 400;
  850. font-size: 12px;
  851. line-height: 14px;
  852. color: #9b9b9b;
  853. }
  854. }
  855. .luck-money {
  856. display: flex;
  857. height: 17px;
  858. align-items: center;
  859. img {
  860. width: 14px;
  861. height: 14px;
  862. margin-right: 6px;
  863. }
  864. .luck-money-txt {
  865. font-weight: 500;
  866. font-size: 14px;
  867. /* identical to box height */
  868. text-align: right;
  869. letter-spacing: 0.3px;
  870. color: #444444;
  871. }
  872. }
  873. }
  874. .luck-item:last-child {
  875. border: 0;
  876. }
  877. }
  878. .area-cp-link {
  879. background: #fff;
  880. width: 100%;
  881. flex-wrap: wrap;
  882. height: 20rem;
  883. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  884. border-top-left-radius: 1rem;
  885. border-top-right-radius: 1rem;
  886. .area-list {
  887. width: 34.3rem;
  888. margin: 1.5rem auto;
  889. .item {
  890. clear: both;
  891. overflow: hidden;
  892. margin: 0.7rem 0;
  893. font-size: 1.6rem;
  894. font-weight: 500;
  895. .icon {
  896. float: left;
  897. margin-right: 0.8rem;
  898. }
  899. .font {
  900. float: left;
  901. margin-right: 0.8rem;
  902. }
  903. .pc {
  904. float: left;
  905. }
  906. }
  907. }
  908. .area-content {
  909. background: #F4F4F4;
  910. padding: 0.7rem 1rem;
  911. margin: 0 auto 1rem;
  912. width: 34.3rem;
  913. font-size: 1.3rem;
  914. border-radius: 0.5rem;
  915. word-break: break-all;
  916. }
  917. .area-btn {
  918. flex: 1;
  919. display: flex;
  920. justify-content: center;
  921. .btn {
  922. width: 34.3rem;
  923. height: 4rem;
  924. background: #389AFF;
  925. border-radius: 100px;
  926. font-size: 1.8rem;
  927. color: #FFFFFF;
  928. }
  929. }
  930. }
  931. }
  932. .content {
  933. width: 100%;
  934. height: 100%;
  935. background-size: 100%;
  936. background-repeat: no-repeat;
  937. position: relative;
  938. font-family: "SF Pro Display";
  939. font-style: normal;
  940. font-weight: 600;
  941. .not-open {
  942. display: flex;
  943. align-items: center;
  944. justify-content: center;
  945. width: 100%;
  946. height: 100%;
  947. img {
  948. width: 20rem;
  949. height: 20rem;
  950. }
  951. }
  952. .logo {
  953. position: absolute;
  954. left: 4rem;
  955. top: 1.5rem;
  956. img {
  957. width: 10.7rem;
  958. height: 3.4rem;
  959. }
  960. }
  961. .key_packet {
  962. animation: key_packet 3s;
  963. animation-delay: 0s;
  964. animation-fill-mode: forwards;
  965. }
  966. .redBag {
  967. display: flex;
  968. justify-content: flex-start;
  969. flex-direction: column;
  970. position: absolute;
  971. top: 14rem;
  972. left: 30.6rem;
  973. width: 37.5rem;
  974. height: 50rem;
  975. border-radius: 2rem;
  976. overflow-y: hidden;
  977. box-shadow: 0 0 5px #888888;
  978. background: #fff;
  979. .money-area {
  980. width: 100%;
  981. position: absolute;
  982. top: 65px;
  983. display: flex;
  984. flex-wrap: wrap;
  985. align-items: center;
  986. justify-content: center;
  987. .txt {
  988. font-weight: 800;
  989. font-size: 16px;
  990. text-align: center;
  991. letter-spacing: 0.3px;
  992. color: #FFFFFF;
  993. }
  994. .coin {
  995. text-align: center;
  996. margin-top: 6px;
  997. margin-bottom: 7px;
  998. display: flex;
  999. justify-content: center;
  1000. align-items: center;
  1001. width: 90%;
  1002. img {
  1003. width: 46px;
  1004. height: 46px;
  1005. border-radius: 50%;
  1006. border: 3px solid #FFFFFF;
  1007. }
  1008. span {
  1009. margin-left: 15px;
  1010. font-weight: 800;
  1011. font-size: 60px;
  1012. line-height: 76px;
  1013. color: #FFFFFF;
  1014. }
  1015. }
  1016. .people {
  1017. font-weight: 800;
  1018. font-size: 13px;
  1019. line-height: 16px;
  1020. letter-spacing: 0.05em;
  1021. text-align: center;
  1022. color: #FFFFFF;
  1023. }
  1024. }
  1025. .title {
  1026. position: absolute;
  1027. top: 15px;
  1028. left: 15px;
  1029. z-index: 3;
  1030. display: flex;
  1031. align-items: center;
  1032. img {
  1033. width: 24px;
  1034. height: 24px;
  1035. border: 2px solid #FFF;
  1036. border-radius: 50%;
  1037. }
  1038. span {
  1039. margin-left: 10px;
  1040. font-weight: 600;
  1041. font-size: 16px;
  1042. letter-spacing: 0.3px;
  1043. color: #fff;
  1044. }
  1045. }
  1046. img {
  1047. width: 100%;
  1048. }
  1049. .up {
  1050. position: absolute;
  1051. top: 0;
  1052. z-index: 1;
  1053. }
  1054. .down {
  1055. position: absolute;
  1056. top: 253px;
  1057. }
  1058. .open {
  1059. width: 335px;
  1060. height: 50px;
  1061. cursor: pointer;
  1062. position: absolute;
  1063. bottom: 28px;
  1064. left: 50%;
  1065. margin-left: -167.5px;
  1066. z-index: 4;
  1067. }
  1068. .open-gif {
  1069. width: 200px;
  1070. height: 200px;
  1071. text-align: center;
  1072. position: absolute;
  1073. bottom: 70px;
  1074. left: 50%;
  1075. margin-left: -100px;
  1076. z-index: 3;
  1077. }
  1078. }
  1079. .redPacket {
  1080. display: flex;
  1081. justify-content: flex-start;
  1082. flex-direction: column;
  1083. position: absolute;
  1084. top: 9rem;
  1085. left: 50%;
  1086. width: 37.5rem;
  1087. margin-left: -18rem;
  1088. height: 65rem;
  1089. border-radius: 2rem;
  1090. // background: red;
  1091. overflow-y: hidden;
  1092. box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  1093. background: #fff;
  1094. .top {
  1095. top: 0;
  1096. position: absolute;
  1097. width: 100%;
  1098. z-index: 12;
  1099. }
  1100. .down {
  1101. bottom: 0;
  1102. position: absolute;
  1103. height: 32.3rem;
  1104. z-index: 11;
  1105. }
  1106. .head {
  1107. position: relative;
  1108. .head-title {
  1109. position: absolute;
  1110. top: 0;
  1111. width: 100%;
  1112. display: flex;
  1113. align-items: center;
  1114. justify-content: center;
  1115. height: 3.6rem;
  1116. background: rgba(255, 255, 255, .1);
  1117. img {
  1118. width: 1.8rem;
  1119. height: 1.8rem;
  1120. border-radius: 50%;
  1121. border: 1px solid #fff;
  1122. }
  1123. span {
  1124. margin-left: .8rem;
  1125. font-size: 1.2rem;
  1126. color: #fff;
  1127. }
  1128. }
  1129. .head-txt {
  1130. margin-top: 4.7rem;
  1131. font-size: 2rem;
  1132. text-align: center;
  1133. color: #fff;
  1134. }
  1135. .head-area {
  1136. height: 19rem;
  1137. text-align: center;
  1138. letter-spacing: 0.3px;
  1139. font-size: 2rem;
  1140. text-align: center;
  1141. color: #fff;
  1142. background: #389AFF;
  1143. border-radius: 0 586px 586px/0 0 164px 164px;
  1144. .txt {
  1145. padding-top: 8.5rem;
  1146. }
  1147. }
  1148. .head-money {
  1149. .txt {
  1150. padding-top: 6.8rem;
  1151. font-weight: 800;
  1152. font-size: 1.5rem;
  1153. text-align: center;
  1154. letter-spacing: 0.3px;
  1155. }
  1156. .head-money-area {
  1157. display: flex;
  1158. width: 100%;
  1159. justify-content: center;
  1160. align-items: center;
  1161. img {
  1162. width: 4rem;
  1163. height: 4rem;
  1164. border: 2px solid #FFFFFF;
  1165. border-radius: 100px;
  1166. }
  1167. span {
  1168. margin-left: 1.3rem;
  1169. font-size: 4.6rem;
  1170. word-break: break-all;
  1171. }
  1172. }
  1173. }
  1174. }
  1175. .luck-list-title {
  1176. /* margin-top: 47px;*/
  1177. margin: 0 16px;
  1178. padding: 14px 0 11px 0;
  1179. background: #fff;
  1180. display: flex;
  1181. font-weight: 500;
  1182. justify-content: space-between;
  1183. color: #B0B0B0;
  1184. border-bottom: 1px solid #F2F2F2;
  1185. }
  1186. .luck-list {
  1187. background: #fff;
  1188. overflow-y: auto;
  1189. .luck-item {
  1190. display: flex;
  1191. padding: 12px 0;
  1192. margin: 0 16px;
  1193. border-bottom: 1px solid #F2F2F2;
  1194. justify-content: space-between;
  1195. position: relative;
  1196. img:first-child {
  1197. border-radius: 50%;
  1198. }
  1199. .luck-king {
  1200. position: absolute;
  1201. top: 36px;
  1202. right: 0px;
  1203. display: flex;
  1204. align-items: center;
  1205. img {
  1206. width: 22px;
  1207. height: 19px;
  1208. margin: 0;
  1209. }
  1210. span {
  1211. font-weight: 500;
  1212. font-size: 12px;
  1213. line-height: 14px;
  1214. letter-spacing: 0.3px;
  1215. color: #f5b945;
  1216. }
  1217. }
  1218. img {
  1219. width: 42px;
  1220. height: 42px;
  1221. margin-right: 12px;
  1222. }
  1223. .luck-content {
  1224. flex: auto;
  1225. .luck-title {
  1226. font-weight: 500;
  1227. font-size: 16px;
  1228. letter-spacing: 0.3px;
  1229. color: #444444;
  1230. margin-bottom: 5px;
  1231. }
  1232. .luck-time {
  1233. font-weight: 400;
  1234. font-size: 12px;
  1235. line-height: 14px;
  1236. color: #B0B0B0;
  1237. }
  1238. }
  1239. .luck-money {
  1240. display: flex;
  1241. height: 17px;
  1242. align-items: center;
  1243. img {
  1244. width: 14px;
  1245. height: 14px;
  1246. margin-right: 6px;
  1247. }
  1248. .luck-money-txt {
  1249. font-weight: 500;
  1250. font-size: 14px;
  1251. /* identical to box height */
  1252. text-align: right;
  1253. letter-spacing: 0.3px;
  1254. color: #444444;
  1255. }
  1256. }
  1257. }
  1258. .luck-item:last-child {
  1259. border: 0;
  1260. }
  1261. }
  1262. .area {
  1263. position: absolute;
  1264. z-index: 112;
  1265. width: 100%;
  1266. .title {
  1267. z-index: 11;
  1268. margin-top: 8.5rem;
  1269. text-align: center;
  1270. img {
  1271. width: 3.6rem;
  1272. height: 3.6rem;
  1273. border: 2px solid #fff4db;
  1274. border-radius: 50%;
  1275. }
  1276. span {
  1277. letter-spacing: 0.3px;
  1278. font-size: 1.6rem;
  1279. color: #fff2d3;
  1280. }
  1281. }
  1282. .txt {
  1283. font-size: 4rem;
  1284. text-align: center;
  1285. letter-spacing: 0.03rem;
  1286. color: #fff2d3;
  1287. }
  1288. }
  1289. .key_area {
  1290. animation: key_area 1s;
  1291. animation-delay: 1s;
  1292. animation-fill-mode: forwards;
  1293. }
  1294. }
  1295. .redPacket2 {
  1296. left: 43.6rem;
  1297. margin-left: -18rem;
  1298. }
  1299. .key_install {
  1300. opacity: 0;
  1301. animation: key_install 2s;
  1302. animation-delay: 0s;
  1303. animation-fill-mode: forwards;
  1304. }
  1305. .install {
  1306. position: absolute;
  1307. top: 20rem;
  1308. left: 73.5rem;
  1309. .title {
  1310. font-size: 4.8rem;
  1311. color: #000000;
  1312. letter-spacing: 0.3px;
  1313. }
  1314. .validity {
  1315. margin-top: 1rem;
  1316. color: #FF0000;
  1317. width: 40rem;
  1318. height: 3.3rem;
  1319. line-height: 3.3rem;
  1320. font-weight: normal;
  1321. span {
  1322. font-size: 1.4rem;
  1323. }
  1324. }
  1325. .flow {
  1326. position: absolute;
  1327. margin-top: 4rem;
  1328. .line {
  1329. position: absolute;
  1330. height: 16rem;
  1331. border: 1px solid #e0e0e0;
  1332. top: 3rem;
  1333. left: 1.2rem;
  1334. }
  1335. .area_num {
  1336. display: flex;
  1337. align-items: center;
  1338. .num {
  1339. width: 2.4rem;
  1340. height: 2.4rem;
  1341. background-color: rgba(56, 154, 255, 1);
  1342. border-radius: 50%;
  1343. color: #fff;
  1344. text-align: center;
  1345. line-height: 2.4rem;
  1346. font-size: 1.4rem;
  1347. }
  1348. span {
  1349. margin-left: 1.5rem;
  1350. color: #000000;
  1351. font-size: 1.8rem;
  1352. }
  1353. }
  1354. .tip {
  1355. margin-left: 4rem;
  1356. margin-top: 0.7rem;
  1357. font-size: 1.4rem;
  1358. color: #a4a4a4;
  1359. }
  1360. .install_btn {
  1361. cursor: pointer;
  1362. margin-left: 4rem;
  1363. margin-top: 2rem;
  1364. margin-bottom: 6.7rem;
  1365. width: 23rem;
  1366. height: 5.8rem;
  1367. background: #389aff;
  1368. border-radius: 10rem;
  1369. color: #fff;
  1370. line-height: 5.8rem;
  1371. text-align: center;
  1372. font-size: 2rem;
  1373. }
  1374. }
  1375. .tip {
  1376. margin-top: 0.7rem;
  1377. font-size: 1.4rem;
  1378. color: #a4a4a4;
  1379. }
  1380. .install_btn {
  1381. cursor: pointer;
  1382. margin-top: 2rem;
  1383. margin-bottom: 6.7rem;
  1384. width: 23rem;
  1385. height: 5.8rem;
  1386. background: #389aff;
  1387. border-radius: 10rem;
  1388. color: #fff;
  1389. line-height: 5.8rem;
  1390. text-align: center;
  1391. font-size: 2rem;
  1392. }
  1393. }
  1394. .install-error {
  1395. left: 78.5rem;
  1396. .install_chrome {
  1397. cursor: pointer;
  1398. width: 24.3rem;
  1399. height: 5.8rem;
  1400. font-size: 2rem;
  1401. font-weight: 500;
  1402. letter-spacing: 0.3px;
  1403. display: flex;
  1404. align-items: center;
  1405. background: #FFFFFF;
  1406. border: 1px solid #e8e8e8;
  1407. border-radius: 10rem;
  1408. margin-top: 3.3rem;
  1409. img {
  1410. width: 3.2rem;
  1411. height: 3.2rem;
  1412. margin-left: 3.3rem;
  1413. }
  1414. span {
  1415. margin-left: 1.2rem;
  1416. }
  1417. }
  1418. }
  1419. }
  1420. @keyframes key_area {
  1421. 0% {
  1422. opacity: 1;
  1423. }
  1424. 100% {
  1425. opacity: 0;
  1426. }
  1427. }
  1428. @keyframes key_install {
  1429. 0% {
  1430. opacity: 0;
  1431. }
  1432. 100% {
  1433. opacity: 1;
  1434. }
  1435. }
  1436. @keyframes key_packet {
  1437. 0% {}
  1438. 100% {
  1439. left: 30.6rem;
  1440. margin-left: -18rem;
  1441. }
  1442. }
  1443. </style>