新币+dapp app 前端
dcc
2024-05-21 acab42b1a2f23f4ed19d004265c7fb49e8394ac3
添加下单时间
10 files modified
34 ■■■■■ changed files
package.json 1 ●●●● patch | view | raw | blame | history
src/App.vue 2 ●●● patch | view | raw | blame | history
src/components/popup-delivery/index.vue 3 ●●●● patch | view | raw | blame | history
src/config/index.js 4 ●●●● patch | view | raw | blame | history
src/i18n/CN/index.js 3 ●●●● patch | view | raw | blame | history
src/i18n/en-US/index.js 3 ●●●● patch | view | raw | blame | history
src/i18n/zh-CN/index.js 3 ●●●● patch | view | raw | blame | history
src/page/deliveryContract/hold.vue 11 ●●●● patch | view | raw | blame | history
src/page/home.vue 2 ●●● patch | view | raw | blame | history
vue.config.js 2 ●●● patch | view | raw | blame | history
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"
  },
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: {
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' }
      ]
    }
  },
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
src/i18n/CN/index.js
@@ -2035,5 +2035,6 @@
    '即刻开始交易': '即時開始交易',
    '去中心化的交易所平台': '去中心化的交易所平臺',
    '合作伙伴': '合作夥伴',
    'USDC充值': 'USDC充值'
    'USDC充值': 'USDC充值',
    '下单时间': '下單時間'
}
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'
}
src/i18n/zh-CN/index.js
@@ -2000,7 +2000,8 @@
    'projectBg10': '2022年,正式面向广大个人和机构投资者开放AI智能量化交易端口凭借AI智能量化交易的神经元学习算法和模型迭代,不久的将来,智能量化交易算法还将成为连接集团旗下人工智能、区块链、虚拟现实等领域应用的重要桥梁,最终为实现进军金融元宇宙的长期战略赋能。',
    'projectBg11': ',AI智能量化投资平台,全球数字金融交易生态领航者',
    '值得用户信赖的加密货币交易平台': '值得用户信赖的加密货币交易平台',
    'USDC充值': 'USDC充值'
    'USDC充值': 'USDC充值',
    '下单时间': '下单时间'
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
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>
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': ''