entertainment.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074
  1. <template>
  2. <view class="all">
  3. <view class="padding-t-30"></view>
  4. <view class="tab">
  5. <view class="flex-start">
  6. <view class="tab-item " @click="changeTab(item,ind)" :class="{action:actionIndex==ind}"
  7. v-for="(item,ind) in gameList">
  8. {{item.name}}
  9. </view>
  10. </view>
  11. <l-echart class="top" ref="chart"></l-echart>
  12. </view>
  13. <view class="center flex">
  14. <!-- 左 -->
  15. <view class="le">
  16. <view class="tit flex-start">
  17. <view class="ti1">{{$t('enter.u1')}}</view>
  18. <view class="ti2">({{$t('enter.u2')}} {{history.base.max_bet*1}}U)</view>
  19. </view>
  20. <view class="he">
  21. <view class="numbox flex-start">
  22. <view class="he1 flex" @click="upOnBtnData.value=it" v-for="it in arMoneyList">
  23. <view class="wen">{{it}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="yi flex-start">
  28. <!-- <image class="img" src="../../static/icon/le.png" mode=""></image> -->
  29. <view class="wz padding-l-10">{{history.base.token}}</view>
  30. <view class="qx padding-l-10" v-if="history.next.id">{{history.next.no}}</view>
  31. </view>
  32. <view class="shu">
  33. {{KlineList.c*1}}
  34. </view>
  35. </view>
  36. <!--右 -->
  37. <view class="ri">
  38. <view class="ti flex-center">
  39. <view class="t1">{{$t('enter.u3')}}</view>
  40. <view class="t2 padding-l-10">{{history.base.timebar}}</view>
  41. </view>
  42. <view class="dh">
  43. <input class="input" :placeholder="'USDT'+$t('enter.a9')" type="number" v-model="upOnBtnData.value">
  44. </view>
  45. <view class="btn">
  46. <view class="bt flex">
  47. <view class="btnItem btnle" @click="onPayBet(2)">
  48. <image class="imag" src="../../static/icon/xia.png" mode=""></image>
  49. <text class="xia">{{$t('enter.u4')}}</text>
  50. </view>
  51. <view class="btnItem btnri" @click="onPayBet(1)">
  52. <image class="imag" src="../../static/icon/shang.png" mode=""></image>
  53. <text class="xia">{{$t('enter.u6')}}</text>
  54. </view>
  55. </view>
  56. <view class="bt flex">
  57. <view class="btnItem btnle" @click="onPayBet(3)">
  58. <view class="xia">{{$t('enter.u5')}}</view>
  59. </view>
  60. <view class="btnItem btnri" @click="onPayBet(4)">
  61. <view class="xia">{{$t('enter.u7')}}</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="db flex">
  66. <view class="jl">{{$t('enter.u8')}}</view>
  67. <view class="sj">
  68. <text v-if="time.H<10">0</text>
  69. {{time.H}}
  70. </view>
  71. <view class="sj">
  72. <text v-if="time.M<10">0</text>
  73. {{time.M}}
  74. </view>
  75. <view class="sj">
  76. <text v-if="time.S<10">0</text>
  77. {{time.S}}
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="kb"></view>
  83. <view class="last">
  84. <view class="flex">
  85. <text>{{$t('enter.u9')}}</text>
  86. <view class="flex" @click="nav(`/pages/game/history?id=${history.base.id}`)">
  87. <text>{{$t('enter.u10')}}</text>
  88. <image class="lb" src="../../static/icon/jt.png" mode="scaleToFill"></image>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="bg">
  93. <view class="biaotou flex">
  94. <view class="biwe">{{$t('enter.u11')}}</view>
  95. <view class="biwe">{{$t('enter.u12')}}</view>
  96. <view class="biwe">{{$t('enter.u13')}}</view>
  97. <view class="biwe">{{$t('enter.u14')}}</view>
  98. </view>
  99. <view class="list flex" v-for="(item,ind) in betList.list" :key="ind">
  100. <view class="biwe flex-start">
  101. <view class="tr">{{history.base.token}}</view>
  102. <view class="nametip">{{history.base.timebar}}</view>
  103. <image v-if="item.bet==1" class="zz" src="../../static/icon/shang.png" mode="scaleToFill"></image>
  104. <image v-if="item.bet==2" class="zz" src="../../static/icon/xia.png" mode="scaleToFill"></image>
  105. <view v-if="item.bet==3" class="nametip red">{{$t('enter.u5')}}</view>
  106. <view v-if="item.bet==4" class="nametip green">{{$t('enter.u7')}}</view>
  107. </view>
  108. <view class="biwe">{{item.num*1}}</view>
  109. <view class="biwe">{{item.get-item.num}}</view>
  110. <view class="biwe flex-center">
  111. <view v-if="item.status==1" class="list-buttom success margin-r-10">
  112. {{$t('enter.u17')}}
  113. </view>
  114. <view class="list-buttom primary" @click="alertDetailOpen(item)">
  115. {{$t('enter.u18')}}
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="chz flex" @click="nav('/pages/user/money/recharge')">
  121. <view>
  122. <view class="yue padding-b-10">{{$t('enter.u15')}}</view>
  123. <view class="yes">{{userWallet}}U</view>
  124. </view>
  125. <view class="flex-start">
  126. <view class="quc">{{$t('enter.u16')}}</view>
  127. <image class="choz" src="../../static/icon/jt.png" mode="scaleToFill"></image>
  128. </view>
  129. </view>
  130. <uni-popup type="bottom" ref="popup" :mask-click="false" @maskClick='colsePayPassword'>
  131. <inputPassword @commit='KeyInfo'></inputPassword>
  132. </uni-popup>
  133. <uni-popup type="center" ref="popupDetail">
  134. <view class="alert-detail">
  135. <view class="padding-c-30 padding-t-30 padding-b-30">
  136. <view class="flex">
  137. <view class="type">
  138. {{$t('gameList.a5')}}
  139. </view>
  140. <view class="num">
  141. {{getTime(alertDetail.ts)}}
  142. </view>
  143. </view>
  144. <view class="flex">
  145. <view class="type">
  146. open
  147. </view>
  148. <view class="num">
  149. {{alertDetail.o*1}}
  150. </view>
  151. </view>
  152. <view class="flex">
  153. <view class="type">
  154. close
  155. </view>
  156. <view class="num">
  157. {{alertDetail.c*1}}
  158. </view>
  159. </view>
  160. <view class="flex">
  161. <view class="type">
  162. lowest
  163. </view>
  164. <view class="num">
  165. {{alertDetail.l*1}}
  166. </view>
  167. </view>
  168. <view class="flex">
  169. <view class="type">
  170. highest
  171. </view>
  172. <view class="num">
  173. {{alertDetail.h*1}}
  174. </view>
  175. </view>
  176. </view>
  177. <button class="button" type="default" @click="$refs.popupDetail.close()"><text
  178. class="button-text">关闭</text></button>
  179. </view>
  180. </uni-popup>
  181. <taber tab='entertainment' v-if="!upOnBtnData.show"></taber>
  182. </view>
  183. </template>
  184. <script>
  185. import * as echarts from '@/uni_modules/lime-echart/static/echarts.min'
  186. import {
  187. getGame,
  188. gameKline,
  189. getGameList,
  190. gameWallet,
  191. gameBetList,
  192. gameBetIn
  193. } from "@/api/game.js";
  194. import {
  195. mapState,
  196. mapMutations
  197. } from 'vuex';
  198. import {
  199. saveUrl,
  200. interceptor
  201. } from '@/utils/loginUtils.js';
  202. import taber from "@/components/footer/footer.vue";
  203. import {
  204. getTime
  205. } from '@/utils/rocessor.js';
  206. import inputPassword from "@/components/input-password/input-password.vue";
  207. export default {
  208. components: {
  209. taber,
  210. inputPassword
  211. },
  212. computed: {
  213. ...mapState("user", ["hasLogin"]),
  214. },
  215. data() {
  216. return {
  217. arMoneyList: [
  218. 1, 5, 10, 20, 50, 100
  219. ],
  220. actionIndex: 0,
  221. // 当前游戏列表
  222. gameList: [],
  223. // 游戏信息
  224. history: {
  225. list: [], //游戏进行记录
  226. page: 1,
  227. limit: 10,
  228. // 基础数据
  229. base: {},
  230. next: "",
  231. now: {}
  232. },
  233. time: {
  234. H: 0,
  235. M: 0,
  236. S: 0,
  237. // 保存倒计时对象
  238. t: ''
  239. },
  240. // 游戏押注记录
  241. betList: {
  242. list: [], //游戏进行记录
  243. page: 1,
  244. limit: 10,
  245. },
  246. userWallet: 0,
  247. // 当前最新K线数据
  248. KlineList: {
  249. c: ''
  250. },
  251. upOnBtnData: {
  252. // 是否显示底部导航栏
  253. show: false,
  254. type: '',
  255. // 当前输入的密码
  256. passwordArr: '',
  257. value: '',
  258. },
  259. // 弹窗数据像晴
  260. alertDetail: {
  261. },
  262. // 保存获取下次游戏对象
  263. getNextTimeObj: ''
  264. };
  265. },
  266. onLoad() {},
  267. onShow() {
  268. if (!this.hasLogin) {
  269. uni.showModal({
  270. title: this.$t('enter.c4'),
  271. content: this.$t('enter.b5'),
  272. success: (e) => {
  273. // 判断是否点击确认按钮
  274. if (e.confirm) {
  275. // 保存当前页面地址
  276. saveUrl()
  277. // 跳转页面
  278. interceptor()
  279. }
  280. }
  281. })
  282. return
  283. }
  284. this.getUserWallet();
  285. this.gameInit();
  286. },
  287. // 关闭循环
  288. onHide() {
  289. // 倒计时清理
  290. this.initData();
  291. },
  292. methods: {
  293. getTime,
  294. // 弹窗详情
  295. alertDetailOpen(item) {
  296. console.log(item);
  297. this.alertDetail = item.room.result_info;
  298. this.$refs.popupDetail.open();
  299. },
  300. // 倒计时清理
  301. initData() {
  302. const that = this
  303. // 关闭倒计时
  304. clearInterval(that.getNextTimeObj);
  305. clearInterval(that.time.t);
  306. // 清空倒计时对象
  307. that.getNextTimeObj = '';
  308. this.time = {
  309. H: 0,
  310. M: 0,
  311. S: 0,
  312. t: ''
  313. };
  314. },
  315. // 点击触发支付事件
  316. onPayBet(type) {
  317. if (!this.upOnBtnData.value) {
  318. uni.showToast({
  319. title: this.$t('enter.a9'),
  320. icon: "error"
  321. })
  322. return
  323. }
  324. if (!this.history.next) {
  325. uni.showModal({
  326. title: this.$t('enter.c4'),
  327. content: "活动未开启,请等待活动开启",
  328. showCancel: false,
  329. });
  330. return
  331. }
  332. this.upOnBtnData.type = type;
  333. this.openPayPassword();
  334. },
  335. // 打开支付弹窗
  336. openPayPassword() {
  337. this.upOnBtnData.show = true;
  338. this.$refs.popup.open();
  339. },
  340. // 关闭支付弹窗
  341. colsePayPassword() {
  342. this.upOnBtnData.show = false;
  343. this.$refs.popup.close();
  344. },
  345. // 密码输入完成后调用下注
  346. KeyInfo(val) {
  347. this.upOnBtnData.passwordArr = val;
  348. this.colsePayPassword();
  349. this.gameBetIn();
  350. },
  351. // 参与压住
  352. gameBetIn(type) {
  353. const that = this;
  354. const upData = {
  355. id: that.history.next.id,
  356. bet: that.upOnBtnData.type,
  357. num: that.upOnBtnData.value,
  358. trade_password: that.upOnBtnData.passwordArr
  359. };
  360. uni.showLoading({
  361. mask: true
  362. })
  363. that.upOnBtnData.value = '';
  364. gameBetIn(upData).then((res) => {
  365. uni.hideLoading()
  366. uni.showToast({
  367. title: res.msg
  368. });
  369. that.gameBetList();
  370. }).catch((res) => {
  371. uni.hideLoading();
  372. uni.showToast({
  373. title: res.msg
  374. });
  375. })
  376. },
  377. // 获取用户余额信息
  378. getUserWallet() {
  379. gameWallet().then((res) => {
  380. this.userWallet = +res.data.back.USDT.money.money
  381. })
  382. },
  383. // 开始倒计时
  384. async opTiem() {
  385. const that = this;
  386. try {
  387. // 判斷是否有游戲信息并且有正在進行中游戏
  388. if (that.history.base.id && that.history.next) {
  389. console.log(that.history.base.id, that.history.next,
  390. 'that.history.base.id && that.history.next');
  391. that.time.t = setInterval(() => {
  392. that.getOutTime();
  393. }, 1000)
  394. }
  395. } catch (e) {
  396. console.log(e, '定时');
  397. }
  398. },
  399. // 获取倒计时时间
  400. getOutTime() {
  401. const that = this;
  402. const da = (new Date()).getTime();
  403. const timenum = that.history.next.open_time * 1000 - da;
  404. // console.log(timenum, that.history.next.open_time, da, '计算');
  405. if (timenum > 0) {
  406. that.time.H = Math.floor(timenum / 1000 / 60 / 60);
  407. that.time.S = Math.floor(timenum / 1000 % 60)
  408. that.time.M = Math.floor(timenum / 1000 / 60 % 60);
  409. }
  410. if (that.time.H == 0 && that.time.M == 0 && that.time.S == 0) {
  411. console.log('归0');
  412. clearInterval(that.time.t);
  413. // 延时调用防止数据重复加载
  414. setTimeout(() => {
  415. that.getGame(that.history.base.id)
  416. that.getGameKline();
  417. }, 2000)
  418. }
  419. },
  420. // 游戏tab切换
  421. changeTab(item, ind) {
  422. const that = this;
  423. if (ind != this.actionIndex) {
  424. that.actionIndex = ind;
  425. // 清理倒计时
  426. that.initData();
  427. // 重新加载数据
  428. that.gameDataInit(item.id);
  429. }
  430. },
  431. // 初始化
  432. async gameInit() {
  433. // 获取游戏列表
  434. await this.getGameList();
  435. // 加载游戏数据
  436. this.gameDataInit(this.history.base.id || this.gameList[0].id)
  437. },
  438. // 加载游戏列表
  439. getGameList() {
  440. return getGameList().then((res) => {
  441. this.gameList = res.data.list;
  442. // console.log('1111111111',this.gameList);
  443. })
  444. },
  445. // 重新加载基础游戏信息
  446. async gameDataInit(id, reload = true) {
  447. // 获取基础信息
  448. await this.getGame(id);
  449. //获取K线
  450. this.getGameKline(reload);
  451. // 获取游戏压住记录
  452. this.gameBetList();
  453. },
  454. // 获取游戏压住记录
  455. gameBetList() {
  456. gameBetList({
  457. page: 1,
  458. limit: 10,
  459. id: this.history.base.id,
  460. }).then((res) => {
  461. this.betList.list = res.data.bet_log;
  462. })
  463. },
  464. // 获取游戏K线信息
  465. getGameKline(reload = true) {
  466. const that = this;
  467. gameKline({
  468. page: 1,
  469. limit: 60
  470. }, that.history.base.id).then((res) => {
  471. that.KlineList = res.data.list[0];
  472. let list = res.data.list.reverse();
  473. // x轴记录
  474. let xarr = [];
  475. // 打点数据
  476. let linearr = [];
  477. for (let i = 0; i < list.length; i++) {
  478. const ll = list[i];
  479. const time = new Date(+ll.ts);
  480. const addar = [+(+ll.o).toFixed(5), +(+ll.c).toFixed(5), +(+ll.l).toFixed(5), +(+ll.h)
  481. .toFixed(5)
  482. ];
  483. xarr.push(`${time.getHours()}:${time.getMinutes()}`)
  484. linearr.push(addar)
  485. }
  486. that.$nextTick(() => {
  487. // 判断是否要重载数据
  488. that.initKline({
  489. xarr,
  490. linearr
  491. }, reload)
  492. })
  493. })
  494. },
  495. // 获取当前项目信息
  496. getGame(id) {
  497. const that = this;
  498. return getGame({
  499. page: that.history.page,
  500. limit: that.history.limit
  501. }, id).then(({
  502. data
  503. }) => {
  504. that.history.list = data.list || [];
  505. that.history.base = data.game || {};
  506. that.history.next = data.next_game || '';
  507. that.history.now = data.now_game || '';
  508. // 是否不存在启动中的活动并判断防止重复调用创建倒计时
  509. if (!that.history.next && !that.getNextTimeObj) {
  510. that.getNextTimeObj = setInterval(() => {
  511. that.getGame(id)
  512. }, 1000)
  513. return
  514. }
  515. if (that.history.next && that.getNextTimeObj) {
  516. clearInterval(that.getNextTimeObj);
  517. // 清空倒计时对象
  518. that.getNextTimeObj = '';
  519. }
  520. // 判断是否有活动并且正在进行中
  521. if (that.history.next && !that.getNextTimeObj) {
  522. that.opTiem();
  523. }
  524. })
  525. },
  526. // 均值计算
  527. calculateMA(dayCount, data) {
  528. var result = [];
  529. for (var i = 0, len = data.linearr.length; i < len; i++) {
  530. if (i < dayCount) {
  531. result.push('-');
  532. continue;
  533. }
  534. var sum = 0;
  535. for (var j = 0; j < dayCount; j++) {
  536. sum += data.linearr[i - j][1];
  537. }
  538. result.push(+(sum / dayCount).toFixed(5));
  539. }
  540. return result;
  541. },
  542. // 重载K线
  543. async initKline(data, reload = true) {
  544. const that = this;
  545. try {
  546. const chart = await this.$refs.chart.init(echarts);
  547. if (reload) {
  548. const upColor = '#00da3c';
  549. const downColor = '#ec0000';
  550. chart.setOption(
  551. (this.option = {
  552. animation: false,
  553. legend: {
  554. top: 10,
  555. left: 10,
  556. data: ['MA5', 'MA10', 'MA20'],
  557. textStyle: {
  558. color: '#999999'
  559. }
  560. },
  561. tooltip: {
  562. trigger: 'axis',
  563. axisPointer: {
  564. type: 'cross'
  565. },
  566. borderWidth: 1,
  567. borderColor: '#ccc',
  568. padding: 10,
  569. textStyle: {
  570. color: '#000'
  571. },
  572. position: function(pos, params, el, elRect, size) {
  573. const obj = {
  574. top: 10
  575. };
  576. obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 40;
  577. return obj;
  578. }
  579. },
  580. dataZoom: [{
  581. type: 'inside',
  582. xAxisIndex: 0,
  583. start: 50,
  584. end: 100
  585. }],
  586. grid: [{
  587. left: 10,
  588. right: 55,
  589. bottom: 20,
  590. top: 45
  591. }],
  592. xAxis: [{
  593. type: 'category',
  594. data: data.xarr,
  595. axisLine: {
  596. onZero: false
  597. },
  598. splitLine: {
  599. show: false
  600. },
  601. min: 'dataMin',
  602. max: 'dataMax',
  603. axisPointer: {
  604. z: 100
  605. }
  606. }],
  607. yAxis: [{
  608. scale: true,
  609. splitNumber: 4,
  610. position: 'right',
  611. axisTick: {
  612. show: false
  613. },
  614. splitLine: {
  615. show: false,
  616. lineStyle: {
  617. color: '#e3e3e3'
  618. }
  619. },
  620. axisLabel: {
  621. inside: false,
  622. formatter: '{value}\n',
  623. color: '#999999'
  624. }
  625. }],
  626. series: [{
  627. name: that.history.base.token + '-USDT',
  628. type: 'candlestick',
  629. data: data.linearr,
  630. itemStyle: {
  631. color: upColor,
  632. color0: downColor,
  633. borderColor: undefined,
  634. borderColor0: undefined
  635. }
  636. },
  637. {
  638. name: "MA5",
  639. smooth: true,
  640. type: 'line',
  641. data: that.calculateMA(5, data),
  642. showSymbol: false,
  643. lineStyle: {
  644. width: 1
  645. }
  646. },
  647. {
  648. name: "MA10",
  649. smooth: true,
  650. type: 'line',
  651. data: that.calculateMA(10, data),
  652. showSymbol: false,
  653. lineStyle: {
  654. width: 1
  655. }
  656. },
  657. {
  658. name: "MA20",
  659. smooth: true,
  660. type: 'line',
  661. data: that.calculateMA(20, data),
  662. showSymbol: false,
  663. lineStyle: {
  664. width: 1
  665. }
  666. },
  667. ]
  668. }),
  669. true
  670. )
  671. } else {
  672. chart.setOption({
  673. xAxis: [{
  674. type: 'category',
  675. data: data.xarr,
  676. }],
  677. series: [{
  678. name: that.history.base.token + '-USDT',
  679. data: data.linearr,
  680. },
  681. {
  682. name: "MA5",
  683. data: that.calculateMA(5, data),
  684. },
  685. {
  686. name: "MA10",
  687. data: that.calculateMA(10, data),
  688. },
  689. {
  690. name: "MA20",
  691. data: that.calculateMA(20, data),
  692. },
  693. ]
  694. })
  695. }
  696. } catch (e) {
  697. console.log(e, 'cuowu');
  698. //TODO handle the exception
  699. }
  700. },
  701. // 页面跳转
  702. nav(url) {
  703. console.log('tz');
  704. if (!this.hasLogin) {
  705. uni.showModal({
  706. title: this.$t('enter.c4'),
  707. content: this.$t('enter.b5'),
  708. success: (e) => {
  709. // 判断是否点击确认按钮
  710. if (e.confirm) {
  711. // 保存当前页面地址
  712. saveUrl()
  713. // 跳转页面
  714. interceptor()
  715. }
  716. }
  717. })
  718. return
  719. }
  720. uni.navigateTo({
  721. url,
  722. fail(err) {
  723. console.log(err);
  724. }
  725. });
  726. },
  727. },
  728. };
  729. </script>
  730. <style lang="scss">
  731. .all {
  732. width: 750rpx;
  733. /* height: 2500rpx; */
  734. height: 100%;
  735. padding-top: var(--status-bar-height);
  736. padding-bottom: 30rpx;
  737. }
  738. .tab {
  739. padding: 30rpx 20rpx;
  740. margin: 0 30rpx;
  741. background-color: #191A1F;
  742. border-radius: 20px;
  743. .tab-item {
  744. color: #FFF;
  745. font-size: $font-sm;
  746. padding: 0 20rpx;
  747. padding-bottom: 10rpx;
  748. &.action {
  749. color: #F5A944;
  750. border-bottom: 1px solid #F5A944;
  751. }
  752. }
  753. .top {
  754. height: 530rpx;
  755. width: 100%;
  756. }
  757. }
  758. .center {
  759. padding: 30rpx;
  760. line-height: 1;
  761. align-items: flex-start;
  762. .le,
  763. .ri {
  764. width: 50%;
  765. }
  766. .le {
  767. .tit {
  768. font-weight: bold;
  769. .ti1 {
  770. font-size: 26rpx;
  771. color: #ffffff;
  772. }
  773. .ti2 {
  774. font-size: 22rpx;
  775. padding-left: 10rpx;
  776. color: #999999;
  777. }
  778. }
  779. .he {
  780. padding-top: 40rpx;
  781. .numbox {
  782. flex-wrap: wrap;
  783. .he1 {
  784. background: #fdaf41;
  785. border-radius: 10rpx;
  786. margin-bottom: 40rpx;
  787. margin-right: 20rpx;
  788. width: 84rpx;
  789. height: 84rpx;
  790. justify-content: center;
  791. .wen {
  792. font-size: 30rpx;
  793. font-weight: bold;
  794. color: #000000;
  795. }
  796. }
  797. }
  798. }
  799. .yi {
  800. color: #ffffff;
  801. font-size: $font-base;
  802. .img {
  803. width: 41rpx;
  804. height: 42rpx;
  805. }
  806. .wz {
  807. font-weight: bold;
  808. }
  809. }
  810. .shu {
  811. padding-top: 10rpx;
  812. font-size: 51rpx;
  813. font-weight: bold;
  814. color: #fdb242;
  815. }
  816. }
  817. .ri {
  818. .ti {
  819. font-size: 26rpx;
  820. font-weight: bold;
  821. .t1 {
  822. color: #ffffff;
  823. }
  824. .t2 {
  825. color: #fdaf41;
  826. }
  827. }
  828. .dh {
  829. width: 100%;
  830. padding: 20rpx 30rpx;
  831. margin-top: 30rpx;
  832. background: #efefef;
  833. border-radius: 10rpx;
  834. .te {
  835. font-size: 44rpx;
  836. font-weight: 800;
  837. color: #000000;
  838. }
  839. }
  840. .btn {
  841. padding-top: 30rpx;
  842. .bt {
  843. padding-bottom: 10rpx;
  844. .btnItem {
  845. width: 49%;
  846. height: 70rpx;
  847. line-height: 70rpx;
  848. text-align: center;
  849. .imag {
  850. width: 32rpx;
  851. height: 20rpx;
  852. }
  853. .xia {
  854. font-size: 28rpx;
  855. font-weight: 800;
  856. color: #ffffff;
  857. }
  858. }
  859. .btnle {
  860. border-radius: 50rpx 0 0 50rpx;
  861. background-color: #df5660;
  862. }
  863. .btnri {
  864. border-radius: 0 50rpx 50rpx 0;
  865. background-color: #5bb786;
  866. }
  867. }
  868. }
  869. .db {
  870. justify-content: flex-end;
  871. padding-top: 30rpx;
  872. .jl {
  873. font-size: 24rpx;
  874. font-weight: 400;
  875. color: #999999;
  876. }
  877. .sj {
  878. width: 40rpx;
  879. height: 40rpx;
  880. background: #bfbfbf;
  881. border-radius: 3rpx;
  882. text-align: center;
  883. line-height: 40rpx;
  884. margin-left: 10rpx;
  885. }
  886. }
  887. }
  888. }
  889. .kb {
  890. width: 750rpx;
  891. height: 20rpx;
  892. background-color: #191a1f;
  893. }
  894. .last {
  895. padding: 30rpx;
  896. line-height: 1;
  897. font-size: 24rpx;
  898. font-weight: 800;
  899. color: #fff;
  900. .lb {
  901. width: 14rpx;
  902. height: 20rpx;
  903. margin-left: 10rpx;
  904. }
  905. }
  906. .bg {
  907. padding: 0 30rpx;
  908. background-color: #000000;
  909. color: #fff;
  910. text-align: center;
  911. font-size: 28rpx;
  912. padding-bottom: 30rpx;
  913. .biaotou {
  914. font-weight: 800;
  915. padding-bottom: 10rpx;
  916. }
  917. .biwe {
  918. width: 25%;
  919. .zz {
  920. width: 22rpx;
  921. height: 14rpx;
  922. margin-left: 8rpx;
  923. }
  924. .nametip {
  925. font-size: 18rpx;
  926. color: #999999;
  927. padding-left: 8rpx;
  928. &.green {
  929. color: #5bb786;
  930. }
  931. &.red {
  932. color: #df5660;
  933. }
  934. }
  935. }
  936. .biwe:nth-child(1) {
  937. flex-shrink: 0;
  938. text-align: left;
  939. align-items: flex-end;
  940. }
  941. .biwe:nth-child(4) {
  942. flex-shrink: 0;
  943. width: 200rpx;
  944. }
  945. .list {
  946. font-weight: bold;
  947. padding: 20rpx 0;
  948. border-bottom: 1px solid rgba(43, 42, 38, 0.52);
  949. }
  950. .list-buttom {
  951. width: 100rpx;
  952. border-radius: 30rpx;
  953. font-size: 16rpx;
  954. padding: 10rpx 0;
  955. &.success {
  956. background: #25b287;
  957. }
  958. &.primary {
  959. background: #01ebf6;
  960. color: #000000;
  961. }
  962. }
  963. }
  964. .chz {
  965. background: #191a1f;
  966. border-radius: 20rpx;
  967. margin: 0 30rpx;
  968. color: #ffffff;
  969. font-weight: bold;
  970. padding: 20rpx 30rpx;
  971. .yue {
  972. font-size: 28rpx;
  973. }
  974. .yes {
  975. color: #fdaf41;
  976. }
  977. .quc {
  978. font-size: 26rpx;
  979. font-weight: 500;
  980. color: #ffffff;
  981. }
  982. .choz {
  983. width: 22rpx;
  984. height: 14rpx;
  985. }
  986. }
  987. .alert-detail {
  988. background-color: #FFF;
  989. border-radius: 10rpx;
  990. width: 500rpx;
  991. .flex {
  992. padding: 10rpx 0;
  993. }
  994. }
  995. </style>