1
李凌
2025-12-24 309a95310b549f6380c99aea476bb7392ace326a
1
4 files modified
99 ■■■■■ changed files
src/views/homePage/index.vue 4 ●●● patch | view | raw | blame | history
src/views/my/assets.vue 15 ●●●● patch | view | raw | blame | history
src/views/payMentMethod/add.vue 15 ●●●●● patch | view | raw | blame | history
src/views/register/index.vue 65 ●●●● patch | view | raw | blame | history
src/views/homePage/index.vue
@@ -59,8 +59,10 @@
            {{ showMoney ? todayMoney.money_contract : "*****" }}
          </div>
        </div>
        <!-- <div style="background: black;color: white;padding: 4px 17px;border-radius: 90px;font-size: 14px"
          @click="toPage('/cryptos/recharge/rechargeList?isForeign=true')"> -->
        <div style="background: black;color: white;padding: 4px 17px;border-radius: 90px;font-size: 14px"
          @click="toPage('/cryptos/recharge/rechargeList?isForeign=true')">
          @click="toPage('/customerService')">
          {{ $t("充值") }}
        </div>
      </div>
src/views/my/assets.vue
@@ -314,7 +314,8 @@
    name: t('充值'),
    icon: new URL(`@/assets/theme/white/image/assets/recharge.png`, import.meta.url),
    icon2: new URL(`@/assets/theme/dark/image/assets/recharge.png`, import.meta.url),
    path: '/cryptos/recharge/rechargeList?isForeign=true'
    // path: '/cryptos/recharge/rechargeList?isForeign=true'
    path: '/customerService'
  },
  {
    key: 2,
@@ -347,10 +348,20 @@
  })
}
// 获取客服链接
const customer_service_url = ref(store.state.user.customer_service_url)
// 跳转页面
const toPage = (path) => {
  if (!path) return
  router.push(path)
  else if (path == '/customerService') {
    if (customer_service_url.value) {
      window.location.href = customer_service_url.value;
    } else {
      router.push(path)
    }
  }
  else router.push(path)
}
// 资产信息获取
src/views/payMentMethod/add.vue
@@ -134,8 +134,8 @@
    }
    .select-item-textarea {
        // background: $tab_background;
        background: $inp-b;
        background: $tab_background;
        // background: $inp-b;
        padding: 0 15px;
        align-items: center;
        height: 120px;
@@ -148,8 +148,7 @@
    }
    .tips {
        // background: $tab_background;
        background: $inp-b;
        background: $tab_background;
        border-radius: 3px;
        .tip-title {
@@ -171,17 +170,15 @@
}
:deep(.van-cell) {
    // background: $tab_background;
    background: $inp-b;
    background: $tab_background;
    color: $text_color;
    input {
        color: $log-c;
        color: $text_color;
    }
}
:deep(.van-field__control) {
    // color: $text_color;
    color: $log-c;
    color: $text_color;
}
</style>
src/views/register/index.vue
@@ -105,7 +105,7 @@
const safeword = ref('')
const fundPassword = ref('')
const refundPassword = ref('')
const activeIndex = ref(0)
const activeIndex = ref(1)
const typeText = ref('password')
let isArea = ref(false)
let dialCode = ref(0)
@@ -267,37 +267,38 @@
            }
    }
    if (activeIndex.value === 1) {
        _bindEmailRegister({
            username: username.value,
            password: password.value,
            type: '2',   // 2邮箱
            verifcode: verifyCode.value,
            usercode: invitCode.value,
            safeword: safeword.value
        }).then((res) => {
            userStore[GET_USERINFO](res)
            store.state.user.userInfo = res
            // 其他操作??
            router.push('/identity')
        })
    } else {
        _registerUser({
            userName: (activeIndex.value === 0 || activeIndex.value === 1) ? username.value : `${dialCode.value}${username.value}`,
            password: password.value,
            // re_password: repassword.value,
            type: type.value,
            userCode: invitCode.value,
        }).then((res) => {
            userStore[GET_USERINFO](res)
            store.state.user.userInfo = res
            if (activeIndex.value == 0) {
                router.push('/setFond')
            } else {
                router.push({ name: 'verify', query: { type: activeIndex.value, account: activeIndex.value == 1 ? username.value : `${dialCode.value}${username.value}` } })
            }
        });
    }
    // if (activeIndex.value === 1) {
    //     _bindEmailRegister({
    //         username: username.value,
    //         password: password.value,
    //         type: '2',   // 2邮箱
    //         verifcode: verifyCode.value,
    //         usercode: invitCode.value,
    //         safeword: safeword.value
    //     }).then((res) => {
    //         userStore[GET_USERINFO](res)
    //         store.state.user.userInfo = res
    //         // 其他操作??
    //         router.push('/identity')
    //     })
    // } else {
    _registerUser({
        userName: (activeIndex.value === 0 || activeIndex.value === 1) ? username.value : `${dialCode.value}${username.value}`,
        password: password.value,
        // re_password: repassword.value,
        type: type.value,
        userCode: invitCode.value,
        emailCode: verifyCode.value,
    }).then((res) => {
        userStore[GET_USERINFO](res)
        store.state.user.userInfo = res
        // if (activeIndex.value == 0) {
        router.push('/setFond')
        // } else {
        //     router.push({ name: 'verify', query: { type: activeIndex.value, account: activeIndex.value == 1 ? username.value : `${dialCode.value}${username.value}` } })
        // }
    });
    // }
}
// 语言切换