lxf
2025-04-28 0c7a7f7c8efb75d677517df70da482c4f18f6d3d
src/page/list/tradingList/data.list.vue
@@ -2,16 +2,16 @@
  <div class="list-data">
    <div class="header-box">
      <van-row type="flex" align="center" gutter="20">
        <van-col span="8">
        <van-col span="11">
          <div>
            {{ $t("hj313") }}
          </div>
        </van-col>
        <van-col span="3">
        <!-- <van-col span="3">
          <div style="text-align: right">
            {{ $t("市场") }}
          </div>
        </van-col>
        </van-col> -->
        <van-col :span="active == 'DZ' ? '12' : '7'">
          <div style="text-align: right">
            {{ $t("hj314") }}
@@ -59,7 +59,7 @@
          :key="item.indexCode"
        >
          <van-row type="flex" align="center" gutter="20">
            <van-col span="8" style="padding-right: 0 !important;">
            <van-col span="13" style="padding-right: 0 !important;">
              <div>
                <div class="tp">
                  <div class="collection" @click="optionszx(item)">
@@ -87,17 +87,17 @@
              </div>
            </van-col>
            <van-col span="3" v-if="active != 'HJ'">
            <!-- <van-col span="3" v-if="active != 'HJ'">
              <div style="text-align: right">
                {{ (item.gid || item.stockGid).toUpperCase() }}
              </div>
            </van-col>
            </van-col> -->
            <van-col :span="active == 'DZ' ? '12' : '7'">
            <van-col :span="active == 'DZ' ? '12' : '5'">
              <div style="text-align: right">
                <div class="tp">
                  <span class="price_color">
                    {{ item.nowPrice | _toLocaleString(false) }}
                    {{ item.nowPrice }}
                  </span>
                </div>
                <div class="bt" v-if="active != 'DZ'">
@@ -105,7 +105,7 @@
                </div>
              </div>
            </van-col>
            <van-col span="6" v-if="!['DZ', 'HJ'].includes(active)">
            <van-col span="6" v-if="!['DZ'].includes(active)">
              <div style="text-align: right">
                <div
                  class="tp right_bs"
@@ -306,11 +306,21 @@
          data.data.list = Object.entries(data.data).map(([name, nowPrice]) => {
            let nowPriceArr = Object.entries(nowPrice);
            let nowPriceObj = {};
            nowPriceArr.map(item => {
              if (name === item[0]) {
                nowPriceObj.st_name = item[0];
                nowPriceObj.nowPrice = item[1];
              }
              nowPriceObj = {
                ...nowPriceObj,
                [item[0]]: item[1]
              };
            });
            return {
              name,
              st_name: nowPriceArr[0][0],
              nowPrice: nowPriceArr[0][1],
              stock_type: "HJ"
              stock_type: "HJ",
              ...nowPriceObj
            };
          });
        } else {