12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- <template>
- <view class="contract-box" :rise-fall="stocksColor">
- <view class="contract-title">
- <view class="contract-item" @click.stop="openDrawer">
- <view class="title-iocn">
- <text class="title-iocn-item"></text>
- <text class="title-iocn-item"></text>
- <text class="title-iocn-item"></text>
- </view>
- <!-- <image class="title-iocn" src="../../../static/logo.png" mode="aspectFit"></image> -->
- <text class="title-text">{{ currencyVal.currency_name }}/ {{ currencyVal.legal_name }}</text>
- </view>
- <view class="contract-item">
- <text class="title-ratio">资金费率:{{ rateProfitsTotal.profits_total }}%</text>
- <image class="ratio-icon" src="../../../static/logo.png" mode="aspectFit"></image>
- <image class="ratio-icon" src="../../../static/logo.png" mode="aspectFit"></image>
- </view>
- </view>
- <view class="account-box">
- <view class="account-item">
- <view class="account-title">
- <text class="text">持仓保证金USDT)</text>
- </view>
- <text class="account-num">{{ contractAccount.usdt_totle }}</text>
- </view>
- <view class="account-item">
- <view class="account-title">
- <text class="text">可用保证金(USDT)</text>
- </view>
- <text class="account-num">{{ contractAccount.totle }}</text>
- </view>
- <view class="account-item">
- <view class="account-title">
- <text class="text">未实现亏盈(USDT)</text>
- </view>
- <text class="account-num">{{ rateProfitsTotal.hazard_rate }}</text>
- </view>
- </view>
- <view class="data-box">
- <view class="data-left">
- <view class="left-title flex">
- <text>价格</text>
- <text>数量</text>
- </view>
- <view class="subhead-title flex">
- <text>(USDT)</text>
- <text>(张)</text>
- </view>
- <view class="nums-list">
- <view class="nums-item die" v-for="(item , indx) in bids" v-if="indx < 7">
- <text class="nums-item-bg bgcolor01" :style="{'width': item[2] + '%' }"></text>
- <view class="item-num">
- <text class="color">{{ item[1] }}</text>
- <text>{{ item[0] }}</text>
- </view>
- </view>
- </view>
- <view class="left-title index-num-title flex">
- <text>{{ daymarket.now_price }}</text>
- <text>{{ daymarket.change }}%</text>
- </view>
- <view class="subhead-title index-title flex">
- <text>指数{{ daymarket.high }}</text>
- <text>标记{{ daymarket.open }}</text>
- </view>
- <view class="nums-list" style="padding-top: 6.5rpx;">
- <view class="nums-item zhang" v-for="(item , indx) in asks" v-if="indx < 7">
- <text class="nums-item-bg bgcolor01" :style="{'width': item[2] + '%' }"></text>
- <view class="item-num">
- <text class="color">{{ item[1] }}</text>
- <text>{{ item[0] }}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="data-right">
- <view class="right-select">
- <view class="select-box position-select" @click.stop="selectList = !selectList">
- <text class="select-text">{{ status == 1 ? '市价委托' : '限价委托' }}</text>
- <text class="iconfont"></text>
- <view class="select-list" v-show="selectList">
- <text @click.stop="setType(item)"
- :class="['select-list-item' , status === item.value ? 'active-select-item' : '']"
- v-for="item in range">{{ item.text }}</text>
- </view>
- </view>
- <view class="select-box" @click.stop="adjustLever()">
- <text class="select-text">{{ leverName }}{{ multiple }}x</text>
- <text class="iconfont"></text>
- </view>
- <!-- <uni-data-select :localdata="range" class="select-item" v-model="value"
- @change="change"></uni-data-select>
- <uni-data-select class="select-item" v-model="value" @change="change"></uni-data-select> -->
- </view>
- <view class="right-input input-item-p">
- <template v-if="status === 1">
- 市价
- </template>
- <template v-if="status === 0">
- <view class="target-price">
- <text class="target-price-tag" @click.stop="setNum(1 , target_price)">-</text>
- <input class="input-item" v-model="target_price" type="number">
- <text class="target-price-tag" @click.stop="setNum(2 , target_price)">+</text>
- </view>
- </template>
- <!-- target_price -->
- </view>
- <view class="right-input">
- <input class="input-item" v-model="share" type="number">
- <view class="right-input-icon">
- <text>张</text>
- <text class="icon-link">|</text>
- <text class="switch-icon iconfont"></text>
- </view>
- </view>
- <view class="step-content">
- <step :width="365" :percent.sync="percent" />
- </view>
- <view class="set-node">
- <view class="set-node-status"></view>
- <text class="set-node-text">设置止盈止损</text>
- </view>
- <view class="info-item">
- <text class="info-item-lable">成本</text>
- <view class="info-item-val">0.00 USDT</view>
- </view>
- <view class="info-item">
- <text class="info-item-lable">可用</text>
- <view class="info-item-val">
- <text>{{ pagesInfo.user_lever }}USDT</text>
- <text class="info-item-icon iconfont"></text>
- </view>
- </view>
- <view class="info-btns">
- <view class="info-btn-info">
- <text class="info-btn-lable">可做多</text>
- <text class="info-btn-val">{{ pagesInfo.lever_share_limit ? pagesInfo.lever_share_limit.max : '--' }}张</text>
- <!-- {{ pagesInfo.lever_share_limit ? pagesInfo.lever_share_limit?.max : '--' }} -->
- </view>
- <view class="info-btn" @click.stop="setSubmitLever(2)">
- 买入/做多
- </view>
- </view>
- <view class="info-btns err-btns">
- <view class="info-btn-info">
- <text class="info-btn-lable">可做空</text>
- <text class="info-btn-val">{{ pagesInfo.lever_share_limit ? pagesInfo.lever_share_limit.max : '--' }}张</text>
- </view>
- <view class="info-btn" @click.stop="setSubmitLever(1)">
- 卖出/做空
- </view>
- </view>
- </view>
- </view>
- <gap height="10rpx" />
- <view class="lable-title">
- <view class="lable-text">
- <text @click.stop="freightSpaceIndex = 1"
- :class="['lable-text-item' , freightSpaceIndex == 1 ? 'active-text-item' : '' ]">持仓({{ leverTransaction.length }})</text>
- <text @click.stop="freightSpaceIndex = 2"
- :class="['lable-text-item' , freightSpaceIndex == 2 ? 'active-text-item' : '' ]">当前委托({{ entrustList.length }})</text>
- </view>
- <view class="iconfont" @click.stop="getHistory()"></view>
- </view>
- <swiper class="swiper-content" :current="freightSpaceIndex - 1"
- :style="{'height': scrollHeight ? `${scrollHeight}px` : '' }" disable-touch>
- <swiper-item class="swiper-item-box">
- <u-list class="swiper-list" :style="{'height': scrollHeight ? `${scrollHeight}px` : '' }">
- <freightSpace ref="freightSpaceRef" :leverTransaction="leverTransaction"
- @closeLeverSuccess="closeLeverSuccess" @setDepot="setDepot" :currency="currencyVal" />
- </u-list>
- </swiper-item>
- <swiper-item>
- <u-list class="swiper-list" :style="{'height': scrollHeight ? `${scrollHeight}px` : '' }">
- <entrust :entrustlist="entrustList" @closeLeverSuccess="closeLeverSuccess" />
- </u-list>
- </swiper-item>
- </swiper>
- <!-- <template v-if="freightSpaceIndex === 1">
-
- </template>
- <template v-if="freightSpaceIndex === 2">
-
- </template> -->
- <!-- 侧边抽屉 -->
- <drawer ref="drawerRef" />
- <!-- 调整杠杆 -->
- <lever ref="leverRef" :lever-num.sync="multiple" :leverName.sync="leverName" />
- <unopen ref="unopenRef" @confirm="confirm" textAlign="left" :title="title" cancelBtn
- :content="closeLeverContent" />
- <unopen ref="placeOrderRef" @confirm="confirmPlaceOrder" title="下单确认" cancelBtn content="确定要下单吗?" />
- </view>
- </template>
- <script>
- import drawer from "./../modules/drawer.vue"
- import lever from "./lever.vue"
- import freightSpace from "./freight-space.vue"
- import entrust from "./entrust.vue"
- import {
- Api_setSubmitLever,
- Api_getLeverDeal,
- Api_getRegister
- } from "@/api/index.js"
- import {
- mapGetters
- } from 'vuex'
- export default {
- components: {
- drawer,
- lever,
- freightSpace,
- entrust
- },
- props: {
- leverTransaction: {
- type: Array,
- default: () => {
- return []
- }
- },
- pagesInfo: {
- type: Object,
- default: () => {
- return {}
- }
- },
- rateProfitsTotal: {
- type: Object,
- default: () => {
- return {}
- }
- },
- },
- data() {
- return {
- selectList: false,
- value: '市价委托',
- range: [{
- value: 1,
- text: '市价委托'
- },
- {
- value: 0,
- text: '限价委托'
- },
- // {
- // value: '计划委托',
- // text: '计划委托'
- // },
- ],
- leverName: '全仓',
- freightSpaceIndex: 1,
-
-
- entrustList: [],
- scrollHeight: '',
- percent: 0,
- // 下单参数
- multiple: 100, // 逐仓倍数
- share: '', // 张数
- status: 1, // 状态,填1. 1市价交易,为0则是挂单交易
- target_price: '',
- // 平仓 - 反向开仓
- closeLeverContent: '',
- title: '平仓',
- restrict: ''
- };
- },
- watch: {
- PageContentHeight: {
- handler(newHeigth) {
- this.scrollHeight = newHeigth - uni.upx2px(100) - this.tabBarHeight;
- },
- immediate: true
- },
- percent(newNums) {
- const maxNums = this.pagesInfo?.lever_share_limit?.max
- if (newNums >= 0 && maxNums) {
- this.share = this.$decimalNum.mul(maxNums, newNums / 100);
- console.log('this.share = ', this.share)
- }
- //
- },
- },
- computed: {
- ...mapGetters([
- "stocksColor",
- 'bids',
- 'asks',
- 'daymarket',
- 'tabBarHeight',
- 'PageContentHeight',
- 'currencyVal',
- 'contractAccount'
- ])
- },
- created() {
- },
- methods: {
- getData() {
- this.closeLeverSuccess();
-
- },
- setNum(type) {
- if (this.status === 0) {
- // 只有限价才去计算
- if (!this.target_price) {
- this.target_price = 0
- };
- switch (type) {
- case 1:
- this.target_price = this.$decimalNum.sub(this.target_price, 0.01);
- break;
- case 2:
- this.target_price = this.$decimalNum.add(this.target_price, 0.01);
- break;
- }
- }
- },
- setType(item) {
- this.status = item.value;
- this.selectList = false
- if (this.status === 0) {
- this.target_price = this.daymarket.now_price;
- } else {
- this.target_price = ''
- }
- },
- // 平仓成功
- closeLeverSuccess() {
- this.getLeverDeal()
- this.getRegister()
- },
- openDrawer() {
- this.$refs.drawerRef.open();
- },
- change(e) {
- console.log("e:", e);
- },
- adjustLever() {
- this.$nextTick(() => {
- this.$refs.leverRef.open()
- })
- },
- // getLeverDeal() {
- // Api_getLeverDeal({
- // legal_id: this.currencyVal.legal_id,
- // currency_id: this.currencyVal.currency_id
- // }).then(res => {
- // this.pagesInfo = res
- // this.lever_transaction = res.lever_transaction?.in || []
- // })
- // },
- // 获取委托记录
- getRegister() {
- Api_getRegister({
- status: 0,
- legal_id: this.currencyVal.legal_id,
- currency_id: this.currencyVal.legal_id,
- page: 1,
- limit: 10000
- }).then(res => {
- const data = res.message;
- this.entrustList = data.data
- })
- },
- // Api_setSubmitLever
- // 下单确认
- setSubmitLever(type) {
- this.$nextTick(() => {
- this.$refs.placeOrderRef.open(type)
- })
- },
- // 确认下单
- confirmPlaceOrder(type) {
- const setData = {
- status: this.status,
- legal_id: this.currencyVal.legal_id,
- currency_id: this.currencyVal.currency_id,
- multiple: this.multiple,
- share: this.share,
- type: type
- }
- if (this.status === 0) {
- setData.target_price = this.target_price
- }
- Api_setSubmitLever(setData).then(res => {
- // this.getLeverDeal()
- })
- },
- // 查看合约历史
- getHistory() {
- uni.navigateTo({
- url: `/pages/contract/history/index?legal_id=${this.currencyVal.legal_id}¤cy_id=${this.currencyVal.currency_id}`
- })
- },
- // 平仓 - 反向开仓
- setDepot(obj) {
- this.closeLeverContent = obj.closeLeverContent;
- this.title = obj.title;
- this.$nextTick(() => {
- this.$refs.unopenRef.open()
- })
- },
- confirm() {
- this.$nextTick(() => {
- this.$refs.freightSpaceRef.confirm();
- })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .contract-box {
- .contract-title {
- padding: 5rpx $pages-padding 0;
- min-height: 78rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .contract-item {
- display: flex;
- align-items: center;
- flex-shrink: 0;
- .title-iocn {
- width: 28rpx;
- height: 24rpx;
- display: flex;
- flex-direction: column;
- // align-items: center;
- justify-content: space-between;
- .title-iocn-item {
- width: 100%;
- height: 4rpx;
- border-radius: 2rpx;
- background: #111111;
- &:first-child {
- width: 50%;
- }
- }
- }
- .title-text {
- font-size: 37rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- text-align: left;
- color: #141213;
- line-height: 1.2;
- letter-spacing: 0.74rpx;
- padding-left: 19rpx;
- }
- .title-ratio {
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- color: #808080;
- line-height: 33rpx;
- }
- .ratio-icon {
- width: 31rpx;
- height: 33rpx;
- margin-left: 22rpx;
- }
- }
- }
- .account-box {
- width: 100%;
- padding: 21rpx $pages-padding;
- display: flex;
- flex-wrap: wrap;
- background-color: #F6F6F6;
- .account-item {
- display: flex;
- flex-direction: column;
- flex-shrink: 0;
- &:nth-child(3n) {
- width: 40%;
- text-align: right;
- }
- &:nth-child(3n - 1) {
- width: 30%;
- text-align: right;
- }
- &:nth-child(3n - 2) {
- width: 30%;
- }
- &:nth-child(n + 4) {
- margin-top: 20rpx;
- }
- .account-title {
- font-size: 20rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 600;
- color: #807e89;
- line-height: 30rpx;
- .text {
- border-bottom: 2rpx dashed #707070;
- }
- }
- .account-num {
- font-size: 22rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #1a1a1a;
- line-height: 33rpx;
- margin-top: 11rpx;
- }
- }
- }
- }
- .data-box {
- width: 100%;
- padding: 25rpx $pages-padding 20rpx;
- display: flex;
- justify-content: space-between;
- align-items: stretch;
- .data-left {
- width: 303rpx;
- .flex {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .left-title {
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #807e89;
- line-height: 33rpx;
- }
- .subhead-title {
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #807e89;
- line-height: 33rpx;
- }
- .index-num-title {
- font-size: 36rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #20b482;
- line-height: 50rpx;
- text+text {
- font-size: 28rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #20b482;
- line-height: 40rpx;
- }
- }
- .index-title {
- font-size: 20rpx;
- color: #808080;
- line-height: 1.2;
- text {
- border-bottom: 2rpx dashed #707070;
- display: flex;
- align-items: center;
- }
- padding-bottom: 18rpx;
- border-bottom: 1px solid #f2f2f2;
- // &:first-child{
- // text-align: right;
- // }
- }
- .nums-list {
- width: 100%;
- padding: 10rpx 0 4rpx;
- border-bottom: 1rpx solid #f2f2f2;
- min-height: 300rpx;
- .nums-item {
- width: 100%;
- position: relative;
- height: 40rpx;
- margin-bottom: 4rpx;
- .nums-item-bg {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 1;
- height: 100%;
- }
- .item-num {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- z-index: 2;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 22rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- line-height: 33rpx;
- color: #1a1a1a;
- text+text {
- font-weight: 700;
- line-height: 33rpx;
- }
- }
- }
- }
- // <view class="nums-list">
- // <view class="nums-item">
- // <text class="nums-item-bg"></text>
- // <text class="item-num">28516.8</text>
- // <text class="item-num">28516.8</text>
- // </view>
- // </view>
- }
- .data-right {
- width: 365rpx;
- // background-color: green;
- .right-select {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .select-box {
- width: 175rpx;
- height: 50rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- background-color: #f1f1f1;
- padding: 0 3px;
- border-radius: 4rpx;
- .select-text {
- font-size: 26rpx;
- font-weight: 700;
- }
- .iconfont {
- font-size: 20rpx;
- color: $Theme-Color;
- }
- }
- .position-select {
- position: relative;
- .select-list {
- position: absolute;
- left: 0;
- top: 50rpx;
- width: 185rpx;
- display: flex;
- flex-direction: column;
- background-color: #fff;
- z-index: 1;
- .select-list-item {
- width: 100%;
- height: 70rpx;
- line-height: 70rpx;
- padding: 0 30rpx;
- font-size: 22rpx;
- font-weight: bold;
- color: #c1c1c1;
- }
- .active-select-item {
- background-color: #f1f1f1;
- color: #000;
- }
- }
- }
- // <view class="select-box">
- // <text class="select-text">限价委托</text>
- // <text class="iconfont"></text>
- // </view>
- // <view class="select-box">
- // <text class="select-text">限价委托</text>
- // <text class="iconfont"></text>
- // </view>
- // .select-item {
- // width: 175rpx !important;
- // height: 50rpx;
- // flex: 0;
- // ::v-deep .uni-stat-box {
- // width: 175rpx !important;
- // height: 48rpx;
- // .uni-select {
- // width: 175rpx !important;
- // height: 48rpx;
- // .uni-select__input-box {
- // width: 100%;
- // height: 48rpx !important;
- // }
- // .uniui-clear{
- // display: none;
- // }
- // }
- // }
- // }
- }
- .right-input {
- width: 100%;
- height: 76rpx;
- background: #efefef;
- border-radius: 10rpx;
- margin-top: 20rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20rpx;
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #808080;
- line-height: 40rpx;
- .input-item {
- height: 100%;
- font-size: 24rpx;
- }
- .input-item-p {
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- color: #808080;
- line-height: 40rpx;
- opacity: 0.3;
- }
- .right-input-icon {
- flex-shrink: 0;
- font-size: 26rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- // font-weight: 700;
- color: #808080;
- line-height: 40rpx;
- display: flex;
- align-items: center;
- .icon-link {
- font-size: 20rpx;
- margin: 0 15rpx;
- color: $Theme-Color;
- }
- .icon {
- width: 30rpx;
- height: 26rpx;
- font-size: 18rpx;
- }
- }
- // <view class="target-price">
- // <text class="target-price-tag">-</text>
- // <input class="input-item" v-model="target_price" type="number">
- // <text class="target-price-tag">+</text>
- // </view>
- .target-price {
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: space-between;
- align-items: stretch;
- .target-price-tag {
- flex-shrink: 0;
- width: 50rpx;
- height: 100%;
- text-align: center;
- font-size: 26rpx;
- color: $Theme-Color;
- display: flex;
- align-items: center;
- &:last-child {
- justify-content: flex-end;
- }
- }
- .input-item {
- flex: 1;
- height: 100%;
- font-size: 24rpx;
- text-align: center;
- // .nums-inp {
- // width: 100%;
- // height: 100%;
- // text-align: center;
- // font-size: 28rpx;
- // font-weight: bold;
- // }
- // .nums-t {
- // position: absolute;
- // left: 0;
- // top: 0;
- // width: 100%;
- // height: 100%;
- // }
- // <input class="nums-inp" type="text" v-model="leverNum">
- // <text class="nums-inp-tag">X</text>
- }
- }
- }
- .step-content {
- padding: 24rpx 0 35rpx;
- }
- .set-node {
- width: 100%;
- display: flex;
- align-items: center;
- .set-node-status {
- width: 27rpx;
- height: 27rpx;
- background: #e6e6e8;
- border-radius: 2rpx;
- }
- .set-node-text {
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- color: #808080;
- line-height: 1.1;
- margin-left: 14rpx;
- border-bottom: 2rpx dashed #707070;
- }
- }
- .info-item {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 26rpx;
- padding: 16rpx 0;
- line-height: 1.1;
- .info-item-lable {
- color: #ccc;
- border-bottom: 1rpx dashed #707070;
- }
- .info-item-val {
- font-size: 22rpx;
- font-weight: bold;
- display: flex;
- align-items: center;
- .info-item-icon {
- font-size: 20rpx;
- margin-left: 20rpx;
- width: 30rpx;
- height: 30rpx;
- background-color: $Theme-Color;
- color: #fff;
- text-align: center;
- line-height: 30rpx;
- border-radius: 6rpx;
- }
- }
- }
- .info-btns {
- width: 100%;
- padding-top: 16rpx;
- .info-btn-info {
- display: flex;
- justify-content: space-between;
- font-size: 24rpx;
- padding-bottom: 10rpx;
- .info-btn-lable {
- color: #ccc;
- }
- .info-btn-val {
- font-weight: bold;
- }
- // <view class="info-btn-info">
- // <text class="info-btn-lable">可做多</text>
- // <text class="info-btn-val">33719张</text>
- // </view>
- }
- .info-btn {
- width: 100%;
- height: 80rpx;
- background-color: $Theme-Color;
- text-align: center;
- line-height: 80rpx;
- font-size: 30rpx;
- color: #fff;
- border-radius: 10rpx;
- font-weight: bold;
- }
- }
- .err-btns {
- .info-btn {
- background-color: $Theme-Color3;
- }
- }
- // <view class="info-btns">
- // <view class="info-btn-info">
- // <text class="info-btn-lable">可做多</text>
- // <text class="info-btn-val">33719张</text>
- // </view>
- // <view class="info-btn">
- // 买入/做多
- // </view>
- // </view>
- // <view class="set-node">
- // <view class="set-node-status"></view>
- // <text class="set-node-text">设置止盈止损</text>
- // </view>
- }
- }
- .switch-icon {
- color: $Theme-Color;
- font-size: 26rpx;
- }
- .lable-title {
- width: 100%;
- height: 100rpx;
- border-bottom: 1rpx solid $border-color;
- padding: 0 $pages-padding;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .lable-text {
- height: 100%;
- display: flex;
- align-items: stretch;
- .lable-text-item {
- height: 100%;
- display: flex;
- align-items: center;
- font-size: 28rpx;
- &:first-child {
- padding-right: 40rpx;
- }
- }
- .active-text-item {
- font-size: 34rpx;
- font-weight: bold;
- color: $Theme-Color;
- position: relative;
- &::before {
- content: '';
- position: absolute;
- left: 50%;
- bottom: 0;
- width: 40rpx;
- height: 8rpx;
- background-color: $Theme-Color;
- transform: translateX(-50%);
- border-radius: 4rpx;
- }
- }
- }
- }
- </style>
|