index.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214
  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="/svg/icon-logo.svg" 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" v-show="status != 'not-open'"
  13. :class="{ redPacket2: status != 'open', key_packet: status == 'open' }">
  14. <!-- 内容 -->
  15. <div class="head">
  16. <div class="head-title">
  17. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  18. <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
  19. </div>
  20. <!-- <div class="head-txt" v-if="status == 'open' || status == 'opened'">Awesome! You Will Get</div> -->
  21. <!-- <div class="head-area" v-else-if="status == 'opened'">opened!</div> -->
  22. <!-- 红包被领完了 -->
  23. <div class="head-area" v-if="status == 'nothing'">
  24. <div class="txt">Better luck next time!</div>
  25. </div>
  26. <!-- 过期 -->
  27. <div class="head-area expire" v-if="status == 'expire'">
  28. <div class="txt">This Giveaways</div>
  29. <div class="titme">expired on {{ formatTime(detail.postBizData.endTimestamp, 'MM-DD') }}</div>
  30. </div>
  31. <!-- 非chrome浏览器 -->
  32. <div class="head-area expire" v-if="status == 'no-chrome'">
  33. <div class="txt">Get Giveaways</div>
  34. <div class="titme">with chrome</div>
  35. </div>
  36. <!-- 领取成功 -->
  37. <div class="head-area head-money" v-if="status == 'open' || status == 'opened'">
  38. <div class="txt">AWESOME! YOU Will GET</div>
  39. <div class="head-money-area">
  40. <img :src="currencyIconPath" alt />
  41. <span class="money-txt">{{ receiveAmount }}</span>
  42. </div>
  43. </div>
  44. </div>
  45. <!-- 领取列表 -->
  46. <div class="luck-list-title">
  47. <div>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }} Got</div>
  48. <div> {{ detail.postBizData.receiveAmountValue }} / {{
  49. detail.postBizData.amountValue || ''
  50. }} {{ detail.postBizData.amountCurrencyCode || '' }}</div>
  51. </div>
  52. <div class="luck-list" @scroll="handleScroll($event)">
  53. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  54. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  55. <img v-else src="/svg/icon-twitter.svg" alt />
  56. <div class="luck-content">
  57. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  58. <div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
  59. </div>
  60. <div class="luck-money">
  61. <img :src="item.currencyIconPath" alt />
  62. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  63. </div>
  64. <div class="luck-king" v-if="item.maxAmount">
  65. <img src="/svg/icon-king-hat.svg" alt />
  66. <span>Luckiest Draw</span>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 安装 -->
  72. <div class="install" v-if="status == 'open' || status == 'opened'"
  73. :class="{ key_install: status == 'open' }">
  74. <div class="title">Withdraw to Wallet</div>
  75. <div class="validity">
  76. <template v-if="validity_state">
  77. <span>Validity</span>
  78. <span style="color: red;">{{ validity }}</span>
  79. </template>
  80. <template v-else>
  81. <span style="color: red;">Giveaways Validity</span>
  82. </template>
  83. </div>
  84. <div class="flow">
  85. <div class="line"></div>
  86. <div class="area_num">
  87. <div class="num">1</div>
  88. <span>Install DeNet</span>
  89. </div>
  90. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  91. <div class="install_btn" @click="installExtension">Install</div>
  92. <div class="area_num">
  93. <div class="num">2</div>
  94. <span>Complete Tasks by {{ detail.postBizData.postUserInfo.nickName }}</span>
  95. </div>
  96. <div class="tip">Follow、Like tweet、Retweet (Just 1-3 minutes)</div>
  97. </div>
  98. </div>
  99. <!-- 过期 -->
  100. <div class="install install-error" v-if="status == 'nothing' || status == 'expire'">
  101. <div class="title">Install DeNet</div>
  102. <div class="title">Don't miss the next Giveaway</div>
  103. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  104. <div class="install_btn" @click="installExtension">Install</div>
  105. </div>
  106. <!-- 非chrome 浏览器状态 -->
  107. <div class="install install-error" v-if="status == 'no-chrome'">
  108. <div class="title">Open Giveaways</div>
  109. <div class="title">with chrome</div>
  110. <div class="tip">Only supports getting Giveaways through chrome</div>
  111. <div class="install_chrome">
  112. <img src="/svg/icon-chrome.svg" alt />
  113. Install Chrome
  114. </div>
  115. </div>
  116. <div v-if="status == 'error'"></div>
  117. </div>
  118. <div v-if="show_moblie" class="moblie">
  119. <div class="head-area">
  120. <div class="txt">GET GIVEAWAY</div>
  121. </div>
  122. <!-- 领取列表 -->
  123. <div class="luck-list-title">
  124. <div>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }} Got</div>
  125. <div> {{ detail.postBizData.receiveAmountValue }} / {{
  126. detail.postBizData.amountValue || ''
  127. }} {{ detail.postBizData.amountCurrencyCode || '' }}</div>
  128. </div>
  129. <div class="luck-list" @scroll="handleScroll($event)">
  130. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  131. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  132. <img v-else src="/svg/icon-twitter.svg" alt />
  133. <div class="luck-content">
  134. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  135. <div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
  136. </div>
  137. <div class="luck-money">
  138. <img :src="item.currencyIconPath" alt />
  139. <div class="luck-money-txt">{{ item.amountValue || 0 }}</div>
  140. </div>
  141. <div class="luck-king" v-if="item.maxAmount">
  142. <img src="/svg/icon-king-hat.svg" alt />
  143. <span>Luckiest Draw</span>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="area-cp-link">
  148. <div class="area-title">
  149. <img src="/svg/icon-mobile.svg" alt="">
  150. <div class="right">
  151. <div class="right-title">Get Giveaway on PC</div>
  152. <div class="right-content">You need to use a computer to complete tasks, and Get Giveaways (Just
  153. 2-3 minutes)</div>
  154. </div>
  155. </div>
  156. <div class="area-content">
  157. {{ cp_link }}
  158. </div>
  159. <div class="area-btn">
  160. <div class="btn" :data-clipboard-text="cp_link">Copy Link</div>
  161. </div>
  162. </div>
  163. <div class="layer" v-show="layer_show">
  164. <div class="layer-box">
  165. <div class="layer-txt">Unable to copy, please enter the link manually</div>
  166. <div class="layer-btn" @click="layer_show = false">Done</div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </template>
  172. <script>
  173. import axios from 'axios';
  174. import Cookies from 'js-cookie'
  175. import { isBrowser } from '../utils/help.js'
  176. var moment = require('moment');
  177. var ClipboardJS = require('clipboard')
  178. const api = {
  179. prod: 'https://api.denetme.net',
  180. pre: 'https://preapi.denetme.net',
  181. test: 'https://testapi.denetme.net'
  182. }
  183. const page = {
  184. prod: "https://h5.denetme.net",
  185. pre: "https://preh5.denetme.net",
  186. test: 'https://testh5.denetme.net'
  187. }
  188. const jumpUrl = page[process.env.NUXT_ENV.MODE] + '/'
  189. const baseURL = api[process.env.NUXT_ENV.MODE]
  190. export default {
  191. name: "index",
  192. data() {
  193. return {
  194. cp_link: '',
  195. appVersionCode: 1,
  196. mid: '',
  197. show_moblie: false,
  198. show_home: false,
  199. layer_show: false,
  200. validity: '',
  201. receiveAmount: 0,
  202. validity_state: true,
  203. detail: {
  204. postId: '',
  205. postBizData: {
  206. imagePath: '',
  207. postUserInfo: {
  208. }
  209. }
  210. },
  211. currencyIconPath: '',
  212. title: '',
  213. twitterTitle: 'deNet',
  214. jumpUrl: jumpUrl,
  215. status: '',
  216. page_index: 1,
  217. page_size: 20,
  218. luck_list: [],
  219. luck_list_end: false
  220. }
  221. },
  222. head() {
  223. return {
  224. type: '',
  225. title: this.title,
  226. appVersionCode: 1,
  227. meta: [
  228. {
  229. name: 'twitter:card',
  230. content: 'summary_large_image'
  231. },
  232. {
  233. name: 'twitter:url',
  234. content: this.jumpUrl + this.detail.postId
  235. },
  236. {
  237. name: 'twitter:title',
  238. content: this.twitterTitle
  239. },
  240. {
  241. name: 'twitter:image',
  242. content: this.detail.postBizData.imagePath || ''
  243. }
  244. ]
  245. }
  246. },
  247. methods: {
  248. isMobile() {
  249. 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);
  250. return flag;
  251. },
  252. installExtension() {
  253. let url = 'https://d3d9wvhy948gxx.cloudfront.net/extensions/chrome/denet.zip'
  254. location.href = url;
  255. this.$router.push({
  256. path: '/install'
  257. })
  258. },
  259. formatTime(time, _type = 'MM-DD HH:mm:ss') {
  260. return moment(time).format(_type)
  261. },
  262. guid() {
  263. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  264. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  265. return v.toString(16);
  266. });
  267. },
  268. handleScroll(e) {
  269. e = e.target
  270. if (this.luck_list_end) {
  271. return
  272. }
  273. if ((e.clientHeight + e.scrollTop) / e.scrollHeight > .8) {
  274. this.luck_list_end = false
  275. this.page_index++
  276. this.getReceivedList()
  277. }
  278. },
  279. setCookieMid() {
  280. let _cookie_mid_arr = Cookies.get('mid') || []
  281. if (_cookie_mid_arr.length > 0) {
  282. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  283. } else {
  284. this.mid = this.guid()
  285. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  286. }
  287. },
  288. async getRedPacket() {
  289. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/receiveLuckdrop`, {
  290. baseInfo: {
  291. appVersionCode: this.appVersionCode,
  292. mid: this.mid
  293. },
  294. params: {
  295. postId: this.detail.postId || ''
  296. }
  297. })
  298. this.show_home = true
  299. switch (data.code.toString()) {
  300. case '0':
  301. if (data.data.newReceived) {
  302. this.status = 'not-open'
  303. setTimeout(() => {
  304. this.status = 'open'
  305. }, 3000)
  306. this.receiveAmount = data.data.receiveAmount
  307. this.currencyIconPath = data.data.receiveAmount || ''
  308. } else {
  309. this.status = 'opened'
  310. }
  311. this.getValidity(data.data.endTimestamp)
  312. this.receiveAmount = data.data.receiveAmount
  313. this.currencyIconPath = data.data.receiveAmount || ''
  314. break;
  315. case '2003':
  316. this.status = 'expire'
  317. break
  318. // 红包被领完了
  319. case '2008':
  320. this.status = 'nothing'
  321. break
  322. case '2029':
  323. // 推文未发布
  324. this.status = 'error'
  325. break
  326. default:
  327. console.log('getRedPacket', data)
  328. this.show_home = false
  329. break;
  330. }
  331. // 领取列表分页
  332. this.getReceivedList()
  333. },
  334. async getReceivedList() {
  335. let { data } = await axios.post(`${baseURL}/denet/post/luckdrop/getReceivedList`, {
  336. baseInfo: {
  337. appVersionCode: this.appVersionCode,
  338. mid: this.mid
  339. },
  340. params: {
  341. pageNum: this.page_index,
  342. pageSize: this.page_size,
  343. postId: this.detail.postId || ''
  344. }
  345. })
  346. if (data.code == 0) {
  347. if (data.data.length > 0) {
  348. this.luck_list = this.luck_list.concat(data.data)
  349. this.luck_list_end = false
  350. } else {
  351. this.luck_list_end = true
  352. }
  353. } else {
  354. console.log('getReceivedList', data)
  355. }
  356. },
  357. getValidity(end_time) {
  358. let _d1, _d2, _d3, _h, _m, _s
  359. let timer = setInterval(() => {
  360. let _time = new Date().getTime()
  361. _d3 = end_time - _time
  362. if (_d3 > 0) {
  363. _d1 = moment(end_time)
  364. _d2 = moment(_time)
  365. _h = moment.duration(_d1.diff(_d2)).hours()
  366. _m = moment.duration(_d1.diff(_d2)).minutes()
  367. _s = moment.duration(_d1.diff(_d2)).seconds()
  368. if (_h < 10) {
  369. _h = '0' + _h
  370. }
  371. if (_m < 10) {
  372. _m = '0' + _m
  373. }
  374. if (_s < 10) {
  375. _s = '0' + _s
  376. }
  377. this.validity = `${_h}:${_m}:${_s}`
  378. } else {
  379. clearInterval(timer)
  380. }
  381. }, 1000)
  382. },
  383. setPickupInfo() {
  384. let pickupInfo = {
  385. srcContentId: this.detail.srcContentId,
  386. postNickName: this.detail.postBizData.postUserInfo.nickName
  387. };
  388. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  389. }
  390. },
  391. async asyncData(params) {
  392. let { route } = params;
  393. let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {
  394. baseInfo: {
  395. mid: function () {
  396. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  397. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  398. return v.toString(16);
  399. });
  400. }()
  401. },
  402. params: {
  403. postId: route.params.id || ''
  404. }
  405. })
  406. if (data.code == 0) {
  407. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  408. data.data.postBizData = JSON.parse(data.data.postBizData)
  409. }
  410. return {
  411. detail: data.data,
  412. }
  413. }
  414. },
  415. mounted() {
  416. if (!this.detail.postId) {
  417. return
  418. }
  419. //改变font-size
  420. // (function (doc, win) {
  421. // var docEI = doc.documentElement,
  422. // resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  423. // recalc = function () {
  424. // var clientWidth = docEI.clientWidth;
  425. // if (!clientWidth) return;
  426. // //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  427. // docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  428. // }
  429. // if (!doc.addEventListener) return;
  430. // win.addEventListener(resizeEvt, recalc, false);
  431. // doc.addEventListener('DOMContentLoaded', recalc, false);
  432. // })(document, window);
  433. document.documentElement.style.fontSize = '62.5%'
  434. if (this.isMobile()) {
  435. this.show_moblie = true
  436. this.cp_link = window.location.href
  437. // 复制链接
  438. var clipboard = new ClipboardJS('.btn');
  439. clipboard.on('success', function (e) {
  440. console.info('Action:', e.action);
  441. console.info('Text:', e.text);
  442. console.info('Trigger:', e.trigger);
  443. e.clearSelection();
  444. });
  445. clipboard.on('error', function (e) {
  446. this.layer_show = true
  447. console.error('Action:', e.action);
  448. console.error('Trigger:', e.trigger);
  449. });
  450. // 领取列表分页
  451. this.getReceivedList()
  452. } else if (isBrowser() == 'chrome') {
  453. // 领取任务红包
  454. this.setCookieMid()
  455. this.getRedPacket()
  456. this.setPickupInfo()
  457. } else {
  458. this.show_home = true
  459. this.status = 'no-chrome'
  460. }
  461. }
  462. }
  463. </script>
  464. <style lang="scss" >
  465. html,
  466. body,
  467. #__nuxt,
  468. #__layout {
  469. width: 100%;
  470. height: 100%;
  471. padding: 0;
  472. margin: 0;
  473. }
  474. .moblie {
  475. display: flex;
  476. flex-wrap: wrap;
  477. height: 100%;
  478. align-content: flex-start;
  479. flex-direction: column;
  480. .layer {
  481. position: fixed;
  482. width: 100%;
  483. height: 100%;
  484. top: 0;
  485. left: 0;
  486. background: rgba(0, 0, 0, .5);
  487. .layer-box {
  488. width: 30rem;
  489. height: 17rem;
  490. background: #FFFFFF;
  491. border-radius: 11px;
  492. opacity: 1;
  493. position: absolute;
  494. top: 25rem;
  495. left: 50%;
  496. margin-left: -15rem;
  497. .layer-txt {
  498. margin: 3rem 0;
  499. width: 100%;
  500. padding: 0 2.7rem;
  501. font-weight: 600;
  502. font-size: 1.8rem;
  503. text-align: center;
  504. }
  505. .layer-btn {
  506. width: 19rem;
  507. height: 4rem;
  508. background: #389AFF;
  509. border-radius: 100px;
  510. margin: 0 auto;
  511. text-align: center;
  512. line-height: 4rem;
  513. color: #fff;
  514. font-weight: 600;
  515. font-size: 1.8rem;
  516. }
  517. }
  518. }
  519. .head-area {
  520. width: 100%;
  521. height: 8rem;
  522. text-align: center;
  523. letter-spacing: 0.3px;
  524. font-size: 2rem;
  525. text-align: center;
  526. color: #fff;
  527. background: #389AFF;
  528. border-radius: 0 586px 586px/0 0 104px 104px;
  529. display: flex;
  530. align-items: center;
  531. .txt {
  532. width: 100%;
  533. text-align: center;
  534. }
  535. }
  536. .luck-list-title {
  537. /* margin-top: 47px;*/
  538. margin: 0 16px;
  539. padding: 14px 0 11px 0;
  540. background: #fff;
  541. display: flex;
  542. justify-content: space-between;
  543. color: #B0B0B0;
  544. border-bottom: 1px solid #D1D1D1;
  545. }
  546. .luck-list {
  547. flex: 1;
  548. width: 100%;
  549. background: #fff;
  550. overflow: auto;
  551. .luck-item {
  552. display: flex;
  553. padding: 12px 0;
  554. margin: 0 16px;
  555. border-bottom: 1px solid #d1d1d1;
  556. justify-content: space-between;
  557. position: relative;
  558. img:first-child {
  559. border-radius: 50%;
  560. }
  561. .luck-king {
  562. position: absolute;
  563. top: 36px;
  564. right: 0px;
  565. display: flex;
  566. align-items: center;
  567. img {
  568. width: 22px;
  569. height: 19px;
  570. margin: 0;
  571. }
  572. span {
  573. font-weight: 500;
  574. font-size: 12px;
  575. line-height: 14px;
  576. letter-spacing: 0.3px;
  577. color: #f5b945;
  578. }
  579. }
  580. img {
  581. width: 42px;
  582. height: 42px;
  583. margin-right: 12px;
  584. }
  585. .luck-content {
  586. flex: auto;
  587. .luck-title {
  588. font-weight: 500;
  589. font-size: 16px;
  590. letter-spacing: 0.3px;
  591. color: #444444;
  592. }
  593. .luck-time {
  594. font-weight: 400;
  595. font-size: 12px;
  596. line-height: 14px;
  597. color: #9b9b9b;
  598. }
  599. }
  600. .luck-money {
  601. display: flex;
  602. height: 17px;
  603. align-items: center;
  604. img {
  605. width: 14px;
  606. height: 14px;
  607. margin-right: 6px;
  608. }
  609. .luck-money-txt {
  610. font-weight: 500;
  611. font-size: 14px;
  612. /* identical to box height */
  613. text-align: right;
  614. letter-spacing: 0.3px;
  615. color: #444444;
  616. }
  617. }
  618. }
  619. .luck-item:last-child {
  620. border: 0;
  621. }
  622. }
  623. .area-cp-link {
  624. background: #fff;
  625. display: flex;
  626. width: 100%;
  627. flex-wrap: wrap;
  628. position: fixed;
  629. bottom: 0;
  630. height: 20rem;
  631. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  632. border-top-left-radius: 2rem;
  633. border-top-right-radius: 2rem;
  634. .area-title {
  635. display: flex;
  636. img {
  637. width: 6.4rem;
  638. height: 6.4rem;
  639. margin: 1.5rem;
  640. }
  641. .right {
  642. flex: 1;
  643. letter-spacing: 0.3px;
  644. .right-title {
  645. font-size: 1.7rem;
  646. color: #000000;
  647. margin-top: 1.7rem;
  648. }
  649. .right-content {
  650. font-size: 1.2rem;
  651. color: #989898;
  652. }
  653. }
  654. }
  655. .area-content {
  656. background: #F4F4F4;
  657. height: 4.6rem;
  658. padding: 0 1rem;
  659. width: 100%;
  660. font-size: 1.3rem;
  661. word-break: break-all;
  662. }
  663. .area-btn {
  664. flex: 1;
  665. display: flex;
  666. justify-content: center;
  667. .btn {
  668. width: 34.3rem;
  669. height: 4rem;
  670. background: #389AFF;
  671. border-radius: 100px;
  672. font-size: 1.8rem;
  673. color: #FFFFFF;
  674. }
  675. }
  676. }
  677. }
  678. .content {
  679. width: 100%;
  680. height: 100%;
  681. background-size: 100%;
  682. background-repeat: no-repeat;
  683. position: relative;
  684. font-family: "SF Pro Display";
  685. font-style: normal;
  686. font-weight: 600;
  687. .not-open {
  688. display: flex;
  689. align-items: center;
  690. justify-content: center;
  691. width: 100%;
  692. height: 100%;
  693. img {
  694. width: 20rem;
  695. height: 20rem;
  696. }
  697. }
  698. .logo {
  699. position: absolute;
  700. left: 4rem;
  701. top: 1.5rem;
  702. img {
  703. width: 10.7rem;
  704. height: 4rem;
  705. }
  706. }
  707. .key_packet {
  708. animation: key_packet 3s;
  709. animation-delay: 0s;
  710. animation-fill-mode: forwards;
  711. }
  712. .redPacket {
  713. display: flex;
  714. justify-content: flex-start;
  715. flex-direction: column;
  716. position: absolute;
  717. top: 9rem;
  718. left: 50%;
  719. width: 37.5rem;
  720. margin-left: -18rem;
  721. height: 65rem;
  722. border-radius: 2rem;
  723. // background: red;
  724. overflow: hidden;
  725. box-shadow: 0 0 5px #888888;
  726. background: #fff;
  727. .top {
  728. top: 0;
  729. position: absolute;
  730. width: 100%;
  731. z-index: 12;
  732. }
  733. .down {
  734. bottom: 0;
  735. position: absolute;
  736. height: 32.3rem;
  737. z-index: 11;
  738. }
  739. .head {
  740. position: relative;
  741. .head-title {
  742. position: absolute;
  743. top: 0;
  744. width: 100%;
  745. display: flex;
  746. align-items: center;
  747. justify-content: center;
  748. height: 3.6rem;
  749. background: rgba(255, 255, 255, .1);
  750. img {
  751. width: 1.8rem;
  752. height: 1.8rem;
  753. border-radius: 50%;
  754. border: 1px solid #fff;
  755. }
  756. span {
  757. margin-left: .8rem;
  758. font-size: 1.2rem;
  759. color: #fff;
  760. }
  761. }
  762. .head-txt {
  763. margin-top: 4.7rem;
  764. font-size: 2rem;
  765. text-align: center;
  766. color: #fff;
  767. }
  768. .head-area {
  769. height: 19rem;
  770. text-align: center;
  771. letter-spacing: 0.3px;
  772. font-size: 2rem;
  773. text-align: center;
  774. color: #fff;
  775. background: #389AFF;
  776. border-radius: 0 586px 586px/0 0 104px 104px;
  777. .txt {
  778. padding-top: 8.5rem;
  779. }
  780. }
  781. .head-money {
  782. .txt {
  783. padding-top: 6.8rem;
  784. font-weight: 800;
  785. font-size: 1.5rem;
  786. text-align: center;
  787. letter-spacing: 0.3px;
  788. }
  789. .head-money-area {
  790. display: flex;
  791. width: 100%;
  792. justify-content: center;
  793. align-items: center;
  794. img {
  795. width: 4rem;
  796. height: 4rem;
  797. border: 2px solid #FFFFFF;
  798. border-radius: 100px;
  799. }
  800. span {
  801. margin-left: 1.3rem;
  802. font-size: 4.6rem;
  803. }
  804. }
  805. }
  806. }
  807. .luck-list-title {
  808. /* margin-top: 47px;*/
  809. margin: 0 16px;
  810. padding: 14px 0 11px 0;
  811. background: #fff;
  812. display: flex;
  813. justify-content: space-between;
  814. color: #B0B0B0;
  815. border-bottom: 1px solid #D1D1D1;
  816. }
  817. .luck-list {
  818. background: #fff;
  819. overflow: auto;
  820. .luck-item {
  821. display: flex;
  822. padding: 12px 0;
  823. margin: 0 16px;
  824. border-bottom: 1px solid #d1d1d1;
  825. justify-content: space-between;
  826. position: relative;
  827. img:first-child {
  828. border-radius: 50%;
  829. }
  830. .luck-king {
  831. position: absolute;
  832. top: 36px;
  833. right: 0px;
  834. display: flex;
  835. align-items: center;
  836. img {
  837. width: 22px;
  838. height: 19px;
  839. margin: 0;
  840. }
  841. span {
  842. font-weight: 500;
  843. font-size: 12px;
  844. line-height: 14px;
  845. letter-spacing: 0.3px;
  846. color: #f5b945;
  847. }
  848. }
  849. img {
  850. width: 42px;
  851. height: 42px;
  852. margin-right: 12px;
  853. }
  854. .luck-content {
  855. flex: auto;
  856. .luck-title {
  857. font-weight: 500;
  858. font-size: 16px;
  859. letter-spacing: 0.3px;
  860. color: #444444;
  861. }
  862. .luck-time {
  863. font-weight: 400;
  864. font-size: 12px;
  865. line-height: 14px;
  866. color: #9b9b9b;
  867. }
  868. }
  869. .luck-money {
  870. display: flex;
  871. height: 17px;
  872. align-items: center;
  873. img {
  874. width: 14px;
  875. height: 14px;
  876. margin-right: 6px;
  877. }
  878. .luck-money-txt {
  879. font-weight: 500;
  880. font-size: 14px;
  881. /* identical to box height */
  882. text-align: right;
  883. letter-spacing: 0.3px;
  884. color: #444444;
  885. }
  886. }
  887. }
  888. .luck-item:last-child {
  889. border: 0;
  890. }
  891. }
  892. .area {
  893. position: absolute;
  894. z-index: 112;
  895. width: 100%;
  896. .title {
  897. z-index: 11;
  898. margin-top: 8.5rem;
  899. text-align: center;
  900. img {
  901. width: 3.6rem;
  902. height: 3.6rem;
  903. border: 2px solid #fff4db;
  904. border-radius: 50%;
  905. }
  906. span {
  907. letter-spacing: 0.3px;
  908. font-size: 1.6rem;
  909. color: #fff2d3;
  910. }
  911. }
  912. .txt {
  913. font-size: 4rem;
  914. text-align: center;
  915. letter-spacing: 0.03rem;
  916. color: #fff2d3;
  917. }
  918. }
  919. .key_area {
  920. animation: key_area 1s;
  921. animation-delay: 1s;
  922. animation-fill-mode: forwards;
  923. }
  924. }
  925. .redPacket2 {
  926. left: 30.6rem;
  927. margin-left: -18rem;
  928. }
  929. .key_install {
  930. opacity: 0;
  931. animation: key_install 2s;
  932. animation-delay: 0s;
  933. animation-fill-mode: forwards;
  934. }
  935. .install {
  936. position: absolute;
  937. top: 20rem;
  938. left: 78.5rem;
  939. .title {
  940. font-size: 4.8rem;
  941. color: #000000;
  942. letter-spacing: 0.3px;
  943. }
  944. .validity {
  945. margin-top: 1rem;
  946. color: #FF0000;
  947. width: 40rem;
  948. height: 3.3rem;
  949. line-height: 3.3rem;
  950. span {
  951. font-size: 1.4rem;
  952. }
  953. }
  954. .flow {
  955. position: absolute;
  956. margin-top: 4rem;
  957. .line {
  958. position: absolute;
  959. height: 16rem;
  960. border: 1px solid #e0e0e0;
  961. top: 3rem;
  962. left: 1.2rem;
  963. }
  964. .area_num {
  965. display: flex;
  966. align-items: center;
  967. .num {
  968. width: 2.4rem;
  969. height: 2.4rem;
  970. background-color: rgba(56, 154, 255, 1);
  971. border-radius: 50%;
  972. color: #fff;
  973. text-align: center;
  974. line-height: 2.4rem;
  975. font-size: 1.4rem;
  976. }
  977. span {
  978. margin-left: 1.5rem;
  979. color: #000000;
  980. font-size: 1.8rem;
  981. }
  982. }
  983. .tip {
  984. margin-left: 4rem;
  985. margin-top: 0.7rem;
  986. font-size: 1.4rem;
  987. color: #a4a4a4;
  988. }
  989. .install_btn {
  990. cursor: pointer;
  991. margin-left: 4rem;
  992. margin-top: 2rem;
  993. margin-bottom: 6.7rem;
  994. width: 23rem;
  995. height: 5.8rem;
  996. background: #389aff;
  997. border-radius: 10rem;
  998. color: #fff;
  999. line-height: 5.8rem;
  1000. text-align: center;
  1001. font-size: 2rem;
  1002. }
  1003. }
  1004. .tip {
  1005. margin-top: 0.7rem;
  1006. font-size: 1.4rem;
  1007. color: #a4a4a4;
  1008. }
  1009. .install_btn {
  1010. cursor: pointer;
  1011. margin-top: 2rem;
  1012. margin-bottom: 6.7rem;
  1013. width: 23rem;
  1014. height: 5.8rem;
  1015. background: #389aff;
  1016. border-radius: 10rem;
  1017. color: #fff;
  1018. line-height: 5.8rem;
  1019. text-align: center;
  1020. font-size: 2rem;
  1021. }
  1022. }
  1023. .install-error {
  1024. left: 78.5rem;
  1025. .install_chrome {
  1026. cursor: pointer;
  1027. width: 24.3rem;
  1028. height: 5.8rem;
  1029. font-size: 2rem;
  1030. font-weight: 500;
  1031. letter-spacing: 0.3px;
  1032. display: flex;
  1033. align-items: center;
  1034. background: #FFFFFF;
  1035. border: 1px solid #e8e8e8;
  1036. border-radius: 10rem;
  1037. margin-top: 3.3rem;
  1038. img {
  1039. width: 3.2rem;
  1040. height: 3.2rem;
  1041. margin-left: 3.3rem;
  1042. }
  1043. span {
  1044. margin-left: 1.2rem;
  1045. }
  1046. }
  1047. }
  1048. }
  1049. @keyframes key_area {
  1050. 0% {
  1051. opacity: 1;
  1052. }
  1053. 100% {
  1054. opacity: 0;
  1055. }
  1056. }
  1057. @keyframes key_install {
  1058. 0% {
  1059. opacity: 0;
  1060. }
  1061. 100% {
  1062. opacity: 1;
  1063. }
  1064. }
  1065. @keyframes key_packet {
  1066. 0% {}
  1067. 100% {
  1068. left: 30.6rem;
  1069. margin-left: -18rem;
  1070. }
  1071. }
  1072. </style>