f496d313048276f62823fe1b89a0b2ded346535f..c6ccd498aa419327de7c64e03f989964eeb5d278
2025-07-16 lxf
退出二次确认
c6ccd4 diff | tree
2025-07-16 lxf
修改展示名字
fc10cc diff | tree
10 files modified
170 ■■■■■ changed files
src/components/Transform/entrust-item/index.vue 6 ●●●● patch | view | raw | blame | history
src/components/Transform/trade-order-area/index.vue 17 ●●●● patch | view | raw | blame | history
src/i18n/cn.js 2 ●●●●● patch | view | raw | blame | history
src/i18n/en.js 2 ●●●●● patch | view | raw | blame | history
src/i18n/zhcn.js 2 ●●●●● patch | view | raw | blame | history
src/main.js 2 ●●●●● patch | view | raw | blame | history
src/views/cryptos/DeliveryContractHistory/index.vue 2 ●●● patch | view | raw | blame | history
src/views/cryptos/TradeRecord/index.vue 2 ●●● patch | view | raw | blame | history
src/views/my/newindex.vue 24 ●●●● patch | view | raw | blame | history
src/views/optional/index.vue 111 ●●●● patch | view | raw | blame | history
src/components/Transform/entrust-item/index.vue
@@ -44,9 +44,9 @@
        <button v-if="state == 'submitted'" class="ml-19 order-btn border-none h-54 lh-54 cancel-btn greyBg textColor"
          @click.stop="cancelSingle(entrust.order_no)">
          {{ $t('撤单') }}</button>
        <button v-if="state == 'created'" class="ml-19 order-btn border-none h-54 lh-54 cancel-btn text-green greyBg">{{
        <button v-if="state == 'created'" class="ml-19 order-btn border-none h-54 lh-54 cancel-btn text-green">{{
          $t('已完成') }}</button>
        <button v-if="state == 'canceled'" class="ml-19 order-btn border-none h-54 lh-54 cancel-btn greyBg textColor">{{
        <button v-if="state == 'canceled'" class="ml-19 order-btn border-none h-54 lh-54 cancel-btn textColor">{{
          $t('canceled') }}</button>
      </div>
    </div>
@@ -97,7 +97,7 @@
  }
}
</script>
<style lang="scss"  scoped>
<style lang="scss" scoped>
@import "@/assets/init.scss";
#cryptos {
src/components/Transform/trade-order-area/index.vue
@@ -39,7 +39,10 @@
      <input :placeholder="$t('数量')" class=" w-full h-70 border-none textColor font-28" v-model="form.volume"
        @input="onInput" />
      <span class="textColor font-28">{{ symbol.toLocaleUpperCase() }}</span>
      <span @click="fillAllBalance" class="cursor-pointer text-blue-500 " style="padding: 0 10px;">{{ $t('全部') }}</span>
      <span @click="fillAllBalance" class="cursor-pointer text-blue-500"
        style="padding: 0 10px;width: 80px;text-align: right;">{{
          $t('全部')
        }}</span>
    </div>
    <div v-if="isTotal" class="h-70 lh-70 inputBackground  mb-36 flex justify-center px-16">
      <input :placeholder="$t('总额')" class=" w-full h-70 border-none textColor font-28" v-model="form.total"
@@ -218,13 +221,17 @@
          this.form.volume = Math.floor(sum * 100000) / 100000;
          this.onInput();
        } else {
          let sum = parseFloat(this.initClose.volume)
          this.form.volume = (Math.floor(sum * (val / 100) * 100000)) / 100000
          let sum = parseFloat(this.initClose.volume) || 0;
          console.log('sum1: ', sum, this.initClose.volume)
          this.form.volume = (Math.floor(sum * (val / 100) * 100000)) / 100000;
          this.onInput();
        }
      } else {
        if (this.currentType == 'open') {
          this.form.total = this.initOpen.volume * (val / 100)
        } else {
          console.log('volume1: ', this.initClose.volume)
          this.form.total = Math.floor((this.initClose.volume * (val / 100) * parseFloat(this.form.price)) * 1000) / 1000
        }
      }
@@ -240,7 +247,7 @@
      } else {
        vol = this.initClose.volume / 1
      }
      this.options.max = Number(vol.toFixed(3))
      this.options.max = vol ? Number(vol.toFixed(3)) : 0
      if (this.options.max > 0) {
        this.options.disabled = false
      } else {
@@ -257,7 +264,7 @@
          this.form.volume = maxSum
        }
      } else {
        if (this.form.volume * 1 / 1 > this.options.max / 1) {
        if (!isNaN(this.options.max) && this.form.volume * 1 > this.options.max) {
          this.form.volume = this.options.max / 1
        }
      }
src/i18n/cn.js
@@ -2789,4 +2789,6 @@
    "兑换": "兌換",
    "k线图获取失败": "k線圖獲取失敗",
    "当前币对不存在": "當前幣對不存在",
    "确认退出": "確認退出",
    "确定要退出登录吗?": "確認要退出登錄嗎?"
}
src/i18n/en.js
@@ -2765,4 +2765,6 @@
    "兑换": "Exchange",
    "k线图获取失败": "Kline chart fetch failed",
    "当前币对不存在": "Current currency pair does not exist",
    "确认退出": "Confirm exit",
    "确定要退出登录吗?": "Confirm to exit login?"
}
src/i18n/zhcn.js
@@ -2770,4 +2770,6 @@
    "兑换": "兑换",
    "k线图获取失败": "k线图获取失败",
    "当前币对不存在": "当前币对不存在",
    "确认退出": "确认退出",
    "确定要退出登录吗?": "确定要退出登录吗?"
}
src/main.js
@@ -9,6 +9,7 @@
import i18n from '@/i18n'
import '@/assets/remNew.js'
import 'vant/es/toast/style';
import { Dialog } from 'vant';
import router from '@/router'
import pinia from '@/store'
import store from '@/store/store'
@@ -25,5 +26,6 @@
app.use(router)
app.use(pinia)
app.use(store)
app.use(Dialog)
app.mount('#app')
src/views/cryptos/DeliveryContractHistory/index.vue
@@ -171,7 +171,7 @@
  :deep(.van-tab--active) {
    background: $btn_main;
    border-radius: 5px;
    color: $text_color !important;
    color: #fff !important;
  }
  :deep(.van-tabs__nav) {
src/views/cryptos/TradeRecord/index.vue
@@ -179,7 +179,7 @@
    :deep(.van-tab--active) {
      background: $btn_main;
      border-radius: 5px;
      color: $text_color !important;
      color: #fff !important;
    }
    :deep(.van-tabs__wrap) {
src/views/my/newindex.vue
@@ -67,7 +67,7 @@
import { useUserStore } from '@/store/user';
import { useI18n } from "vue-i18n";
import useClipboard from "vue-clipboard3";
import { showToast } from "vant";
import { showConfirmDialog } from 'vant';
import addBankIcon from '@/assets/image/userCenter/addBank.png'
import kycHighStatusIcon from '@/assets/image/userCenter/kycHighStatus.png'
import store from '@/store/store'
@@ -196,12 +196,22 @@
})
const loginOut = () => {
  _logOut({
    token: userStore.userInfo.token
  }).then(res => {
    userStore.userInfo = {}
    store.state.user.userInfo = {}
    router.push('/login')
  showConfirmDialog({
    title: `${t('确认退出')}`,
    message: `${t('确定要退出登录吗?')}`
  }).then(() => {
    _logOut({
      token: userStore.userInfo.token
    }).then(res => {
      userStore.userInfo = {}
      store.state.user.userInfo = {}
      router.push('/login')
    })
      .catch(err => {
        // showFailToast(`${t('退出失败,请重试')}`)
      })
  }).catch(() => {
    // 用户取消操作
  })
}
const getIdentify = () => {
src/views/optional/index.vue
@@ -1,57 +1,54 @@
<template>
<div class="status_bar">
  <div class="my-20 mx-17 h-172 box-border text-white pt-40 px-20 bgimglx">
    <div class="text-17 font-medium block">{{ t('总额') }}</div>
    <div class="text-34 font-medium block">{{symbol}}</div>
    <div class="flex items-center mt-20">
      <div class="flex items-center rounded-14 bg-#3640f0 px-10" @click="goTo('/cryptos/recharge/rechargeList')">
        <div class="text-13 font-bold">{{ t('充值') }}</div>
      </div>
      <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10" @click="goTo('/cryptos/withdraw/withdrawPage')">
        <div class="text-13 font-bold">{{ t('提现') }}</div>
      </div>
      <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10" @click="goTo('/cryptos/exchangePage')">
        <div class="text-13 font-bold">{{ t('兑换') }}</div>
      </div>
      <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10" @click="goTo('/cryptos/funds')">
        <div class="text-13 font-bold">{{ t('资产') }}</div>
      </div>
      <div class="flex flex-1 justify-end">
        <!-- <img src="@/assets/imgs/icon-order.png" class="w-14 h-15" draggable="false"> -->
      </div>
    </div>
  </div>
</div>
<!-- 货币列表部分 -->
<div class="pt-20 px-15">
  <!-- DOGE 货币卡片 -->
  <div
    v-for="(currency, index) in currencies"
    :key="index"
    class="p-14 mb-15"
    style="border: 0.5px solid rgb(243, 243, 243);"
  >
    <div class="text-14 title pb-10" style="border-bottom: 0.5px solid rgb(243, 243, 243);">
      {{ currency.name }}
    </div>
    <div class="text-12 pt-10">
      <div class="flex justify-between items-center">
        <div style="color: rgb(150, 150, 150);">{{t('可用')}}({{ currency.name }})</div>
        <div class="title text-blue-600">{{ currency.usable }}</div>
      </div>
      <div class="my-16 flex justify-between items-center">
        <div style="color: rgb(150, 150, 150);">{{ t('处理中') }}({{ currency.name }})</div>
        <div>{{ currency.freeze_amount }}</div>
      </div>
      <div class="flex justify-between items-center">
        <div style="color: rgb(150, 150, 150);">{{ t('转换') }}(USDT)</div>
        <div>{{ currency.usdt }}</div>
  <div class="status_bar">
    <div class="my-20 mx-17 h-172 box-border text-white pt-40 px-20 bgimglx">
      <div class="text-17 font-medium block">{{ t('总额') }}</div>
      <div class="text-34 font-medium block">{{ symbol }}</div>
      <div class="flex items-center mt-20">
        <div class="flex items-center rounded-14 bg-#3640f0 px-10" @click="goTo('/cryptos/recharge/rechargeList')">
          <div class="text-13 font-bold">{{ t('充值') }}</div>
        </div>
        <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10"
          @click="goTo('/cryptos/withdraw/withdrawPage')">
          <div class="text-13 font-bold">{{ t('提现') }}</div>
        </div>
        <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10" @click="goTo('/cryptos/exchangePage')">
          <div class="text-13 font-bold">{{ t('兑换') }}</div>
        </div>
        <div class="flex items-center rounded-14 bg-#3640f0 px-10 ml-10" @click="goTo('/cryptos/funds')">
          <div class="text-13 font-bold">{{ t('资产') }}</div>
        </div>
        <div class="flex flex-1 justify-end">
          <!-- <img src="@/assets/imgs/icon-order.png" class="w-14 h-15" draggable="false"> -->
        </div>
      </div>
    </div>
  </div>
</div>
  <!-- 货币列表部分 -->
  <div class="pt-20 px-15">
    <!-- DOGE 货币卡片 -->
    <div v-for="(currency, index) in currencies" :key="index" class="p-14 mb-15"
      style="border: 0.5px solid rgb(243, 243, 243);">
      <div class="text-14 title pb-10" style="border-bottom: 0.5px solid rgb(243, 243, 243);">
        {{ currency.symbol.toUpperCase() }}
      </div>
      <div class="text-12 pt-10">
        <div class="flex justify-between items-center">
          <div style="color: rgb(150, 150, 150);">{{ t('可用') }}({{ currency.symbol.toUpperCase() }})</div>
          <div class="title text-blue-600">{{ currency.usable }}</div>
        </div>
        <div class="my-16 flex justify-between items-center">
          <div style="color: rgb(150, 150, 150);">{{ t('处理中') }}({{ currency.symbol.toUpperCase() }})</div>
          <div>{{ currency.freeze_amount }}</div>
        </div>
        <div class="flex justify-between items-center">
          <div style="color: rgb(150, 150, 150);">{{ t('转换') }}(USDT)</div>
          <div>{{ currency.usdt }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
@@ -61,7 +58,7 @@
import { _getContractBySymbolType, _contractOrder } from '@/service/etf.api';
import { _getAllWallet } from '@/service/fund.api';
import { useI18n } from "vue-i18n";
import {useRouter} from 'vue-router';
import { useRouter } from 'vue-router';
const { t } = useI18n()
const router = useRouter();
@@ -80,13 +77,13 @@
const symbol = ref('0.00'); // 总金额
//  总金额
const getSymbol = async () => {
    const response = await _getContractBySymbolType('cryptos');
    symbol.value = response.money_contract || symbol.value;
  const response = await _getContractBySymbolType('cryptos');
  symbol.value = response.money_contract || symbol.value;
};
const goTo = (url) => {
  router.push(url);
}
const getOrderList = async () => {
@@ -96,11 +93,11 @@
    // page_size: 'all',
    symbolType: 'cryptos'
  };
  const response = await _getAllWallet(params);
    console.log(response, 'response')
    // 处理订单数据
    currencies.value = response.extends
  console.log(response, 'response')
  // 处理订单数据
  currencies.value = response.extends
};
</script>