| | |
| | | }); |
| | | 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, |
| | |
| | | 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", { |
| | |
| | | }); |
| | | 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, |
| | |
| | | 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' |
| | |
| | | indexDisplay: false, |
| | | kcStockDisplay: false, |
| | | stockDisplay: false |
| | | }, |
| | | } |
| | | }; |
| | | |
| | | export default new Vuex.Store({ |
| | |
| | | } |
| | | }, |
| | | // 触发客服提示 |
| | | CustomerService(){ |
| | | Toast(i18n.t('kf1')); |
| | | CustomerService() { |
| | | Toast(i18n.t("kf1")); |
| | | } |
| | | }, |
| | | mutations: { |