dcc
2024-05-17 b8f6f514b675fa6a006dfafbc99303b3c5c8ba85
一鍵平倉增加英文多语言,IFSC改成Select recharge account
3 files modified
34 ■■■■■ changed files
src/axios/index.js 4 ●●● patch | view | raw | blame | history
src/locales/en.json 1 ●●●● patch | view | raw | blame | history
src/page/user/recharge.vue 29 ●●●●● patch | view | raw | blame | history
src/axios/index.js
@@ -40,7 +40,9 @@
// ajax请求回调之前拦截 对请求返回的信息做统一处理 比如error为401无权限则跳转到登陆界面
axios.interceptors.response.use(
  response => {
    if (response.data && response.data.status === 401) {
    let {current} = router.history
    console.log(current,'router')
    if (response.data && response.data.status === 401 && current.path != '/register') {
      store.commit("undataToken", null);
      window.localStorage.setItem("USERTOKEN", null);
      router.push("/login");
src/locales/en.json
@@ -291,6 +291,7 @@
  "hj170": "Recharge amount",
  "hj170a": "recharge method",
  "hj171a": "Please select a recharge method",
  "一鍵平倉": "Close a position with one click",
  "hj171": "Please enter the recharge amount",
  "hj172": "top up",
  "hj173": "Operating procedures",
src/page/user/recharge.vue
@@ -17,25 +17,16 @@
    </van-nav-bar>
    <main>
      <div>
        <template v-if="paymentSelectData.channelAccount !== undefined">
          <div class="main-title">{{ $t("請選擇充值賬戶") }}</div>
          <van-cell
            is-link
            :title="$t(rechargeAccountData.key) || $t('請選擇')"
          />
          <van-action-sheet
            v-model="rechargeAccountShow"
            :actions="rechargeAccountActions"
            :cancel-text="$t('qx')"
          />
        </template>
        <div class="main-title">IFSC</div>
        <!--        <div class="main-title">IFSC</div>-->
        <div class="main-title">Select recharge account</div>
        <div class="white-input" @click="paymentShow = true">
          <span>{{ paymentSelectData.channelAccount || $t('請選擇') }}</span>
          <i
            v-if="paymentSelectData.channelAccount"
            class="iconfont icon-fuzhi fuzhi"
            @click.stop="(e) => copyText(e, paymentSelectData.channelAccount)"
          ></i>
          <van-icon v-else class="myr" name="arrow" />
        </div>
<!--        <van-cell-->
<!--          is-link-->
@@ -50,6 +41,18 @@
          close-on-click-action
          @select="paymentSelect"
        />
        <template v-if="paymentSelectData.channelAccount !== undefined">
          <div class="main-title">{{ $t("請選擇充值賬戶") }}</div>
          <van-cell
            is-link
            :title="$t(rechargeAccountData.key) || $t('請選擇')"
          />
          <van-action-sheet
            v-model="rechargeAccountShow"
            :actions="rechargeAccountActions"
            :cancel-text="$t('qx')"
          />
        </template>
        <template v-if="paymentSelectData.channelAccount !== undefined">
          <div class="main-title">{{ $t("银行帐号") }}</div>