0510航天交易所ui仿制,代码使用的jiem
lxf
2025-05-19 46fb1e8ff48f2ca41a8a2a32a90693b91fb5f32a
首页k线修复
2 files modified
13 ■■■■■ changed files
src/components/list-quotation/index.vue 11 ●●●●● patch | view | raw | blame | history
src/request/httpAxios.js 2 ●●● patch | view | raw | blame | history
src/components/list-quotation/index.vue
@@ -281,6 +281,7 @@
      canvasList.forEach((canvas, index) => {
        if (!canvas) return;
        // if (this.listData[index].kLineData) return;
        const ctx = canvas.getContext("2d");
        const width = canvas.width;
@@ -312,6 +313,8 @@
        ctx.stroke();
      });
      console.log("listData: ", this.listData);
    },
    //排序
    listSort(val) {
@@ -396,6 +399,14 @@
        this.showList = [...this.listData].sort(this.compare("volume", "up"));
      }
      this.$forceUpdate();
      this.$nextTick(() => {
        // 为每一项补充 kLineData
        this.listData.forEach((item) => {
          if (!item.kLineData) {
            item.kLineData = this.generateKLineData();
          }
        });
      });
    },
  },
};
src/request/httpAxios.js
@@ -13,7 +13,7 @@
// let baseUrl = BASE_URL;
// let baseUrl = "http://192.168.0.105:18080/wap/";
// let baseUrl = "https://csjys.gayssad.com/wap/";
let baseUrl = "https://dapp.web3bit.info/wap/";
let baseUrl = "https://coin.usadeepcoin.com/wap/";
// 创建
const request = axios.create({