Browse Source

新增保存账号密码

master
liaoxinyu 2 years ago
parent
commit
075c24a727
  1. 2
      src/i18n/de.json
  2. 52
      src/i18n/en.json
  3. 2
      src/i18n/fra.json
  4. 2
      src/i18n/it.json
  5. 2
      src/i18n/jp.json
  6. 2
      src/i18n/kor.json
  7. 2
      src/i18n/pt.json
  8. 2
      src/i18n/spa.json
  9. 2
      src/i18n/tr.json
  10. 8
      src/i18n/tw.json
  11. 52
      src/views/home/index.vue
  12. 34
      src/views/signIn/index.vue

2
src/i18n/de.json

@ -228,7 +228,7 @@
"new-password": "Neues Passwort",
"confirm-password": "Passwort bestätigen",
"forgetPassword": "Vergessen Sie das Passwort",
"rememberMe": "Denk an mich.",
"rememberMe": "Kontopasswort speichern",
"noAccountYet": "Noch kein Konto",
"goRegister": "Register",
"safety": "Überprüfung der Sicherheit",

52
src/i18n/en.json

@ -224,7 +224,7 @@
"new-password": "Enter a new password",
"confirm-password": "Confirm your password",
"forgetPassword": "Forget password",
"rememberMe": "Remember me",
"rememberMe": "Save account and password",
"noAccountYet": "No account",
"goRegister": "Register Account",
"goRegister1": "Register now",
@ -336,7 +336,7 @@
"confirmpassword": "The two passwords are inconsistent",
"Remembered": "Remembered your password?",
"a1": "Login {name}",
"a2": "Email number",
"a2": "Email",
"a3": "Please enter your login email address",
"a4": "Login password",
"a5": "Please enter your login password",
@ -1207,40 +1207,40 @@
"hh0": "The future of money is here",
"hh1": "We are the most trusted place for investors to buy, sell and manage cryptocurrency",
"hh2": "Register via email",
"hh2": "register via email",
"hh3": "Markets",
"hh4": "View more markets",
"hh5": "{name} is An One-step Exchange for Everyone",
"hh6": "Global Ranking",
"hh7": "Users Trust Us",
"hh8": "Ultra-Low Fees",
"hh5": "{name} is an one-step exchange for everyone",
"hh6": "Global ranking",
"hh7": "Users trust us",
"hh8": "Ultra-low fees",
"hh9": "Countries",
"hh10": "How to Get Started",
"hh11": "Create Account",
"hh12": "Sign in to {name} to Register a New Profile",
"hh10": "How to get dtarted",
"hh11": "Create sccount",
"hh12": "Sign in to {name} to register a new profile",
"hh13": "Register",
"hh14": "Verify Your Identity",
"hh15": "Spend Less Than 5 Minutes Completing the Verification Process.",
"hh16": "Create Your Account First",
"hh17": "Buy and Deposit Crypto",
"hh18": "Add Funds to Your {name} Account to Access Crypto Services.",
"hh19": "Verify Your Identity First",
"hh20": "Start Your Journey",
"hh21": "Explore Crypto Opportunities within the {name} Ecosystem",
"hh22": "Buy and Deposit Crypto First",
"hh23": "Build Your Crypto Portfolio",
"hh24": "Buy Crypto",
"hh14": "Verify your identity",
"hh15": "Spend less than 5 minutes completing the verification process.",
"hh16": "Create your account first",
"hh17": "Buy and deposit crypto",
"hh18": "Add funds to your {name} account to access crypto services.",
"hh19": "Verify your identity first",
"hh20": "Start your journey",
"hh21": "Explore crypto opportunities within the {name} ecosystem",
"hh22": "Buy and deposit crypto first",
"hh23": "Build your crypto portfolio",
"hh24": "Buy crypto",
"hh25": "Why {name}",
"hh26": "Simplicity",
"hh27": "{name} Makes it Easy to Buy Crypto Using Our Mobile Application.",
"hh27": "{name} makes it easy to buy crypto using our mobile application.",
"hh28": "Education",
"hh29": "Grow your earnings with {name}",
"hh30": "Don't know where to start? Head to our Learning Center to learn all about cryptocurrency.",
"hh30": "Not sure where to start? head to our learn center and learn about all things crypto.",
"hh31": "Service",
"hh32": "Find your answers instantly in our Help Center, or contact us via email 24/7/365.",
"hh32": "Find your answers instantly in our support center. or reach us 24/7/365 via email.",
"hh33": "Get started with {name}",
"hh34": "Trade anytime, anywhere",
"hh35": "Stay informed with our app and desktop client",
"hh34": "Trade on the go. anywhere, anytime",
"hh35": "Stay in the know with our app and desktop client",
"hh44": "{name}, trade anytime, anywhere",
"hh45": "Trade now",

2
src/i18n/fra.json

@ -228,7 +228,7 @@
"new-password": "Nouveau mot de passe",
"confirm-password": "Confirmer le mot de passe",
"forgetPassword": "Mot de passe oublié",
"rememberMe": "Souviens - toi de moi.",
"rememberMe": "Enregistrer le mot de passe du compte",
"noAccountYet": "Pas encore de compte",
"goRegister": "Inscription",
"safety": "Vérification de la sécurité",

2
src/i18n/it.json

@ -228,7 +228,7 @@
"new-password": "Nuova password",
"confirm-password": "Conferma password",
"forgetPassword": "Scordati la password",
"rememberMe": "Ricordati di me.",
"rememberMe": "Salva la password dell'account",
"noAccountYet": "Nessun conto ancora",
"goRegister": "registrazione",
"safety": "Verifica della sicurezza",

2
src/i18n/jp.json

@ -233,7 +233,7 @@
"new-password": "新しいパスワード",
"confirm-password": "パスワードを確認する",
"forgetPassword": "パスワードを忘れます",
"rememberMe": "覚えてください",
"rememberMe": "アカウントのパスワードを保存する",
"noAccountYet": "まだアカウントがありません",
"goRegister": "登録する",
"safety": "セキュリティ検証",

2
src/i18n/kor.json

@ -233,7 +233,7 @@
"new-password": "새 비밀번호",
"confirm-password": "비밀번호 확인",
"forgetPassword": "비밀 번 호 를 잊어버리다.",
"rememberMe": "날 기억 해",
"rememberMe": "계정 비밀번호 저장",
"noAccountYet": "계 정 이 없어 요.",
"goRegister": "등록 하 다.",
"safety": "안전성 검증",

2
src/i18n/pt.json

@ -228,7 +228,7 @@
"new-password": "Novo código.",
"confirm-password": "Confirme a senha.",
"forgetPassword": "Esquece o código.",
"rememberMe": "Lembra-te de mim.",
"rememberMe": "Salvar senha da conta",
"noAccountYet": "Ainda não tenho conta.",
"goRegister": "De registo",
"safety": "Verificação da segurança",

2
src/i18n/spa.json

@ -228,7 +228,7 @@
"new-password": "Nueva contraseña",
"confirm-password": "Confirmar contraseña",
"forgetPassword": "Olvida la contraseña.",
"rememberMe": "Recuérdame.",
"rememberMe": "Guardar contraseña de cuenta",
"noAccountYet": "No hay cuenta todavía",
"goRegister": "Registro",
"safety": "Verificación de la seguridad",

2
src/i18n/tr.json

@ -228,7 +228,7 @@
"new-password": "Yeni Şifre",
"confirm-password": "Şifreyi Onayla",
"forgetPassword": "Parolanızı mı unuttunuz",
"rememberMe": "beni Hatırla",
"rememberMe": "Hesap şifresini kaydet",
"noAccountYet": "Henüz hesap yok",
"goRegister": "kayıtlı",
"safety": "Güvenlik doğrulaması",

8
src/i18n/tw.json

@ -228,7 +228,7 @@
"email-code": "郵箱驗證碼",
"sms-code": "手機驗證碼",
"forgetPassword": "忘記密碼",
"rememberMe": "記住我",
"rememberMe": "保存帳號密碼",
"noAccountYet": "還沒有帳號",
"goRegister": "注册",
"safety": "安全性驗證",
@ -1140,9 +1140,9 @@
"hh3": "行情",
"hh4": "看更多市場",
"hh5": "{name} 是個適合所有人的一站式平台",
"hh6": "Global Ranking",
"hh7": "Users Trust Us",
"hh8": "Ultra-Low Fees",
"hh6": "Giobal ranking",
"hh7": "Users trust us",
"hh8": "Uitra-low fees",
"hh9": "Countries",
"hh10": "如何開始",
"hh11": "建立帳戶",

52
src/views/home/index.vue

@ -128,12 +128,13 @@
</div>
<div class="started_text">{{ $t("homeNewText.hh11") }}</div>
<div class="started_text1" style="font-size: 15px;">{{ $t("homeNewText.hh12",{name:'Ewmcoin'}) }}</div>
<router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}">
<div class="started_bottom">{{ $t("homeNewText.hh13") }}</div>
<!-- <router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}">
{{ $t("homeNewText.hh13") }}
</router-link>
<router-link v-else class="started_bottom" :to="{name:'exchange-assets'}">
{{ $t("homeNewText.hh13") }}
</router-link>
</router-link> -->
</div>
</div>
<div class="started_div4">
@ -144,13 +145,13 @@
</div>
<div class="started_text">{{ $t("homeNewText.hh14") }}</div>
<div class="started_text1" style="font-size: 15px;">{{ $t("homeNewText.hh15") }}</div>
<!-- <div class="started_bottom">{{ $t("homeNewText.hh16") }}</div> -->
<router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}">
<div class="started_bottom">{{ $t("homeNewText.hh16") }}</div>
<!-- <router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}">
{{ $t("homeNewText.hh16") }}
</router-link>
<router-link v-else class="started_bottom" :to="{name:'exchange-assets'}">
{{ $t("homeNewText.hh16") }}
</router-link>
</router-link> -->
</div>
</div>
<div class="started_div4">
@ -160,13 +161,14 @@
<span class="started_img1" style="font-size: 20px;">3</span>
</div>
<div class="started_text">{{ $t("homeNewText.hh17") }}</div>
<div class="started_text1" style="font-size: 13px;height: 120px;">{{ $t("homeNewText.hh18",{name:'Ewmcoin'}) }}</div>
<router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}">
<div class="started_text1" style="font-size: 13px;height: 100px;">{{ $t("homeNewText.hh18",{name:'Ewmcoin'}) }}</div>
<div class="started_bottom">{{ $t("homeNewText.hh19") }}</div>
<!-- <router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}" style="text-align: center;">
{{ $t("homeNewText.hh19") }}
</router-link>
<router-link v-else class="started_bottom" :to="{name:'exchange-assets'}">
<router-link v-else class="started_bottom" :to="{name:'exchange-assets'}" style="text-align: center;">
{{ $t("homeNewText.hh19") }}
</router-link>
</router-link> -->
</div>
</div>
<div class="started_div4">
@ -177,12 +179,13 @@
</div>
<div class="started_text">{{ $t("homeNewText.hh20") }}</div>
<div class="started_text1" style="font-size: 14px;">{{ $t("homeNewText.hh21",{name:"Ewmcoin"}) }}</div>
<router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}" style="text-align: center;">
<div class="started_bottom">{{ $t("homeNewText.hh22") }}</div>
<!-- <router-link v-if="!isLogin" class="started_bottom" :to="{name:'signUp'}" style="text-align: center;">
{{ $t("homeNewText.hh22") }}
</router-link>
<router-link v-else class="started_bottom" :to="{name:'exchange'}" style="text-align: center;">
{{ $t("homeNewText.hh22") }}
</router-link>
</router-link> -->
</div>
</div>
</div>
@ -2607,7 +2610,7 @@
padding: 200px 0px 0px 0px;
.started1{
width: 1200px;
width: 1250px;
margin: auto;
.started_div{
@ -2626,13 +2629,13 @@
.started_div1{
background-color: #F9F9F9;
border-radius: 20px;
height: 418px;
// height: 418px;
display: flex;
justify-content: space-between;
align-items: center;
.started_div2{
width: 280px;
width: 300px;
display: flex;
flex-direction: column;
align-items: center;
@ -2655,28 +2658,29 @@
}
.started_text{
font-size: 22px;
font-size: 20px;
margin-top: 18px;
height: 60px;
text-align: center;
}
.started_text1{
padding: 0 30px;
height: 120px;
height: 100px;
text-align: center;
}
}
.started_div4{
height: 348px;
// height: 348px;
}
.started_div4:hover{
width: 280px;
width: 300px;
height: 418px;
background-color: #5248D0;
border-radius: 20px;
cursor: pointer;
// cursor: pointer;
transition: .4s ease-in;
.started_div3{
@ -2692,7 +2696,11 @@
}
.started_div2{
padding: 80px 20px;
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
.started_text{
color: #fff;
@ -2703,8 +2711,8 @@
}
.started_bottom{
color: #5248D0;
background-color: #fff;
color: #fff;
background-color: #ee8267;
padding: 10px 20px;
border-radius: 50px;
}

34
src/views/signIn/index.vue

@ -28,7 +28,7 @@
<div class="text-right">
<router-link to="/forget-pwd">{{$t('login.forgetPassword')}}?</router-link>
</div>
<div class="custom-control custom-checkbox">
<div class="custom-control custom-checkbox">
<input type="checkbox" v-model="isRember" class="custom-control-input" id="form-checkbox" />
<label class="custom-control-label" for="form-checkbox">{{$t('login.rememberMe')}}</label>
</div>
@ -76,7 +76,7 @@
</template>
<h2>
{{$t('login.noAccountYet')}}?
<router-link to="/sign-up">{{$t('login.goRegister1')}}</router-link>
<router-link to="/sign-up">{{$t('common.register')}}</router-link>
</h2>
</form>
</div>
@ -183,7 +183,7 @@ export default {
//
skipKeyup: null,
skipInput: null,
skipInput: null
};
},
@ -410,7 +410,18 @@ export default {
step2(token) {
//
// $("#captcha").modal("hide");
if(this.isRember==true){
console.log('1111');
sessionStorage.setItem("isRember",this.isRember)
sessionStorage.setItem("account1",this.user.account+"rew")
sessionStorage.setItem("password1",this.user.password+"45623")
}else{
console.log('2222');
this.isRember==false
sessionStorage.setItem("isRember",this.isRember)
sessionStorage.removeItem("account1");
sessionStorage.removeItem("password1");
}
//
let type = this.user.account.includes("@") ? 2 : 1;
const data = {
@ -525,7 +536,9 @@ export default {
}, 10000)
},
created() { },
created() {
},
mounted() {
window.md5 = md5;
@ -534,7 +547,16 @@ export default {
// console.log(localStorage.lang,navigator.language.includes("zh"))
//
this.test()
const name = sessionStorage.getItem("isRember")
if(name == 'true'){
console.log('3333');
const account1 = sessionStorage.getItem("account1")
const password1 = sessionStorage.getItem("password1")
this.user.account = account1.substring(0, account1.length - 3);
this.user.password = password1.substring(0, password1.length - 5);
console.log(this.user.account);
console.log(this.user.password);
}
}
};
</script>

Loading…
Cancel
Save