| | |
| | | <div>{{ $t("总价") }}</div> |
| | | <div>{{ amt * activeData.issuePrice }} USDT</div> |
| | | </div> |
| | | <van-button class="okbut" type="info" @click="peishou"> |
| | | <van-button |
| | | :loading="loading" |
| | | class="okbut" |
| | | type="info" |
| | | @click="peishou" |
| | | > |
| | | {{ $t("确定") }} |
| | | </van-button> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | amt: 0, |
| | | show: false, |
| | | active: 1, |
| | |
| | | id: 2, |
| | | }, |
| | | { |
| | | name: this.$t("中签结果"), |
| | | id: 3, |
| | | }, |
| | | { |
| | | name: this.$t("新币预览"), |
| | | id: 0, |
| | | }, |
| | |
| | | this.money_data = res.data; |
| | | }, |
| | | async peishou() { |
| | | this.loading = true; |
| | | if (Number(this.amt) <= 0) { |
| | | return Notify({ type: "warning", message: this.$t("请输入数量") }); |
| | | } |
| | | await icoOrderAppAdd({ |
| | | const res = await icoOrderAppAdd({ |
| | | icoNewCurrencyId: this.activeData.id, |
| | | orderType: this.activeData.type, |
| | | tokenCode: this.activeData.tokenCode, |
| | | lotteryQuantity: this.amt, |
| | | }).catch((ree) => { |
| | | this.loading = false; |
| | | }); |
| | | |
| | | Dialog.alert({ |
| | | title: this.$t("提示"), |
| | | message: this.$t("配售成功"), |
| | | confirmButtonText: this.$t("确定"), |
| | | }).then(() => { |
| | | this.$router.push(`/list-urrency?type=${this.activeData.type}`); |
| | | }); |
| | | this.loading = false; |
| | | if (res.code === "0") { |
| | | Dialog.alert({ |
| | | title: this.$t("提示"), |
| | | message: this.$t("配售成功"), |
| | | confirmButtonText: this.$t("确定"), |
| | | }).then(() => { |
| | | this.$router.push(`/list-urrency?type=${this.activeData.type}`); |
| | | }); |
| | | } |
| | | }, |
| | | onClickLeft() { |
| | | this.$router.go(-1); |
| | |
| | | // 获取列表 |
| | | |
| | | changeTab(item) { |
| | | if (item.id === 3) { |
| | | return this.$router.push("/list-urrency"); |
| | | } |
| | | this.active = item.id; |
| | | }, |
| | | }, |