1
PC-20250623MANY\Administrator
2025-08-21 ab4c54429ca8116f5ecd542affdd0e8cbdd320f0
1
2 files modified
14 ■■■■ changed files
src/page/trading/buy.vue 6 ●●●● patch | view | raw | blame | history
src/store/index.js 8 ●●●● patch | view | raw | blame | history
src/page/trading/buy.vue
@@ -574,7 +574,7 @@
        });
        this.getUserInfo();
        // this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
        this.$router.go(-1);
        this.$router.push("/markets-list");
      } else {
        this.$store.commit("elAlertShow", {
          elAlertShow: true,
@@ -654,7 +654,7 @@
          buyType = 0;
        }
        // this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
        this.$router.go(-1);
        this.$router.push("/markets-list");
      } else {
        if (data.msg.indexOf("不在交易时段内") > -1) {
          this.$store.commit("elAlertShow", {
@@ -682,7 +682,7 @@
        });
        this.getUserInfo();
        // this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
        this.$router.go(-1);
        this.$router.push("/markets-list");
      } else {
        this.$store.commit("elAlertShow", {
          elAlertShow: true,
src/store/index.js
@@ -1,7 +1,7 @@
import { getUserInfodata } from "@/axios/api";
import Vue from "vue";
import Vuex from "vuex";
import { Toast } from 'vant';
import { Toast } from "vant";
import i18n from "@/locales/index.js";
// import getters from './getters'
// import actions from './actions'
@@ -32,7 +32,7 @@
    indexDisplay: false,
    kcStockDisplay: false,
    stockDisplay: false
  },
  }
};
export default new Vuex.Store({
@@ -50,8 +50,8 @@
      }
    },
    // 触发客服提示
    CustomerService(){
      Toast(i18n.t('kf1'));
    CustomerService() {
      Toast(i18n.t("kf1"));
    }
  },
  mutations: {