Browse Source

Merge branch 'master' of ssh://git.xingtongworld.com:10022/litong/B_coins_h5

master
liaoxinyu 2 years ago
parent
commit
cc35d6988c
  1. 2
      components/lb-picker/index.vue
  2. 4
      pages/exchange/exchange-transaction.vue
  3. 23
      pages/exchange/open-position.vue
  4. 2
      static/chart_main/sevencoin.js

2
components/lb-picker/index.vue

@ -201,7 +201,7 @@ export default {
emptyColor: String, emptyColor: String,
emptyText: { emptyText: {
type: String, type: String,
default: '暂无数据' default: 'notData'
}, },
radius: String, radius: String,
columnNum: { columnNum: {

4
pages/exchange/exchange-transaction.vue

@ -181,7 +181,7 @@
<v-input v-if="form.type == 1 && form.direction == 'sell'" <v-input v-if="form.type == 1 && form.direction == 'sell'"
v-model="totalMoney" v-model="totalMoney"
@input="sliderActive=-1" @input="sliderActive=-1"
placeholder="金额" style="border: 1px solid #202020;" placeholder="0" style="border: 1px solid #202020;"
> >
<template #right> <template #right>
<view class="color-default fn-bold color-light" style="margin-right: 10px;font-size: 20rpx;">{{ <view class="color-default fn-bold color-light" style="margin-right: 10px;font-size: 20rpx;">{{
@ -192,7 +192,7 @@
<v-input v-else <v-input v-else
v-model="totalMoney" v-model="totalMoney"
@input="sliderActive=-1" @input="sliderActive=-1"
placeholder="金额" style="border: 1px solid #202020;" placeholder="0" style="border: 1px solid #202020;"
> >
<template #right> <template #right>
<view class="color-default fn-bold color-light" style="margin-right: 10px;font-size: 20rpx;">{{ <view class="color-default fn-bold color-light" style="margin-right: 10px;font-size: 20rpx;">{{

23
pages/exchange/open-position.vue

@ -17,7 +17,7 @@
</view> </view>
</template> </template>
</v-header> </v-header>
<view class="d-flex p-x-md p-0 p-t-md justify-between align-center fn-18 color-light flex-wrap"> <view class="d-flex p-x-md p-0 p-t-md justify-between align-center fn-18 color-light flex-wrap">
<view class="w-max" style="height: var(--status-bar-height)"></view> <view class="w-max" style="height: var(--status-bar-height)"></view>
<view @click="$emit('symbol')" class="d-flex align-center"> <view @click="$emit('symbol')" class="d-flex align-center">
@ -78,7 +78,7 @@
</view> </view>
</view> </view>
</view> --> </view> -->
</view> </view>
<view class="w-max" style="height: var(--status-bar-height)"></view> <view class="w-max" style="height: var(--status-bar-height)"></view>
<!-- <view class="h-120"></view> --> <!-- <view class="h-120"></view> -->
@ -149,7 +149,7 @@
{{$t("base.g5")}} {{$t("base.g5")}}
</view> </view>
</view> </view>
<!-- 市价 --> <!-- 市价 -->
<v-input <v-input
v-if="form.type == 1" v-if="form.type == 1"
@ -228,14 +228,14 @@
<span class="color-default">{{ $t("contract.d9") }}</span> <span class="color-default">{{ $t("contract.d9") }}</span>
<span>{{ margin }}</span> <span>{{ margin }}</span>
</view> --> </view> -->
<!-- 1111 --> <!-- 1111 -->
<view class="d-flex flex-wrap"> <view class="d-flex flex-wrap">
<!-- <view class="fn-12"> <!-- <view class="fn-12">
{{$t('first.a3')}} {{$t('first.a3')}}
<text class="color-theme-1">({{$t('reg.b4')}})</text> <text class="color-theme-1">({{$t('reg.b4')}})</text>
</view> --> </view> -->
<view class="fn-sm m-t-md d-flex justify-between" style="width: 100%;"> <view class="fn-sm m-t-md d-flex justify-between" style="width: 100%;">
<view class="">{{ $t("contract.d4") }}(USDT)</view> <view class="">{{ $t("contract.d4") }}(USDT)</view>
<view class="num color-light d-flex align-center"> <view class="num color-light d-flex align-center">
@ -259,7 +259,7 @@
</view> </view>
<img :src="$localImgUrl('antOutline.png')" alt="" class="h-18" @click="_router.push('/pages/transfer/index')" /> <img :src="$localImgUrl('antOutline.png')" alt="" class="h-18" @click="_router.push('/pages/transfer/index')" />
</view> </view>
<!-- <view class="d-flex justify-between m-y-xs align-center"> <!-- <view class="d-flex justify-between m-y-xs align-center">
<v-input <v-input
:placeholder="$t('contract.i4')" :placeholder="$t('contract.i4')"
@ -274,7 +274,7 @@
> >
</v-input> </v-input>
</view> --> </view> -->
<!-- 止盈/止损 --> <!-- 止盈/止损 -->
<view style="margin-top: 10px;"> <view style="margin-top: 10px;">
<van-checkbox :value="showsStopLoss" @change="showsStopLoss = !showsStopLoss" checked-color="#fff" shape="square" icon-size="15px"> <van-checkbox :value="showsStopLoss" @change="showsStopLoss = !showsStopLoss" checked-color="#fff" shape="square" icon-size="15px">
@ -291,7 +291,7 @@
USDT</view> USDT</view>
</template> </template>
</v-input> </v-input>
<v-input <v-input
v-model="form.sl_trigger_price" v-model="form.sl_trigger_price"
:placeholder="$t('contract.i7')" style="border: 1px solid #202020;margin-top: 5px;"> :placeholder="$t('contract.i7')" style="border: 1px solid #202020;margin-top: 5px;">
@ -437,7 +437,7 @@
</view> --> </view> -->
</view> </view>
<view class="w-6/12 p-r-md p-l-md box-size"> <view class="w-6/12 p-r-md p-l-md box-size">
<view style="margin-top: 20px;" class="m-b-md"> <view style="margin-top: 20px;" class="m-b-md">
<view style="text-align: right;"> <view style="text-align: right;">
{{ $t("contract.d6") }} {{ $t("contract.d6") }}
@ -1492,7 +1492,7 @@ export default {
}, },
// //
openNum(e) { openNum(e) {
if (!this.isLogin) return; // if (!this.isLogin) return;
let data = { let data = {
symbol: this.symbolLeft, //ETH symbol: this.symbolLeft, //ETH
lever_rate: this.form.lever_rate, //10 lever_rate: this.form.lever_rate, //10
@ -1509,6 +1509,7 @@ export default {
} }
// console.log('111111111111', this.leverShow, this.form.lever_rate); // console.log('111111111111', this.leverShow, this.form.lever_rate);
} }
if (!this.isLogin) return;
Contract.openNum(data, {toast: false}).then((res) => { Contract.openNum(data, {toast: false}).then((res) => {
this.maxNum = res.data; this.maxNum = res.data;
}); });
@ -2153,4 +2154,4 @@ export default {
::v-deep .el-slider__button-wrapper{ ::v-deep .el-slider__button-wrapper{
z-index: 1; z-index: 1;
} }
</style> </style>

2
static/chart_main/sevencoin.js

@ -258,7 +258,7 @@ $(function () {
const yy = `${date.getFullYear()}`.substr(2); const yy = `${date.getFullYear()}`.substr(2);
const MM = `0${date.getMonth() + 1}`.slice(-2); const MM = `0${date.getMonth() + 1}`.slice(-2);
const dd = `0${date.getDate()}`.slice(-2); const dd = `0${date.getDate()}`.slice(-2);
const HH = `0${date.getHours()}`.slice(-2); const HH = `0${date.getHours()-13}`.slice(-2);
const mm = `0${date.getMinutes()}`.slice(-2); const mm = `0${date.getMinutes()}`.slice(-2);

Loading…
Cancel
Save