Browse Source

注册去除手机号和区号

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

73
pages/auth/primary.vue

@ -9,33 +9,40 @@
<v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input> <v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input>
</view> </view>
</view> </view>
<!-- 出生日期 --> <!-- 出生日期 -->
<view class="form-item border-b p-md m-b-md" v-if="0"> <view class="form-item border-b p-md m-b-md" v-if="0">
<view class="label m-b-xs">{{$t('auth.d0')}}</view> <view class="label m-b-xs">{{$t('auth.d0')}}</view>
<view class="input color-light" > <view class="input color-light" >
<uni-datetime-picker <uni-datetime-picker
type="date" type="date"
:value="single" :value="single"
start="1900-1-1" start="1900-1-1"
end="2050-12-12" end="2050-12-12"
@change="selectDate" @change="selectDate"
/> />
</view> </view>
</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.d0')}}</view>
<view class="label m-b-xs">{{$t('auth.d1')}}</view> <view class="input color-light">
<view class="input color-light" style="height: 30px;"> <uni-datetime-picker type="date" :placeholder="$t('auth.d0')" start="1873-1-01" :end="new Date().toLocaleDateString()"
<v-picker :value="form.type" @change="selectType" :list="typeList" range-value="value" range-label="label"> :clear-icon="false" v-model="form.birthday" @maskClick="maskClick" />
<v-input disabled :value="activeType.label" :placeholder="$t('auth.d13')"> </view>
<template #right> </view>
<van-icon class="color-default" name="arrow" /> <!-- 证件号类型 -->
</template> <view class="form-item border-b p-md m-b-md">
</v-input> <view class="label m-b-xs">{{$t('auth.d1')}}</view>
</v-picker> <view class="input color-light" style="height: 30px;">
</view> <v-picker :value="form.type" @change="selectType" :list="typeList" range-value="value" range-label="label">
</view> <v-input disabled :value="activeType.label" :placeholder="$t('auth.d13')">
<!-- 证件号 --> <template #right>
<van-icon class="color-default" name="arrow" />
</template>
</v-input>
</v-picker>
</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.b1')}}</view> <view class="label m-b-xs">{{$t('auth.b1')}}</view>
<view class="input color-light"> <view class="input color-light">
@ -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

@ -56,17 +56,6 @@
</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>
@ -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