entertainment.vue 22 KB

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