Browse Source

注册页面已隐藏邀请码、注册页面新增手机号

master
liaoxinyu 1 week ago
parent
commit
50def81baa
  1. 32
      pages/reg/index.vue

32
pages/reg/index.vue

@ -56,6 +56,17 @@
</view> </view>
</template> </template>
</view> </view>
<view class="form-item m-b-md p-b-xs">
<view>
<view class="label m-b-xs">{{$t('reg.a2')}}</view>
<v-input v-model="form.phone" class="color-light login_box3" :placeholder="$t('reg.a3')">
<template #left>
<v-country ref="country" style="width: 80rpx;height: 40rpx;border: 1px solid #ccc;text-align: center;line-height: 40rpx;"
@country_code="country_code=$event" class="m-r-xs" v-model="form.country_id" />
</template>
</v-input>
</view>
</view>
<!--图形验证码--> <!--图形验证码-->
<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('homeNewText.ee6')}}</view> <view class="label m-b-xs black">{{$t('homeNewText.ee6')}}</view>
@ -108,17 +119,17 @@
</view> </view>
<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 color-light">{{$t('common.c13')}}</view> <view class="label m-b-xs color-light">{{$t('common.c13')}}</view>
<v-input class="color-light" v-model="form.withdrawal_psw" type="password" :placeholder="$t('common.c14')"></v-input> <v-input class="color-light login_box3" v-model="form.withdrawal_psw" type="password" :placeholder="$t('common.c14')"></v-input>
</view> </view>
<!-- <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">{{$t('reg.c6')}}</view> <view class="label m-b-xs">{{$t('reg.c6')}}</view>
<v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input> <v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input>
</view> --> </view> -->
<view class="form-item m-b-md p-b-xs" style="margin-bottom: 45px !important;"> <!-- <view class="form-item m-b-md p-b-xs" style="margin-bottom: 45px !important;">
<view class="label m-b-xs black">{{$t('reg.c6')}}</view> <view class="label m-b-xs black">{{$t('reg.c6')}}</view>
<!-- <v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}(${$t('reg.b4')})`"></v-input> --> <v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}(${$t('reg.b4')})`"></v-input>
<v-input class="login_box3" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}`"></v-input> <v-input class="login_box3" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.c7')}`"></v-input>
</view> </view> -->
<view class="tips d-flex m-b-md fn-sm"> <view class="tips d-flex m-b-md fn-sm">
<van-checkbox :value="check" @change="check=!check" class="flex-shrink" icon-size="15px" checked-color="#f05319"></van-checkbox> <van-checkbox :value="check" @change="check=!check" class="flex-shrink" icon-size="15px" checked-color="#f05319"></van-checkbox>
<view class="m-l-xs"> <view class="m-l-xs">
@ -166,7 +177,8 @@ export default {
password_confirmation: "", password_confirmation: "",
invite_code: "", invite_code: "",
gr_code: "", gr_code: "",
withdrawal_psw:"" withdrawal_psw:"",
phone:""
}, },
captcha: '', captcha: '',
Graph_che:'', Graph_che:'',
@ -210,10 +222,10 @@ export default {
} }
return; return;
} }
if (!this.form.invite_code) { // if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7')); // this.$toast(this.$t('reg.c7'));
return; // return;
} // }
if (!this.form.withdrawal_psw) { if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14')); this.$toast(this.$t('common.c14'));
return; return;
@ -293,7 +305,7 @@ export default {
// //
login(){ login(){
let data={type: 2,account:this.form.account,password: this.form.password} let data={type: 2,account:this.form.account,password: this.form.password,phone: this.form.phone,country_id:this.form.country_id}
Member.login(this.form) Member.login(this.form)
.then((res) => { .then((res) => {
this.loginSuccess(res.data); this.loginSuccess(res.data);

Loading…
Cancel
Save