dcc
2024-05-16 1aa2152fa57f80a7053376de76ab770e66380ff7
src/page/user/recharge-sure.vue
@@ -17,25 +17,28 @@
    </van-nav-bar>
    <main>
      <div class="main-title">IFSC</div>
      <div class="white-input">
        <input type="number" :placeholder="$t('请设置ifsc')" :value="bankCard.bankAddress" @input="ifscInputValue" />
        <van-icon class="myr" name="arrow" />
      </div>
<!--      <van-cell-->
<!--        is-link-->
<!--        :title="paymentSelectData.channelAccount || $t('请设置ifsc')"-->
<!--        @click="paymentShow = true"-->
<!--      />-->
<!--      <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="paymentSelectData.channelAccount || $t('请设置ifsc')"
        @click="paymentShow = true"
        :title="rechargeAccountData.name || $t('請選擇')"
        @click="rechargeAccountShow = 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('请将银行账户设置为')"
      />
<!--      @click="rechargeAccountShow = true"-->
      <van-action-sheet
        v-model="rechargeAccountShow"
        :actions="rechargeAccountActions"
@@ -43,27 +46,52 @@
        close-on-click-action
        @select="rechargeAccountSelect"
      />
      <div class="main-title">{{ $t("银行帐号") }}</div>
      <div class="white-input">
        <input type="number" :placeholder="$t('请将银行账户设置为')" :value="bankCard.bankNo" @input="bankNoInputValue" />
        <van-icon class="myr" name="arrow" />
      </div>
<!--      <van-cell-->
<!--        is-link-->
<!--        :title="rechargeAccountData.name || $t('请将银行账户设置为')"-->
<!--        @click="rechargeAccountShow = true"-->
<!--      />-->
<!--      <van-action-sheet-->
<!--        v-model="rechargeAccountShow"-->
<!--        :actions="rechargeAccountActions"-->
<!--        :cancel-text="$t('hj106')"-->
<!--        close-on-click-action-->
<!--        @select="rechargeAccountSelect"-->
<!--      />-->
      <div class="main-title">{{ $t("hj213") }}</div>
      <van-cell is-link :title="bankCard.bankName || $t('请设置银行名称')" />
      <div class="white-input">
        <input type="text" :placeholder="$t('请设置银行名称')" :value="bankCard.bankName" @input="bankNameInputValue" />
        <van-icon class="myr" name="arrow" />
      </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>
      <van-cell
        is-link
        :title="rechargeSelect.name || $t('請選擇')"
        @click="show = true"
      />
      <van-action-sheet
        v-model="show"
        :actions="actions"
        :cancel-text="$t('hj106')"
        close-on-click-action
        @select="select"
      />
      <div v-if="rechargeSelect.key !== undefined">
        <div class="main-title">{{ $t("請選擇銀行卡") }}</div>
        <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" />
      </div>-->
      <div class="white-input">
        <input type="text" :placeholder="$t('请将姓名设置为')" :value="actualName" @input="actualNameInputValue" />
        <van-icon class="myr" name="arrow" />
      </div>
<!--      <van-cell is-link :title="paymentSelectData.channelName || $t('请将姓名设置为')" />-->
<!--      <div class="main-title">{{ $t("支持得提款渠道") }}</div>-->
<!--      <van-cell-->
<!--        is-link-->
<!--        :title="rechargeSelect.name || $t('請選擇')"-->
<!--        @click="show = true"-->
<!--      />-->
<!--      <van-action-sheet-->
<!--        v-model="show"-->
<!--        :actions="actions"-->
<!--        :cancel-text="$t('hj106')"-->
<!--        close-on-click-action-->
<!--        @select="select"-->
<!--      />-->
<!--      <div v-if="rechargeSelect.key !== undefined">-->
<!--        <div class="main-title">{{ $t("請選擇銀行卡") }}</div>-->
<!--        <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" />-->
<!--      </div>-->
      <div class="main-title">{{ $t("請選擇充值金額") }}</div>
      <div class="white-input">
        <input type="number" :value="value" @input="inputValue" />
@@ -72,7 +100,8 @@
        }}</span>
      </div>
      <div>
        <div class="dz-title" v-if="rechargeAccountData.key !== undefined">
<!--        <div class="dz-title" v-if="rechargeAccountData.key !== undefined">-->
        <div class="dz-title">
          <div>{{ $t("可用餘額") }}</div>
          <div class="balance-text">
            {{ availableBalanceUSD }} {{ symbolCode }}
@@ -80,9 +109,9 @@
          </div>
        </div>
      </div>
<!--      <van-cell-group>-->
<!--        <van-cell :title="$t('最低取款金额')" value="内容" />-->
<!--      </van-cell-group>-->
      <van-cell-group>
        <van-cell :title="$t('最低取款金额')" :value="'500' + symbolCode" />
      </van-cell-group>
      <van-button
        class="but"
        type="primary"
@@ -111,7 +140,7 @@
      value: 0,
      paymentActions: [],
      paymentSelectData: "US",
      actualName: this.$store.state.userInfo.realName,
      show: false,
      // 提款聚到
@@ -183,6 +212,18 @@
    inputValue(e) {
      this.value = e.target.value;
    },
    ifscInputValue(e){
      this.bankCard.bankAddress = e.target.value;
    },
    bankNoInputValue(e){
      this.bankCard.bankNo = e.target.value;
    },
    bankNameInputValue(e){
      this.bankCard.bankName = e.target.value;
    },
    actualNameInputValue(e){
      this.actualName = e.target.value;
    },
    async getykh() {
      const res = await getBankCard();
      if (res.status === 0) {
@@ -226,6 +267,7 @@
      console.log(e);
    },
    rechargeAccountSelect(e) {
      console.log(e)
      this.rechargeAccountData = e;
      (this.getMoneyList || []).map((item) => {
        if (item.accectType === this.rechargeAccountData.key) {
@@ -237,10 +279,13 @@
    },
    paymentSelect(e) {
      this.paymentSelectData = e;
      this.accectType = e.assetsType;
      console.log(e);
      this.rechargeAccountActions.map((item) => {
        if (item.key === e.assetsType) {
          console.log(item)
          this.rechargeAccountData = item;
          this.rechargeAccountSelect(item)
        }
      });
    },