1
jhzh
2026-02-27 5dfb843c29fdcc1693961b70a36ddee3fea85a4a
src/page/user/Warehouse/data.list.vue
@@ -44,8 +44,8 @@
        <van-row>
          <van-col span="18">
            <div style="text-align: left">
              <div class="sport-content-title2">{{ $t("持倉時間") }}{{ $moment(item.buyOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}</div>
              <!-- <div class="sport-content-title2">{{ $t("訂單編號") }}</div> -->
              <!-- <div class="sport-content-title2">{{ $t("持倉時間") }}{{ $moment(item.buyOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}</div> -->
              <div class="sport-content-title2">{{ $t("hj141") }}</div>
            </div>
          </van-col>
          <van-col span="6">
@@ -113,7 +113,7 @@
          </van-col>
          <van-col span="12">
            <div style="text-align: right">
              <div class="sport-content-text2">¥{{ item.orderFee }}</div>
              <div class="sport-content-text2">{{ item.orderFee }}円</div>
            </div>
          </van-col>
        </van-row>
@@ -125,7 +125,7 @@
                {{ $t("盈虧") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2" :style="item.profitAndLoseParent.charAt(0)=='-'?'color:#cc1b1b;':'color:#3e9976;'">
                ¥{{ item.profitAndLose | _toLocaleString }}
                円{{ item.profitAndLose | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -153,7 +153,7 @@
                {{ $t("hj40") }}({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.now_price | _toLocaleString }}
                円{{ item.now_price | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -163,7 +163,7 @@
                {{ $t("持倉價") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.buyOrderPrice | _toLocaleString }}
                円{{ item.buyOrderPrice | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -173,7 +173,7 @@
                {{ $t("訂單金額") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.orderTotalPrice | _toLocaleString }}
                円{{ item.orderTotalPrice | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -185,7 +185,7 @@
                {{ $t("hj44") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
               ¥{{ item.orderFee | _toLocaleString }}
               円{{ item.orderFee | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -195,7 +195,7 @@
                {{ $t("待补金额") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
               ¥{{ item.amountToBeCovered | _toLocaleString }}
               円{{ item.amountToBeCovered | _toLocaleString }}
              </div>
            </div>
          </van-col> -->
@@ -251,7 +251,7 @@
        <van-row>
          <van-col span="18">
            <div style="text-align: left">
              <div class="sport-content-title2">{{ $t("持倉時間") }}{{ $moment(item.buyOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}</div>
              <div class="sport-content-title2">{{ $t("持倉時間") }}{{ formatTimestamp(item.buyOrderTime) }}</div>
              <!-- <div class="sport-content-title2">{{ $t("訂單編號") }}</div> -->
            </div>
          </van-col>
@@ -320,7 +320,7 @@
          </van-col>
          <van-col span="12">
            <div style="text-align: right">
              <div class="sport-content-text2">¥{{ item.orderFee }}</div>
              <div class="sport-content-text2">円{{ item.orderFee }}</div>
            </div>
          </van-col>
        </van-row>
@@ -343,7 +343,7 @@
                {{ $t("盈虧") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2" :style="item.profitAndLoseParent.charAt(0)=='-'?'color:#cc1b1b;':'color:#3e9976;'">
                ¥{{ item.profitAndLose | _toLocaleString }}
                円{{ item.profitAndLose | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -371,7 +371,7 @@
                {{ $t("hj40") }}({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.now_price | _toLocaleString }}
                円{{ item.now_price | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -381,7 +381,7 @@
                {{ $t("持倉價") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.buyOrderPrice | _toLocaleString }}
                円{{ item.buyOrderPrice | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -391,7 +391,7 @@
                {{ $t("訂單金額") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
                ¥{{ item.orderTotalPrice | _toLocaleString }}
                円{{ item.orderTotalPrice | _toLocaleString }}
              </div>
            </div>
          </van-col>
@@ -403,7 +403,7 @@
                {{ $t("hj44") }} ({{ activeObj.symbolCode }})
              </div>
              <div class="sport-content-text2">
               ¥{{ item.orderFee | _toLocaleString }}
               円{{ item.orderFee | _toLocaleString }}
              </div>
            </div>
          </van-col> -->
@@ -531,6 +531,20 @@
    clearInterval(this.timer); // 在组件销毁前清除定时器
  },
  methods: {
    formatTimestamp(timestamp) {
      const date = new Date(timestamp);  // 将时间戳转换为 Date 对象
      const day = date.getDate();        // 日期
      const month = date.getMonth() + 1; // 月份(从 0 开始,所以下标要加 1)
      const year = date.getFullYear();   // 年份
      const hours = date.getHours();     // 小时
      const minutes = date.getMinutes(); // 分钟
      const seconds = date.getSeconds(); // 秒钟
      // 格式化为 "日月年/时分秒" 格式
      return `${year}${this.$t('年')}${month}${this.$t('月')}${day}${this.$t('日')}/${hours}:${minutes}:${seconds}`;
      // return `${month}`;
    },
    dsq(){
      // this.dataList = [];
      this.timer = setInterval(() => {
@@ -688,7 +702,7 @@
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    width: 25%;
    // width: 25%;
  }
  .list_box_txt{
    padding: 2px 4px;