From 03043192ddf00f9a36b7454799a9152cd1b50a0b Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:13:45 +0800
Subject: [PATCH] 1

---
 src/views/changeFundsPassword/index.vue |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/views/changeFundsPassword/index.vue b/src/views/changeFundsPassword/index.vue
index 7ce2865..8d925de 100644
--- a/src/views/changeFundsPassword/index.vue
+++ b/src/views/changeFundsPassword/index.vue
@@ -6,17 +6,19 @@
       </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>
@@ -27,7 +29,7 @@
 <script setup>
 import ExInput from "@/components/ex-input/index.vue";
 import ExChecked from "@/components/ex-checked/index.vue";
-import { _setSafeword, _getVerifTarget } from '@/service/user.api.js'
+import { _setSafeword, _getVerifTarget, _changeFundsPassword } from '@/service/user.api.js'
 import { _sendVerifyCode } from "@/service/login.api";
 import { ref, onMounted, onUnmounted } from "vue";
 import { showToast } from "vant";
@@ -36,6 +38,7 @@
 const { t } = useI18n()
 const router = useRouter()
 
+const oldPassword = ref('')//旧密码
 const password = ref('')//密码
 const rePassword = ref('')//确认密码
 const verifyCode = ref('') //验证码
@@ -88,10 +91,13 @@
     showToast(t('funpasswordTips'))
     return false
   }
-  _setSafeword({
-    safeword: password.value,
-    verifcode_type: currentType.value,
-    verifcode: verifyCode.value
+  _changeFundsPassword({
+    // safeword: password.value,
+    // verifcode_type: currentType.value,
+    // verifcode: verifyCode.value
+    old_password: oldPassword.value,
+    password: password.value,
+    re_password: rePassword.value,
   }).then((res) => {
     showToast(t('changeSuccess'))
     setTimeout(() => {

--
Gitblit v1.9.3