index.vue 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  1. <template>
  2. <view class="content">
  3. <image class="bg" src="../../static/img/index-bg.png" mode=""></image>
  4. <view class="top flex">
  5. <image class="top-bg" src="../../static/img/login.png" mode=""></image>
  6. <view class="login-index flex" @click="foxlogin">
  7. <image class="address" src="../../static/img/login-user.png" mode=""></image>
  8. <view class="address-font clamp">{{ address }}</view>
  9. </view>
  10. </view>
  11. <view class="title">流量王</view>
  12. <view class="all">
  13. <view class="all-title">
  14. <image class="all-bg" src="../../static/img/all-bg.png" mode=""></image>
  15. <view class="all-font">奖池总量</view>
  16. </view>
  17. <view class="all-box" @click="nav('/pages/index/bonus')">
  18. <view class="all-sun">
  19. <view class="all-num">
  20. {{ lake * 1 }}
  21. <text>枚</text>
  22. </view>
  23. <image class="all-back" src="../../static/img/all-back.png" mode=""></image>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="title-address">您的邀请地址</view>
  28. <view class="share-box">
  29. <view class="share-sun flex">
  30. <view class="share-font clamp">{{ address | addFile }}</view>
  31. <view class="share-btn" @click="copy(address)">复制</view>
  32. </view>
  33. </view>
  34. <view class="share-box">
  35. <view class="share-sun flex">
  36. <view class="share-font clamp" v-if="!userInfo.spread"><input type="text" v-model="recommend" value="" /></view>
  37. <view class="share-font clamp" v-if="userInfo.spread">{{ userInfo.spread.address | addFile }}</view>
  38. <view class="share-btn" v-if="!userInfo.spread" @click="spare()">加入流量</view>
  39. <view class="share-btn" v-if="userInfo.spread">上级流量</view>
  40. </view>
  41. </view>
  42. <view class="feature">
  43. <view class="feature-sun">
  44. <view class="feature-top flex">
  45. <view class="feature-item" @click="join(0)">
  46. <image class="item-bg" src="../../static/img/jhll.png" mode=""></image>
  47. <view class="feature-font">激活流量</view>
  48. </view>
  49. <view class="feature-item" @click="join(2)">
  50. <image class="item-bg" src="../../static/img/sjll.png" mode=""></image>
  51. <view class="feature-font">升级流量</view>
  52. </view>
  53. <!-- <view class="feature-item">
  54. <image class="item-bg" src="../../static/img/dbsj.png" mode=""></image>
  55. <view class="feature-font">打包升级</view>
  56. </view> -->
  57. </view>
  58. <view class="feature-bottom flex" @click="nav('/pages/index/explain')">
  59. <view class="bottom-font">粉丝激活升级说明</view>
  60. <image class="wen" src="../../static/img/wen.png" mode=""></image>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="title-address">您的流量信息</view>
  65. <view class="my-box flex">
  66. <view class="my-item" style="margin-top: 0;">
  67. <view class="my-sun flex">
  68. <image class="my-bg" src="../../static/img/dqlljb.png" mode=""></image>
  69. <view class="my-font">
  70. 当前流量
  71. <br />
  72. 级别
  73. </view>
  74. <view class="my-num">{{ userInfo.point_level || 0 }}</view>
  75. </view>
  76. </view>
  77. <view class="my-item" style="margin-top: 0;">
  78. <view class="my-sun flex">
  79. <image class="my-bg" src="../../static/img/zjtjlls.png" mode=""></image>
  80. <view class="my-font">
  81. 直接推荐
  82. <br />
  83. 流量数
  84. </view>
  85. <view class="my-num">{{ userInfo.spread_count || 0 }}</view>
  86. </view>
  87. </view>
  88. <view class="my-item" style="margin-top: 0;">
  89. <view class="my-sun flex">
  90. <image class="my-bg" src="../../static/img/zjtjyxlls.png" mode=""></image>
  91. <view class="my-font">
  92. 直接推荐
  93. <br />
  94. 有效流量数
  95. </view>
  96. <view class="my-num">{{ userInfo.spread_activate_count }}</view>
  97. </view>
  98. </view>
  99. <view class="my-item">
  100. <view class="my-sun flex">
  101. <image class="my-bg" src="../../static/img/zjtjjj.png" mode=""></image>
  102. <view class="my-font">
  103. 直接推荐
  104. <br />
  105. 奖金
  106. </view>
  107. <view class="my-num">{{ userInfo.recommend || 0 }}</view>
  108. </view>
  109. </view>
  110. <view class="my-item">
  111. <view class="my-sun flex">
  112. <image class="my-bg" src="../../static/img/jcjj.png" mode=""></image>
  113. <view class="my-font">
  114. 奖池
  115. <br />
  116. 奖金
  117. </view>
  118. <view class="my-num">{{ userInfo.lake || 0 }}</view>
  119. </view>
  120. </view>
  121. <view class="my-item">
  122. <view class="my-sun flex">
  123. <image class="my-bg" src="../../static/img/qyefh.png" mode=""></image>
  124. <view class="my-font">
  125. 历史
  126. <br />
  127. 领取
  128. </view>
  129. <view class="my-num">{{ userInfo.history || 0 }}</view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="history">
  134. <view class="history-sun flex">
  135. <view class="history-left">
  136. <image class="history-bg" src="../../static/img/history.png" mode=""></image>
  137. <view class="history-font">待领取收益</view>
  138. </view>
  139. <view class="history-right">
  140. <view class="history-num">{{ userInfo.USDT * 1 }}U</view>
  141. <view class="history-btn" v-if="userInfo.USDT != 0" @click="paybnb()">领取</view>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="history">
  146. <view class="history-sun flex" @click="join(1)">
  147. <view class="history-left">
  148. <image class="level-bg" src="../../static/img/level.png" mode=""></image>
  149. <view class="level-font">
  150. <view class="level-title">升级可领奖金</view>
  151. <view class="level-tip">提升级别拿更多奖金奖励</view>
  152. </view>
  153. </view>
  154. <image class="back" src="../../static/img/all-back.png" mode=""></image>
  155. </view>
  156. </view>
  157. <view class="network flex">
  158. <view class="network-left">您的网络信息</view>
  159. <view class="network-right" @click="nav('/pages/index/network')">
  160. <view class="netRight-font">网络信息明细</view>
  161. <image class="n-back" src="../../static/img/back.png" mode=""></image>
  162. </view>
  163. </view>
  164. <view class="network-box">
  165. <view class="network-sun">
  166. <view class="network-top flex">
  167. <view class="nTop-left">
  168. <image class="nTop-bg" src="../../static/img/network.png" mode=""></image>
  169. <view class="nTop-font">流量级别奖励</view>
  170. </view>
  171. <view class="nTop-btn" @click="join(2)">升级</view>
  172. </view>
  173. <view class="network-bottom flex">
  174. <view class="bottom-item">
  175. 已领取
  176. <text>{{ userInfo.level }}</text>
  177. </view>
  178. <view class="bottom-item">
  179. 待领取
  180. <text>{{ userInfo.level_wait }}</text>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <uni-popup ref="popup" type="center">
  186. <view class="popup">
  187. <image class="popup-bg" src="../../static/img/popup-bg.png" mode=""></image>
  188. <view class="popup-title">{{ type == 0 ? '激活粉丝' : '升级领奖' }}</view>
  189. <view class="popup-main">
  190. <view class="quan"><image class="ling" src="../../static/img/ling.png" mode=""></image></view>
  191. <view class="popup-info" v-if="type == 0">
  192. 是否消耗{{ mention }}{{ mentionType }}
  193. <br />
  194. 激活粉丝身份
  195. </view>
  196. <view class="popup-info" v-else>
  197. 请先提升级别
  198. <br />
  199. 能拿更多奖金奖励哦
  200. </view>
  201. </view>
  202. <view class="btn-box" v-if="type == 0">
  203. <view class="btn-ok" @click="pay()" v-if="userInfo.approve == 0 && userInfo.approve_check == null">授权</view>
  204. <view class="btn-ok" style="background: #b4b4b4;" v-if="userInfo.approve == 0 && userInfo.approve_check != null">授权审核中</view>
  205. <view class="btn-ok" style="background: #b4b4b4;" v-if="userInfo.activity == 0 && userInfo.activate_check != null">激活审核中</view>
  206. <view class="btn-ok" @click="activate('activate')" v-if="userInfo.approve == 1 && userInfo.activity == 0 && userInfo.activate_check == null">激活</view>
  207. <view class="btn-qx" @click="quxiao">取消</view>
  208. </view>
  209. <view class="popup-btn" @click="quxiao" v-else>知道了</view>
  210. </view>
  211. </uni-popup>
  212. <uni-popup ref="popup1" type="center">
  213. <view class="popup">
  214. <image class="popup-bg" src="../../static/img/popup-bg.png" mode=""></image>
  215. <view class="popup-title">升级领奖</view>
  216. <view class="popup-main">
  217. <view class="quan"><image class="ling" src="../../static/img/ling.png" mode=""></image></view>
  218. <view class="popup-info" v-if="type == 0">
  219. 是否消耗{{ mention }}{{ mentionType }}
  220. <br />
  221. 升级粉丝身份
  222. </view>
  223. </view>
  224. <view class="btn-box">
  225. <view class="btn-ok" @click="activate('level')" v-if="userInfo.level_check == null">升级</view>
  226. <view class="btn-ok" style="background: #b4b4b4;" v-if="userInfo.level_check != null">升级审核中</view>
  227. <view class="btn-qx" @click="quxiao">取消</view>
  228. </view>
  229. </view>
  230. </uni-popup>
  231. </view>
  232. </template>
  233. <script>
  234. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  235. import MetaMaskOnboarding from '@metamask/onboarding';
  236. import { mapState, mapMutations } from 'vuex';
  237. import { logins, userinfo, logout } from '@/api/login.js';
  238. import { addSpread, index } from '@/api/index.js';
  239. import { activateUser, transferDate, approveUser, approveDate, extractCaculator, extractUSDT, levelUp } from '@/api/money.js';
  240. import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
  241. export default {
  242. computed: {
  243. ...mapState('user', ['address', 'hasLogin', 'userInfo'])
  244. },
  245. components: {
  246. uniPopup
  247. },
  248. filters: {
  249. addFile(provider) {
  250. if (provider.length >= 19) {
  251. var subStr1 = provider.substr(0, 18);
  252. var subStr2 = provider.substr(provider.length - 8, 8);
  253. var subStr = subStr1 + '...' + subStr2;
  254. provider = subStr;
  255. }
  256. return provider;
  257. }
  258. },
  259. onShow() {
  260. index().then(({ data }) => {
  261. console.log(data);
  262. this.lake = data.lake;
  263. this.mention = data.activateNumber;
  264. this.mentionType = data.activateToken;
  265. this.level_price = JSON.parse(data.level_price);
  266. });
  267. userinfo().then(({ data }) => {
  268. this.setUserInfo(data.data);
  269. });
  270. },
  271. data() {
  272. return {
  273. type: 0, //0是激活1是升级
  274. num: '', //领取的数量
  275. recommend: '', //推荐人地址
  276. lake: 1, //奖金池数量
  277. mention: 0, //激活(升级)数量
  278. mentionType: '', //激活单位
  279. level_price: '' //升级价格
  280. };
  281. },
  282. methods: {
  283. ...mapMutations('user', ['setAddress', 'setUserInfo', 'login']),
  284. nav(url) {
  285. uni.navigateTo({
  286. url
  287. });
  288. },
  289. spare() {
  290. const obj = this;
  291. if (this.recommend == '') {
  292. this.$api.msg('请填写要加入流量的地址');
  293. return;
  294. }
  295. uni.showModal({
  296. title: '提示',
  297. content: '您是否要绑定到改流量(' + this.recommend + ')',
  298. success: function(res) {
  299. if (res.confirm) {
  300. addSpread({ address: obj.recommend }).then(e => {
  301. console.log(e, '123468');
  302. if (e.code == 1) {
  303. obj.$api.msg('绑定成功');
  304. window.location.reload();
  305. }
  306. });
  307. } else if (res.cancel) {
  308. console.log('用户点击取消');
  309. }
  310. }
  311. });
  312. },
  313. join(e) {
  314. const obj = this;
  315. if (e != 2) {
  316. this.type = e;
  317. if(e == 0){
  318. if(this.userInfo.activity == 1){
  319. obj.$api.msg('账号已激活');
  320. return;
  321. }
  322. }
  323. this.$refs.popup.open();
  324. } else {
  325. if (obj.userInfo.activity == 0 && obj.userInfo.activate_check == null) {
  326. obj.$api.msg('账号未激活请先去激活');
  327. return;
  328. }
  329. if (obj.userInfo.activity == 0 && obj.userInfo.activate_check != null) {
  330. obj.$api.msg('账号激活还在审核,请耐心等待');
  331. return;
  332. }
  333. if (obj.userInfo.point_level >= 9) {
  334. obj.$api.msg('已升到最高等级');
  335. return;
  336. }
  337. Object.keys(obj.level_price).forEach(e => {
  338. if (obj.userInfo.point_level + 1 == e) {
  339. obj.mention = obj.level_price[e];
  340. console.log(obj.mention, '123');
  341. }
  342. });
  343. this.$refs.popup1.open();
  344. }
  345. },
  346. copy(value) {
  347. let obj = this;
  348. let content = value; //需要复制的内容
  349. console.log('复制的内容:', content);
  350. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  351. const result = uniCopy(content);
  352. if (result === false) {
  353. uni.showToast({
  354. title: '不支持'
  355. });
  356. } else {
  357. uni.showToast({
  358. title: '复制成功',
  359. icon: 'none'
  360. });
  361. }
  362. },
  363. quxiao() {
  364. this.$refs.popup.close();
  365. this.$refs.popup1.close();
  366. },
  367. foxlogin() {
  368. const isMetaMaskInstalled = this.isMetaMaskInstalled();
  369. if (!isMetaMaskInstalled) {
  370. const forwarderOrigin = 'http://flow.frp.liuniu946.com/index/#/';
  371. const onboarding = new MetaMaskOnboarding({ forwarderOrigin });
  372. onboarding.startOnboarding();
  373. } else {
  374. try {
  375. ethereum.request({ method: 'eth_requestAccounts' });
  376. this.getaccount();
  377. } catch (error) {
  378. console.log(error, '1234556');
  379. }
  380. }
  381. },
  382. async getaccount() {
  383. const obj = this;
  384. const accounts = await ethereum.request({ method: 'eth_accounts' });
  385. if (accounts[0] == undefined) {
  386. this.foxlogin();
  387. } else {
  388. console.log(accounts[0]);
  389. this.setAddress(accounts[0]);
  390. this.changeAddress();
  391. logins({ address: obj.address }).then(({ data }) => {
  392. obj.login();
  393. uni.setStorageSync('token', data.userinfo.token);
  394. userinfo().then(({ data }) => {
  395. console.log(data);
  396. obj.setUserInfo(data.data);
  397. });
  398. });
  399. }
  400. },
  401. async changeAddress() {
  402. try {
  403. await ethereum.request({
  404. method: 'wallet_switchEthereumChain',
  405. params: [{ chainId: '0x38' }]
  406. });
  407. } catch (switchError) {
  408. console.log(switchError, 'erro');
  409. // This error code indicates that the chain has not been added to MetaMask.
  410. if (switchError.code === 4902) {
  411. try {
  412. await ethereum.request({
  413. method: 'wallet_addEthereumChain',
  414. params: [
  415. {
  416. chainId: '0x38',
  417. chainName: 'BSC主网络',
  418. rpcUrls: ['https://bsc-dataseed1.binance.org/'] /* ... */,
  419. blockExplorerUrls: ['https://bscscan.com/'],
  420. nativeCurrency: {
  421. name: 'BNB',
  422. symbol: 'BNB',
  423. decimals: 18
  424. }
  425. }
  426. ]
  427. });
  428. } catch (addError) {}
  429. }
  430. }
  431. },
  432. isMetaMaskInstalled() {
  433. const { ethereum } = window;
  434. return Boolean(ethereum && ethereum.isMetaMask);
  435. },
  436. paybnb() {
  437. uni.showLoading({
  438. title: '加载中...'
  439. });
  440. const obj = this;
  441. obj.num = obj.userInfo.USDT;
  442. console.log(obj.num);
  443. extractCaculator({
  444. number: obj.num
  445. })
  446. .then(e => {
  447. let gas = '0x' + (e.data.gas * 1).toString(16);
  448. let to = e.data.to;
  449. const params = [
  450. {
  451. from: obj.address,
  452. to: to,
  453. value: gas,
  454. data: ''
  455. }
  456. ];
  457. console.log(params, '123456789');
  458. ethereum
  459. .request({
  460. method: 'eth_sendTransaction',
  461. params
  462. })
  463. .then(result => {
  464. console.log(result, 'result');
  465. uni.hideLoading();
  466. extractUSDT({
  467. transactionHash: result
  468. }).then(e => {
  469. obj.shua();
  470. obj.num = 0;
  471. obj.$api.msg(e.msg);
  472. console.log(e, 'zhuanqian');
  473. });
  474. })
  475. .catch(error => {
  476. uni.hideLoading();
  477. console.log(error, 'error');
  478. });
  479. })
  480. .catch(e => {
  481. uni.hideLoading();
  482. console.log(e);
  483. });
  484. },
  485. //授权
  486. pay() {
  487. uni.showLoading({
  488. title: '加载中...'
  489. });
  490. const obj = this;
  491. console.log(11);
  492. obj.show = false;
  493. approveDate({ to: '', amount: 0 }).then(e => {
  494. console.log(e, 'datajm');
  495. const params = [
  496. {
  497. from: obj.address,
  498. to: '0xaea66e42faf4c4dcfd400233b5e640f40ad4904b',
  499. // to: '0x90934fee7a274225d3e8864da725f13b3cd11aab',
  500. data: e.data.data
  501. }
  502. ];
  503. ethereum
  504. .request({
  505. method: 'eth_sendTransaction',
  506. params
  507. })
  508. .then(result => {
  509. console.log(result, 'result');
  510. uni.hideLoading();
  511. approveUser({
  512. transactionHash: result
  513. }).then(e => {
  514. obj.shua();
  515. obj.$api.msg(e.msg);
  516. });
  517. })
  518. .catch(error => {
  519. uni.hideLoading();
  520. console.log(error, 'error');
  521. });
  522. });
  523. },
  524. shua() {
  525. window.location.reload();
  526. },
  527. //激活
  528. activate(type) {
  529. uni.showLoading({
  530. title: '加载中...'
  531. });
  532. const obj = this;
  533. console.log(11);
  534. obj.show = false;
  535. transferDate({ to: '', amount: obj.mention, type: type }).then(e => {
  536. console.log(e, 'datajm');
  537. const params = [
  538. {
  539. from: obj.address,
  540. to: '0xaea66e42faf4c4dcfd400233b5e640f40ad4904b',
  541. // to: '0x90934fee7a274225d3e8864da725f13b3cd11aab',
  542. data: e.data.data
  543. }
  544. ];
  545. obj.$refs.popup.close();
  546. obj.$refs.popup1.close();
  547. ethereum
  548. .request({
  549. method: 'eth_sendTransaction',
  550. params
  551. })
  552. .then(result => {
  553. console.log(result, 'result');
  554. uni.hideLoading();
  555. if (type == 'activate') {
  556. activateUser({
  557. number: obj.mention,
  558. transactionHash: result
  559. }).then(e => {
  560. obj.shua();
  561. obj.$api.msg(e.msg);
  562. });
  563. }
  564. if (type == 'level') {
  565. levelUp({
  566. number: obj.mention,
  567. transactionHash: result
  568. }).then(e => {
  569. obj.shua();
  570. obj.$api.msg(e.msg);
  571. });
  572. }
  573. })
  574. .catch(error => {
  575. uni.hideLoading();
  576. console.log(error, 'error');
  577. });
  578. });
  579. }
  580. }
  581. };
  582. </script>
  583. <style lang="scss">
  584. page,
  585. .content {
  586. height: auto;
  587. min-height: 100%;
  588. }
  589. .bg {
  590. position: absolute;
  591. z-index: 0;
  592. top: 0;
  593. right: 0;
  594. left: 0;
  595. width: 750rpx;
  596. height: 3476rpx;
  597. }
  598. .top {
  599. position: absolute;
  600. top: 50rpx;
  601. right: 30rpx;
  602. align-items: center;
  603. .top-bg {
  604. width: 50rpx;
  605. height: 50rpx;
  606. }
  607. }
  608. .login-index {
  609. position: relative;
  610. z-index: 10;
  611. margin-left: 24rpx;
  612. width: 213rpx;
  613. height: 69rpx;
  614. background: #ffffff;
  615. border-radius: 10rpx;
  616. justify-content: flex-start;
  617. padding: 0 20rpx;
  618. .address {
  619. width: 46rpx;
  620. height: 44rpx;
  621. flex-shrink: 0;
  622. }
  623. .address-font {
  624. margin-left: 10rpx;
  625. font-size: 27rpx;
  626. font-family: PingFang SC;
  627. font-weight: bold;
  628. color: #0c1732;
  629. }
  630. }
  631. .title {
  632. font-size: 151rpx;
  633. font-family: Microsoft YaHei UI;
  634. font-weight: bold;
  635. color: #eeeeee;
  636. padding-top: 190rpx;
  637. position: relative;
  638. z-index: 2;
  639. text-align: center;
  640. }
  641. .all {
  642. margin-top: 400rpx;
  643. .all-title {
  644. position: relative;
  645. z-index: 3;
  646. width: 300rpx;
  647. height: 100rpx;
  648. margin: 0 auto;
  649. .all-bg {
  650. position: absolute;
  651. width: 100%;
  652. height: 100%;
  653. top: 0;
  654. left: 0;
  655. right: 0;
  656. }
  657. .all-font {
  658. position: relative;
  659. z-index: 20;
  660. font-size: 38rpx;
  661. font-family: PingFang SC;
  662. font-weight: bold;
  663. color: #0c1732;
  664. line-height: 100rpx;
  665. text-align: center;
  666. }
  667. }
  668. .all-box {
  669. position: relative;
  670. z-index: 2;
  671. width: 670rpx;
  672. height: 204rpx;
  673. box-sizing: border-box;
  674. padding: 6rpx;
  675. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  676. border-radius: 0px 30rpx 0px 30rpx;
  677. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  678. margin: -50rpx auto 0;
  679. .all-sun {
  680. width: 100%;
  681. height: 100%;
  682. border-radius: 0px 30rpx 0px 30rpx;
  683. background-color: #ffffff;
  684. .all-num {
  685. padding-top: 92rpx;
  686. text-align: center;
  687. font-size: 48rpx;
  688. font-family: PingFang SC;
  689. font-weight: bold;
  690. color: #0c1732;
  691. text {
  692. font-size: 33rpx;
  693. }
  694. }
  695. }
  696. .all-back {
  697. position: absolute;
  698. top: 80rpx;
  699. right: 28rpx;
  700. width: 42rpx;
  701. height: 42rpx;
  702. }
  703. }
  704. }
  705. .title-address {
  706. position: relative;
  707. z-index: 2;
  708. margin: 50rpx 0 0 50rpx;
  709. font-size: 34rpx;
  710. font-family: PingFang SC;
  711. font-weight: bold;
  712. color: #ffffff;
  713. }
  714. .share-box {
  715. position: relative;
  716. z-index: 2;
  717. width: 670rpx;
  718. height: 100rpx;
  719. padding: 6rpx;
  720. box-sizing: border-box;
  721. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  722. border-radius: 0px 30rpx 0px 30rpx;
  723. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  724. margin: 40rpx auto 0;
  725. .share-sun {
  726. width: 100%;
  727. height: 100%;
  728. border-radius: 0px 30rpx 0px 30rpx;
  729. background-color: #ffffff;
  730. .share-font {
  731. width: 480rpx;
  732. padding-left: 20rpx;
  733. font-size: 30rpx;
  734. font-family: PingFang SC;
  735. font-weight: 500;
  736. color: #0c1732;
  737. }
  738. .share-btn {
  739. width: 160rpx;
  740. height: 100%;
  741. background: linear-gradient(-41deg, rgba(60, 237, 237, 0.99), #04b8ff, #375afe);
  742. border-radius: 0px 20rpx 0px 0;
  743. text-align: center;
  744. line-height: 100rpx;
  745. font-size: 36rpx;
  746. font-family: PingFang SC;
  747. font-weight: 500;
  748. color: #ffffff;
  749. }
  750. }
  751. }
  752. .feature {
  753. position: relative;
  754. z-index: 2;
  755. margin: 50rpx auto 0;
  756. width: 670rpx;
  757. height: 390rpx;
  758. padding: 6rpx;
  759. box-sizing: border-box;
  760. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  761. border-radius: 0px 30rpx 0px 30rpx;
  762. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  763. .feature-sun {
  764. width: 100%;
  765. height: 100%;
  766. border-radius: 0px 30rpx 0px 30rpx;
  767. background-color: #ffffff;
  768. .feature-top {
  769. justify-content: space-around;
  770. width: 100%;
  771. padding-top: 68rpx;
  772. .feature-item {
  773. display: flex;
  774. width: 33%;
  775. flex-direction: column;
  776. align-items: center;
  777. .item-bg {
  778. width: 102rpx;
  779. height: 128rpx;
  780. }
  781. .feature-font {
  782. margin-top: 20rpx;
  783. font-size: 30rpx;
  784. font-family: PingFang SC;
  785. font-weight: 500;
  786. color: #0c1732;
  787. }
  788. }
  789. }
  790. .feature-bottom {
  791. margin-top: 55rpx;
  792. justify-content: center;
  793. .bottom-font {
  794. font-size: 28rpx;
  795. font-family: PingFang SC;
  796. font-weight: 500;
  797. color: #375afe;
  798. padding-right: 10rpx;
  799. }
  800. .wen {
  801. width: 30rpx;
  802. height: 30rpx;
  803. }
  804. }
  805. }
  806. }
  807. .my-box {
  808. position: relative;
  809. z-index: 2;
  810. margin: 40rpx;
  811. flex-wrap: wrap;
  812. .my-item {
  813. margin-top: 40rpx;
  814. width: 210rpx;
  815. background: #ffffff;
  816. padding: 6rpx;
  817. box-sizing: border-box;
  818. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  819. border-radius: 0px 30rpx 0px 30rpx;
  820. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  821. .my-sun {
  822. width: 100%;
  823. height: 100%;
  824. border-radius: 0px 30rpx 0px 30rpx;
  825. background-color: #ffffff;
  826. align-items: center;
  827. flex-direction: column;
  828. justify-content: flex-start;
  829. padding: 24rpx 20rpx 24rpx;
  830. .my-bg {
  831. flex-shrink: 0;
  832. width: 60rpx;
  833. height: 60rpx;
  834. }
  835. .my-font {
  836. text-align: center;
  837. margin-top: 16rpx;
  838. font-size: 28rpx;
  839. font-family: PingFang SC;
  840. font-weight: bold;
  841. color: #0c1732;
  842. line-height: 36rpx;
  843. }
  844. .my-num {
  845. margin-top: 50rpx;
  846. padding-bottom: 6rpx;
  847. font-size: 30rpx;
  848. font-family: PingFang SC;
  849. font-weight: 500;
  850. color: #0c1732;
  851. }
  852. .num-box {
  853. margin-top: 50rpx;
  854. justify-content: space-between;
  855. width: 100%;
  856. .num-item {
  857. display: flex;
  858. flex-direction: column;
  859. justify-content: flex-start;
  860. align-items: center;
  861. .num-num {
  862. font-size: 30rpx;
  863. font-family: PingFang SC;
  864. font-weight: 500;
  865. color: #0c1732;
  866. }
  867. .num-font {
  868. font-size: 20rpx;
  869. font-family: PingFang SC;
  870. font-weight: 500;
  871. color: #666666;
  872. }
  873. }
  874. }
  875. }
  876. }
  877. }
  878. .history {
  879. position: relative;
  880. z-index: 2;
  881. width: 670rpx;
  882. padding: 6rpx;
  883. box-sizing: border-box;
  884. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  885. border-radius: 0px 30rpx 0px 30rpx;
  886. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  887. margin: 40rpx auto 0;
  888. .history-sun {
  889. width: 100%;
  890. height: 100%;
  891. border-radius: 0px 30rpx 0px 30rpx;
  892. background-color: #ffffff;
  893. padding: 20rpx 26rpx 20rpx 20rpx;
  894. .history-left {
  895. display: flex;
  896. align-items: center;
  897. justify-content: flex-start;
  898. }
  899. .history-right {
  900. display: flex;
  901. align-items: center;
  902. justify-content: flex-end;
  903. }
  904. .history-bg {
  905. width: 60rpx;
  906. height: 60rpx;
  907. align-items: center;
  908. }
  909. .history-font {
  910. margin-left: 14rpx;
  911. font-size: 30rpx;
  912. font-family: PingFang SC;
  913. font-weight: 500;
  914. color: #0c1732;
  915. }
  916. .history-num {
  917. font-size: 30rpx;
  918. font-family: PingFang SC;
  919. font-weight: 500;
  920. color: #0c1732;
  921. }
  922. .history-btn {
  923. margin-left: 10rpx;
  924. width: 100rpx;
  925. height: 50rpx;
  926. background: linear-gradient(-41deg, rgba(60, 237, 237, 0.99), #04b8ff, #375afe);
  927. border-radius: 10rpx;
  928. text-align: center;
  929. font-size: 30rpx;
  930. font-family: PingFang SC;
  931. font-weight: 500;
  932. color: #ffffff;
  933. line-height: 50rpx;
  934. }
  935. .level-bg {
  936. flex-shrink: 0;
  937. width: 158rpx;
  938. height: 106rpx;
  939. }
  940. .back {
  941. width: 42rpx;
  942. height: 42rpx;
  943. }
  944. .level-font {
  945. display: flex;
  946. flex-direction: column;
  947. margin-left: 20rpx;
  948. .level-title {
  949. font-size: 32rpx;
  950. font-family: PingFang SC;
  951. font-weight: bold;
  952. color: #0c1732;
  953. }
  954. .level-tip {
  955. font-size: 24rpx;
  956. font-family: PingFang SC;
  957. font-weight: 500;
  958. color: #999999;
  959. }
  960. }
  961. }
  962. }
  963. .network {
  964. position: relative;
  965. z-index: 2;
  966. margin: 50rpx 50rpx 0 56rpx;
  967. .network-left {
  968. font-size: 34rpx;
  969. font-family: PingFang SC;
  970. font-weight: bold;
  971. color: #ffffff;
  972. }
  973. .network-right {
  974. display: flex;
  975. justify-content: flex-start;
  976. align-items: center;
  977. .netRight-font {
  978. margin-right: 8rpx;
  979. font-size: 30rpx;
  980. font-family: PingFang SC;
  981. font-weight: 500;
  982. color: #ffffff;
  983. }
  984. .n-back {
  985. width: 13rpx;
  986. height: 22rpx;
  987. }
  988. }
  989. }
  990. .network-box {
  991. position: relative;
  992. z-index: 2;
  993. width: 670rpx;
  994. height: 178rpx;
  995. padding: 6rpx;
  996. box-sizing: border-box;
  997. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  998. border-radius: 0px 30rpx 0px 30rpx;
  999. background-image: linear-gradient(0deg, #6456fb, #45f8f8);
  1000. margin: 40rpx auto 0;
  1001. .network-sun {
  1002. width: 100%;
  1003. height: 100%;
  1004. border-radius: 0px 30rpx 0px 30rpx;
  1005. background-color: #ffffff;
  1006. padding: 26rpx 24rpx 0 20rpx;
  1007. .network-top {
  1008. .nTop-left {
  1009. display: flex;
  1010. justify-content: flex-start;
  1011. align-items: center;
  1012. .nTop-bg {
  1013. width: 60rpx;
  1014. height: 60rpx;
  1015. }
  1016. .nTop-font {
  1017. margin-left: 14rpx;
  1018. font-size: 30rpx;
  1019. font-family: PingFang SC;
  1020. font-weight: 500;
  1021. color: #0c1732;
  1022. }
  1023. }
  1024. .nTop-btn {
  1025. width: 100rpx;
  1026. height: 50rpx;
  1027. background: linear-gradient(-41deg, rgba(60, 237, 237, 0.99), #04b8ff, #375afe);
  1028. border-radius: 10rpx;
  1029. text-align: center;
  1030. font-size: 30rpx;
  1031. font-family: PingFang SC;
  1032. font-weight: 500;
  1033. color: #ffffff;
  1034. line-height: 50rpx;
  1035. }
  1036. }
  1037. .network-bottom {
  1038. padding: 16rpx 0 0 78rpx;
  1039. .bottom-item {
  1040. font-size: 20rpx;
  1041. font-family: PingFang SC;
  1042. font-weight: 500;
  1043. color: #666666;
  1044. text {
  1045. display: inline-block;
  1046. margin-left: 6rpx;
  1047. color: #000000;
  1048. font-size: 30rpx;
  1049. }
  1050. }
  1051. }
  1052. }
  1053. }
  1054. .popup {
  1055. position: relative;
  1056. width: 600rpx;
  1057. height: 780rpx;
  1058. background: #ffffff;
  1059. border-radius: 10rpx;
  1060. .popup-bg {
  1061. position: absolute;
  1062. width: 600rpx;
  1063. height: 370rpx;
  1064. }
  1065. .popup-title {
  1066. padding-top: 90rpx;
  1067. text-align: center;
  1068. position: relative;
  1069. font-size: 60rpx;
  1070. font-family: SourceHanSansCN;
  1071. font-weight: 500;
  1072. color: #fdfaf9;
  1073. text-shadow: 0px 9rpx 10rpx rgba(113, 103, 247, 0.48);
  1074. }
  1075. .popup-main {
  1076. position: relative;
  1077. width: 510rpx;
  1078. height: 364rpx;
  1079. background: #ffffff;
  1080. border-radius: 10rpx;
  1081. box-shadow: 0px 10rpx 10rpx #f5f5f5;
  1082. margin: 60rpx auto 0;
  1083. .quan {
  1084. position: relative;
  1085. width: 183rpx;
  1086. height: 183rpx;
  1087. background: #ffffff;
  1088. box-shadow: 0px 9rpx 32rpx 0px rgba(55, 90, 254, 0.2);
  1089. border-radius: 50%;
  1090. position: relative;
  1091. top: -34rpx;
  1092. margin: 0 auto;
  1093. .ling {
  1094. position: absolute;
  1095. top: 8rpx;
  1096. left: 8rpx;
  1097. width: 120rpx;
  1098. height: 120rpx;
  1099. }
  1100. }
  1101. .popup-info {
  1102. text-align: center;
  1103. font-size: 36rpx;
  1104. font-family: PingFang SC;
  1105. font-weight: bold;
  1106. color: #333333;
  1107. }
  1108. }
  1109. .btn-box {
  1110. margin: 50rpx;
  1111. display: flex;
  1112. align-items: center;
  1113. justify-content: space-between;
  1114. .btn-ok {
  1115. width: 234rpx;
  1116. height: 78rpx;
  1117. background: #375afe;
  1118. border-radius: 40rpx;
  1119. line-height: 78rpx;
  1120. text-align: center;
  1121. font-size: 30rpx;
  1122. font-family: PingFang SC;
  1123. font-weight: 500;
  1124. color: #ffffff;
  1125. }
  1126. .btn-qx {
  1127. width: 234rpx;
  1128. height: 78rpx;
  1129. border: 1px solid #375afe;
  1130. border-radius: 40rpx;
  1131. line-height: 78rpx;
  1132. text-align: center;
  1133. font-size: 30rpx;
  1134. font-family: PingFang SC;
  1135. font-weight: 500;
  1136. color: #375afe;
  1137. }
  1138. }
  1139. .popup-btn {
  1140. margin: 50rpx;
  1141. width: 504rpx;
  1142. height: 78rpx;
  1143. background: #375afe;
  1144. border-radius: 40px;
  1145. text-align: center;
  1146. line-height: 78rpx;
  1147. font-size: 30rpx;
  1148. font-family: PingFang SC;
  1149. font-weight: 500;
  1150. color: #ffffff;
  1151. }
  1152. }
  1153. </style>