index.vue 37 KB

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