heyue.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  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}" @click="UpOrderHandle()">
  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" @click="navto('/pages/heyue/tradlist')">
  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. {{item.symbol}}
  180. </text>
  181. <text v-if="ddType==1"
  182. :class="{'font-color-green':+item.profit>=0,'font-color-red':+item.profit<0}">
  183. {{+item.profit}}
  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.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" :class="{'font-color-green':ls.bool,'font-color-red':!ls.bool}">
  262. {{ls.last}}
  263. </view>
  264. <view class="type bfb" :class="{'font-color-green':ls.bool,'font-color-red':!ls.bool}">
  265. {{ls.dcf}}
  266. </view>
  267. </view>
  268. </view>
  269. </view>
  270. </template>
  271. <script>
  272. import {
  273. mapState
  274. } 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. upDataLoding: false,
  356. }
  357. },
  358. watch: {
  359. ggBs(newValue, oldValue) {
  360. this.ggBs = newValue;
  361. this.bond();
  362. },
  363. payNum(newValue, oldValue) {
  364. this.payNum = newValue;
  365. this.bond();
  366. }
  367. },
  368. filters: {
  369. actionMoney: function(value) {
  370. let num = 0;
  371. if (+value > 10000000) {
  372. num = (+(value / 10000000).toFixed(2)) + '千萬'
  373. } else if (+value > 10000) {
  374. num = (+(value / 10000).toFixed(2)) + '萬'
  375. }
  376. return num;
  377. }
  378. },
  379. onLoad() {
  380. // 初始化保存BCH对象
  381. this.levertadeLaverorder();
  382. },
  383. onShow: function() {
  384. this.geLevertade()
  385. this.initListData()
  386. },
  387. onHide() {
  388. this.closeScoket()
  389. clearInterval(this.setTimeoutObj)
  390. },
  391. onReachBottom() {
  392. this.levertadeLaverorder();
  393. },
  394. onReady() {
  395. console.log(this.userInfo);
  396. },
  397. computed: {
  398. ...mapState('user', ['userInfo'])
  399. },
  400. methods: {
  401. // 提交訂單
  402. UpOrderHandle() {
  403. const that = this;
  404. if (this.upDataLoding) {
  405. return
  406. }
  407. uni.showLoading({
  408. title: '提交中',
  409. mask: true
  410. });
  411. this.upDataLoding = true;
  412. that.bond().then(() => {
  413. UpOrderHandle({
  414. direction: that.typeIndex,
  415. type: that.jyType,
  416. symbol: that.listOBj[that.actionList].name,
  417. mprice: that.jyType == 2 ? that.listOBj[that.actionList].last : that.xzMoney,
  418. ggan: that.ggBs,
  419. num: that.payNum,
  420. upbondmoney: that.bzjMoney,
  421. fee: that.sxfMoney,
  422. zyprice: that.zyMoney,
  423. zsprice: that.zsMoney,
  424. }).then((e) => {
  425. uni.hideLoading()
  426. that.upDataLoding = false;
  427. uni.showModal({
  428. title: '提示',
  429. content: '掛單成功',
  430. confirmText: '確認',
  431. showCancel: false,
  432. });
  433. obj.levertadeLaverorder();
  434. }).catch(() => {
  435. uni.hideLoading()
  436. that.upDataLoding = false;
  437. })
  438. }).catch(() => {
  439. uni.hideLoading()
  440. that.upDataLoding = false;
  441. })
  442. },
  443. // 修改当前选中的数据对象
  444. changeData(item) {
  445. console.log(item, 'qh');
  446. this.actionList = item.instId;
  447. this.alertShow = false;
  448. },
  449. // 獲取保證金
  450. bond() {
  451. const taht = this
  452. return new Promise((resolve, rejact) => {
  453. bond({
  454. name: taht.actionList.split('-')[0],
  455. 'num': taht.payNum,
  456. 'gann': taht.ggBs
  457. }).then((e) => {
  458. taht.sxfMoney = e.data.fee
  459. taht.bzjMoney = e.data.bong ? e.data.bong : 0
  460. console.log(e)
  461. resolve()
  462. }).catch(() => {
  463. rejact()
  464. console.log(e)
  465. })
  466. })
  467. },
  468. //循環獲取數據
  469. initListData() {
  470. this.setTimeoutObj = setInterval(() => {
  471. this.levertadeLaverorder();
  472. }, 2000)
  473. },
  474. // 獲取幣種列表
  475. geLevertade() {
  476. uni.showLoading({
  477. title: '數據加載中...',
  478. mask: true
  479. });
  480. const that = this;
  481. geLevertade().then((e) => {
  482. that.spList = e.list;
  483. // 开启长连接
  484. that.onScoket()
  485. })
  486. },
  487. // 开始请求长连接
  488. onScoket() {
  489. const that = this;
  490. that.scoket = scoketNew("wss://wsaws.okx.com:8443/ws/v5/public");
  491. that.scoket.scoketOpen().then((res) => {
  492. uni.hideLoading()
  493. const requestList = that.spList.map((e) => {
  494. return {
  495. "channel": "tickers",
  496. "instId": e.coinname.toUpperCase() + "-USDT"
  497. }
  498. })
  499. that.scoket.scoketSend({
  500. "op": "subscribe",
  501. "args": requestList
  502. }).then((res) => {
  503. console.log(res, '发送成功');
  504. })
  505. that.scoket.scoketMessage((res) => {
  506. try {
  507. if (res.data) {
  508. // 判断是否已经有这个对象
  509. // console.log(res.arg.instId, 'id', that.listOBj);
  510. that.listOBj[res.arg.instId] = res.data[0];
  511. const item = that.listOBj[res.arg.instId];
  512. // 转为数字
  513. item.last = +item.last;
  514. item.sodUtc0 = +item.sodUtc0;
  515. // 保存收益情况
  516. item.bool = item.last - item.sodUtc0 > 0 ? true : false;
  517. // 算出收益率
  518. item.dcf = (+((item.last - item.sodUtc0) / item.sodUtc0 * 100).toFixed(
  519. 2)) + '%'
  520. item.name = item.instId.replace('-', '/')
  521. that.listOBj = Object.assign({}, that.listOBj);
  522. }
  523. } catch (e) {
  524. console.log(res, res.data, '报错');
  525. }
  526. })
  527. })
  528. },
  529. closeScoket() {
  530. this.scoket.scoketClose();
  531. },
  532. // 平倉
  533. closeorder(item) {
  534. const that = this;
  535. uni.showModal({
  536. title: '平倉',
  537. content: '是否立即平倉,確認後不可修改',
  538. confirmText: '確認',
  539. success: res => {
  540. if (res.confirm) {
  541. uni.showLoading({
  542. title: '請求中...',
  543. mask: true
  544. });
  545. closeorder({
  546. id: item.id
  547. }).then((e) => {
  548. uni.hideLoading()
  549. uni.showToast({
  550. title: '平倉成功',
  551. icon: 'success'
  552. });
  553. that.ddTypeInit()
  554. }).catch(() => {
  555. uni.hideLoading()
  556. })
  557. }
  558. },
  559. fail: () => {},
  560. complete: () => {}
  561. });
  562. },
  563. // 撤銷
  564. clearorder(item) {
  565. const that = this;
  566. uni.showModal({
  567. title: '撤銷',
  568. content: '是否立即撤銷,確認後不可修改',
  569. confirmText: '確認',
  570. success: res => {
  571. if (res.confirm) {
  572. uni.showLoading({
  573. title: '請求中...',
  574. mask: true
  575. });
  576. clearorder({
  577. id: item.id
  578. }).then((e) => {
  579. uni.hideLoading()
  580. uni.showToast({
  581. title: '撤銷成功',
  582. icon: 'success'
  583. });
  584. that.ddTypeInit()
  585. }).catch(() => {
  586. uni.hideLoading()
  587. })
  588. }
  589. },
  590. fail: () => {},
  591. complete: () => {}
  592. });
  593. },
  594. // 获取订单商品
  595. levertadeLaverorder(source) {
  596. //这里是将订单挂载到tab列表下
  597. let index = this.ddType;
  598. let navItem = this.loadData[index];
  599. let state = navItem.state;
  600. if (source === 'tabChange' && navItem.loaded === true) {
  601. //tab切换只有第一次需要加载数据
  602. return;
  603. }
  604. if (navItem.loadingType === 'loading') {
  605. //防止重复加载
  606. return;
  607. }
  608. // if (navItem.loadingType === 'noMore') {
  609. // //防止重复加载
  610. // return;
  611. // }
  612. // 修改当前对象状态为加载中
  613. navItem.loadingType = 'loading';
  614. // uni.showLoading({
  615. // title: '數據加載中',
  616. // mask: true
  617. // });
  618. levertadeLaverorder({
  619. type: state,
  620. page: navItem.page,
  621. limit: navItem.limit
  622. })
  623. .then(({
  624. list
  625. }) => {
  626. // uni.hideLoading()
  627. let arr = list.map(e => {
  628. e.direction = +e.direction;
  629. e.bond = +e.bond
  630. e.price = +e.price
  631. e.wt_price = +e.wt_price
  632. return e;
  633. });
  634. navItem.list = arr;
  635. this.$set(navItem, 'loaded', true);
  636. })
  637. .catch(e => {
  638. // uni.hideLoading()
  639. console.log(e);
  640. });
  641. },
  642. // 修改杠杆倍数
  643. changeGG(ind, item) {
  644. this.ggBs = item.num
  645. this.ggIndex = ind
  646. },
  647. // 列表切换
  648. ddTypeChage(ind) {
  649. this.ddType = ind;
  650. this.levertadeLaverorder('tabChange');
  651. },
  652. // 初始化重新加載
  653. ddTypeInit() {
  654. // 初始化數據
  655. let item = this.loadData[this.ddType];
  656. item.loadingType = 'more';
  657. item.list = [];
  658. item.page = 1;
  659. item.limit = 10;
  660. item.loaded = false;
  661. this.levertadeLaverorder();
  662. },
  663. navto(url) {
  664. uni.navigateTo({
  665. url,
  666. fail() {
  667. uni.switchTab({
  668. url
  669. })
  670. }
  671. })
  672. }
  673. }
  674. }
  675. </script>
  676. <style lang="scss">
  677. .usdtTitle,
  678. .box {
  679. padding: 0 20rpx;
  680. width: 750rpx;
  681. background-color: #FFFFFF;
  682. }
  683. .usdtTitle {
  684. border-bottom: 1px solid $border-color-light;
  685. line-height: 1;
  686. .left {
  687. font-size: 32rpx;
  688. font-weight: bold;
  689. .img {
  690. width: 36rpx;
  691. }
  692. }
  693. .right {
  694. .img {
  695. width: 48rpx;
  696. }
  697. }
  698. }
  699. .box {
  700. line-height: 1;
  701. align-items: flex-start;
  702. .itemTitle {
  703. font-weight: bold;
  704. font-size: $font-sm;
  705. }
  706. .item {
  707. flex-grow: 1;
  708. flex-shrink: 0;
  709. }
  710. .buttomBox {
  711. font-size: $font-sm;
  712. .buttom {
  713. width: 350rpx;
  714. padding: 20rpx 0;
  715. text-align: center;
  716. border-radius: 10rpx;
  717. background-color: #F5F5F5;
  718. &.action {
  719. color: #FFFFFF;
  720. background-color: $color-green;
  721. }
  722. }
  723. }
  724. .tabType {
  725. justify-content: space-around;
  726. .tab {
  727. padding-top: 30rpx;
  728. padding-bottom: 20rpx;
  729. color: #545D6F;
  730. font-size: $font-sm;
  731. font-weight: bold;
  732. &.action {
  733. color: $uni-color-warning;
  734. }
  735. }
  736. }
  737. .inputBox {
  738. height: 60rpx;
  739. border-radius: 10rpx;
  740. padding: 0 20rpx;
  741. display: flex;
  742. align-items: center;
  743. border: 1px solid $border-color-light;
  744. .buttomZd {
  745. font-size: $font-sm;
  746. }
  747. .input {
  748. font-size: $font-sm;
  749. flex-grow: 1;
  750. }
  751. .rightInputBox {
  752. .jg {
  753. border: 1px solid $border-color-light;
  754. height: 50rpx;
  755. margin: 0 30rpx;
  756. }
  757. .img {
  758. width: 28rpx;
  759. height: 28rpx;
  760. }
  761. }
  762. }
  763. .itemLeftList {
  764. justify-content: space-around;
  765. .ll {
  766. border: 1px solid $border-color-light;
  767. width: 74rpx;
  768. height: 54rpx;
  769. line-height: 54rpx;
  770. text-align: center;
  771. font-size: $font-sm;
  772. font-weight: bold;
  773. &.action {
  774. background-color: #F5F5F5;
  775. }
  776. }
  777. }
  778. .buttomSubmit {
  779. color: #FFFFFF;
  780. height: 64rpx;
  781. line-height: 64rpx;
  782. text-align: center;
  783. font-size: $font-sm;
  784. border-radius: 10rpx;
  785. }
  786. .itemName {
  787. .itemMinName {
  788. width: 20%;
  789. font-size: 22rpx;
  790. color: #5D6677;
  791. }
  792. }
  793. .itemList {
  794. .list {
  795. font-size: 20rpx;
  796. padding: 10rpx 0;
  797. .li {
  798. width: 20%;
  799. }
  800. }
  801. .llMax {
  802. padding: 30rpx 0;
  803. font-weight: bold;
  804. font-size: $font-lg;
  805. }
  806. }
  807. .listTitleBox {
  808. border-bottom: 1px solid $border-color-light;
  809. align-items: flex-start;
  810. .leftBottom {
  811. flex-shrink: 0;
  812. font-size: $font-lg;
  813. font-weight: bold;
  814. .action {
  815. border-bottom: 2px solid $uni-color-warning;
  816. }
  817. .titleType {
  818. padding-bottom: 20rpx;
  819. }
  820. }
  821. .rightBottom {
  822. font-size: $font-base;
  823. color: #707A8A;
  824. flex-shrink: 0;
  825. .img {
  826. width: 36rpx;
  827. }
  828. }
  829. }
  830. .usdtList {
  831. color: #707A8A;
  832. border-bottom: 1px solid $border-color-light;
  833. .name {
  834. font-size: $font-lg;
  835. font-weight: bold;
  836. }
  837. .usdtListButtom {
  838. font-size: $font-base;
  839. background-color: #F5F5F5;
  840. color: $uni-color-warning;
  841. border-radius: 10rpx;
  842. padding: 10rpx 20rpx;
  843. }
  844. .tip {
  845. padding-top: 10rpx;
  846. padding-bottom: 30rpx;
  847. font-size: $font-base;
  848. }
  849. .tipList {
  850. font-size: $font-sm;
  851. text-align: center;
  852. .nameTip {
  853. padding-bottom: 20rpx;
  854. }
  855. }
  856. }
  857. }
  858. .alertBox {
  859. position: fixed;
  860. top: 0;
  861. left: 0;
  862. right: 0;
  863. bottom: 0;
  864. background-color: #FFFFFF;
  865. text-align: center;
  866. color: #707A8A;
  867. .type {
  868. width: 30%;
  869. flex-grow: 1;
  870. }
  871. .itemlist {
  872. padding-top: 20rpx;
  873. .name {
  874. padding-left: 20rpx;
  875. text-align: left;
  876. }
  877. }
  878. .list {
  879. padding: 30rpx 0;
  880. border-bottom: 1px solid $border-color-light;
  881. .type {
  882. font-size: $font-lg;
  883. font-weight: bold;
  884. }
  885. }
  886. }
  887. </style>