Browse Source

新增保存账号密码

master
liaoxinyu 2 years ago
parent
commit
f98fe4c787
  1. 5
      i18n/lang/de.json
  2. 57
      i18n/lang/en.json
  3. 5
      i18n/lang/fra.json
  4. 5
      i18n/lang/it.json
  5. 5
      i18n/lang/jp.json
  6. 5
      i18n/lang/kor.json
  7. 5
      i18n/lang/pt.json
  8. 5
      i18n/lang/spa.json
  9. 5
      i18n/lang/tr.json
  10. 11
      i18n/lang/zh-TW.json
  11. 2
      layout/vCode.vue
  12. 19
      pages/base/home.vue
  13. 35
      pages/login/index.vue
  14. 5
      pages/reg/index.vue

5
i18n/lang/de.json

@ -405,7 +405,10 @@
"c4": "Bitte geben Sie die Mailboxnummer ein", "c4": "Bitte geben Sie die Mailboxnummer ein",
"c5": "Registrierung erfolgreich", "c5": "Registrierung erfolgreich",
"c6": "Einladungscode (erforderlich)", "c6": "Einladungscode (erforderlich)",
"c7": "Bitte geben Sie den Einladungscode ein" "c7": "Bitte geben Sie den Einladungscode ein",
"c8": "Bestätigungscode",
"c9": "Bestätigungscode eingeben",
"c10": "Kontopasswort speichern"
}, },
"safe": { "safe": {
"a0": "Lösen", "a0": "Lösen",

57
i18n/lang/en.json

@ -408,7 +408,10 @@
"c4": "Please fill in the mailbox number", "c4": "Please fill in the mailbox number",
"c5": "Registered successfully", "c5": "Registered successfully",
"c6": "Invitation code (required)", "c6": "Invitation code (required)",
"c7": "Enter your invitation code" "c7": "Enter your invitation code",
"c8": "Verification code",
"c9": "Enter verification code",
"c10": "Save account and password"
}, },
"safe": { "safe": {
"a0": "Untie", "a0": "Untie",
@ -531,8 +534,8 @@
"a8": "Mobile", "a8": "Mobile",
"a9": "mailbox", "a9": "mailbox",
"b0": "Done", "b0": "Done",
"b1": "Welcome to log in {name}", "b1": "Welcome to {name}",
"b2": "Mailbox number", "b2": "Email",
"b3": "Please enter your login email address", "b3": "Please enter your login email address",
"b4": "Login password", "b4": "Login password",
"b5": "Please enter your login password" "b5": "Please enter your login password"
@ -895,39 +898,39 @@
"hh0": "The future of money is here", "hh0": "The future of money is here",
"hh1": "We are the most trusted place for investors to buy, sell and manage cryptocurrency", "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", "hh3": "Markets",
"hh4": "View more markets", "hh4": "View more markets",
"hh5": "{name} is An One-step Exchange for Everyone", "hh5": "{name} is an one-step exchange for everyone",
"hh6": "Global Ranking", "hh6": "Global ranking",
"hh7": "Users Trust Us", "hh7": "Users trust us",
"hh8": "Ultra-Low Fees", "hh8": "Ultra-low fees",
"hh9": "Countries", "hh9": "Countries",
"hh10": "How to Get Started", "hh10": "How to get dtarted",
"hh11": "Create Account", "hh11": "Create sccount",
"hh12": "Sign in to {name} to Register a New Profile", "hh12": "Sign in to {name} to register a new profile",
"hh13": "Register", "hh13": "Register",
"hh14": "Verify Your Identity", "hh14": "Verify your identity",
"hh15": "Spend Less Than 5 Minutes Completing the Verification Process.", "hh15": "Spend less than 5 minutes completing the verification process.",
"hh16": "Create Your Account First", "hh16": "Create your account first",
"hh17": "Buy and Deposit Crypto", "hh17": "Buy and deposit crypto",
"hh18": "Add funds to your {name} Account to Access Crypto Services.", "hh18": "Add funds to your {name} account to access crypto services.",
"hh19": "Verify Your Identity First", "hh19": "Verify your identity first",
"hh20": "Start Your Journey", "hh20": "Start your journey",
"hh21": "Explore Crypto Opportunities within the {name} Ecosystem", "hh21": "Explore crypto opportunities within the {name} ecosystem",
"hh22": "Buy and Deposit Crypto First", "hh22": "Buy and deposit crypto first",
"hh23": "Build Your Crypto Portfolio", "hh23": "Build your crypto portfolio",
"hh24": "Buy Crypto", "hh24": "Buy crypto",
"hh25": "Why {name}", "hh25": "Why {name}",
"hh26": "Simplicity", "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", "hh28": "Education",
"hh29": "Grow your earnings with {name}", "hh29": "Grow your earnings with {name}",
"hh30": "Not Sure Where to Start? Head to Our Learn Center and Learn About All Things Crypto.", "hh30": "Not sure where to start? head to our learn center and learn about all things crypto.",
"hh31": "Service", "hh31": "Service",
"hh32": "Find Your Answers Instantly in Our Support Center. Or Reach Us 24/7/365 via Email.", "hh32": "Find your answers instantly in our support center. or reach us 24/7/365 via email.",
"hh33": "Get Started With {name}", "hh33": "Get started with {name}",
"hh34": "Trade on the go. Anywhere, Anytime", "hh34": "Trade on the go. anywhere, anytime",
"hh35": "Stay in the know with our app and desktop client" "hh35": "Stay in the know with our app and desktop client"
} }
} }

5
i18n/lang/fra.json

@ -405,7 +405,10 @@
"c4": "Veuillez remplir le numéro de courriel", "c4": "Veuillez remplir le numéro de courriel",
"c5": "Inscription réussie", "c5": "Inscription réussie",
"c6": "Code d'invitation (obligatoire)", "c6": "Code d'invitation (obligatoire)",
"c7": "Veuillez remplir le code d'invitation" "c7": "Veuillez remplir le code d'invitation",
"c8": "Code de vérification",
"c9": "Entrez le code de vérification",
"c10": "Enregistrer le mot de passe du compte"
}, },
"safe": { "safe": {
"a0": "Dégroupage", "a0": "Dégroupage",

5
i18n/lang/it.json

@ -405,7 +405,10 @@
"c4": "Inserisci il numero di posta elettronica", "c4": "Inserisci il numero di posta elettronica",
"c5": "login è stato efficace", "c5": "login è stato efficace",
"c6": "Codice invito (richiesto)", "c6": "Codice invito (richiesto)",
"c7": "Per favore inserisci il codice invito" "c7": "Per favore inserisci il codice invito",
"c8": "Codice di verifica",
"c9": "Inserisci il codice di verifica",
"c10": "Salva password dell'account"
}, },
"safe": { "safe": {
"a0": "Separazione", "a0": "Separazione",

5
i18n/lang/jp.json

@ -405,7 +405,10 @@
"c4": "メールアドレスを記入してください", "c4": "メールアドレスを記入してください",
"c5": "登録成功", "c5": "登録成功",
"c6": "招待コード(必須)", "c6": "招待コード(必須)",
"c7": "招待コードを入力してください" "c7": "招待コードを入力してください",
"c8": "認証コード",
"c9": "確認コードを入力してください",
"c10": "アカウントのパスワードを保存"
}, },
"safe": { "safe": {
"a0": "縛りを解く", "a0": "縛りを解く",

5
i18n/lang/kor.json

@ -405,7 +405,10 @@
"c4": "메 일주 소 번 호 를 적어 주세요.", "c4": "메 일주 소 번 호 를 적어 주세요.",
"c5": "등록 성공", "c5": "등록 성공",
"c6": "초대코드 (필수)", "c6": "초대코드 (필수)",
"c7": "초대코드를 입력해주세요" "c7": "초대코드를 입력해주세요",
"c8": "인증 코드",
"c9": "인증 코드를 입력하세요",
"c10": "계정 비밀번호 저장"
}, },
"safe": { "safe": {
"a0": "포박 을 풀다", "a0": "포박 을 풀다",

5
i18n/lang/pt.json

@ -405,7 +405,10 @@
"c4": "Por favor, preencha o número de e-mail", "c4": "Por favor, preencha o número de e-mail",
"c5": "Login FOI BEM sucedido", "c5": "Login FOI BEM sucedido",
"c6": "Código de convite (obrigatório)", "c6": "Código de convite (obrigatório)",
"c7": "Por favor preencha o código do convite" "c7": "Por favor preencha o código do convite",
"c8": "Código de verificação",
"c9": "Insira o código de verificação",
"c10": "Salvar senha da conta"
}, },
"safe": { "safe": {
"a0": "Desagregação", "a0": "Desagregação",

5
i18n/lang/spa.json

@ -405,7 +405,10 @@
"c4": "Por favor, rellene el número de correo electrónico", "c4": "Por favor, rellene el número de correo electrónico",
"c5": "Registro exitoso", "c5": "Registro exitoso",
"c6": "Código de invitación (obligatorio)", "c6": "Código de invitación (obligatorio)",
"c7": "Por favor complete el código de invitación" "c7": "Por favor complete el código de invitación",
"c8": "Código de verificación",
"c9": "Ingrese el código de verificación",
"c10": "Guardar contraseña de cuenta"
}, },
"safe": { "safe": {
"a0": "Desenganche", "a0": "Desenganche",

5
i18n/lang/tr.json

@ -405,7 +405,10 @@
"c4": "Lütfen posta kutusu numarasını girin", "c4": "Lütfen posta kutusu numarasını girin",
"c5": "Başarıyla kaydettirildi", "c5": "Başarıyla kaydettirildi",
"c6": "Davetiye kodu (gerekli)", "c6": "Davetiye kodu (gerekli)",
"c7": "Lütfen davetiye kodunu giriniz" "c7": "Lütfen davetiye kodunu giriniz",
"c8": "Doğrulama kodu",
"c9": "Doğrulama kodunu girin",
"c10": "Hesap şifresini kaydet"
}, },
"safe": { "safe": {
"a0": "Çöz", "a0": "Çöz",

11
i18n/lang/zh-TW.json

@ -407,7 +407,10 @@
"c4": "請填寫郵箱號", "c4": "請填寫郵箱號",
"c5": "註冊成功", "c5": "註冊成功",
"c6": "邀請碼(必填)", "c6": "邀請碼(必填)",
"c7": "請填寫邀請碼" "c7": "請填寫邀請碼",
"c8": "驗證碼",
"c9": "輸入驗證碼",
"c10": "儲存帳號密碼"
}, },
"safe": { "safe": {
"a0": "解綁", "a0": "解綁",
@ -897,9 +900,9 @@
"hh3": "行情", "hh3": "行情",
"hh4": "看更多市場", "hh4": "看更多市場",
"hh5": "{name} 是個適合所有人的一站式平台", "hh5": "{name} 是個適合所有人的一站式平台",
"hh6": "Global Ranking", "hh6": "Giobal ranking",
"hh7": "Users Trust Us", "hh7": "Users trust us",
"hh8": "Ultra-Low Fees", "hh8": "Uitra-low fees",
"hh9": "Countries", "hh9": "Countries",
"hh10": "如何開始", "hh10": "如何開始",
"hh11": "建立帳戶", "hh11": "建立帳戶",

2
layout/vCode.vue

@ -69,7 +69,7 @@ export default {
}, },
computed: { computed: {
text(){ text(){
return ` ${this.$t('common.getCode')} ` return ` ${this.$t('reg.c8')} `
} }
}, },
methods: { methods: {

19
pages/base/home.vue

@ -198,7 +198,7 @@
<view class="Howtogetstarted_box1">{{ $t("homeNewText.hh11") }}</view> <view class="Howtogetstarted_box1">{{ $t("homeNewText.hh11") }}</view>
<view class="Howtogetstarted_box2">{{ $t("homeNewText.hh12",{name:"Ewmcoin"}) }}</view> <view class="Howtogetstarted_box2">{{ $t("homeNewText.hh12",{name:"Ewmcoin"}) }}</view>
<view style="display: flex;justify-content: center;"> <view style="display: flex;justify-content: center;">
<view class="Howtogetstarted_box3" @click="goReg">{{ $t("homeNewText.hh13") }}</view> <view class="Howtogetstarted_box3">{{ $t("homeNewText.hh13") }}</view>
</view> </view>
</view> </view>
<view class="Howtogetstarted"> <view class="Howtogetstarted">
@ -208,8 +208,7 @@
<view class="Howtogetstarted_box1">{{ $t("homeNewText.hh14") }}</view> <view class="Howtogetstarted_box1">{{ $t("homeNewText.hh14") }}</view>
<view class="Howtogetstarted_box2">{{ $t("homeNewText.hh15") }}</view> <view class="Howtogetstarted_box2">{{ $t("homeNewText.hh15") }}</view>
<view style="display: flex;justify-content: center;"> <view style="display: flex;justify-content: center;">
<view v-if="!isLogin" class="Howtogetstarted_box3" @click="goReg">{{ $t("homeNewText.hh16") }}</view> <view class="Howtogetstarted_box3">{{ $t("homeNewText.hh16") }}</view>
<view v-else class="Howtogetstarted_box3" @click="goMine">{{ $t("homeNewText.hh16") }}</view>
</view> </view>
</view> </view>
<view class="Howtogetstarted"> <view class="Howtogetstarted">
@ -219,8 +218,7 @@
<view class="Howtogetstarted_box1">{{ $t("homeNewText.hh17") }}</view> <view class="Howtogetstarted_box1">{{ $t("homeNewText.hh17") }}</view>
<view class="Howtogetstarted_box2">{{ $t("homeNewText.hh18",{name:"Ewmcoin"}) }}</view> <view class="Howtogetstarted_box2">{{ $t("homeNewText.hh18",{name:"Ewmcoin"}) }}</view>
<view style="display: flex;justify-content: center;"> <view style="display: flex;justify-content: center;">
<view v-if="!isLogin" class="Howtogetstarted_box3" @click="goReg">{{ $t("homeNewText.hh19") }}</view> <view class="Howtogetstarted_box3">{{ $t("homeNewText.hh19") }}</view>
<view v-else class="Howtogetstarted_box3" @click="goMine">{{ $t("homeNewText.hh19") }}</view>
</view> </view>
</view> </view>
<view class="Howtogetstarted"> <view class="Howtogetstarted">
@ -230,8 +228,7 @@
<view class="Howtogetstarted_box1">{{ $t("homeNewText.hh20") }}</view> <view class="Howtogetstarted_box1">{{ $t("homeNewText.hh20") }}</view>
<view class="Howtogetstarted_box2">{{ $t("homeNewText.hh21",{name:"Ewmcoin"}) }}</view> <view class="Howtogetstarted_box2">{{ $t("homeNewText.hh21",{name:"Ewmcoin"}) }}</view>
<view style="display: flex;justify-content: center;"> <view style="display: flex;justify-content: center;">
<view v-if="!isLogin" class="Howtogetstarted_box3" @click="goReg">{{ $t("homeNewText.hh22") }}</view> <view class="Howtogetstarted_box3">{{ $t("homeNewText.hh22") }}</view>
<view v-else class="Howtogetstarted_box3" @click="goExchange">{{ $t("homeNewText.hh22") }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -860,14 +857,14 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link>
<v-link :to="`/pages/help/detail?id=${167}`" tag="div" <!-- <v-link :to="`/pages/help/detail?id=${167}`" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('icon5.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('icon5.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{$t('first.a1')}}</span> <span class="color-light">{{$t('first.a1')}}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<!-- <view class="per-bot p-y-md p-x-sm d-flex align-center"> <!-- <view class="per-bot p-y-md p-x-sm d-flex align-center">
<img :src="$localImgUrl('Page6.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page6.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light"> <span class="color-light">
@ -2253,10 +2250,10 @@
padding-bottom: 40px; padding-bottom: 40px;
} }
.Howtogetstarted_box3{ .Howtogetstarted_box3{
color: #5248D0; color: #fff;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
background-color: #fff; background-color: #ee8267;
// max-width: 150px; // max-width: 150px;
padding: 10px 10px; padding: 10px 10px;
margin: auto; margin: auto;

35
pages/login/index.vue

@ -53,7 +53,11 @@
<view class="login_box2" style="margin-top: 40rpx;">{{ $t("login.b4") }}</view> <view class="login_box2" style="margin-top: 40rpx;">{{ $t("login.b4") }}</view>
<v-input class="login_box3" v-model="form.password" type="password" :placeholder="$t('login.b5')"></v-input> <v-input class="login_box3" v-model="form.password" type="password" :placeholder="$t('login.b5')"></v-input>
<div style="margin-top: 15px;">
<van-checkbox :value="isRember" @change="isRember = !isRember" icon-size="16">
<text class="color-gray-6 m-r-xs">{{$t('reg.c10')}}</text>
</van-checkbox>
</div>
<view style="margin-top: 60rpx;"> <view style="margin-top: 60rpx;">
<v-button type="blue1" block key="loginbtn" @click="toLogin" style="border-radius: 10px;">{{$t('login.a4')}}</v-button> <v-button type="blue1" block key="loginbtn" @click="toLogin" style="border-radius: 10px;">{{$t('login.a4')}}</v-button>
</view> </view>
@ -61,7 +65,7 @@
<v-link tag="div" to="/pages/safe/forget-password" class="tips fn-sm color-sell">{{$t('login.a5')}}</v-link> <v-link tag="div" to="/pages/safe/forget-password" class="tips fn-sm color-sell">{{$t('login.a5')}}</v-link>
<view class="mlaotu fn-12"> <view class="mlaotu fn-12">
{{$t('login.a6')}} {{$t('login.a6')}}
<v-link to="/pages/reg/index?from=login" class="color-sell d-inline-block" >{{$t('login.a7')}}</v-link> <v-link to="/pages/reg/index?from=login" class="color-sell d-inline-block" >{{$t('homeNewText.hh13')}}</v-link>
</view> </view>
</view> </view>
</view> </view>
@ -151,6 +155,7 @@ export default {
secondaryData: {}, secondaryData: {},
secondaryShow:false, secondaryShow:false,
activeName: 1, activeName: 1,
isRember:false
}; };
}, },
computed: { computed: {
@ -168,6 +173,19 @@ export default {
}, },
// //
toLogin() { toLogin() {
console.log(this.isRember);
if(this.isRember==true){
console.log('1111');
sessionStorage.setItem("isRember",this.isRember)
sessionStorage.setItem("account1",this.form.account+"rew")
sessionStorage.setItem("password1",this.form.password+"45623")
}else{
console.log('2222');
this.isRember==false
sessionStorage.setItem("isRember",this.isRember)
sessionStorage.removeItem("account1");
sessionStorage.removeItem("password1");
}
if (this.form.account.includes("@")) { if (this.form.account.includes("@")) {
this.form.type = 2; this.form.type = 2;
@ -227,6 +245,16 @@ export default {
}, },
}, },
mounted() {}, mounted() {},
mounted() {
const name = sessionStorage.getItem("isRember")
if(name == 'true'){
console.log('3333');
const account1 = sessionStorage.getItem("account1")
const password1 = sessionStorage.getItem("password1")
this.form.account = account1.substring(0, account1.length - 3);
this.form.password = password1.substring(0, password1.length - 5);
}
}
}; };
</script> </script>
@ -263,4 +291,7 @@ export default {
border-radius: 10px; border-radius: 10px;
} }
} }
::v-deep .van-checkbox__icon--round{
border-radius: 0%;
}
</style> </style>

5
pages/reg/index.vue

@ -72,7 +72,7 @@
<view class="form-item m-b-md p-b-xs"> <view class="form-item m-b-md p-b-xs">
<view class="label m-b-xs black">{{$t('reg.a6')}}</view> <view class="label m-b-xs black">{{$t('reg.a6')}}</view>
<view style="display: flex;align-items: center;margin-top: 10px;"> <view style="display: flex;align-items: center;margin-top: 10px;">
<v-input class="login_box3" style="width: 350rpx;margin-right: 15px;margin-top: 0px;" v-model="form.code" :placeholder="$t('reg.a7')"> <v-input class="login_box3" style="width: 350rpx;margin-right: 15px;margin-top: 0px;" v-model="form.code" :placeholder="$t('reg.c9')">
<!-- <template #right> --> <!-- <template #right> -->
<!-- 手机 --> <!-- 手机 -->
<!-- <v-code v-show="form.type==1" url="/register/sendSmsCode" :data="{phone:form.account,country_code:country_code || 86,type:1}"></v-code> --> <!-- <v-code v-show="form.type==1" url="/register/sendSmsCode" :data="{phone:form.account,country_code:country_code || 86,type:1}"></v-code> -->
@ -357,7 +357,8 @@ export default {
border-radius: 10px; border-radius: 10px;
} }
.green-plain ::v-deep uni-button{ .green-plain ::v-deep uni-button{
padding: 10px; // padding: 10px;
line-height: 40px;
height: 40px; height: 40px;
width: 120px; width: 120px;
font-size: 13px; font-size: 13px;

Loading…
Cancel
Save