Browse Source

日期布局已修改、注册页面已隐藏邀请码、注册页面新增手机号

master
liaoxinyu 1 week ago
parent
commit
1f6532e835
  1. 3
      src/i18n/en.json
  2. 3
      src/i18n/tw.json
  3. 42
      src/views/profile/certification.vue
  4. 41
      src/views/signUp/index.vue

3
src/i18n/en.json

@ -811,7 +811,8 @@
"clickToVerify": "Click to verify",
"clickToVerify1": "Completed",
"tips1": "Primary Certification: To withdraw cash, you need to complete advanced certification.",
"tips2": "Advanced Certification: Up to 500k USDT 24-hour withdrawal limit. For more withdrawal amount, please contact customer service"
"tips2": "Advanced Certification: Up to 500k USDT 24-hour withdrawal limit. For more withdrawal amount, please contact customer service",
"date1": "Please enter the date."
},
"setting": {
"smsVer": "SMS Verification",

3
src/i18n/tw.json

@ -753,7 +753,8 @@
"clickToVerify": "點擊驗證",
"clickToVerify1": "已完成",
"tips1": "初級認證:要選取現金,您需要完成高級認證。",
"tips2": "高級認證:最高5000USDT 24小時提款限額。 如需更多取款金額,請聯系客服"
"tips2": "高級認證:最高5000USDT 24小時提款限額。 如需更多取款金額,請聯系客服",
"date1": "請輸入日期"
},
"setting": {
"smsVer": "簡訊驗證",

42
src/views/profile/certification.vue

@ -29,15 +29,18 @@
:placeholder="$t('profile.pleaseEnterName')"
/>
</div>
<!--<div class="form-group col-md-6">-->
<!-- <label>{{$t('profile.dateOfBirth')}}YYYY-MM-DD*</label>-->
<!-- <el-date-picker-->
<!-- required-->
<!-- v-model="form.birthday"-->
<!-- type="date"-->
<!-- :placeholder="$t('profile.selectDate')"-->
<!-- ></el-date-picker>-->
<!--</div>-->
<div class="form-group col-md-6">
<label>{{$t('profile.dateOfBirth')}}YYYY-MM-DD*</label>
<!-- <el-date-picker required v-model="form.birthday" type="date" :placeholder="$t('profile.selectDate')"></el-date-picker> -->
<input
type="text"
required
v-model="form.birthday"
@input="formatDateInput"
class="form-control"
:placeholder="$t('profile.date1')"
/>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-3">
@ -99,8 +102,8 @@
<label>{{$t('profile.additionalInformation')}}{{$t('profile.optional')}}</label>
<input type="text" v-model="form.extra" class="form-control" placeholder />
</div> -->
<div class="label my-2 blue">{{$t('profile.contactInformation')}}</div>
<div class="form-row">
<div class="label my-2 blue" v-if="0">{{$t('profile.contactInformation')}}</div>
<div class="form-row" v-if="0">
<!-- <div class="form-group col-md-12"> -->
<!-- <label>{{$t('profile.phoneNumber')}}*</label> -->
<!-- <div class="input-group mb-3"> -->
@ -314,6 +317,23 @@ export default {
}
},
methods: {
formatDateInput(e) {
let value = e.target.value;
// 1. 线
value = value.replace(/[^\d-]/g, '');
// 2. 线4线7线
if (/^\d{4}$/.test(value)) {
value = value + '-';
} else if (/^\d{4}-\d{2}$/.test(value)) {
value = value + '-';
}
// 3. 10
if (value.length > 10) value = value.slice(0, 10);
// 4. 使 nextTick
this.$nextTick(() => {
this.form.birthday = value;
});
},
//
getAuthInfo() {
Profile.getAuthInfo()

41
src/views/signUp/index.vue

@ -27,6 +27,18 @@
<input type="email" name="email" class="form-control" :placeholder="$t('login.pleaseEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" />
</div>
</div>
<div class="tab-pane fade" :class="{show:registerType == 1, active:registerType == 1}" v-if="registerType==1" id="phone" role="tabpanel" aria-labelledby="phone-tab">
<div class="form-group">
<div class="d-flex">
<div class="mr-2">
<el-select v-model="user.country_id" filterable :placeholder="$t('login.country')">
<el-option v-for="(item, index) in cacheOption" :key="index" :value="`${item.id}`" :label="`+${item.country_code} ${item.name}`"></el-option>
</el-select>
</div>
<input type="text" name="phone" class="form-control" :placeholder="$t('login.enterMobile')" v-model="user.phone" :data-has="$t('login.enterMobile')"/>
</div>
</div>
</div>
<!-- phone number -->
<div class="tab-pane fade" :class="{show:registerType == 2, active:registerType == 2}" v-if="registerType==2" id="phone" role="tabpanel" aria-labelledby="phone-tab">
<div class="form-group">
@ -66,9 +78,10 @@
</div>
<div class="form-group row">
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.c6')}`" />
<!-- <input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.c6')}`" /> -->
<!-- ${$t('login.optional')} -->
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" />
@ -292,17 +305,17 @@ export default {
);
return;
}
if (this.user.parentCode=="") {
// /
this.$message(
{
type: "warning",
message: this.$t("login.c7") + "!"
},
1000
);
return;
}
// if (this.user.parentCode=="") {
// // /
// this.$message(
// {
// type: "warning",
// message: this.$t("login.c7") + ""
// },
// 1000
// );
// return;
// }
if(this.user.withdrawal_psw==""){
this.$message(
{
@ -342,7 +355,9 @@ export default {
// console.log(token);
Member.sendEmailCode({
email: this.user.email,
phone: this.user.phone,
gc_code: this.user.gc_code,
country_code: this.country.country_code,
gc_key: this.gc_key,
token
}).then(data => {
@ -548,6 +563,8 @@ export default {
case 1:
data.type = `2`;
data.account = this.user.email;
data.phone = this.user.phone;
data.country_code = this.country.country_code;
break;
default:

Loading…
Cancel
Save