10.10综合交易所原始源码_移动端
admin
2026-01-06 42faef34194c466f03e29d75a63ae502e4213044
src/views/changeFundsPassword/index.vue
@@ -6,19 +6,17 @@
      </template>
    </fx-header>
    <div class="content">
      <ExInput :label="$t('旧密码')" :placeholderText="$t('entryPassword')" :tips="$t('funsPasswordTips')"
        v-model="oldPassword" typeText="password" />
      <ExInput :label="$t('newPassword')" :placeholderText="$t('entryPassword')" :tips="$t('funsPasswordTips')"
        v-model="password" typeText="password" />
      <ExInput :label="$t('sureNewPassword')" :placeholderText="$t('entryPassword')" :tips="$t('funsPasswordTips')"
        v-model="rePassword" typeText="password" />
      <!-- <ExChecked class="mb-42" :list="list" @checkedSelect="onChecked"></ExChecked> -->
      <!-- <p class="label mt-14 textColor">{{ $t('verificationCode') }}</p> -->
      <!-- <div class="iptbox inputBackground">
      <ExChecked class="mb-42" :list="list" @checkedSelect="onChecked"></ExChecked>
      <p class="label mt-14 textColor">{{ $t('verificationCode') }}</p>
      <div class="iptbox inputBackground">
        <input class="inputBackground textColor" type="text" :placeholder="$t('entryVerifyCode')" v-model="verifyCode">
        <span v-if="currentType != 3" @click="senCode">{{ $t('sendVerifyCode') }}<template v-if="time">
            ({{ time }})s</template></span>
      </div> -->
      </div>
      <van-button class="w-full" style="margin-top:10px;" @click="submit" type="primary">
        {{ $t('sure') }}
      </van-button>
@@ -29,7 +27,7 @@
<script setup>
import ExInput from "@/components/ex-input/index.vue";
import ExChecked from "@/components/ex-checked/index.vue";
import { _setSafeword, _getVerifTarget, _changeFundsPassword } from '@/service/user.api.js'
import { _setSafeword, _getVerifTarget } from '@/service/user.api.js'
import { _sendVerifyCode } from "@/service/login.api";
import { ref, onMounted, onUnmounted } from "vue";
import { showToast } from "vant";
@@ -38,7 +36,6 @@
const { t } = useI18n()
const router = useRouter()
const oldPassword = ref('')//旧密码
const password = ref('')//密码
const rePassword = ref('')//确认密码
const verifyCode = ref('') //验证码
@@ -91,13 +88,10 @@
    showToast(t('funpasswordTips'))
    return false
  }
  _changeFundsPassword({
    // safeword: password.value,
    // verifcode_type: currentType.value,
    // verifcode: verifyCode.value
    old_password: oldPassword.value,
    password: password.value,
    re_password: rePassword.value,
  _setSafeword({
    safeword: password.value,
    verifcode_type: currentType.value,
    verifcode: verifyCode.value
  }).then((res) => {
    showToast(t('changeSuccess'))
    setTimeout(() => {