index.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604
  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. },
  321. extParams: {
  322. status: '',
  323. }
  324. }
  325. })
  326. },
  327. clickOpenChrome() {
  328. window.open('https://www.google.com/chrome')
  329. Report.reportLog({
  330. baseInfo: {
  331. appVersionCode: this.appVersionCode,
  332. mid: this.mid,
  333. pageSource: Report.pageSource.newUserLandingPage,
  334. appType,
  335. machineCode: this.mid
  336. },
  337. params: {
  338. eventData: {
  339. businessType: Report.businessType.buttonClick,
  340. objectType: Report.objectType.installButton,
  341. postId: this.detail.postId,
  342. srcContentId: this.detail.srcContentId,
  343. senderId: this.detail.srcUserId,
  344. },
  345. extParams: {
  346. status: '',
  347. }
  348. }
  349. })
  350. },
  351. isMobile() {
  352. 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);
  353. return flag;
  354. },
  355. installExtension() {
  356. let { extensionsInstallChannel, extensionsInstallUrl } = this.config;
  357. let url = extensionsInstallUrl;
  358. Report.reportLog({
  359. baseInfo: {
  360. appVersionCode: this.appVersionCode,
  361. mid: this.mid,
  362. pageSource: Report.pageSource.newUserLandingPage,
  363. appType,
  364. machineCode: this.mid
  365. },
  366. params: {
  367. eventData: {
  368. businessType: Report.businessType.buttonClick,
  369. objectType: Report.objectType.installButton,
  370. postId: this.detail.postId,
  371. srcContentId: this.detail.srcContentId,
  372. senderId: this.detail.srcUserId,
  373. },
  374. extParams: {
  375. status: '',
  376. }
  377. }
  378. })
  379. switch (extensionsInstallChannel) {
  380. case "officeDownload":
  381. location.href = url;
  382. this.$router.push({
  383. path: '/install'
  384. })
  385. break;
  386. case "chromeAppStore":
  387. window.open(extensionsInstallUrl)
  388. break;
  389. }
  390. },
  391. formatTime(time, _type = 'MM-DD HH:mm:ss') {
  392. return moment(time).format(_type)
  393. },
  394. guid() {
  395. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  396. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  397. return v.toString(16);
  398. });
  399. },
  400. handleScroll(e) {
  401. e = e.target
  402. if (this.luck_list_end) {
  403. return
  404. }
  405. if ((e.clientHeight + e.scrollTop) / e.scrollHeight > .8) {
  406. this.luck_list_end = false
  407. this.page_index++
  408. this.getReceivedList()
  409. }
  410. },
  411. getFontSize(amount) {
  412. let _num = parseInt(360 / amount.length);
  413. this.amount_font_size = _num < 46 ? _num : 46;
  414. },
  415. setCookieMid() {
  416. let _cookie_mid_arr = Cookies.get('mid') || []
  417. if (_cookie_mid_arr.length > 0) {
  418. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  419. } else {
  420. this.mid = this.guid()
  421. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  422. }
  423. },
  424. async getRedPacket() {
  425. this.currencyIconPath = this.detail.postBizData.currencyIconPath
  426. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/receiveLuckdrop`, {
  427. baseInfo: {
  428. appVersionCode: this.appVersionCode,
  429. mid: this.mid
  430. },
  431. params: {
  432. postId: this.detail.postId || ''
  433. }
  434. })
  435. this.show_home = true
  436. switch (data.code.toString()) {
  437. case '0':
  438. this.getDetail()
  439. if (data.data.receiveAmount == '0') {
  440. this.reportStatus = 'empty'
  441. this.status = 'nothing'
  442. } else {
  443. if (data.data.newReceived) {
  444. this.status = 'not-open'
  445. setTimeout(() => {
  446. this.status = 'open'
  447. }, 3000)
  448. this.receiveAmount = data.data.receiveAmount
  449. } else {
  450. this.status = 'opened'
  451. }
  452. }
  453. this.getValidity(data.data.endTimestamp)
  454. this.receiveAmount = data.data.receiveAmount
  455. this.getFontSize(this.receiveAmount)
  456. break;
  457. case '2003':
  458. // this.status = 'expire'
  459. this.reportStatus = 'empty'
  460. this.getDetail()
  461. this.status = 'nothing'
  462. break
  463. // 红包被领完了
  464. case '2008':
  465. this.reportStatus = 'empty'
  466. this.getDetail()
  467. this.status = 'nothing'
  468. break
  469. case '2029':
  470. // 推文未发布
  471. this.status = 'error'
  472. break
  473. default:
  474. console.log('getRedPacket', data)
  475. // this.show_home = false
  476. this.reportStatus = 'empty'
  477. this.getDetail()
  478. this.status = 'nothing'
  479. break;
  480. }
  481. // 领取列表分页
  482. this.getReceivedList()
  483. },
  484. async getReceivedList() {
  485. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/getReceivedList`, {
  486. baseInfo: {
  487. appVersionCode: this.appVersionCode,
  488. mid: this.mid
  489. },
  490. params: {
  491. pageNum: this.page_index,
  492. pageSize: this.page_size,
  493. postId: this.detail.postId || ''
  494. }
  495. })
  496. if (data.code == 0) {
  497. if (data.data.length > 0) {
  498. this.luck_list = this.luck_list.concat(data.data)
  499. this.luck_list_end = false
  500. } else {
  501. this.luck_list_end = true
  502. }
  503. } else {
  504. console.log('getReceivedList', data)
  505. }
  506. },
  507. getValidity(end_time) {
  508. let _d1, _d2, _d3, _h, _m, _s
  509. let timer = setInterval(() => {
  510. let _time = new Date().getTime()
  511. _d3 = end_time - _time
  512. if (_d3 > 0) {
  513. _d1 = moment(end_time)
  514. _d2 = moment(_time)
  515. _h = moment.duration(_d1.diff(_d2)).hours()
  516. _m = moment.duration(_d1.diff(_d2)).minutes()
  517. _s = moment.duration(_d1.diff(_d2)).seconds()
  518. if (_h < 10) {
  519. _h = '0' + _h
  520. }
  521. if (_m < 10) {
  522. _m = '0' + _m
  523. }
  524. if (_s < 10) {
  525. _s = '0' + _s
  526. }
  527. this.validity = `${_h}:${_m}:${_s}`
  528. } else {
  529. clearInterval(timer)
  530. }
  531. }, 1000)
  532. },
  533. setPickupInfo() {
  534. let pickupInfo = {
  535. srcContentId: this.detail.srcContentId,
  536. postNickName: this.detail.postBizData.postUserInfo.nickName,
  537. createTime: Date.now(),
  538. };
  539. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  540. },
  541. async getDetail() {
  542. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  543. baseInfo: {
  544. appVersionCode: this.appVersionCode,
  545. mid: this.mid
  546. },
  547. params: {
  548. postId: this.detail.postId
  549. }
  550. })
  551. if (data.code == 0) {
  552. this.detail.postBizData = JSON.parse(data.data.postBizData)
  553. }
  554. },
  555. async getConfig() {
  556. let { data } = await axios.post(`${baseURL}/denet/base/config/getFrontConfig`, {
  557. baseInfo: {
  558. appVersionCode: this.appVersionCode,
  559. mid: this.mid
  560. },
  561. params: {
  562. }
  563. })
  564. if (data.code == 0) {
  565. this.config = data.data;
  566. }
  567. },
  568. },
  569. async asyncData(params) {
  570. let { route } = params;
  571. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  572. baseInfo: {
  573. appVersionCode: appVersionCode,
  574. mid: function () {
  575. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  576. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  577. return v.toString(16);
  578. });
  579. }()
  580. },
  581. params: {
  582. postId: route.params.id || ''
  583. }
  584. })
  585. if (data.code == 0) {
  586. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  587. data.data.postBizData = JSON.parse(data.data.postBizData)
  588. }
  589. if(data.data.postBizData === null) {
  590. data.data.postBizData = {
  591. postUserInfo: {
  592. }
  593. }
  594. }
  595. return {
  596. detail: data.data,
  597. }
  598. }
  599. },
  600. mounted() {
  601. this.getConfig()
  602. if (!this.detail.postId) {
  603. return
  604. }
  605. console.log(this.detail)
  606. //改变font-size
  607. // (function (doc, win) {
  608. // var docEI = doc.documentElement,
  609. // resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  610. // recalc = function () {
  611. // var clientWidth = docEI.clientWidth;
  612. // if (!clientWidth) return;
  613. // //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  614. // docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  615. // }
  616. // if (!doc.addEventListener) return;
  617. // win.addEventListener(resizeEvt, recalc, false);
  618. // doc.addEventListener('DOMContentLoaded', recalc, false);
  619. // })(document, window);
  620. document.documentElement.style.fontSize = '62.5%'
  621. if (this.isMobile()) {
  622. this.setCookieMid();
  623. setTimeout(() => {
  624. Report.reportLog({
  625. baseInfo: {
  626. appVersionCode: this.appVersionCode,
  627. mid: this.mid,
  628. pageSource: Report.pageSource.mobileLandingPage,
  629. appType,
  630. machineCode: this.mid
  631. },
  632. params: {
  633. eventData: {
  634. businessType: Report.businessType.pageView,
  635. postId: this.detail.postId,
  636. srcContentId: this.detail.srcContentId,
  637. senderId: this.detail.srcUserId,
  638. },
  639. extParams: {
  640. status: '',
  641. }
  642. }
  643. })
  644. }, 500)
  645. this.show_moblie = true
  646. this.cp_link = window.location.href
  647. // 复制链接
  648. var clipboard = new ClipboardJS('.btn');
  649. clipboard.on('success', function (e) {
  650. Toast('copy success');
  651. console.info('Action:', e.action);
  652. console.info('Text:', e.text);
  653. console.info('Trigger:', e.trigger);
  654. e.clearSelection();
  655. });
  656. clipboard.on('error', function (e) {
  657. this.layer_show = true
  658. console.error('Action:', e.action);
  659. console.error('Trigger:', e.trigger);
  660. });
  661. // 领取列表分页
  662. this.getReceivedList()
  663. } else if (isBrowser() == 'chrome') {
  664. // 领取任务红包
  665. this.setCookieMid()
  666. // 是否被领完
  667. if(this.detail.postBizData.receiveCount < this.detail.postBizData.totalCount){
  668. this.getRedPacket()
  669. }else{
  670. this.show_home = true
  671. this.status = 'nothing'
  672. this.reportStatus = 'empty'
  673. }
  674. this.setPickupInfo()
  675. setTimeout(() => {
  676. Report.reportLog({
  677. baseInfo: {
  678. appVersionCode: this.appVersionCode,
  679. mid: this.mid,
  680. pageSource: Report.pageSource.newUserLandingPage,
  681. appType,
  682. machineCode: this.mid
  683. },
  684. params: {
  685. eventData: {
  686. businessType: Report.businessType.pageView,
  687. postId: this.detail.postId,
  688. srcContentId: this.detail.srcContentId,
  689. senderId: this.detail.srcUserId,
  690. },
  691. extParams: {
  692. status: this.reportStatus,
  693. }
  694. }
  695. });
  696. }, 1000)
  697. } else {
  698. this.show_home = true
  699. this.status = 'no-chrome'
  700. this.reportStatus = 'not-chrome'
  701. Report.reportLog({
  702. baseInfo: {
  703. appVersionCode: this.appVersionCode,
  704. mid: this.mid,
  705. pageSource: Report.pageSource.newUserLandingPage,
  706. appType,
  707. machineCode: this.mid
  708. },
  709. params: {
  710. eventData: {
  711. businessType: Report.businessType.pageView,
  712. postId: this.detail.postId,
  713. srcContentId: this.detail.srcContentId,
  714. senderId: this.detail.srcUserId,
  715. },
  716. extParams: {
  717. status: this.reportStatus,
  718. }
  719. }
  720. })
  721. }
  722. }
  723. }
  724. </script>
  725. <style lang="scss" >
  726. html,
  727. body,
  728. #__nuxt,
  729. #__layout {
  730. width: 100%;
  731. height: 100%;
  732. padding: 0;
  733. margin: 0;
  734. }
  735. .moblie {
  736. display: flex;
  737. flex-wrap: wrap;
  738. height: 100%;
  739. align-content: flex-start;
  740. flex-direction: column;
  741. .layer {
  742. position: fixed;
  743. width: 100%;
  744. height: 100%;
  745. top: 0;
  746. left: 0;
  747. background: rgba(0, 0, 0, .5);
  748. .layer-box {
  749. width: 30rem;
  750. height: 17rem;
  751. background: #FFFFFF;
  752. border-radius: 11px;
  753. opacity: 1;
  754. position: absolute;
  755. top: 25rem;
  756. left: 50%;
  757. margin-left: -15rem;
  758. .layer-txt {
  759. margin: 3rem 0;
  760. width: 100%;
  761. padding: 0 2.7rem;
  762. font-weight: 600;
  763. font-size: 1.8rem;
  764. text-align: center;
  765. }
  766. .layer-btn {
  767. width: 19rem;
  768. height: 4rem;
  769. background: #389AFF;
  770. border-radius: 100px;
  771. margin: 0 auto;
  772. text-align: center;
  773. line-height: 4rem;
  774. color: #fff;
  775. font-weight: 600;
  776. font-size: 1.8rem;
  777. }
  778. }
  779. }
  780. .head-area {
  781. width: 100%;
  782. height: 11rem;
  783. text-align: center;
  784. letter-spacing: 0.3px;
  785. font-size: 2rem;
  786. text-align: center;
  787. color: #fff;
  788. background: #389AFF;
  789. border-radius: 0 586px 586px/0 0 104px 104px;
  790. display: flex;
  791. align-items: center;
  792. justify-content: center;
  793. .gift {
  794. margin-right: 1.4rem;
  795. img {
  796. width: 5.2rem;
  797. }
  798. }
  799. .txt {
  800. font-size: 1.8rem;
  801. text-align: left;
  802. }
  803. }
  804. .luck-list-title {
  805. /* margin-top: 47px;*/
  806. margin: 0 16px;
  807. padding: 14px 0 11px 0;
  808. background: #fff;
  809. display: flex;
  810. justify-content: space-between;
  811. color: #B0B0B0;
  812. border-bottom: 1px solid #D1D1D1;
  813. }
  814. .luck-list {
  815. flex: 1;
  816. width: 100%;
  817. overflow-y: auto;
  818. .luck-item {
  819. display: flex;
  820. padding: 12px 0;
  821. margin: 0 16px;
  822. border-bottom: 1px solid #F2F2F2;
  823. justify-content: space-between;
  824. position: relative;
  825. img:first-child {
  826. border-radius: 50%;
  827. }
  828. .luck-king {
  829. position: absolute;
  830. top: 36px;
  831. right: 0px;
  832. display: flex;
  833. align-items: center;
  834. img {
  835. width: 22px;
  836. height: 19px;
  837. margin: 0;
  838. }
  839. span {
  840. font-weight: 500;
  841. font-size: 12px;
  842. line-height: 14px;
  843. letter-spacing: 0.3px;
  844. color: #f5b945;
  845. }
  846. }
  847. img {
  848. width: 42px;
  849. height: 42px;
  850. margin-right: 12px;
  851. }
  852. .luck-content {
  853. flex: auto;
  854. .luck-title {
  855. font-weight: 500;
  856. font-size: 16px;
  857. letter-spacing: 0.3px;
  858. color: #444444;
  859. }
  860. .luck-time {
  861. font-weight: 400;
  862. font-size: 12px;
  863. line-height: 14px;
  864. color: #9b9b9b;
  865. }
  866. }
  867. .luck-money {
  868. display: flex;
  869. height: 17px;
  870. align-items: center;
  871. img {
  872. width: 14px;
  873. height: 14px;
  874. margin-right: 6px;
  875. }
  876. .luck-money-txt {
  877. font-weight: 500;
  878. font-size: 14px;
  879. /* identical to box height */
  880. text-align: right;
  881. letter-spacing: 0.3px;
  882. color: #444444;
  883. }
  884. }
  885. }
  886. .luck-item:last-child {
  887. border: 0;
  888. }
  889. }
  890. .area-cp-link {
  891. background: #fff;
  892. width: 100%;
  893. flex-wrap: wrap;
  894. height: 20rem;
  895. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  896. border-top-left-radius: 1rem;
  897. border-top-right-radius: 1rem;
  898. .area-list {
  899. width: 34.3rem;
  900. margin: 1.5rem auto;
  901. .item {
  902. clear: both;
  903. overflow: hidden;
  904. margin: 0.7rem 0;
  905. font-size: 1.6rem;
  906. font-weight: 500;
  907. .icon {
  908. float: left;
  909. margin-right: 0.8rem;
  910. }
  911. .font {
  912. float: left;
  913. margin-right: 0.8rem;
  914. }
  915. .pc {
  916. float: left;
  917. }
  918. }
  919. }
  920. .area-content {
  921. background: #F4F4F4;
  922. padding: 0.7rem 1rem;
  923. margin: 0 auto 1rem;
  924. width: 34.3rem;
  925. font-size: 1.3rem;
  926. border-radius: 0.5rem;
  927. word-break: break-all;
  928. }
  929. .area-btn {
  930. flex: 1;
  931. display: flex;
  932. justify-content: center;
  933. .btn {
  934. width: 34.3rem;
  935. height: 4rem;
  936. background: #389AFF;
  937. border-radius: 100px;
  938. font-size: 1.8rem;
  939. color: #FFFFFF;
  940. }
  941. }
  942. }
  943. }
  944. .content {
  945. width: 100%;
  946. height: 100%;
  947. background-size: 100%;
  948. background-repeat: no-repeat;
  949. position: relative;
  950. font-family: "SF Pro Display";
  951. font-style: normal;
  952. font-weight: 600;
  953. .not-open {
  954. display: flex;
  955. align-items: center;
  956. justify-content: center;
  957. width: 100%;
  958. height: 100%;
  959. img {
  960. width: 20rem;
  961. height: 20rem;
  962. }
  963. }
  964. .logo {
  965. position: absolute;
  966. left: 4rem;
  967. top: 1.5rem;
  968. img {
  969. width: 10.7rem;
  970. height: 3.4rem;
  971. }
  972. }
  973. .key_packet {
  974. animation: key_packet 3s;
  975. animation-delay: 0s;
  976. animation-fill-mode: forwards;
  977. }
  978. .redBag {
  979. display: flex;
  980. justify-content: flex-start;
  981. flex-direction: column;
  982. position: absolute;
  983. top: 14rem;
  984. left: 30.6rem;
  985. width: 37.5rem;
  986. height: 50rem;
  987. border-radius: 2rem;
  988. overflow-y: hidden;
  989. box-shadow: 0 0 5px #888888;
  990. background: #fff;
  991. .money-area {
  992. width: 100%;
  993. position: absolute;
  994. top: 65px;
  995. display: flex;
  996. flex-wrap: wrap;
  997. align-items: center;
  998. justify-content: center;
  999. .txt {
  1000. font-weight: 800;
  1001. font-size: 16px;
  1002. text-align: center;
  1003. letter-spacing: 0.3px;
  1004. color: #FFFFFF;
  1005. }
  1006. .coin {
  1007. text-align: center;
  1008. margin-top: 6px;
  1009. margin-bottom: 7px;
  1010. display: flex;
  1011. justify-content: center;
  1012. align-items: center;
  1013. width: 90%;
  1014. img {
  1015. width: 46px;
  1016. height: 46px;
  1017. border-radius: 50%;
  1018. border: 3px solid #FFFFFF;
  1019. }
  1020. span {
  1021. margin-left: 15px;
  1022. font-weight: 800;
  1023. font-size: 60px;
  1024. line-height: 76px;
  1025. color: #FFFFFF;
  1026. }
  1027. }
  1028. .people {
  1029. font-weight: 800;
  1030. font-size: 13px;
  1031. line-height: 16px;
  1032. letter-spacing: 0.05em;
  1033. text-align: center;
  1034. color: #FFFFFF;
  1035. }
  1036. }
  1037. .title {
  1038. position: absolute;
  1039. top: 15px;
  1040. left: 15px;
  1041. z-index: 3;
  1042. display: flex;
  1043. align-items: center;
  1044. img {
  1045. width: 24px;
  1046. height: 24px;
  1047. border: 2px solid #FFF;
  1048. border-radius: 50%;
  1049. }
  1050. span {
  1051. margin-left: 10px;
  1052. font-weight: 600;
  1053. font-size: 16px;
  1054. letter-spacing: 0.3px;
  1055. color: #fff;
  1056. }
  1057. }
  1058. img {
  1059. width: 100%;
  1060. }
  1061. .up {
  1062. position: absolute;
  1063. top: 0;
  1064. z-index: 1;
  1065. }
  1066. .down {
  1067. position: absolute;
  1068. top: 253px;
  1069. }
  1070. .open {
  1071. width: 335px;
  1072. height: 50px;
  1073. cursor: pointer;
  1074. position: absolute;
  1075. bottom: 28px;
  1076. left: 50%;
  1077. margin-left: -167.5px;
  1078. z-index: 4;
  1079. }
  1080. .open-gif {
  1081. width: 200px;
  1082. height: 200px;
  1083. text-align: center;
  1084. position: absolute;
  1085. bottom: 70px;
  1086. left: 50%;
  1087. margin-left: -100px;
  1088. z-index: 3;
  1089. }
  1090. }
  1091. .redPacket {
  1092. display: flex;
  1093. justify-content: flex-start;
  1094. flex-direction: column;
  1095. position: absolute;
  1096. top: 9rem;
  1097. left: 50%;
  1098. width: 37.5rem;
  1099. margin-left: -18rem;
  1100. height: 65rem;
  1101. border-radius: 2rem;
  1102. // background: red;
  1103. overflow-y: hidden;
  1104. box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  1105. background: #fff;
  1106. .top {
  1107. top: 0;
  1108. position: absolute;
  1109. width: 100%;
  1110. z-index: 12;
  1111. }
  1112. .down {
  1113. bottom: 0;
  1114. position: absolute;
  1115. height: 32.3rem;
  1116. z-index: 11;
  1117. }
  1118. .head {
  1119. position: relative;
  1120. .head-title {
  1121. position: absolute;
  1122. top: 0;
  1123. width: 100%;
  1124. display: flex;
  1125. align-items: center;
  1126. justify-content: center;
  1127. height: 3.6rem;
  1128. background: rgba(255, 255, 255, .1);
  1129. img {
  1130. width: 1.8rem;
  1131. height: 1.8rem;
  1132. border-radius: 50%;
  1133. border: 1px solid #fff;
  1134. }
  1135. span {
  1136. margin-left: .8rem;
  1137. font-size: 1.2rem;
  1138. color: #fff;
  1139. }
  1140. }
  1141. .head-txt {
  1142. margin-top: 4.7rem;
  1143. font-size: 2rem;
  1144. text-align: center;
  1145. color: #fff;
  1146. }
  1147. .head-area {
  1148. height: 19rem;
  1149. text-align: center;
  1150. letter-spacing: 0.3px;
  1151. font-size: 2rem;
  1152. text-align: center;
  1153. color: #fff;
  1154. background: #389AFF;
  1155. border-radius: 0 586px 586px/0 0 164px 164px;
  1156. .txt {
  1157. padding-top: 8.5rem;
  1158. }
  1159. }
  1160. .head-money {
  1161. .txt {
  1162. padding-top: 6.8rem;
  1163. font-weight: 800;
  1164. font-size: 1.5rem;
  1165. text-align: center;
  1166. letter-spacing: 0.3px;
  1167. }
  1168. .head-money-area {
  1169. display: flex;
  1170. width: 100%;
  1171. justify-content: center;
  1172. align-items: center;
  1173. img {
  1174. width: 4rem;
  1175. height: 4rem;
  1176. border: 2px solid #FFFFFF;
  1177. border-radius: 100px;
  1178. }
  1179. span {
  1180. margin-left: 1.3rem;
  1181. font-size: 4.6rem;
  1182. word-break: break-all;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .luck-list-title {
  1188. /* margin-top: 47px;*/
  1189. margin: 0 16px;
  1190. padding: 14px 0 11px 0;
  1191. background: #fff;
  1192. display: flex;
  1193. font-weight: 500;
  1194. justify-content: space-between;
  1195. color: #B0B0B0;
  1196. border-bottom: 1px solid #F2F2F2;
  1197. }
  1198. .luck-list {
  1199. background: #fff;
  1200. overflow-y: auto;
  1201. .luck-item {
  1202. display: flex;
  1203. padding: 12px 0;
  1204. margin: 0 16px;
  1205. border-bottom: 1px solid #F2F2F2;
  1206. justify-content: space-between;
  1207. position: relative;
  1208. img:first-child {
  1209. border-radius: 50%;
  1210. }
  1211. .luck-king {
  1212. position: absolute;
  1213. top: 36px;
  1214. right: 0px;
  1215. display: flex;
  1216. align-items: center;
  1217. img {
  1218. width: 22px;
  1219. height: 19px;
  1220. margin: 0;
  1221. }
  1222. span {
  1223. font-weight: 500;
  1224. font-size: 12px;
  1225. line-height: 14px;
  1226. letter-spacing: 0.3px;
  1227. color: #f5b945;
  1228. }
  1229. }
  1230. img {
  1231. width: 42px;
  1232. height: 42px;
  1233. margin-right: 12px;
  1234. }
  1235. .luck-content {
  1236. flex: auto;
  1237. .luck-title {
  1238. font-weight: 500;
  1239. font-size: 16px;
  1240. letter-spacing: 0.3px;
  1241. color: #444444;
  1242. margin-bottom: 5px;
  1243. }
  1244. .luck-time {
  1245. font-weight: 400;
  1246. font-size: 12px;
  1247. line-height: 14px;
  1248. color: #B0B0B0;
  1249. }
  1250. }
  1251. .luck-money {
  1252. display: flex;
  1253. height: 17px;
  1254. align-items: center;
  1255. img {
  1256. width: 14px;
  1257. height: 14px;
  1258. margin-right: 6px;
  1259. }
  1260. .luck-money-txt {
  1261. font-weight: 500;
  1262. font-size: 14px;
  1263. /* identical to box height */
  1264. text-align: right;
  1265. letter-spacing: 0.3px;
  1266. color: #444444;
  1267. }
  1268. }
  1269. }
  1270. .luck-item:last-child {
  1271. border: 0;
  1272. }
  1273. }
  1274. .area {
  1275. position: absolute;
  1276. z-index: 112;
  1277. width: 100%;
  1278. .title {
  1279. z-index: 11;
  1280. margin-top: 8.5rem;
  1281. text-align: center;
  1282. img {
  1283. width: 3.6rem;
  1284. height: 3.6rem;
  1285. border: 2px solid #fff4db;
  1286. border-radius: 50%;
  1287. }
  1288. span {
  1289. letter-spacing: 0.3px;
  1290. font-size: 1.6rem;
  1291. color: #fff2d3;
  1292. }
  1293. }
  1294. .txt {
  1295. font-size: 4rem;
  1296. text-align: center;
  1297. letter-spacing: 0.03rem;
  1298. color: #fff2d3;
  1299. }
  1300. }
  1301. .key_area {
  1302. animation: key_area 1s;
  1303. animation-delay: 1s;
  1304. animation-fill-mode: forwards;
  1305. }
  1306. }
  1307. .redPacket2 {
  1308. left: 43.6rem;
  1309. margin-left: -18rem;
  1310. }
  1311. .key_install {
  1312. opacity: 0;
  1313. animation: key_install 2s;
  1314. animation-delay: 0s;
  1315. animation-fill-mode: forwards;
  1316. }
  1317. .install {
  1318. position: absolute;
  1319. top: 20rem;
  1320. left: 73.5rem;
  1321. .title {
  1322. font-size: 4.8rem;
  1323. color: #000000;
  1324. letter-spacing: 0.3px;
  1325. }
  1326. .validity {
  1327. margin-top: 1rem;
  1328. color: #FF0000;
  1329. width: 40rem;
  1330. height: 3.3rem;
  1331. line-height: 3.3rem;
  1332. font-weight: normal;
  1333. span {
  1334. font-size: 1.4rem;
  1335. }
  1336. }
  1337. .flow {
  1338. position: absolute;
  1339. margin-top: 4rem;
  1340. .line {
  1341. position: absolute;
  1342. height: 16rem;
  1343. border: 1px solid #e0e0e0;
  1344. top: 3rem;
  1345. left: 1.2rem;
  1346. }
  1347. .area_num {
  1348. display: flex;
  1349. align-items: center;
  1350. .num {
  1351. width: 2.4rem;
  1352. height: 2.4rem;
  1353. background-color: rgba(56, 154, 255, 1);
  1354. border-radius: 50%;
  1355. color: #fff;
  1356. text-align: center;
  1357. line-height: 2.4rem;
  1358. font-size: 1.4rem;
  1359. }
  1360. span {
  1361. margin-left: 1.5rem;
  1362. color: #000000;
  1363. font-size: 1.8rem;
  1364. }
  1365. }
  1366. .tip {
  1367. margin-left: 4rem;
  1368. margin-top: 0.7rem;
  1369. font-size: 1.4rem;
  1370. color: #a4a4a4;
  1371. }
  1372. .install_btn {
  1373. cursor: pointer;
  1374. margin-left: 4rem;
  1375. margin-top: 2rem;
  1376. margin-bottom: 6.7rem;
  1377. width: 23rem;
  1378. height: 5.8rem;
  1379. background: #389aff;
  1380. border-radius: 10rem;
  1381. color: #fff;
  1382. line-height: 5.8rem;
  1383. text-align: center;
  1384. font-size: 2rem;
  1385. }
  1386. }
  1387. .tip {
  1388. margin-top: 0.7rem;
  1389. font-size: 1.4rem;
  1390. color: #a4a4a4;
  1391. }
  1392. .install_btn {
  1393. cursor: pointer;
  1394. margin-top: 2rem;
  1395. margin-bottom: 6.7rem;
  1396. width: 23rem;
  1397. height: 5.8rem;
  1398. background: #389aff;
  1399. border-radius: 10rem;
  1400. color: #fff;
  1401. line-height: 5.8rem;
  1402. text-align: center;
  1403. font-size: 2rem;
  1404. }
  1405. }
  1406. .install-error {
  1407. left: 78.5rem;
  1408. .install_chrome {
  1409. cursor: pointer;
  1410. width: 24.3rem;
  1411. height: 5.8rem;
  1412. font-size: 2rem;
  1413. font-weight: 500;
  1414. letter-spacing: 0.3px;
  1415. display: flex;
  1416. align-items: center;
  1417. background: #FFFFFF;
  1418. border: 1px solid #e8e8e8;
  1419. border-radius: 10rem;
  1420. margin-top: 3.3rem;
  1421. img {
  1422. width: 3.2rem;
  1423. height: 3.2rem;
  1424. margin-left: 3.3rem;
  1425. }
  1426. span {
  1427. margin-left: 1.2rem;
  1428. }
  1429. }
  1430. }
  1431. }
  1432. @keyframes key_area {
  1433. 0% {
  1434. opacity: 1;
  1435. }
  1436. 100% {
  1437. opacity: 0;
  1438. }
  1439. }
  1440. @keyframes key_install {
  1441. 0% {
  1442. opacity: 0;
  1443. }
  1444. 100% {
  1445. opacity: 1;
  1446. }
  1447. }
  1448. @keyframes key_packet {
  1449. 0% {}
  1450. 100% {
  1451. left: 30.6rem;
  1452. margin-left: -18rem;
  1453. }
  1454. }
  1455. </style>