lxf
2025-04-24 154848e66fd2f82ce1a9be92f1abbe502d661fc3
src/page/list/tradingList/data.list.vue
@@ -78,7 +78,7 @@
                      white-space: nowrap;
                    "
                  >
                    {{ item.name || item.stockName }}
                    {{ item.st_name || item.name || item.stockName }}
                  </div>
                </div>
                <div class="bt">
@@ -198,12 +198,12 @@
      pageNumVal: 1,
      getInterval: null,
      num: 1,
      orderBy: '',
      orderBy: "",
      refreshing: false,
      actions:[
        { text: 'ترتيب', zh: '升序', val: 'asc' },
        { text: 'التخفيض',zh:'降序' , val: 'desc'},
        { text: 'طبيعي' ,zh: '正常', val: ''},
      actions: [
        { text: "ترتيب", zh: "升序", val: "asc" },
        { text: "التخفيض", zh: "降序", val: "desc" },
        { text: "طبيعي", zh: "正常", val: "" }
      ]
    };
  },
@@ -224,7 +224,7 @@
  },
  methods: {
    onSelect(action) {
      this.orderBy = (action.val);
      this.orderBy = action.val;
      this.getStock(this.active, this.zxactive, 1);
    },
    filterSH(val) {
@@ -246,7 +246,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;
@@ -303,13 +304,15 @@
        } else if (a == "HJ") {
          data = await api.getGoldCrudeOil();
          data.data.list = Object.entries(data.data).map(
            ([name, nowPrice]) => ({
          data.data.list = Object.entries(data.data).map(([name, nowPrice]) => {
            let nowPriceArr = Object.entries(nowPrice);
            return {
              name,
              nowPrice,
              st_name: nowPriceArr[0][0],
              nowPrice: nowPriceArr[0][1],
              stock_type: "HJ"
            })
          );
            };
          });
        } else {
          //大宗
          opt.stockType = "";