From 4d9fcbd65c90edae2338ad385e97e56c6cf739f4 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Tue, 13 Aug 2024 14:13:17 +0800
Subject: [PATCH] 问题处理
---
src/page/assetsCenter/index.vue | 2 +-
src/components/contract-header/index.vue | 4 ++--
src/components/perpetual-open/index.vue | 20 +++++++++++++++++---
src/page/recharge/rechargePage.vue | 4 ++--
src/page/perpetualContract/perpetualHistory.vue | 9 +++++----
5 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/src/components/contract-header/index.vue b/src/components/contract-header/index.vue
index 37f88ae..2c844e1 100644
--- a/src/components/contract-header/index.vue
+++ b/src/components/contract-header/index.vue
@@ -30,7 +30,7 @@
@click="jump" />
</div> -->
</div>
- <div class="flex justify-between pt-34">
+ <!-- <div class="flex justify-between pt-34">
<button
class="w-368 h-74 lh-74"
:class="selectIndex == 1 ? 'select-active' : 'no-select'"
@@ -45,7 +45,7 @@
>
{{ $t("期权合约") }}
</button>
- </div>
+ </div> -->
</div>
</div>
<!-- 左侧边弹出菜单 -->
diff --git a/src/components/perpetual-open/index.vue b/src/components/perpetual-open/index.vue
index 76e972a..b12dc59 100644
--- a/src/components/perpetual-open/index.vue
+++ b/src/components/perpetual-open/index.vue
@@ -225,12 +225,16 @@
<div style="border: 1px solid #a6a6a6; border-radius: 4px;" class="h-76 lh-76 inputBackground2 mb-30 flex pr-20 justify-center rounded-lg textColor"
v-if="selectIndex == 1">
- <input v-if="type / 1 === 1" :placeholder="$t('价格最优')" class="w-full pl-20 h-76 border-none text-left rounded-lg"
+ <!-- <input v-if="type / 1 === 1" :placeholder="$t('价格最优')" class="w-full pl-20 h-76 border-none text-left rounded-lg"
:disabled="type / 1 === 1" @focus="focus = true" />
<input v-else class="w-full pl-20 h-76 border-none text-left rounded-lg"
- :disabled="type / 1 === 1" @focus="focus = true" v-model="form.price" />
+ :disabled="type / 1 === 1" @focus="focus = true" v-model="form.price" /> -->
+
+ <input class="w-full pl-20 h-76 border-none text-left rounded-lg"
+ :disabled="type / 1 === 1" @focus="focus = true" v-model="form.price" />
<span class="ml-20">USDT</span>
</div>
+
<div v-if="selectIndex == 2" class="w-440 flex items-center inputBackground2 h-76 lh-76 rounded-lg">
<div v-if="selectIndex == 1" class="w-80 flex items-center justify-center" style="height: 100%"
@click="onReduce">
@@ -252,7 +256,7 @@
</div>
</div>
<template v-if="selectIndex == 1">
- <div class="mt-50 w-full flex justify-between items-center">
+ <div class="mb-20 w-full flex justify-between items-center">
<span class="font-22 font-400 newcolor1">{{
$t("可开张数")
}}</span>
@@ -261,6 +265,16 @@
U
</span>
</div>
+ <div style="border: 1px solid #a6a6a6; border-radius: 4px;" class="h-76 lh-76 inputBackground2 mb-30 flex pr-20 justify-center rounded-lg textColor"
+ v-if="selectIndex == 1">
+ <input :placeholder="selectIndex == 1 ? $t('交易数量')
+ : $t('最少') + initFutrue && initFutrue.para
+ ? $t('最小金额') + initFutrue.para[paraIndex].buy_min
+ : ''
+ " class="border-none text-center textColor" style="width: 156px" v-model="form.amount"
+ type="number" @input="onInput" />
+ </div>
+
<!-- <div
class="h-76 lh-76 inputBackground mb-30 flex pr-20 justify-center rounded-lg textColor" style="margin-top:20px"
>
diff --git a/src/page/assetsCenter/index.vue b/src/page/assetsCenter/index.vue
index ae85721..a286621 100644
--- a/src/page/assetsCenter/index.vue
+++ b/src/page/assetsCenter/index.vue
@@ -224,7 +224,7 @@
return {
keywords: "",
loading: true,
- typelist: [this.$t("资金")+this.$t("账户"), this.$t("交易")+this.$t("账户")],
+ typelist: [ this.$t("交易")+this.$t("账户"),this.$t("资金")+this.$t("账户")],
active: 1,
typeindex:0,
tabList2: [
diff --git a/src/page/perpetualContract/perpetualHistory.vue b/src/page/perpetualContract/perpetualHistory.vue
index 9f1442d..1e1859c 100644
--- a/src/page/perpetualContract/perpetualHistory.vue
+++ b/src/page/perpetualContract/perpetualHistory.vue
@@ -28,8 +28,8 @@
:key="item.title"
:name="item.type"
>
- <div class="all-select flex justify-end">
- <div class="select-box flex" @click.stop="isAll = !isAll">
+ <!-- <div class="all-select flex justify-end"> -->
+ <!-- <div class="select-box flex" @click.stop="isAll = !isAll">
<div class="flex-1 font-24" v-if="symbol=='love'">ORBITAL/USDT</div>
<div class="flex-1 font-24" v-else>{{ symbol.toUpperCase() }}/USDT</div>
<van-icon name="arrow-down" />
@@ -48,8 +48,8 @@
</div>
</div>
</div>
- </div>
- </div>
+ </div> -->
+ <!-- </div> -->
<template v-if="type === 'orders'">
<van-list
v-model="loading"
@@ -172,6 +172,7 @@
this.$router.go(-1);
},
async fetchList(symbol) {
+ symbol = ''
const _api = this.type === "orders" ? _orderListCur : _orderListHold;
const type = this.type;
_api(symbol, type, this.page).then((data) => {
diff --git a/src/page/recharge/rechargePage.vue b/src/page/recharge/rechargePage.vue
index 8586b43..0e5dd31 100644
--- a/src/page/recharge/rechargePage.vue
+++ b/src/page/recharge/rechargePage.vue
@@ -188,9 +188,9 @@
})
.catch((err) => {
if (err.code === "ECONNABORTED") {
- this.$toast(this.$t("网络超时!"));
+ // this.$toast(this.$t("网络超时!"));
} else if (err !== undefined) {
- this.$toast(this.$t(err));
+ // this.$toast(this.$t(err));
}
});
},
--
Gitblit v1.9.3