lxf
2025-04-23 92dd4aaaa7fb67c4d65df18e0e69cbc6775575d3
src/page/list/tradingList/data.list.vue
@@ -73,7 +73,7 @@
              </div>
            </van-col>
            <van-col span="3">
            <van-col span="3" v-if="active != 'HJ'">
              <div style="text-align: right">
                {{ (item.gid || item.stockGid).toUpperCase() }}
              </div>
@@ -91,7 +91,7 @@
                </div>
              </div>
            </van-col>
            <van-col span="6" v-if="active != 'DZ'">
            <van-col span="6" v-if="!['DZ', 'HJ'].includes(active)">
              <div style="text-align: right">
                <div
                  class="tp right_bs"
@@ -221,7 +221,8 @@
      // 点击进入详情
      const obj = {
        pid: item.code || "",
        type: item.stock_type || ""
        type: item.stock_type || "",
        name: item.name || ""
      };
      window.localStorage.setItem("kLine", JSON.stringify(obj));
      // return;
@@ -275,6 +276,16 @@
        if (a == "ST") {
          //沙特
          data = await api.getStockByType(opt);
        } else if (a == "HJ") {
          data = await api.getGoldCrudeOil();
          data.data.list = Object.entries(data.data).map(
            ([name, nowPrice]) => ({
              name,
              nowPrice,
              stock_type: "HJ"
            })
          );
        } else {
          //大宗
          opt.stockType = "";
@@ -301,6 +312,7 @@
              this.listArr = data.data.list;
              this.loadings = false;
              // this.finished = true;
              console.log("listArr", this.listArr);
              if (this.listArr.length % 20) {
                this.finished = true;
              }