<template>
|
<div class="setFond">
|
<div class="header">
|
<div class="status_bar fixed w-full top-0 left-0 h-50 flex items-center justify-between">
|
<div class="w-20 h-20 ml-13">
|
<img class="l_icon" src="../../assets/img/back.svg" @click="$router.go(-1)" />
|
</div>
|
</div>
|
</div>
|
<!-- <div class="content">
|
<div class="title textColor">{{ $t('setFundPassword') }}</div>
|
<ExInput :label="$t('password')" :placeholderText="$t('funpasswordTips')" v-model="password"
|
typeText="password" />
|
<ExInput :label="$t('repassword')" :placeholderText="$t('surePassword')" v-model="repassword"
|
typeText="password" />
|
<van-button class="w-full" style="margin-top:10px;" type="primary" @click="submitBind">{{ $t('sure') }}
|
</van-button>
|
</div> -->
|
|
<div class="px-26 text-white"
|
style="background: url("/static/img/bg-login.png") 0% 0% / cover fixed;">
|
<span class="text-40 font-bold mt-80 block">{{ $t('setFundPassword') }}</span>
|
<div class="mt-40">
|
<div class="mt-15 bg-white p-14 rounded-10 flex items-center">
|
<div class="w-22 h-22">
|
<img src="../../assets/img/icon-password.png" draggable="false">
|
</div>
|
<div class="ml-9 text-black flex-1">
|
<div class="uni-input-wrapper">
|
<input type="password" v-model="password" maxlength="140" step="" enterkeyhint="done"
|
class="uni-input-input" autocomplete="off" :placeholder="$t('funpasswordTips')">
|
</div>
|
</div>
|
</div>
|
<div class="mt-15 bg-white p-14 rounded-10 flex items-center">
|
<div class="w-22 h-22">
|
<img src="../../assets/img/icon-password.png" draggable="false">
|
</div>
|
<div class="ml-9 text-black flex-1">
|
<div class="uni-input-wrapper">
|
<input type="password" v-model="repassword" maxlength="140" step="" enterkeyhint="done"
|
class="uni-input-input" autocomplete="off" :placeholder="$t('surePassword')">
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="py-17 text-center bg-black mt-80 rounded-10 text-19 font-700" @click="submitBind">{{
|
$t('sure') }}</div>
|
</div>
|
</div>
|
</template>
|
|
<script setup>
|
import { _setSafewordReg } from "@/service/user.api.js";
|
import ExInput from "@/components/ex-input/index.vue";
|
import { ref } from "vue";
|
import { showToast } from 'vant'
|
import { useI18n } from 'vue-i18n'
|
import { useRouter } from "vue-router";
|
|
const { t } = useI18n()
|
const router = useRouter()
|
|
|
const password = ref('')
|
const repassword = ref('')
|
|
|
const setSafewordReg = () => {
|
_setSafewordReg({
|
safeword: repassword.value
|
}).then((res) => {
|
// showToast(t('bindSuccess'));
|
console.log('sss')
|
router.push('/identity')
|
}).catch((error) => {
|
showToast(t(error.msg));
|
});
|
}
|
const submitBind = () => {
|
if (password.value.length < 6 || repassword.value.length < 6) {
|
showToast(t('funpasswordTips'))
|
return false
|
}
|
if (password.value !== repassword.value) {
|
showToast(t('noSamePassword'))
|
return false
|
}
|
setSafewordReg()
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
@import '@/assets/css/deepseek_css_20250625_30ff932.css';
|
|
.setFond {
|
width: 100%;
|
height: 100vh;
|
box-sizing: border-box;
|
font-size: 13px;
|
padding: 0 16px;
|
background: url('../../assets/img/bg-login.png') 0% 0% / cover fixed;
|
}
|
|
.header {
|
display: flex;
|
justify-content: space-between;
|
padding: 0 13px;
|
font-size: 14px;
|
height: 50px;
|
line-height: 50px;
|
}
|
|
.title {
|
font-weight: 700;
|
font-size: 26px;
|
margin-top: 25px;
|
margin-bottom: 30px;
|
}
|
</style>
|