9f1fde16aa1d31b2ed108986be7cfa7ebd7613d6..a3ae2f2efa0f1f90908fb29fe6362429ac34509d
2025-04-28 lxf
feat: 挂单页面 添加卖出不展示买长买短按钮
a3ae2f diff | tree
2025-04-28 lxf
style: 修改usdt 为 usd
7087b9 diff | tree
2025-04-28 lxf
style: user 替换图标
8103ab diff | tree
2025-04-28 lxf
style
a76967 diff | tree
2025-04-28 lxf
style: 翻译
2b3839 diff | tree
2025-04-28 lxf
feat: k线图页面,添加卖出按钮
88919f diff | tree
2025-04-28 lxf
style: 翻译
72051e diff | tree
13 files modified
147 ■■■■■ changed files
src/locales/en.json 6 ●●●● patch | view | raw | blame | history
src/locales/fra.json 8 ●●●● patch | view | raw | blame | history
src/locales/hi.json 8 ●●●● patch | view | raw | blame | history
src/locales/kor.json 8 ●●●● patch | view | raw | blame | history
src/locales/st.json 6 ●●●● patch | view | raw | blame | history
src/locales/th.json 8 ●●●● patch | view | raw | blame | history
src/page/kline/index.vue 9 ●●●●● patch | view | raw | blame | history
src/page/list/tradingList/data.list.vue 8 ●●●● patch | view | raw | blame | history
src/page/newUser/index.vue 5 ●●●●● patch | view | raw | blame | history
src/page/trading/buy.vue 12 ●●●● patch | view | raw | blame | history
src/page/user/Warehouse/data.list.vue 14 ●●●● patch | view | raw | blame | history
src/page/user/Warehouse/item.card.vue 33 ●●●●● patch | view | raw | blame | history
src/page/user/transfer.vue 22 ●●●● patch | view | raw | blame | history
src/locales/en.json
@@ -612,5 +612,9 @@
  "转入金额": "Transfer In Amount",
  "确认兑换": "Confirm Exchange",
  "确认撤销": "Confirm Cancel",
  "确定要撤销此挂单吗?": "Are you sure you want to cancel this pending order?"
  "确定要撤销此挂单吗?": "Are you sure you want to cancel this pending order?",
  "排序": "Sort",
  "升序": "Ascending",
  "降序": "Descending",
  "正常": "Normal"
}
src/locales/fra.json
@@ -590,5 +590,11 @@
  "请输入转出金额": "Veuillez saisir le montant du transfert sortant",
  "可用余额": "Solde disponible",
  "转入金额": "Montant du transfert entrant",
  "确认兑换": "Confirmer l'échange"
  "确认兑换": "Confirmer l'échange",
  "确认撤销": "Confirmer l'annulation",
  "确定要撤销此挂单吗?": "Êtes-vous sûr de vouloir annuler cet ordre en attente ?",
  "排序": "Trier",
  "升序": "Ascendant",
  "降序": "Descendant",
  "正常": "Normal"
}
src/locales/hi.json
@@ -609,5 +609,11 @@
  "请输入转出金额": "कृपया ट्रांसफर आउट राशि दर्ज करें",
  "可用余额": "उपलब्ध शेष",
  "转入金额": "ट्रांसफर इन राशि",
  "确认兑换": "विनिमय की पुष्टि करें"
  "确认兑换": "विनिमय की पुष्टि करें",
  "确认撤销": "रद्द करने की पुष्टि करें",
  "确定要撤销此挂单吗?": "क्या आप वाकई इस लंबित आदेश को रद्द करना चाहते हैं?",
  "排序": "क्रमबद्ध करें",
  "升序": "आरोही",
  "降序": "अवरोही",
  "正常": "सामान्य"
}
src/locales/kor.json
@@ -591,5 +591,11 @@
  "请输入转出金额": "송금 금액을 입력하세요",
  "可用余额": "사용 가능한 잔액",
  "转入金额": "입금 금액",
  "确认兑换": "환전 확인"
  "确认兑换": "환전 확인",
  "确认撤销": "취소 확인",
  "确定要撤销此挂单吗?": "이 미결제 주문을 취소하시겠습니까?",
  "排序": "정렬",
  "升序": "오름차순",
  "降序": "내림차순",
  "正常": "일반"
}
src/locales/st.json
@@ -601,5 +601,9 @@
  "转入金额": "مبلغ التحويل الداخل",
  "确认兑换": "تأكيد الصرف",
  "确认撤销": "تأكيد الإلغاء",
  "确定要撤销此挂单吗?": "هل أنت متأكد أنك تريد إلغاء هذا الطلب المعلق؟"
  "确定要撤销此挂单吗?": "هل أنت متأكد أنك تريد إلغاء هذا الطلب المعلق؟",
  "排序": "الترتيب",
  "升序": "تصاعدي",
  "降序": "تنازلي",
  "正常": "عادي"
}
src/locales/th.json
@@ -591,5 +591,11 @@
  "请输入转出金额": "กรุณากรอกจำนวนเงินที่โอนออก",
  "可用余额": "ยอดเงินคงเหลือ",
  "转入金额": "จำนวนเงินที่โอนเข้า",
  "确认兑换": "ยืนยันการแลกเปลี่ยน"
  "确认兑换": "ยืนยันการแลกเปลี่ยน",
  "确认撤销": "ยืนยันการยกเลิก",
  "确定要撤销此挂单吗?": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกคำสั่งซื้อที่รอดำเนินการนี้?",
  "排序": "เรียงลำดับ",
  "升序": "จากน้อยไปมาก",
  "降序": "จากมากไปน้อย",
  "正常": "ปกติ"
}
src/page/kline/index.vue
@@ -431,18 +431,15 @@
        </div>-->
      </div>
      <div class="rights">
        <div class="buy_btn" v-if="kLineDetails.type == 'HJ'">
        <div class="buy_btn">
          <div class="top_buy" @click="goBuy(0)">
            <span>{{ $t("hj84") }}</span>
            <span>{{ $t("hj78") }}</span>
          </div>
          <div class="bottom_buy">
            <span>{{ singDetails.nowPrice }}</span>
          </div>
        </div>
        <div
          class="sell_btn"
          @click="goBuy(1)"
        >
        <div class="sell_btn" @click="goBuy(1)">
          <div class="top_sell">
            <span>{{ $t("hj85") }}</span>
          </div>
src/page/list/tradingList/data.list.vue
@@ -31,7 +31,7 @@
            @select="onSelect"
          >
            <template #reference>
              <van-button type="primary">الترتيب</van-button>
              <van-button type="primary">{{ $t("排序") }}</van-button>
            </template>
          </van-popover>
        </van-col>
@@ -201,9 +201,9 @@
      orderBy: "",
      refreshing: false,
      actions: [
        { text: "ترتيب", zh: "升序", val: "asc" },
        { text: "التخفيض", zh: "降序", val: "desc" },
        { text: "طبيعي", zh: "正常", val: "" }
        { text: this.$t("升序"), zh: "升序", val: "asc" },
        { text: this.$t("降序"), zh: "降序", val: "desc" },
        { text: this.$t("正常"), zh: "正常", val: "" }
      ]
    };
  },
src/page/newUser/index.vue
@@ -182,7 +182,8 @@
      <div class="jy" @click="goWall()">
        <div class="left_gn">
          <div class="l_icon">
            <img src="../../assets/img/huazhuan2.png" alt />
            <van-icon name="peer-pay" color="#027aff" size="0.5041rem" />
            <!-- <img src="../../assets/img/huazhuan2.png" alt /> -->
          </div>
          <div class="r_title">
            <span>{{ $t("hj256") }}</span>
@@ -247,7 +248,7 @@
      <div class="jy" @click="handleGoToBankCard()">
        <div class="left_gn">
          <div class="l_icon">
            <img src="../../assets/img/shiming.png" alt />
            <van-icon name="idcard" color="#027aff" size="0.5041rem" />
          </div>
          <div class="r_title">
            <span>{{ $t("hj147") }}</span>
src/page/trading/buy.vue
@@ -28,7 +28,7 @@
              </div>
            </div>
            <div class="rights">
              <div class="ese" v-if="KLine.type == 'HJ'">
              <div class="ese" v-if="!isSell && KLine.type == 'HJ'">
                <div
                  class="mc"
                  @click="handleTradingClick(0)"
@@ -205,7 +205,10 @@
      <div class="btn_buy" @click="gdOrSetBuy()">
        <!-- <div :class="tabsCurrentIndex == 0 ? 'maichu' : ''">#3b82f6 -->
        <div class="maichu" style="background-color:#3b82f6">
          <span>{{ tabsCurrentIndex == 0 ? $t("hj84") : $t("gm") }}</span>
          <span v-if="isSell">{{ $t("hj78") }}</span>
          <span v-else>{{
            tabsCurrentIndex == 0 ? $t("hj84") : $t("gm")
          }}</span>
        </div>
      </div>
    </div>
@@ -229,8 +232,12 @@
  created() {
    if (this.$route.query.t) {
      this.tabsCurrentIndex = Number(this.$route.query.t);
      if (this.tabsCurrentIndex === 0) {
        this.isSell = true;
      }
      console.log(this.tabsCurrentIndex);
    }
    ss;
    if (this.$route.query.m) {
      this.nowPrice = Number(this.$route.query.m);
      this.profitTarget = Number(this.$route.query.m);
@@ -258,6 +265,7 @@
  },
  data() {
    return {
      isSell: false,
      tradingArr: [this.$t("hj84"), this.$t("hj85")],
      tabsCurrentIndex: 0,
      priceTabs: [this.$t("hj108"), this.$t("hj109")],
src/page/user/Warehouse/data.list.vue
@@ -116,7 +116,7 @@
            </div>
          </van-col>
        </van-row>
        <van-row>
        <!-- <van-row>
          <van-col span="12">
            <div style="text-align: left">
              <div class="sport-content-title2">
@@ -136,7 +136,7 @@
                {{ item.amountToBeCovered }}
              </div>
            </div>
          </van-col>
          </van-col> -->
          <!-- <van-col span="8">
            <div style="text-align: center">
              <div class="sport-content-title2">
@@ -157,7 +157,7 @@
              </div>
            </div>
          </van-col> -->
        </van-row>
        <!-- </van-row> -->
        <van-row>
          <van-col span="12">
            <div style="text-align: left">
@@ -448,8 +448,8 @@
            </div>
          </van-col>
        </van-row>
        <van-row>
          <van-col span="12">
        <!-- <van-row> -->
          <!-- <van-col span="12">
            <div style="text-align: left">
              <div class="sport-content-title2">
                {{ $t("hj44") }} ({{ activeObj.symbolCode }})
@@ -468,7 +468,7 @@
                {{ item.amountToBeCovered }}
              </div>
            </div>
          </van-col>
          </van-col> -->
          <!-- <van-col span="8">
            <div style="text-align: center">
              <div class="sport-content-title2">
@@ -489,7 +489,7 @@
              </div>
            </div>
          </van-col> -->
        </van-row>
        <!-- </van-row> -->
        <van-row>
          <van-col span="12">
            <div style="text-align: left">
src/page/user/Warehouse/item.card.vue
@@ -3,10 +3,15 @@
    <div class="total-assets">
      <div class="left">
        <div class="total-name">
          {{ activeObj.symbolCode == 'SAR' ? 'إجمالي أصول الأسهم السعودية' : activeObj.assname }} ({{ activeObj.symbolCode }})
          {{
            activeObj.symbolCode == "SAR"
              ? "إجمالي أصول الأسهم السعودية"
              : activeObj.assname
          }}
          ({{ activeObj.symbolCode }})
        </div>
        <div class="total-data">
          {{ activeObj.totalMoney   }}
          {{ activeObj.totalMoney }}
          <!-- {{ 10000000000000   }} -->
        </div>
      </div>
@@ -15,7 +20,7 @@
    <div class="item-card-itembox">
      <div class="item">
        <div class="itembox-data">
          {{ activeObj.profitAndLoss   }}
          {{ activeObj.profitAndLoss }}
        </div>
        <div class="itembox-name">
@@ -24,7 +29,7 @@
      </div>
      <div class="item">
        <div class="itembox-data">
          {{ activeObj.availableBalance   }}
          {{ activeObj.availableBalance }}
        </div>
        <div class="itembox-name">
@@ -34,7 +39,7 @@
      <div class="item">
        <div class="itembox-data">
          {{ activeObj.isZf === 1 ? "-" : "" }}
          {{ activeObj.cumulativeProfitAndLoss   }}
          {{ activeObj.cumulativeProfitAndLoss }}
        </div>
        <div class="itembox-name">
@@ -43,7 +48,7 @@
      </div>
      <div class="item">
        <div class="itembox-data">
          {{ activeObj.freezeMoney  }}
          {{ activeObj.freezeMoney }}
        </div>
        <div class="itembox-name">
@@ -52,14 +57,14 @@
      </div>
      <div class="item">
        <div class="itembox-data">
          {{ activeObj.handlingCharge  }}
          {{ activeObj.handlingCharge }}
        </div>
        <div class="itembox-name">
          {{ $t("總手續費") }} ({{ activeObj.symbolCode }})
        </div>
      </div>
      <div class="item">
      <!-- <div class="item">
        <div class="itembox-data">
          {{ activeObj.amountToBeCovered  }}
        </div>
@@ -67,7 +72,7 @@
        <div class="itembox-name">
          {{ $t("待补金额") }} ({{ activeObj.symbolCode }})
        </div>
      </div>
      </div> -->
    </div>
    <Dialog ref="closeAllDialog" :title="$t('一鍵平倉')" :confirm="confirm">
      <template v-slot:center>
@@ -86,12 +91,12 @@
  props: {
    activeObj: {
      type: Object,
      default: {},
      default: {}
    },
    itemClick: {
      type: Function,
      default: () => {},
    },
      default: () => {}
    }
  },
  methods: {
    async confirm() {
@@ -105,8 +110,8 @@
    closeAll() {
      this.$refs.closeAllDialog.show = true;
    },
  },
    }
  }
};
</script>
src/page/user/transfer.vue
@@ -228,14 +228,14 @@
      },
      myMoney: "",
      my_availableBalance: 0,
      fromCurrency: "USDT",
      fromCurrency: "USD",
      toCurrency: "ST",
      fromAmount: "",
      toAmount: "",
      fromBalance: "1000.00",
      exchangeRate: "1 USDT = 100 ST",
      exchangeRate: "1 USD = 100 ST",
      currencyOptions: [
        { text: "USDT", value: "USDT" },
        { text: "USD", value: "USD" },
        { text: "ST", value: "ST" }
        // { text: "欧元(EUR)", value: "EUR" },
        // { text: "英镑(GBP)", value: "GBP" }
@@ -290,7 +290,7 @@
      if (this.fromCurrency === "ST") {
        this.my_availableBalance = 0;
      } else if (this.fromCurrency === "USDT" || this.fromCurrency === "USD") {
      } else if (this.fromCurrency === "USD" || this.fromCurrency === "USD") {
        this.my_availableBalance = 1;
      }
      console.log(this.myMoney[this.my_availableBalance].availableBalance);
@@ -301,7 +301,7 @@
      // 示例简单计算
      if (this.fromAmount && this.fromCurrency && this.toCurrency) {
        const rate =
          this.fromCurrency === "USDT" && this.toCurrency === "ST" ? 100 : 1;
          this.fromCurrency === "USD" && this.toCurrency === "ST" ? 100 : 1;
        this.toAmount = (this.fromAmount * rate).toFixed(2);
      }
    },
@@ -367,10 +367,7 @@
        this.myMoney = data.data;
        if (this.fromCurrency === "ST") {
          this.my_availableBalance = 0;
        } else if (
          this.fromCurrency === "USDT" ||
          this.fromCurrency === "USD"
        ) {
        } else if (this.fromCurrency === "USD") {
          this.my_availableBalance = 1;
        }
      } else {
@@ -402,8 +399,11 @@
  text-decoration: none;
}
.wrapper /deep/ .mint-tab-item-label {
  font-size: 0.264rem;
.wrapper /deep/ .van-nav-bar__title {
  font-size: 0.4rem !important;
}
.wrapper /deep/ .van-cell {
  font-size: 0.31rem !important;
}
.mint-navbar .mint-tab-item.is-selected {