lxf
2025-04-30 8852f8d5ccf02049b9e90a2d537be53c671d8472
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>
@@ -97,7 +97,7 @@
              <div style="text-align: right">
                <div class="tp">
                  <span class="price_color">
                    {{ item.nowPrice  }}
                    {{ 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',].includes(active)">
            <van-col span="6" v-if="!['DZ'].includes(active)">
              <div style="text-align: right">
                <div
                  class="tp right_bs"
@@ -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: "" }
      ]
    };
  },
@@ -306,17 +306,29 @@
          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 {
          //大宗
          opt.stockType = "";
          data = await api.stockgetDzList(opt);
          this.loadings = false;
          this.finished = true;
        }
      } else {
        // 自选