entertainment.vue 20 KB

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