entertainment.vue 23 KB

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