lxf
2025-04-24 93901371936ae975679c9f5bc9ec5619e23bbe63
src/page/user/Warehouse.vue
@@ -1,7 +1,7 @@
<template>
  <div class="ware">
    <div style="padding: 0 0.4rem 0.4rem">
      <van-tabs v-model="active" color="#0066ed">
      <van-tabs v-model="active" color="#0066ed" @change="handleTabChange">
        <van-tab :title="$t('hj52')" name="2"></van-tab>
        <van-tab :title="$t('黄金原油')" name="1"></van-tab>
      </van-tabs>
@@ -52,6 +52,15 @@
          laber: "ST",
          symbolCode: "INR",
          symbol: "₹"
        },
        {
          title: this.$t("黄金原油"),
          assname: this.$t("黄金原油"),
          name: "1",
          bgc: "rgb(12, 175, 226)",
          laber: "USDT",
          symbolCode: "MYR",
          symbol: "RM"
        }
        // {
        //   title: this.$t("黄金原油"),
@@ -129,6 +138,13 @@
      if (e.name !== "1") {
        this.$refs.dataListref.getList(e.laber);
      }
    },
    handleTabChange(name) {
      const arr = this.tabsArr.filter(item => item.name === name);
      if (arr.length > 0) {
        this.activeObj = arr[0];
        this.$refs.dataListref.getList(this.activeObj.laber);
      }
    }
  }
};