Browse Source

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

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

32
pages/reg/index.vue

@ -55,6 +55,17 @@
<v-input class="login_box3" v-model="form.account" :placeholder="$t('reg.a5')"></v-input>
</view>
</template>
</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" >
@ -108,17 +119,17 @@
</view>
<view class="form-item m-b-md p-b-xs">
<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 class="form-item m-b-md p-b-xs">
<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>
</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>
<!-- <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>
</view>
</view> -->
<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>
<view class="m-l-xs">
@ -166,7 +177,8 @@ export default {
password_confirmation: "",
invite_code: "",
gr_code: "",
withdrawal_psw:""
withdrawal_psw:"",
phone:""
},
captcha: '',
Graph_che:'',
@ -210,10 +222,10 @@ export default {
}
return;
}
if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7'));
return;
}
// if (!this.form.invite_code) {
// this.$toast(this.$t('reg.c7'));
// return;
// }
if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14'));
return;
@ -293,7 +305,7 @@ export default {
//
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)
.then((res) => {
this.loginSuccess(res.data);

Loading…
Cancel
Save