3 days ago 584860d11b454774b60c71b63d221b5481c0f3bd
src/page/markets/aiTrading.vue
@@ -91,9 +91,9 @@
        <div
          class="popup_item popup_name flex-end"
          v-if="popupPrice && popupData.stockType != 'MEX'"
          v-if="popupPrice && popupData.stockType != 'US'"
        >
          <span>≈ $ {{ (utm * popupPrice).toFixed(2) }}</span>
          <span>≈ $ {{ (rate * popupPrice).toFixed(2) }}</span>
        </div>
        <div class="division"></div>
@@ -135,6 +135,16 @@
      popupData: {}, // 点击购买的数据
      popupPrice: "" // 购买金额
    };
  },
  computed: {
    // 计算当前汇率
    rate() {
      let rate = 1;
      if (this.popupData.stockType == "HK") rate = this.htu;
      else if (this.popupData.stockType == "IN") rate = this.itu;
      else if (this.popupData.stockType == "TW") rate = this.ttu;
      return rate;
    }
  },
  created() {
    this.getStockAiList();
@@ -184,7 +194,7 @@
</script>
<style lang="less" scoped>
@green: #c4d600;
@green: #00f0ff;
.ai_trading {
  font-size: 10vw;
  width: 100%;