From 42faef34194c466f03e29d75a63ae502e4213044 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 10:38:46 +0800
Subject: [PATCH] 上一版是10.10的, 这版才是原始源码
---
src/views/changeFundsPassword/index.vue | 24 +++++++++---------------
1 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/src/views/changeFundsPassword/index.vue b/src/views/changeFundsPassword/index.vue
index 8d925de..7ce2865 100644
--- a/src/views/changeFundsPassword/index.vue
+++ b/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(() => {
--
Gitblit v1.9.3