Browse Source

去掉实名手机必填

master
luyisha 3 years ago
parent
commit
f9b566aa7b
  1. 16
      pages/auth/primary.vue

16
pages/auth/primary.vue

@ -50,7 +50,7 @@
</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" v-if="1==='电话'">
<view class="label m-b-xs">{{$t('auth.c9')}}</view> <view class="label m-b-xs">{{$t('auth.c9')}}</view>
<view class="input color-light"> <view class="input color-light">
<v-input v-model="form.phone" :placeholder="$t('auth.d0')"></v-input> <v-input v-model="form.phone" :placeholder="$t('auth.d0')"></v-input>
@ -165,13 +165,13 @@ export default {
// //
primaryAuth() { primaryAuth() {
let data = this.form; let data = this.form;
if(this.form.phone==""){ // if(this.form.phone==""){
uni.showToast({ // uni.showToast({
title: this.$t('reg.c3'), // title: this.$t('reg.c3'),
icon: 'none' // icon: 'none'
}) // })
return; // return;
} // }
data.country_code = this.activeCountry.country_code; data.country_code = this.activeCountry.country_code;
Profile.primaryAuth(data,{btn:this.$refs.btn}).then((res) => { Profile.primaryAuth(data,{btn:this.$refs.btn}).then((res) => {
console.log(res, '-----'); console.log(res, '-----');

Loading…
Cancel
Save