| | |
| | | |
| | | <script> |
| | | import * as api from "@/axios/api"; |
| | | import { mapActions } from "vuex"; |
| | | |
| | | export default { |
| | | name: "trBuy", |
| | |
| | | } else if (this.bayType == "qh") { |
| | | this.priceTabs = [this.$t("hj108")]; |
| | | } |
| | | this.getUserInfo(); |
| | | this.setUseInfo(); |
| | | this.getMoneyData(); |
| | | this.getSettingInfo(); |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | ...mapActions(["setUseInfo"]), |
| | | |
| | | async getMoneyData() { |
| | | let data = await api.getMoney(); |
| | | let type = this.bayType === "SZHB" ? "US" : this.bayType; |
| | |
| | | this.$router.push("/authentications"); |
| | | return; |
| | | } |
| | | // if (!this.agree) { |
| | | // Toast('需同意合作协议才能交易!') |
| | | // } else if (isNull(this.selectNumber) && isNull(this.autoNumber)) { |
| | | // Toast('请选择购买手数') |
| | | // } else if (isNull(this.selectType)) { |
| | | // Toast('请选择买卖方向') |
| | | // } else if(isNull(this.subaccountNumber)) { |
| | | // Toast('请选择子账户') |
| | | // } else {} |
| | | |
| | | if (this.buying) { |
| | | return; |
| | | } |
| | |
| | | elAlertType: "success", |
| | | }); |
| | | this.getUserInfo(); |
| | | var buyType = '' |
| | | var buyType = ""; |
| | | if (this.tabsCurrentIndex == 0) { |
| | | buyType = 1; |
| | | } else { |
| | | buyType = 0; |
| | | } |
| | | if(this.bayType=='US'){ |
| | | |
| | | this.$router.push("/warehouse?index=1&buyType="+buyType); |
| | | }else if(this.bayType=='MAS'){ |
| | | this.$router.push("/warehouse?index=0&buyType="+buyType); |
| | | }else { |
| | | if (this.bayType == "US") { |
| | | this.$router.push("/warehouse?index=1&buyType=" + buyType); |
| | | } else if (this.bayType == "MAS") { |
| | | this.$router.push("/warehouse?index=0&buyType=" + buyType); |
| | | } else { |
| | | this.$router.push("/warehouse"); |
| | | } |
| | | } else { |