entertainment.vue 21 KB

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