6
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
<u-form-item prop="phoneNumber" label="手机号码" v-if="userInfo.type == 'mobile'">
|
||||
<u-input v-model="userInfo.phoneNumber" border="surround" placeholder="请输入手机号码" clearable>
|
||||
<u-input v-model="userInfo.mobile" border="surround" placeholder="请输入手机号码" clearable>
|
||||
<view slot="prefix" class="phoneNumber_areacode" @click="showPicker">
|
||||
<text class="areacode_content">+{{ userInfo.areaCode }}</text>
|
||||
<text class="areacode_content">+{{ userInfo.region }}</text>
|
||||
<u-icon class="arrow_down" name="arrow-down"></u-icon>
|
||||
</view>
|
||||
</u-input>
|
||||
@@ -50,15 +50,15 @@
|
||||
data() {
|
||||
return {
|
||||
userInfo: {
|
||||
phoneNumber: "",
|
||||
mobile: "",
|
||||
email: "",
|
||||
areaCode: "86",
|
||||
region: "86",
|
||||
invitationCode: "",
|
||||
type:'email',
|
||||
type:'mobile',
|
||||
},
|
||||
checked: [true],
|
||||
rules: {
|
||||
phoneNumber: [{
|
||||
mobile: [{
|
||||
type: "string",
|
||||
required: true,
|
||||
message: "请输入手机号码",
|
||||
@@ -88,7 +88,7 @@
|
||||
const options = {
|
||||
mobile: this.userInfo.mobile,
|
||||
email: this.userInfo.email,
|
||||
areaCode: `+${this.userInfo.areaCode}`,
|
||||
region: `+${this.userInfo.region}`,
|
||||
event: this.isRegister ? 'register' : "reset_pwd",
|
||||
invitationCode: this.userInfo.invitationCode,
|
||||
type:this.userInfo.type
|
||||
@@ -118,7 +118,7 @@
|
||||
this.$refs.AreaPicker.init();
|
||||
},
|
||||
chooseArea(areaCode) {
|
||||
this.userInfo.areaCode = areaCode;
|
||||
this.userInfo.region = areaCode;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user