index.vue 35 KB

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