heyue.vue 20 KB

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