123
dcc
2024-05-21 80d2e306cd5b74f1926f59ff9454f2a04620c8b6
src/page/user/recharge-sure.vue
@@ -16,24 +16,10 @@
      </template>
    </van-nav-bar>
    <main>
      <div class="main-title">IFSC</div>
      <div class="main-title">{{ $t("請選擇提款账户") }}</div>
      <van-cell
        is-link
        :title="paymentSelectData.channelAccount || $t('请设置ifsc')"
        @click="paymentShow = true"
      />
      <!-- paymentSelectData.channelMinLimit -->
      <van-action-sheet
        v-model="paymentShow"
        :actions="paymentActions"
        :cancel-text="$t('qx')"
        close-on-click-action
        @select="paymentSelect"
      />
      <div class="main-title">{{ $t("银行帐号") }}</div>
      <van-cell
        is-link
        :title="rechargeAccountData.name || $t('请将银行账户设置为')"
        :title="rechargeAccountData.name || $t('請選擇')"
        @click="rechargeAccountShow = true"
      />
      <van-action-sheet
@@ -43,11 +29,8 @@
        close-on-click-action
        @select="rechargeAccountSelect"
      />
      <div class="main-title">{{ $t("hj213") }}</div>
      <van-cell is-link :title="bankCard.bankName || $t('请设置银行名称')" />
      <div class="main-title">{{ $t("姓名") }}</div>
      <van-cell is-link :title="paymentSelectData.channelName || $t('请将姓名设置为')" />
<!--      <div class="main-title">{{ $t("支持得提款渠道") }}</div>
      <div class="main-title">{{ $t("支持得提款渠道") }}</div>
      <van-cell
        is-link
        :title="rechargeSelect.name || $t('請選擇')"
@@ -63,7 +46,7 @@
      <div v-if="rechargeSelect.key !== undefined">
        <div class="main-title">{{ $t("請選擇銀行卡") }}</div>
        <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" />
      </div>-->
      </div>
      <div class="main-title">{{ $t("請選擇充值金額") }}</div>
      <div class="white-input">
        <input type="number" :value="value" @input="inputValue" />
@@ -80,9 +63,6 @@
          </div>
        </div>
      </div>
<!--      <van-cell-group>-->
<!--        <van-cell :title="$t('最低取款金额')" value="内容" />-->
<!--      </van-cell-group>-->
      <van-button
        class="but"
        type="primary"
@@ -95,21 +75,16 @@
</template>
<script>
import { ActionSheet, Notify,Cell, CellGroup } from "vant";
import { ActionSheet, Notify } from "vant";
import ClipboardJS from "clipboard";
import {getBankCard, getMoney, outMoney, siteGetPayInfo} from "../../axios/api";
import { getBankCard, getMoney, outMoney } from "../../axios/api";
export default {
  components: {
    ActionSheet,
    [Notify.Component.name]: Notify.Component,
    Cell,
    CellGroup
  },
  components: { ActionSheet, [Notify.Component.name]: Notify.Component },
  data() {
    return {
      value: 0,
      paymentActions: [],
      paymentSelectData: "US",
      show: false,
@@ -128,17 +103,17 @@
          key: "US",
        },
        {
          name: this.$t("IN"),
          name: this.$t("MAS"),
          key: "MAS",
        },
        {
          name: this.$t("HK"),
          key: "HK",
        },
        {
          name: this.$t("yg"),
          key: "IN",
        },
        // {
        //   name: this.$t("MAS"),
        //   key: "MAS",
        // },
        // {
        //   name: this.$t("HK"),
        //   key: "HK",
        // },
      ],
      bankCard: {},
@@ -151,20 +126,8 @@
  mounted() {
    this.getykh();
    this.getMoneys();
    this.getPayInfos();
  },
  methods: {
    async getPayInfos() {
      const res = await siteGetPayInfo();
      if (res.status === 0) {
        res.data.map((item) => {
          item.name = item.channelType;
        });
        this.paymentActions = res.data;
        console.log(this.paymentActions)
      }
      console.log(res);
    },
    async setOutMoney() {
      const res = await outMoney({
        amt: this.value,
@@ -236,13 +199,8 @@
      });
    },
    paymentSelect(e) {
      this.paymentSelectData = e;
      this.paymentSelectData = e.name;
      console.log(e);
      this.rechargeAccountActions.map((item) => {
        if (item.key === e.assetsType) {
          this.rechargeAccountData = item;
        }
      });
    },
  },
};