| | |
| | | </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> |
| | |
| | | <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"; |
| | |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | |
| | | const oldPassword = ref('')//旧密码 |
| | | const password = ref('')//密码 |
| | | const rePassword = ref('')//确认密码 |
| | | const verifyCode = ref('') //验证码 |
| | |
| | | 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(() => { |