index.vue 37 KB

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