heyue.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. <template>
  2. <view class="content">
  3. <view class="usdtTitle flex">
  4. <view class="left flex">
  5. <image @click="alertShow=true" class="img margin-r-10" src="../../static/icon/hy02.png" mode="widthFix">
  6. </image>
  7. <view class="margin-r-10">
  8. {{listOBj[actionList].name}}
  9. </view>
  10. <view :class="{'font-color-green':listOBj[actionList].bool,'font-color-red':!listOBj[actionList].bool}">
  11. {{listOBj[actionList].dcf}}
  12. </view>
  13. </view>
  14. <view class="right">
  15. <image class="img" src="../../static/icon/hy01.png" mode="widthFix"></image>
  16. </view>
  17. </view>
  18. <view class="box flex padding-t-20 padding-b-30">
  19. <view class="item">
  20. <view class="itemName flex">
  21. <view class="itemMinName">
  22. 当前價格
  23. </view>
  24. <view class="itemMinName">
  25. 開盤價
  26. </view>
  27. <view class="itemMinName">
  28. 最高價
  29. </view>
  30. <view class="itemMinName">
  31. 最低價
  32. </view>
  33. <view class="itemMinName">
  34. 成交數量
  35. </view>
  36. </view>
  37. <view class="itemList">
  38. <view class="list flex font-color-green">
  39. <view class="li top">
  40. {{listOBj[actionList].last}}
  41. </view>
  42. <view class="li top">
  43. {{listOBj[actionList].sodUtc0}}
  44. </view>
  45. <view class="li top">
  46. {{listOBj[actionList].high24h}}
  47. </view>
  48. <view class="li top">
  49. {{listOBj[actionList].low24h}}
  50. </view>
  51. <view class="li top">
  52. {{listOBj[actionList].volCcy24h|actionMoney}}
  53. </view>
  54. </view>
  55. </view>
  56. <view class="itemTitle margin-b-20">
  57. 交易方向
  58. </view>
  59. <view class="buttomBox flex">
  60. <view @click="typeIndex=1" class="buttom " :class="{action:typeIndex==1}">
  61. 上漲
  62. </view>
  63. <view @click="typeIndex=2" class="buttom " :class="{action:typeIndex==2,'bg-danger':typeIndex==2}">
  64. 下跌
  65. </view>
  66. </view>
  67. <view class="tabType flex ">
  68. <view class="tab" @click="jyType=1" :class="{action:jyType==1}">
  69. 限價委託
  70. </view>
  71. <view class="tab" @click="jyType=2" :class="{action:jyType==2}">
  72. 市價委託
  73. </view>
  74. </view>
  75. <view class="inputBox margin-b-20 flex" v-if="jyType==1">
  76. <input v-model="xzMoney" class="input" placeholder="請輸入價格" type="number">
  77. <view @click="xzMoney=listOBj[actionList].last" class="buttomZd font-color-yellow">
  78. 點擊獲取
  79. </view>
  80. </view>
  81. <view class="itemTitle margin-b-20">
  82. 交易個數
  83. </view>
  84. <view class="inputBox flex margin-b-20">
  85. <input v-model="payNum" class="input" placeholder="請輸入交易數量" type="number">
  86. <view class="rightInputBox flex">
  87. <image @click="payNum>0?payNum--:false" class="img" src="../../static/icon/hy04.png"
  88. mode="scaleToFill"></image>
  89. <view class="jg">
  90. </view>
  91. <image @click="payNum++" class="img" src="../../static/icon/hy03.png" mode="scaleToFill">
  92. </image>
  93. </view>
  94. </view>
  95. <view class="itemTitle margin-b-20">
  96. 槓桿倍數
  97. </view>
  98. <view class="itemLeftList flex margin-b-20">
  99. <view class="ll" @click="changeGG(ind,ls)" :class="{action:ind==ggIndex}"
  100. v-for="(ls,ind) in ggList">
  101. {{ls.num}}
  102. </view>
  103. </view>
  104. <view class="inputBox flex margin-b-20">
  105. <input v-model="ggBs" class="input" placeholder="請輸入槓桿倍率" type="number">
  106. </view>
  107. <view class="flex margin-b-20">
  108. <view class="itemTitle">
  109. 止損價
  110. </view>
  111. <view class="inputBox flex">
  112. <input v-model="zsMoney" placeholder="請輸入止損價格" class="input" type="number">
  113. </view>
  114. </view>
  115. <view class="flex margin-b-20">
  116. <view class="itemTitle">
  117. 止盈價
  118. </view>
  119. <view class="inputBox flex">
  120. <input v-model="zyMoney" placeholder="請輸入止盈價格" class="input" type="number">
  121. </view>
  122. </view>
  123. <view class="flex margin-b-20">
  124. <view class="itemTitle">
  125. 保證金
  126. </view>
  127. <view class="itemTitle">
  128. {{bzjMoney}}
  129. </view>
  130. </view>
  131. <view class="flex margin-b-20">
  132. <view class="itemTitle">
  133. 可用合約餘額
  134. </view>
  135. <view class="itemTitle">
  136. {{userInfo.money}}
  137. </view>
  138. </view>
  139. <view class="flex margin-b-20">
  140. <view class="itemTitle">
  141. 手續費
  142. </view>
  143. <view class="itemTitle">
  144. {{sxfMoney}}
  145. </view>
  146. </view>
  147. <view class="buttomSubmit" :class="{'bg-success':typeIndex==1,'bg-danger':typeIndex==2}">
  148. {{typeIndex==1?'做多':'做空'}}
  149. </view>
  150. </view>
  151. </view>
  152. <view class="box margin-t-30 padding-t-30 padding-b-30">
  153. <view class="flex listTitleBox">
  154. <view class="leftBottom flex">
  155. <view @click="ddTypeChage(0)" class="titleType margin-r-30" :class="{action:ddType==0}">
  156. 限價委託
  157. </view>
  158. <view @click="ddTypeChage(1)" class="titleType" :class="{action:ddType==1}">
  159. 持倉
  160. </view>
  161. </view>
  162. <view class="rightBottom flex">
  163. <image class="img" src="../../static/icon/hy02.png" mode="widthFix"></image>
  164. <view class="more">
  165. 全部訂單
  166. </view>
  167. </view>
  168. </view>
  169. <view v-for="(item,ind) in loadData[ddType].list" class="usdtList padding-t-30 padding-b-30">
  170. <view class="flex">
  171. <view class="name">
  172. <text v-if="item.direction==1" class="font-color-green">
  173. 做多
  174. </text>
  175. <text v-if="item.direction==2" class="font-color-red">
  176. 做空
  177. </text>
  178. <text>
  179. BTC/USDT
  180. </text>
  181. <text v-if="ddType==1"
  182. :class="{'font-color-green':item.direction==1,'font-color-red':item.direction==2}">
  183. 0.00
  184. </text>
  185. </view>
  186. <view @click="clearorder(item)" v-if="ddType==0" class="usdtListButtom">
  187. 撤銷
  188. </view>
  189. <view @click="closeorder(item)" v-if="ddType==1" class="usdtListButtom">
  190. 一鍵平倉
  191. </view>
  192. </view>
  193. <view class="tip ">
  194. <text v-if="item.direction==1">
  195. 委託時間:{{item.wttime}}
  196. </text>
  197. <text v-if="item.direction==2">
  198. 開倉時間:{{item.addtime}}
  199. </text>
  200. </view>
  201. <view class="flex">
  202. <view v-if="item.direction==1" class="tipList">
  203. <view class="nameTip">
  204. 限價
  205. </view>
  206. <view class="text">
  207. {{item.wt_price}}
  208. </view>
  209. </view>
  210. <view v-if="item.direction==2" class="tipList">
  211. <view class="nameTip">
  212. 開倉單價
  213. </view>
  214. <view class="text">
  215. {{item.price}}
  216. </view>
  217. </view>
  218. <view class="tipList">
  219. <view class="nameTip">
  220. 保證金
  221. </view>
  222. <view class="text">
  223. {{item.bond}}
  224. </view>
  225. </view>
  226. <view class="tipList">
  227. <view class="nameTip">
  228. 交易個數
  229. </view>
  230. <view class="text">
  231. {{item.num}}
  232. </view>
  233. </view>
  234. <view class="tipList">
  235. <view class="nameTip">
  236. 槓桿倍數
  237. </view>
  238. <view class="text">
  239. {{item.ggan}}
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <view class="alertBox" v-show="alertShow">
  246. <view class="list flex">
  247. <view class="type">
  248. 产品
  249. </view>
  250. <view class="type">
  251. 實時價格
  252. </view>
  253. <view class="type">
  254. 营收
  255. </view>
  256. </view>
  257. <view class="itemlist flex" @click="changeData(ls)" v-for="ls in listOBj">
  258. <view class="type name">
  259. {{ls.name}}
  260. </view>
  261. <view class="type money"
  262. :class="{'font-color-green':ls.bool,'font-color-red':!ls.bool}">
  263. {{ls.last}}
  264. </view>
  265. <view class="type bfb"
  266. :class="{'font-color-green':ls.bool,'font-color-red':!ls.bool}">
  267. {{ls.dcf}}
  268. </view>
  269. </view>
  270. </view>
  271. </view>
  272. </template>
  273. <script>
  274. import { mapState } from 'vuex';
  275. import {
  276. levertadeLaverorder,
  277. closeorder,
  278. clearorder,
  279. UpOrderHandle,
  280. bond
  281. } from '@/api/heyue.js';
  282. import {
  283. scoketNew,
  284. scoketOpen
  285. } from '@/utils/socket.js';
  286. import {
  287. geLevertade
  288. } from '@/api/index.js';
  289. export default {
  290. data() {
  291. return {
  292. // 是否显示弹窗
  293. alertShow: false,
  294. //保存幣種類型
  295. spList: [],
  296. // 右侧允许的最长长度
  297. listLength: 20,
  298. // 当前选中的对象数据列表
  299. actionList: 'BCH-USDT',
  300. // 價格列表
  301. listOBj: {
  302. "BCH-USDT": {}
  303. },
  304. // 当前选中的杠杆倍数
  305. ggIndex: 0,
  306. ggList: [{
  307. num: 5
  308. }, {
  309. num: 10
  310. }, {
  311. num: 20
  312. }, {
  313. num: 50
  314. }, {
  315. num: 100
  316. }],
  317. //当前选中的交易类别
  318. typeIndex: 1,
  319. // 交易类型
  320. jyType: 1,
  321. //交易数量
  322. payNum: 0,
  323. // 杠杆倍数
  324. ggBs: 0,
  325. // 限价委托价格
  326. xzMoney: 0,
  327. // 止损价格
  328. zsMoney: 0,
  329. // 止盈价格
  330. zyMoney: 0,
  331. // 保證金
  332. bzjMoney:0,
  333. // 手續費
  334. sxfMoney:0,
  335. ddType: 1, //1委托订单2持仓订单3成交订单
  336. loadData: [{
  337. state: 1,
  338. text: '限价委托',
  339. loadingType: 'more',
  340. list: [],
  341. page: 1, //当前页数
  342. limit: 10 //每次信息条数
  343. },
  344. {
  345. state: 2,
  346. text: '持仓',
  347. loadingType: 'more',
  348. list: [],
  349. page: 1, //当前页数
  350. limit: 10 //每次信息条数
  351. }
  352. ],
  353. setTimeoutObj:'',
  354. }
  355. },
  356. watch: {
  357. ggBs(newValue, oldValue) {
  358. this.ggBs = newValue;
  359. this.bond();
  360. },
  361. payNum(newValue, oldValue){
  362. this.payNum = newValue;
  363. this.bond();
  364. }
  365. },
  366. filters: {
  367. actionMoney: function(value) {
  368. let num = 0;
  369. if(+value>10000000){
  370. num = (+(value/10000000).toFixed(2))+'千萬'
  371. }else if(+value>10000){
  372. num = (+(value/10000).toFixed(2))+'萬'
  373. }
  374. return num;
  375. }
  376. },
  377. onLoad() {
  378. // 初始化保存BCH对象
  379. this.levertadeLaverorder();
  380. },
  381. onShow: function() {
  382. this.geLevertade()
  383. this.initListData()
  384. },
  385. onHide() {
  386. this.closeScoket()
  387. clearInterval(this.setTimeoutObj)
  388. },
  389. onReachBottom() {
  390. this.levertadeLaverorder();
  391. },
  392. onReady() {
  393. console.log(this.userInfo);
  394. },
  395. computed: {
  396. ...mapState('user', ['userInfo'])
  397. },
  398. methods: {
  399. // 提交訂單
  400. UpOrderHandle(){
  401. UpOrderHandle()
  402. },
  403. // 修改当前选中的数据对象
  404. changeData(item) {
  405. console.log(item,'qh');
  406. this.actionList = item.instId;
  407. this.alertShow = false;
  408. },
  409. // 獲取保證金
  410. bond(){
  411. bond({
  412. name:this.actionList.split('-')[0],
  413. 'num':this.payNum,
  414. 'gann':this.ggBs
  415. }).then((e)=>{
  416. this.sxfMoney = e.data.fee
  417. this.bzjMoney = e.data.bong? e.data.bong:0
  418. console.log(e)
  419. }).catch(()=>{
  420. console.log(e)
  421. })
  422. },
  423. //循環獲取數據
  424. initListData(){
  425. this.setTimeoutObj = setInterval(()=>{
  426. this.levertadeLaverorder();
  427. },2000)
  428. },
  429. // 獲取幣種列表
  430. geLevertade() {
  431. const that = this;
  432. geLevertade().then((e) => {
  433. that.spList = e.list;
  434. // 开启长连接
  435. that.onScoket()
  436. })
  437. },
  438. // 开始请求长连接
  439. onScoket() {
  440. const that = this;
  441. uni.showLoading({
  442. title: '數據加載中...',
  443. mask: true
  444. });
  445. that.scoket = scoketNew("wss://wsaws.okx.com:8443/ws/v5/public");
  446. that.scoket.scoketOpen().then((res) => {
  447. const requestList = that.spList.map((e) => {
  448. return {
  449. "channel": "tickers",
  450. "instId": e.coinname.toUpperCase() + "-USDT"
  451. }
  452. })
  453. that.scoket.scoketSend({
  454. "op": "subscribe",
  455. "args": requestList
  456. }).then((res) => {
  457. console.log(res, '发送成功');
  458. })
  459. that.scoket.scoketMessage((res) => {
  460. try {
  461. if (res.data) {
  462. // 判断是否已经有这个对象
  463. // console.log(res.arg.instId, 'id', that.listOBj);
  464. that.listOBj[res.arg.instId] = res.data[0];
  465. const item = that.listOBj[res.arg.instId];
  466. // 转为数字
  467. item.last = +item.last;
  468. item.sodUtc0 = +item.sodUtc0;
  469. // 保存收益情况
  470. item.bool = item.last - item.sodUtc0>0?true:false;
  471. // 算出收益率
  472. item.dcf = (+((item.last - item.sodUtc0) / item.sodUtc0 * 100).toFixed(
  473. 2)) + '%'
  474. item.name = item.instId.replace('-', '/')
  475. that.listOBj = Object.assign({}, that.listOBj);
  476. }
  477. } catch (e) {
  478. console.log(res, res.data, '报错');
  479. }
  480. })
  481. })
  482. },
  483. closeScoket() {
  484. this.scoket.scoketClose();
  485. },
  486. // 平倉
  487. closeorder(item) {
  488. const that = this;
  489. uni.showModal({
  490. title: '平倉',
  491. content: '是否立即平倉,確認後不可修改',
  492. success: res => {
  493. if (res.confirm) {
  494. uni.showLoading({
  495. title: '請求中...',
  496. mask: true
  497. });
  498. closeorder({
  499. id: item.id
  500. }).then((e) => {
  501. uni.hideLoading()
  502. uni.showToast({
  503. title: '平倉成功',
  504. icon: 'success'
  505. });
  506. that.ddTypeInit()
  507. }).catch(() => {
  508. uni.hideLoading()
  509. })
  510. }
  511. },
  512. fail: () => {},
  513. complete: () => {}
  514. });
  515. },
  516. // 撤銷
  517. clearorder(item) {
  518. const that = this;
  519. uni.showModal({
  520. title: '撤銷',
  521. content: '是否立即撤銷,確認後不可修改',
  522. success: res => {
  523. if (res.confirm) {
  524. uni.showLoading({
  525. title: '請求中...',
  526. mask: true
  527. });
  528. clearorder({
  529. id: item.id
  530. }).then((e) => {
  531. uni.hideLoading()
  532. uni.showToast({
  533. title: '撤銷成功',
  534. icon: 'success'
  535. });
  536. that.ddTypeInit()
  537. }).catch(() => {
  538. uni.hideLoading()
  539. })
  540. }
  541. },
  542. fail: () => {},
  543. complete: () => {}
  544. });
  545. },
  546. // 获取订单商品
  547. levertadeLaverorder(source) {
  548. //这里是将订单挂载到tab列表下
  549. let index = this.ddType;
  550. let navItem = this.loadData[index];
  551. let state = navItem.state;
  552. if (source === 'tabChange' && navItem.loaded === true) {
  553. //tab切换只有第一次需要加载数据
  554. return;
  555. }
  556. if (navItem.loadingType === 'loading') {
  557. //防止重复加载
  558. return;
  559. }
  560. // if (navItem.loadingType === 'noMore') {
  561. // //防止重复加载
  562. // return;
  563. // }
  564. // 修改当前对象状态为加载中
  565. navItem.loadingType = 'loading';
  566. // uni.showLoading({
  567. // title: '數據加載中',
  568. // mask: true
  569. // });
  570. levertadeLaverorder({
  571. type: state,
  572. page: navItem.page,
  573. limit: navItem.limit
  574. })
  575. .then(({
  576. list
  577. }) => {
  578. // uni.hideLoading()
  579. let arr = list.map(e => {
  580. e.direction = +e.direction;
  581. e.bond = +e.bond
  582. e.price = +e.price
  583. e.wt_price = +e.wt_price
  584. return e;
  585. });
  586. navItem.list = arr;
  587. // navItem.list = navItem.list.concat(arr);
  588. // navItem.page++;
  589. // if (navItem.limit == list.length) {
  590. // //判断是否还有数据, 有改为 more, 没有改为noMore
  591. // navItem.loadingType = 'more';
  592. // return;
  593. // } else {
  594. // //判断是否还有数据, 有改为 more, 没有改为noMore
  595. // navItem.loadingType = 'noMore';
  596. // }
  597. this.$set(navItem, 'loaded', true);
  598. })
  599. .catch(e => {
  600. // uni.hideLoading()
  601. console.log(e);
  602. });
  603. },
  604. // 修改杠杆倍数
  605. changeGG(ind, item) {
  606. this.ggBs = item.num
  607. this.ggIndex = ind
  608. },
  609. // 列表切换
  610. ddTypeChage(ind) {
  611. this.ddType = ind;
  612. this.levertadeLaverorder('tabChange');
  613. },
  614. // 初始化重新加載
  615. ddTypeInit() {
  616. // 初始化數據
  617. let item = this.loadData[this.ddType];
  618. item.loadingType = 'more';
  619. item.list = [];
  620. item.page = 1;
  621. item.limit = 10;
  622. item.loaded = false;
  623. this.levertadeLaverorder();
  624. }
  625. }
  626. }
  627. </script>
  628. <style lang="scss">
  629. .usdtTitle,
  630. .box {
  631. padding: 0 20rpx;
  632. width: 750rpx;
  633. background-color: #FFFFFF;
  634. }
  635. .usdtTitle {
  636. border-bottom: 1px solid $border-color-light;
  637. line-height: 1;
  638. .left {
  639. font-size: 32rpx;
  640. font-weight: bold;
  641. .img {
  642. width: 36rpx;
  643. }
  644. }
  645. .right {
  646. .img {
  647. width: 48rpx;
  648. }
  649. }
  650. }
  651. .box {
  652. line-height: 1;
  653. align-items: flex-start;
  654. .itemTitle {
  655. font-weight: bold;
  656. font-size: $font-sm;
  657. }
  658. .item {
  659. flex-grow: 1;
  660. flex-shrink: 0;
  661. }
  662. .buttomBox {
  663. font-size: $font-sm;
  664. .buttom {
  665. width: 350rpx;
  666. padding: 20rpx 0;
  667. text-align: center;
  668. border-radius: 10rpx;
  669. background-color: #F5F5F5;
  670. &.action {
  671. color: #FFFFFF;
  672. background-color: $color-green;
  673. }
  674. }
  675. }
  676. .tabType {
  677. justify-content: space-around;
  678. .tab {
  679. padding-top: 30rpx;
  680. padding-bottom: 20rpx;
  681. color: #545D6F;
  682. font-size: $font-sm;
  683. font-weight: bold;
  684. &.action {
  685. color: $uni-color-warning;
  686. }
  687. }
  688. }
  689. .inputBox {
  690. height: 60rpx;
  691. border-radius: 10rpx;
  692. padding: 0 20rpx;
  693. display: flex;
  694. align-items: center;
  695. border: 1px solid $border-color-light;
  696. .buttomZd{
  697. font-size: $font-sm;
  698. }
  699. .input {
  700. font-size: $font-sm;
  701. flex-grow: 1;
  702. }
  703. .rightInputBox {
  704. .jg {
  705. border: 1px solid $border-color-light;
  706. height: 50rpx;
  707. margin: 0 30rpx;
  708. }
  709. .img {
  710. width: 28rpx;
  711. height: 28rpx;
  712. }
  713. }
  714. }
  715. .itemLeftList {
  716. justify-content: space-around;
  717. .ll {
  718. border: 1px solid $border-color-light;
  719. width: 74rpx;
  720. height: 54rpx;
  721. line-height: 54rpx;
  722. text-align: center;
  723. font-size: $font-sm;
  724. font-weight: bold;
  725. &.action {
  726. background-color: #F5F5F5;
  727. }
  728. }
  729. }
  730. .buttomSubmit {
  731. color: #FFFFFF;
  732. height: 64rpx;
  733. line-height: 64rpx;
  734. text-align: center;
  735. font-size: $font-sm;
  736. border-radius: 10rpx;
  737. }
  738. .itemName {
  739. .itemMinName {
  740. width: 20%;
  741. font-size: 22rpx;
  742. color: #5D6677;
  743. }
  744. }
  745. .itemList {
  746. .list {
  747. font-size: 20rpx;
  748. padding: 10rpx 0;
  749. .li{
  750. width: 20%;
  751. }
  752. }
  753. .llMax {
  754. padding: 30rpx 0;
  755. font-weight: bold;
  756. font-size: $font-lg;
  757. }
  758. }
  759. .listTitleBox {
  760. border-bottom: 1px solid $border-color-light;
  761. align-items: flex-start;
  762. .leftBottom {
  763. flex-shrink: 0;
  764. font-size: $font-lg;
  765. font-weight: bold;
  766. .action {
  767. border-bottom: 2px solid $uni-color-warning;
  768. }
  769. .titleType {
  770. padding-bottom: 20rpx;
  771. }
  772. }
  773. .rightBottom {
  774. font-size: $font-base;
  775. color: #707A8A;
  776. flex-shrink: 0;
  777. .img {
  778. width: 36rpx;
  779. }
  780. }
  781. }
  782. .usdtList {
  783. color: #707A8A;
  784. border-bottom: 1px solid $border-color-light;
  785. .name {
  786. font-size: $font-lg;
  787. font-weight: bold;
  788. }
  789. .usdtListButtom {
  790. font-size: $font-base;
  791. background-color: #F5F5F5;
  792. color: $uni-color-warning;
  793. border-radius: 10rpx;
  794. padding: 10rpx 20rpx;
  795. }
  796. .tip {
  797. padding-top: 10rpx;
  798. padding-bottom: 30rpx;
  799. font-size: $font-base;
  800. }
  801. .tipList {
  802. font-size: $font-sm;
  803. text-align: center;
  804. .nameTip {
  805. padding-bottom: 20rpx;
  806. }
  807. }
  808. }
  809. }
  810. .alertBox {
  811. position: fixed;
  812. top: 0;
  813. left: 0;
  814. right: 0;
  815. bottom: 0;
  816. background-color: #FFFFFF;
  817. text-align: center;
  818. color: #707A8A;
  819. .type {
  820. width: 30%;
  821. flex-grow: 1;
  822. }
  823. .itemlist {
  824. padding-top: 20rpx;
  825. .name {
  826. padding-left: 20rpx;
  827. text-align: left;
  828. }
  829. }
  830. .list {
  831. padding: 30rpx 0;
  832. border-bottom: 1px solid $border-color-light;
  833. .type {
  834. font-size: $font-lg;
  835. font-weight: bold;
  836. }
  837. }
  838. }
  839. </style>