From acab42b1a2f23f4ed19d004265c7fb49e8394ac3 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 21 May 2024 16:56:50 +0800
Subject: [PATCH] 添加下单时间
---
src/i18n/en-US/index.js | 3 ++-
vue.config.js | 2 +-
src/i18n/zh-CN/index.js | 3 ++-
src/components/popup-delivery/index.vue | 3 ++-
src/page/home.vue | 2 +-
src/config/index.js | 4 ++--
package.json | 1 +
src/App.vue | 2 +-
src/i18n/CN/index.js | 3 ++-
src/page/deliveryContract/hold.vue | 11 +++++++++--
10 files changed, 23 insertions(+), 11 deletions(-)
diff --git a/package.json b/package.json
index 519486c..bdc65af 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
+ "start": "npm run serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
diff --git a/src/App.vue b/src/App.vue
index 64d8718..6775df6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -66,7 +66,7 @@
if(window.ethereum != undefined || window.web3 != undefined || window.injectedWeb3 != undefined){//dapp //_metamask isTokenPocket
// window.location.href = 'https://dapp.aimetamaskdapp.com/wap/#/'
}else{
- window.location.href = 'https://shop.aimetamaskdapp.com'
+ window.location.href = 'https://dapp.mmai-web3.com'
}
},
components: {
diff --git a/src/components/popup-delivery/index.vue b/src/components/popup-delivery/index.vue
index 41c8517..5b854d9 100644
--- a/src/components/popup-delivery/index.vue
+++ b/src/components/popup-delivery/index.vue
@@ -107,7 +107,8 @@
{ id: 2, text: this.detailData.state !== 'created' ? this.$t('现价') : this.$t('结算价格'), key: 'close_price' },
{ id: 3, text: this.$t('方向'), key: 'direction' },
{ id: 4, text: this.$t('数量'), key: 'amount', extro: 'USDT' },
- { id: 5, text: this.$t('交割时间'), key: 'settlement_time' }
+ { id: 5, text: this.$t('交割时间'), key: 'settlement_time' },
+ { id: 6, text: this.$t('下单时间'), key: 'open_time' }
]
}
},
diff --git a/src/config/index.js b/src/config/index.js
index ebc94c5..e90429f 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -1,7 +1,7 @@
export const TIME_OUT = 2000 // 请求频率
-const ENV_DEV = 'dapp.barcblays.cyou' // dev
+const ENV_DEV = 'mmai-web3.com' // dev
//const ENV_PRO = 'worldcoinpro.com' // 官网环境
// const ENV_PRO = 'thjddu.com' // app域名
@@ -21,7 +21,7 @@
base_url = 'https://' + ENV_PRO +'/wap/'
base_url2 = 'https://' + ENV_PRO +'/'
//ws_url = `wss://${ENV_PRO}/data/websocket`
- ws_url = `wss://dapp.barcblays.cyou/data/websocket`
+ ws_url = `wss://mmai-web3.com/data/websocket`
}
export const BASE_URL = base_url
export const BASE_URL2 = base_url2
diff --git a/src/i18n/CN/index.js b/src/i18n/CN/index.js
index c67b70a..ce682cd 100644
--- a/src/i18n/CN/index.js
+++ b/src/i18n/CN/index.js
@@ -2035,5 +2035,6 @@
'即刻开始交易': '即時開始交易',
'去中心化的交易所平台': '去中心化的交易所平臺',
'合作伙伴': '合作夥伴',
- 'USDC充值': 'USDC充值'
+ 'USDC充值': 'USDC充值',
+ '下单时间': '下單時間'
}
diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js
index a4ea534..2d28cb7 100644
--- a/src/i18n/en-US/index.js
+++ b/src/i18n/en-US/index.js
@@ -2009,5 +2009,6 @@
'即刻开始交易': 'Start trading now',
'去中心化的交易所平台': 'Decentralized exchange platform',
'合作伙伴': 'Partner',
- 'USDC充值': 'USDC deposit'
+ 'USDC充值': 'USDC deposit',
+ '下单时间': 'order time'
}
diff --git a/src/i18n/zh-CN/index.js b/src/i18n/zh-CN/index.js
index 50c53f6..5906a48 100644
--- a/src/i18n/zh-CN/index.js
+++ b/src/i18n/zh-CN/index.js
@@ -2000,7 +2000,8 @@
'projectBg10': '2022年,正式面向广大个人和机构投资者开放AI智能量化交易端口凭借AI智能量化交易的神经元学习算法和模型迭代,不久的将来,智能量化交易算法还将成为连接集团旗下人工智能、区块链、虚拟现实等领域应用的重要桥梁,最终为实现进军金融元宇宙的长期战略赋能。',
'projectBg11': ',AI智能量化投资平台,全球数字金融交易生态领航者',
'值得用户信赖的加密货币交易平台': '值得用户信赖的加密货币交易平台',
- 'USDC充值': 'USDC充值'
+ 'USDC充值': 'USDC充值',
+ '下单时间': '下单时间'
diff --git a/src/page/deliveryContract/hold.vue b/src/page/deliveryContract/hold.vue
index b519aa3..bef8983 100644
--- a/src/page/deliveryContract/hold.vue
+++ b/src/page/deliveryContract/hold.vue
@@ -32,8 +32,12 @@
<div class="text-grey">{{ $t('购买价') }}(USDT)</div>
<div class="mt-20 textColor">{{ item.open_price }}</div>
</div>
+ <div class="fexl-1">
+ <div class="text-grey">{{ $t('下单时间') }}</div>
+ <div class="mt-20 textColor">{{ item.open_time }}</div>
+ </div>
<div>
- <div class="text-grey text-right">{{ $t('现价') }}</div>
+ <div class="text-grey text-right">{{ $t('现价') }}111</div>
<div class="mt-20 text-right" :class="item.close_price > item.open_price ? 'text-green' : 'text-red'">
{{ item.close_price }}</div>
</div>
@@ -109,7 +113,10 @@
default: '0.00'
},
},
- methods: {
+ created() {
+ console.log(this.listData)
+ },
+ methods: {
clearTimeout() {
clearTimeout(this.timeout)
this.timeout = null
diff --git a/src/page/home.vue b/src/page/home.vue
index 8ded3f1..d77f5aa 100644
--- a/src/page/home.vue
+++ b/src/page/home.vue
@@ -16,7 +16,7 @@
<p class="flex items-end"><strong class="font-32 mr-10 font-400">{{item.symbol.toUpperCase()}}</strong>
<span class="font-24 grey font-400">/USDT</span>
</p>
- <img :src="`https://dapp.barcblays.cyou/wap/symbol/${item.symbol}.png`" alt="" class="w-40 h-40">
+ <img :src="`https://mmai-web3.com/wap/symbol/${item.symbol}.png`" alt="" class="w-40 h-40">
</li>
<li class="mb-16">
<p>
diff --git a/vue.config.js b/vue.config.js
index 6be368c..5380945 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -44,7 +44,7 @@
// 可为不同的接口配置不同的代理地址
'/wap/api': {
// 服务地址,即你要访问的服务器地址
- target: 'https://dapp.barcblays.cyou/wap/',
+ target: 'https://mmai-web3.com/wap/',
// 路径重写,将'/user/login'重写为'/login'
pathRewrite: {
'^/wap/api': ''
--
Gitblit v1.9.3