jhzh
2024-09-03 6a4dd5834e85c2156b431752d93da487eb9e4a0f
no message
12 files modified
117 ■■■■ changed files
.env.development 1 ●●●● patch | view | raw | blame | history
src/API/trade.api.js 15 ●●●●● patch | view | raw | blame | history
src/components/perpetual-open/index.vue 5 ●●●●● patch | view | raw | blame | history
src/components/trade-head/index.vue 23 ●●●● patch | view | raw | blame | history
src/i18n/index.js 2 ●●● patch | view | raw | blame | history
src/page/TtrendDetails/index.vue 2 ●●● patch | view | raw | blame | history
src/page/home.vue 20 ●●●●● patch | view | raw | blame | history
src/page/language/index.vue 4 ●●●● patch | view | raw | blame | history
src/page/perpetualContract/perpetualHistory.vue 23 ●●●●● patch | view | raw | blame | history
src/page/quotes.vue 17 ●●●● patch | view | raw | blame | history
src/page/trade/index.vue 2 ●●● patch | view | raw | blame | history
src/page/transfer.vue 3 ●●●● patch | view | raw | blame | history
.env.development
@@ -8,6 +8,7 @@
VUE_APP_SECRET="WOrldcoinfeyfy343y831r63rt23hFGegfg32fewrgerg"
# VUE_APP_API_BASE_URL=bingx.zqbom.com
VUE_APP_API_BASE_URL=dapp.aorbital7.com
# VUE_APP_API_BASE_URL=csjys.gayssad.com
# VUE_APP_API_BASE_URL=app.usdtone.com
# VUE_APP_API_BASE_URL=192.168.0.105:8080
src/API/trade.api.js
@@ -42,6 +42,21 @@
    if(symbol=='orbital'){
        symbol = 'mother'
    }
    if(symbol=='zyd'){
        symbol = 'zkp'
    }
    if(symbol=='dea'){
        symbol = 'dia'
    }
    if(symbol=='axfd'){
        symbol = 'xeta'
    }
    if(symbol=='smk'){
        symbol = 'og'
    }
    if(symbol=='fpp'){
        symbol = 'fil'
    }
  return request({
    url: "/api/contractApplyOrder!openview.action",
    method: "GET",
src/components/perpetual-open/index.vue
@@ -65,6 +65,11 @@
            <div class="text-right items-end justify-end">
              <div class="">{{ $t("数量") }}</div>
              <div class="mt-4" v-if="symbol=='MOTHER'">(ORBITAL)</div>
              <div class="mt-4" v-else-if="symbol=='ZKP'">(ZYD)</div>
              <div class="mt-4" v-else-if="symbol=='DEA'">(DIA)</div>
              <div class="mt-4" v-else-if="symbol=='AXFD'">(XETA)</div>
              <div class="mt-4" v-else-if="symbol=='SMK'">(OG)</div>
              <div class="mt-4" v-else-if="symbol=='FPP'">(FIL)</div>
              <div class="mt-4" v-else>({{ symbol | _symbolName() }})</div>
            </div>
          </div>
src/components/trade-head/index.vue
@@ -30,10 +30,27 @@
              @click="onSidebar"
            /> -->
            <div class="flex flex-col pl-21" @click="onSidebar">
              <div class="font-35 textColor">
                <!-- {{ symbol | _symbolName(1) }} -->
                {{symbol=='mother'?'ORBITAL':symbol}}
              <div class="font-35 textColor" v-if="symbol=='mother'">
                  ORBITAL
              </div>
              <div class="font-35 textColor" v-else-if="symbol=='zkp'">
                                ZYD
              </div>
              <div class="font-35 textColor" v-else-if="symbol=='dia'">
                                DEA
              </div>
              <div class="font-35 textColor" v-else-if="symbol=='xeta'">
                                AXFD
              </div>
              <div class="font-35 textColor" v-else-if="symbol=='og'">
                                SMK
              </div>
              <div class="font-35 textColor" v-else-if="symbol=='fil'">
                                FPP
              </div>
              <div class="font-35 textColor" v-else>
                              {{symbol.toUpperCase()}}
              </div>
            </div>
            <div
              v-if="range"
src/i18n/index.js
@@ -27,7 +27,7 @@
Vue.use(VueI18n);
// 获取当前语言(初始化时localStorage里没有存语言,默认为浏览器当前的语言)
const lang = getStorage("lang") || "en";
const lang = getStorage("lang") || "zh-CN";
//const lang = 'zh-CN'
// 组合element ui 和 项目自身的文案文件
src/page/TtrendDetails/index.vue
@@ -16,7 +16,7 @@
    <trade-head
      @openRecord="openRecord"
      :backFunc="() => $router.push('/')"
      :symbol="symbol=='mother'?'ORBITAL':symbol.toUpperCase()"
      :symbol="symbol=='mother'?'ORBITAL':(symbol=='zkp'?'ZYD':(symbol=='dia'?'DEA':(symbol=='xeta'?'AXFD':(symbol=='og'?'SMK':(symbol=='fil'?'FPP':symbol.toUpperCase())))))"
      :islevel="true"
      @update-coin="onUpdate"
      @data="quote = $event"
src/page/home.vue
@@ -190,8 +190,26 @@
      // const mainArray = this.coinArr.filter(
      //   (item) => !this.newcoinArr.includes(item)
      // );
      const coins = this.coinList.map((item) => item.symbol);
      const mainArray = coins.filter((item) => !this.newcoinArr.includes(item));
      const prioritize = ['btc', 'eth']; // 需要优先排序的币种
      // 按照优先级对 coins 数组进行排序
      const sortedCoins = coins.sort((a, b) => {
        const aIndex = prioritize.indexOf(a);
        const bIndex = prioritize.indexOf(b);
        if (aIndex === -1 && bIndex === -1) return 0; // 两者都不在优先级列表中,不做排序
        if (aIndex === -1) return 1; // b 在优先级列表中,a 不在,b 排在前面
        if (bIndex === -1) return -1; // a 在优先级列表中,b 不在,a 排在前面
        return aIndex - bIndex; // 根据优先级排序
      });
      const mainArray = sortedCoins.filter((item) => !this.newcoinArr.includes(item));
      console.log(mainArray);
      const list = await _getHomeList(mainArray.join(",")).catch(() => {
        this.timeout = setTimeout(() => {
          this.fetchQList();
src/page/language/index.vue
@@ -30,11 +30,11 @@
        // { title: 'عرب', key: 'ar', image: require('../../assets/image/lang/alb.png') }, //阿拉伯语
        { title: 'Tiếng Việt', key: 'vi', image: require('../../assets/image/lang/vi.png') },//越南语
        { title: 'Italiano', key: 'it', image: require('../../assets/image/lang/Italy.png') }, //意大利语
        // { title: '繁体中文', key: 'zh-TW', image: require('../../assets/image/lang/hongkong.png') },
        { title: '繁体中文', key: 'zh-TW', image: require('../../assets/image/lang/hongkong.png') },
        { title: 'Nederlands', key: 'af', image: require('../../assets/image/lang/af.png') },//荷兰
        { title: 'España', key: 'es', image: require('../../assets/image/lang/es.png') },//西班牙
        { title: 'Sverige', key: 'sv', image: require('../../assets/image/lang/sv.png') },//瑞典
        // { title: '简体中文', key: 'zh-CN', image: require('../../assets/image/lang/zh-CN.png') },
        { title: '简体中文', key: 'zh-CN', image: require('../../assets/image/lang/zh-CN.png') },
      ]
    }
  },
src/page/perpetualContract/perpetualHistory.vue
@@ -28,28 +28,7 @@
          :key="item.title"
          :name="item.type"
        >
          <!-- <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" />
              <div class="select-data" v-if="isAll">
                <div
                  class="select-item font-24"
                  @click.stop="selectItem(item2)"
                  v-for="(item2, index) in currencyList"
                  :key="index"
                >
                <div v-if="item2.symbol=='love'">
                    ORBITAL/USDT
                </div>
                  <div v-else>
                      {{ item2.symbol.toUpperCase() }}/USDT
                  </div>
                </div>
              </div>
            </div> -->
          <!-- </div> -->
          <template v-if="type === 'orders'">
            <van-list
              v-model="loading"
src/page/quotes.vue
@@ -152,8 +152,21 @@
      if (!this.coinList.length) {
        await this.SET_COIN_LIST();
      }
      const coins = this.coinList.map((item) => item.symbol);
      const mainArray = coins.filter((item) => !this.newcoinArr.includes(item));
      const coins = this.coinList.map((item) => item.symbol);
      const prioritize = ['btc', 'eth']; // 需要优先排序的币种
      // 按照优先级对 coins 数组进行排序
      const sortedCoins = coins.sort((a, b) => {
        const aIndex = prioritize.indexOf(a);
        const bIndex = prioritize.indexOf(b);
        if (aIndex === -1 && bIndex === -1) return 0; // 两者都不在优先级列表中,不做排序
        if (aIndex === -1) return 1; // b 在优先级列表中,a 不在,b 排在前面
        if (bIndex === -1) return -1; // a 在优先级列表中,b 不在,a 排在前面
        return aIndex - bIndex; // 根据优先级排序
      });
      const mainArray = sortedCoins.filter((item) => !this.newcoinArr.includes(item));
      const data = await _getHomeList(mainArray.join(","));
      this.tabList[0]["data"] = data.filter((item) =>
        this.myList.includes(item.symbol)
src/page/trade/index.vue
@@ -382,7 +382,7 @@
                if(e==0){
                    this.initParama(this.symbol)
                }else{
                    this.symbol = 'wld'
                    // this.symbol = 'wld'
                    this.initParam(this.symbol)
                }
                this.$forceUpdate()
src/page/transfer.vue
@@ -30,7 +30,7 @@
                </div>
            </div>
            <div style="width: 100%;">
                <input v-model="amount" :placeholder="$t('请输入数量')"  type="number" style="width: 83%;" class="h-100 border-none inputBackground textColor  mt-20 pl-20 ml-23"
                <input  v-model="amount" :placeholder="$t('请输入数量')"  type="number" style="width: 83%;" class="h-100 border-none inputBackground textColor  mt-20 pl-20 ml-23"
                @input="onInput" :disabled="disabled" />
                <span @click="clickall">{{$t('全部')}}</span>
            </div>
@@ -125,6 +125,7 @@
            },
            onInput(e){
                console.log(e);
                this.amount = this.amount.replace(/[^0-9]/g, '');
            },
            async clicktype(e){
                this.typeindex = e