Browse Source

注册去除手机号和区号

master
liaoxinyu 1 week ago
parent
commit
ae525f7d13
  1. 19
      pages/auth/primary.vue
  2. 13
      pages/reg/index.vue

19
pages/auth/primary.vue

@ -22,6 +22,13 @@
/> />
</view> </view>
</view> </view>
<view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.d0')}}</view>
<view class="input color-light">
<uni-datetime-picker type="date" :placeholder="$t('auth.d0')" start="1873-1-01" :end="new Date().toLocaleDateString()"
:clear-icon="false" v-model="form.birthday" @maskClick="maskClick" />
</view>
</view>
<!-- 证件号类型 --> <!-- 证件号类型 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.d1')}}</view> <view class="label m-b-xs">{{$t('auth.d1')}}</view>
@ -264,4 +271,16 @@ export default {
height: 24px; height: 24px;
font-size: 15px; font-size: 15px;
} }
/deep/.uni-date-x--border{
border: 0px;
}
/deep/.uni-date__x-input{
padding-left: 0px;
}
/deep/.uni-date-x .icon-calendar{
padding-left: 0px;
}
/deep/.uni-date-x{
background-color: transparent;
}
</style> </style>

13
pages/reg/index.vue

@ -55,17 +55,6 @@
<v-input class="login_box3" v-model="form.account" :placeholder="$t('reg.a5')"></v-input> <v-input class="login_box3" v-model="form.account" :placeholder="$t('reg.a5')"></v-input>
</view> </view>
</template> </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>
<!--图形验证码--> <!--图形验证码-->
<view class="form-item m-b-md p-b-xs" > <view class="form-item m-b-md p-b-xs" >
@ -305,7 +294,7 @@ export default {
// //
login(){ login(){
let data={type: 2,account:this.form.account,password: this.form.password,phone: this.form.phone,country_id:this.form.country_id} let data={type: 2,account:this.form.account,password: this.form.password}
Member.login(this.form) Member.login(this.form)
.then((res) => { .then((res) => {
this.loginSuccess(res.data); this.loginSuccess(res.data);

Loading…
Cancel
Save