entertainment.vue 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  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. // console.log('1111111111',this.gameList);
  375. })
  376. },
  377. // 重新加载基础游戏信息
  378. async gameDataInit(id, reload = true) {
  379. // 获取基础信息
  380. await this.getGame(id);
  381. //获取K线
  382. this.getGameKline(reload);
  383. // 获取游戏压住记录
  384. this.gameBetList();
  385. },
  386. // 获取游戏压住记录
  387. gameBetList() {
  388. gameBetList({
  389. page: 1,
  390. limit: 10,
  391. id: this.history.base.id,
  392. }).then((res) => {
  393. this.betList.list = res.data.bet_log;
  394. console.log('aaa',this.betList.list );
  395. })
  396. },
  397. // 获取游戏K线信息
  398. getGameKline(reload = true) {
  399. const that = this;
  400. gameKline({
  401. page: 1,
  402. limit: 60
  403. }, that.history.base.id).then((res) => {
  404. let list = res.data.list.reverse();
  405. // x轴记录
  406. let xarr = [];
  407. // 打点数据
  408. let linearr = [];
  409. for (let i = 0; i < list.length; i++) {
  410. const ll = list[i];
  411. const time = new Date(+ll.ts);
  412. const addar = [+(+ll.o).toFixed(5), +(+ll.c).toFixed(5), +(+ll.l).toFixed(5), +(+ll.h)
  413. .toFixed(5)
  414. ];
  415. xarr.push(`${time.getHours()}:${time.getMinutes()}`)
  416. linearr.push(addar)
  417. }
  418. that.$nextTick(() => {
  419. // 判断是否要重载数据
  420. that.initKline({
  421. xarr,
  422. linearr
  423. }, reload)
  424. })
  425. })
  426. },
  427. // 获取当前项目信息
  428. getGame(type) {
  429. const that = this;
  430. return getGame({
  431. page: that.history.page,
  432. limit: that.history.limit
  433. }, type).then(({
  434. data
  435. }) => {
  436. that.history.list = data.list || [];
  437. that.history.base = data.game || {};
  438. that.history.next = data.next_game || {};
  439. that.history.now = data.now_game || {};
  440. if (that.history.next) {
  441. that.opTiem();
  442. }
  443. })
  444. },
  445. // 均值计算
  446. calculateMA(dayCount, data) {
  447. var result = [];
  448. for (var i = 0, len = data.linearr.length; i < len; i++) {
  449. if (i < dayCount) {
  450. result.push('-');
  451. continue;
  452. }
  453. var sum = 0;
  454. for (var j = 0; j < dayCount; j++) {
  455. sum += data.linearr[i - j][1];
  456. }
  457. result.push(+(sum / dayCount).toFixed(5));
  458. }
  459. return result;
  460. },
  461. // 重载K线
  462. async initKline(data, reload = true) {
  463. const that = this;
  464. try {
  465. const chart = await this.$refs.chart.init(echarts);
  466. if (reload) {
  467. const upColor = '#00da3c';
  468. const downColor = '#ec0000';
  469. chart.setOption(
  470. (this.option = {
  471. animation: false,
  472. legend: {
  473. top: 10,
  474. left: 10,
  475. data: ['MA5', 'MA10', 'MA20'],
  476. textStyle: {
  477. color: '#999999'
  478. }
  479. },
  480. tooltip: {
  481. trigger: 'axis',
  482. axisPointer: {
  483. type: 'cross'
  484. },
  485. borderWidth: 1,
  486. borderColor: '#ccc',
  487. padding: 10,
  488. textStyle: {
  489. color: '#000'
  490. },
  491. position: function(pos, params, el, elRect, size) {
  492. const obj = {
  493. top: 10
  494. };
  495. obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 40;
  496. return obj;
  497. }
  498. },
  499. dataZoom: [{
  500. type: 'inside',
  501. xAxisIndex: 0,
  502. start: 50,
  503. end: 100
  504. }],
  505. grid: [{
  506. left: 10,
  507. right: 55,
  508. bottom: 20,
  509. top: 45
  510. }],
  511. xAxis: [{
  512. type: 'category',
  513. data: data.xarr,
  514. axisLine: {
  515. onZero: false
  516. },
  517. splitLine: {
  518. show: false
  519. },
  520. min: 'dataMin',
  521. max: 'dataMax',
  522. axisPointer: {
  523. z: 100
  524. }
  525. }],
  526. yAxis: [{
  527. scale: true,
  528. splitNumber: 4,
  529. position: 'right',
  530. axisTick: {
  531. show: false
  532. },
  533. splitLine: {
  534. show: false,
  535. lineStyle: {
  536. color: '#e3e3e3'
  537. }
  538. },
  539. axisLabel: {
  540. inside: false,
  541. formatter: '{value}\n',
  542. color: '#999999'
  543. }
  544. }],
  545. series: [{
  546. name: that.history.base.token + '-USDT',
  547. type: 'candlestick',
  548. data: data.linearr,
  549. itemStyle: {
  550. color: upColor,
  551. color0: downColor,
  552. borderColor: undefined,
  553. borderColor0: undefined
  554. }
  555. },
  556. {
  557. name: "MA5",
  558. smooth: true,
  559. type: 'line',
  560. data: that.calculateMA(5, data),
  561. showSymbol: false,
  562. lineStyle: {
  563. width: 1
  564. }
  565. },
  566. {
  567. name: "MA10",
  568. smooth: true,
  569. type: 'line',
  570. data: that.calculateMA(10, data),
  571. showSymbol: false,
  572. lineStyle: {
  573. width: 1
  574. }
  575. },
  576. {
  577. name: "MA20",
  578. smooth: true,
  579. type: 'line',
  580. data: that.calculateMA(20, data),
  581. showSymbol: false,
  582. lineStyle: {
  583. width: 1
  584. }
  585. },
  586. ]
  587. }),
  588. true
  589. )
  590. } else {
  591. chart.setOption({
  592. xAxis: [{
  593. type: 'category',
  594. data: data.xarr,
  595. }],
  596. series: [{
  597. name: that.history.base.token + '-USDT',
  598. data: data.linearr,
  599. },
  600. {
  601. name: "MA5",
  602. data: that.calculateMA(5, data),
  603. },
  604. {
  605. name: "MA10",
  606. data: that.calculateMA(10, data),
  607. },
  608. {
  609. name: "MA20",
  610. data: that.calculateMA(20, data),
  611. },
  612. ]
  613. })
  614. }
  615. } catch (e) {
  616. console.log(e, 'cuowu');
  617. //TODO handle the exception
  618. }
  619. },
  620. // 页面逻辑
  621. nav() {
  622. uni.navigateTo({
  623. url: "/pages/history/history",
  624. });
  625. },
  626. navC() {
  627. uni.navigateTo({
  628. url: "/pages/recharge/recharge",
  629. });
  630. },
  631. },
  632. };
  633. </script>
  634. <style lang="scss">
  635. .all {
  636. width: 750rpx;
  637. /* height: 2500rpx; */
  638. height: 100%;
  639. padding-top: var(--status-bar-height);
  640. padding-bottom: 30rpx;
  641. }
  642. $base: orangered; // 基础颜色
  643. .page {
  644. width: 100%;
  645. background-color: #FFFFFF;
  646. .pay-title {
  647. display: flex;
  648. align-items: center;
  649. justify-content: center;
  650. width: 100%;
  651. height: 200rpx;
  652. text {
  653. font-size: 28rpx;
  654. color: #555555;
  655. }
  656. }
  657. .pay-password {
  658. display: flex;
  659. align-items: center;
  660. width: 90%;
  661. height: 80rpx;
  662. margin: 20rpx auto;
  663. border: 2rpx solid $base;
  664. .list {
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. width: 16.666%;
  669. height: 100%;
  670. border-right: 2rpx solid #EEEEEE;
  671. text {
  672. font-size: 32rpx;
  673. }
  674. }
  675. .list:nth-child(6) {
  676. border-right: none;
  677. }
  678. }
  679. .hint {
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. width: 100%;
  684. height: 100rpx;
  685. text {
  686. font-size: 28rpx;
  687. color: $base;
  688. }
  689. }
  690. }
  691. .tab {
  692. padding: 30rpx 20rpx;
  693. margin: 0 30rpx;
  694. background-color: #191A1F;
  695. border-radius: 20px;
  696. .tab-item {
  697. color: #FFF;
  698. font-size: $font-sm;
  699. padding: 0 20rpx;
  700. padding-bottom: 10rpx;
  701. &.action {
  702. color: #F5A944;
  703. border-bottom: 1px solid #F5A944;
  704. }
  705. }
  706. .top {
  707. height: 530rpx;
  708. width: 100%;
  709. }
  710. }
  711. .center {
  712. padding: 30rpx;
  713. line-height: 1;
  714. align-items: flex-start;
  715. .le,
  716. .ri {
  717. width: 50%;
  718. }
  719. .le {
  720. .tit {
  721. font-weight: bold;
  722. .ti1 {
  723. font-size: 26rpx;
  724. color: #ffffff;
  725. }
  726. .ti2 {
  727. font-size: 22rpx;
  728. padding-left: 10rpx;
  729. color: #999999;
  730. }
  731. }
  732. .he {
  733. padding-top: 40rpx;
  734. .numbox {
  735. flex-wrap: wrap;
  736. .he1 {
  737. background: #fdaf41;
  738. border-radius: 10rpx;
  739. margin-bottom: 40rpx;
  740. margin-right: 20rpx;
  741. width: 84rpx;
  742. height: 84rpx;
  743. justify-content: center;
  744. .wen {
  745. font-size: 30rpx;
  746. font-weight: bold;
  747. color: #000000;
  748. }
  749. }
  750. }
  751. }
  752. .yi {
  753. color: #ffffff;
  754. font-size: $font-base;
  755. .img {
  756. width: 41rpx;
  757. height: 42rpx;
  758. }
  759. .wz {
  760. font-weight: bold;
  761. }
  762. }
  763. .shu {
  764. padding-top: 10rpx;
  765. font-size: 51rpx;
  766. font-weight: bold;
  767. color: #fdb242;
  768. }
  769. }
  770. .ri {
  771. .ti {
  772. font-size: 26rpx;
  773. font-weight: bold;
  774. .t1 {
  775. color: #ffffff;
  776. }
  777. .t2 {
  778. color: #fdaf41;
  779. }
  780. }
  781. .dh {
  782. width: 100%;
  783. padding: 20rpx 30rpx;
  784. margin-top: 30rpx;
  785. background: #efefef;
  786. border-radius: 10rpx;
  787. .te {
  788. font-size: 44rpx;
  789. font-weight: 800;
  790. color: #000000;
  791. }
  792. }
  793. .btn {
  794. padding-top: 30rpx;
  795. .bt {
  796. padding-bottom: 10rpx;
  797. .btnItem {
  798. width: 49%;
  799. height: 70rpx;
  800. line-height: 70rpx;
  801. text-align: center;
  802. .imag {
  803. width: 32rpx;
  804. height: 20rpx;
  805. }
  806. .xia {
  807. font-size: 28rpx;
  808. font-weight: 800;
  809. color: #ffffff;
  810. }
  811. }
  812. .btnle {
  813. border-radius: 50rpx 0 0 50rpx;
  814. background-color: #df5660;
  815. }
  816. .btnri {
  817. border-radius: 0 50rpx 50rpx 0;
  818. background-color: #5bb786;
  819. }
  820. }
  821. }
  822. .db {
  823. justify-content: flex-end;
  824. padding-top: 30rpx;
  825. .jl {
  826. font-size: 24rpx;
  827. font-weight: 400;
  828. color: #999999;
  829. }
  830. .sj {
  831. width: 40rpx;
  832. height: 40rpx;
  833. background: #bfbfbf;
  834. border-radius: 3rpx;
  835. text-align: center;
  836. line-height: 40rpx;
  837. margin-left: 10rpx;
  838. }
  839. }
  840. }
  841. }
  842. .kb {
  843. width: 750rpx;
  844. height: 20rpx;
  845. background-color: #191a1f;
  846. }
  847. .last {
  848. padding: 30rpx;
  849. line-height: 1;
  850. font-size: 24rpx;
  851. font-weight: 800;
  852. color: #fff;
  853. .lb {
  854. width: 14rpx;
  855. height: 20rpx;
  856. margin-left: 10rpx;
  857. }
  858. }
  859. .bg {
  860. padding: 0 30rpx;
  861. background-color: #000000;
  862. color: #fff;
  863. text-align: center;
  864. font-size: 28rpx;
  865. padding-bottom: 30rpx;
  866. .biaotou {
  867. font-weight: 800;
  868. padding-bottom: 10rpx;
  869. }
  870. .biwe {
  871. width: 25%;
  872. .zz {
  873. width: 22rpx;
  874. height: 14rpx;
  875. margin-left: 8rpx;
  876. }
  877. .nametip {
  878. font-size: 18rpx;
  879. color: #999999;
  880. padding-left: 8rpx;
  881. }
  882. }
  883. .biwe:nth-child(1) {
  884. flex-shrink: 0;
  885. text-align: left;
  886. align-items: flex-end;
  887. }
  888. .biwe:nth-child(4) {
  889. flex-shrink: 0;
  890. width: 200rpx;
  891. }
  892. .list {
  893. font-weight: bold;
  894. padding: 20rpx 0;
  895. border-bottom: 1px solid rgba(43, 42, 38, 0.52);
  896. }
  897. .list-buttom {
  898. width: 100rpx;
  899. border-radius: 30rpx;
  900. font-size: 16rpx;
  901. padding: 10rpx 0;
  902. &.success {
  903. background: #25b287;
  904. }
  905. &.primary {
  906. background: #01ebf6;
  907. color: #000000;
  908. }
  909. }
  910. }
  911. .chz {
  912. background: #191a1f;
  913. border-radius: 20rpx;
  914. margin: 0 30rpx;
  915. color: #ffffff;
  916. font-weight: bold;
  917. padding: 20rpx 30rpx;
  918. .yue {
  919. font-size: 28rpx;
  920. }
  921. .yes {
  922. color: #fdaf41;
  923. }
  924. .quc {
  925. font-size: 26rpx;
  926. font-weight: 500;
  927. color: #ffffff;
  928. }
  929. .choz {
  930. width: 22rpx;
  931. height: 14rpx;
  932. }
  933. }
  934. </style>