|
|
|
@ -29,6 +29,28 @@ |
|
|
|
</fui-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<fui-form-item label="性别" labelSize='26' asterisk asteriskPosition="right" prop="age" background='#434544' |
|
|
|
labelColor='#fff' :bottomBorder='false'> |
|
|
|
<view class="input-title" style="margin-right:14rpx;"> |
|
|
|
<fui-radio-group name="radio" v-model="formData.sex" @change="changeSex"> |
|
|
|
<view class="fui-list__item" style="display: flex;justify-content: flex-end;"> |
|
|
|
<fui-label> |
|
|
|
<view class="fui-align__center"> |
|
|
|
<fui-radio value="1" checked></fui-radio> |
|
|
|
<text class="fui-text">男</text> |
|
|
|
</view> |
|
|
|
</fui-label> |
|
|
|
<fui-label :margin="['0','0','0','40rpx']"> |
|
|
|
<view class="fui-align__center"> |
|
|
|
<fui-radio value="2"></fui-radio> |
|
|
|
<text class="fui-text">女</text> |
|
|
|
</view> |
|
|
|
</fui-label> |
|
|
|
</view> |
|
|
|
</fui-radio-group> |
|
|
|
</view> |
|
|
|
</fui-form-item> |
|
|
|
|
|
|
|
<fui-form-item label="年龄" labelSize='26' asterisk asteriskPosition="right" prop="age" background='#434544' |
|
|
|
labelColor='#fff' :bottomBorder='false'> |
|
|
|
<view class="input-title" style="margin-right:14rpx;"> |
|
|
|
@ -261,6 +283,7 @@ export default { |
|
|
|
|
|
|
|
//表单 |
|
|
|
formData: { |
|
|
|
sex:'1',//性别|0=保密,1=男,2=女 |
|
|
|
student_name: '',//学员姓名* |
|
|
|
student_phone: '',//学员手机号* |
|
|
|
age: '',//年龄* |
|
|
|
@ -570,7 +593,7 @@ export default { |
|
|
|
|
|
|
|
//提交 |
|
|
|
async submit() { |
|
|
|
console.log(this.formData) |
|
|
|
console.log('提交',this.formData) |
|
|
|
let data = {...this.formData} |
|
|
|
//表单验证 |
|
|
|
let validatorForm = await this.validatorForm(data) |
|
|
|
@ -727,7 +750,12 @@ export default { |
|
|
|
} else { |
|
|
|
this.switchChange_type = 2 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//性别选择器 |
|
|
|
changeSex(e){ |
|
|
|
this.formData.sex = e.detail.value |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|