正在显示
5 个修改的文件
包含
31 行增加
和
8 行删除
... | ... | @@ -58,8 +58,10 @@ Page({ |
58 | 58 | genderData: { |
59 | 59 | label: '性别', |
60 | 60 | bindtype: 'gender', |
61 | + disabled: true, | |
61 | 62 | selected: '', |
62 | - placeholder: '请选择性别', | |
63 | + // placeholder: '请选择性别', | |
64 | + placeholder: '性别', | |
63 | 65 | values: ["男", "女"], |
64 | 66 | onChange: 'onPickerSelect' |
65 | 67 | }, |
... | ... | @@ -116,7 +118,7 @@ Page({ |
116 | 118 | this.data.relativeData.selected = tax_info.family_ties |
117 | 119 | // this.data.cardtypeData.selected = tax_info.id_card_type |
118 | 120 | this.data.genderData.selected = tax_info.gender |
119 | - this.data.genderData.disabled = isDisable | |
121 | + // this.data.genderData.disabled = isDisable | |
120 | 122 | |
121 | 123 | this.setData({ |
122 | 124 | isDisable: isDisable, |
... | ... | @@ -287,6 +289,23 @@ Page({ |
287 | 289 | this.showtoast('手机号码有误'); |
288 | 290 | return |
289 | 291 | } |
292 | + if (this.data.genderData.selected == '男') { | |
293 | + var rel = this.data.relativeData.selected | |
294 | + if (rel == '女'){ | |
295 | + this.showtoast('关系和性别冲突'); | |
296 | + return | |
297 | + } | |
298 | + }else{ | |
299 | + var rel = this.data.relativeData.selected | |
300 | + if (rel == '子') { | |
301 | + this.showtoast('关系和性别冲突'); | |
302 | + return | |
303 | + } | |
304 | + } | |
305 | + if (this.data.genderData.selected == app.globalData.hostInfo.gender) { | |
306 | + this.showtoast('关系和性别冲突'); | |
307 | + return | |
308 | + } | |
290 | 309 | this.goCommit(formdata); |
291 | 310 | }, |
292 | 311 | |
... | ... |
... | ... | @@ -24,10 +24,10 @@ |
24 | 24 | <view wx:if="{{isIdCard}}" > |
25 | 25 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> |
26 | 26 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> |
27 | - <input class='input_wrap' placeholder='请输入或拍摄身份证' placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard' ></input> | |
27 | + <input class='input_wrap' placeholder='请输入或拍摄身份证' placeholder-class='text_999_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard' ></input> | |
28 | 28 | </view> |
29 | 29 | <view wx:else> |
30 | - <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | |
30 | + <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_999_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | |
31 | 31 | </view> |
32 | 32 | </view> |
33 | 33 | <view class="divide_line_30"></view> |
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | <view class='item_body'> |
36 | 36 | <text class='red_star_right_10'>*</text> |
37 | 37 | <text class='text_777_30 float_left' style='line-height: 90rpx'>姓名</text> |
38 | - <input class='input_wrap' placeholder='请填写姓名' name='person_name' value='{{name}}' placeholder-class='text_777_30' maxlength='15' disabled='{{isDisable}}' bindinput='nameInput'></input> | |
38 | + <input class='input_wrap' placeholder='请填写姓名' name='person_name' value='{{name}}' placeholder-class='text_999_30' maxlength='15' disabled='{{isDisable}}' bindinput='nameInput'></input> | |
39 | 39 | </view> |
40 | 40 | <view class="divide_line_30"></view> |
41 | 41 | |
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | <view class="divide_line_30"></view> |
44 | 44 | <view class='item_body'> |
45 | 45 | <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>年龄</text> |
46 | - <input class='input_wrap' name='age' type='number' placeholder-class='text_777_30' placeholder='请输入年龄' maxlength='2' value='{{age}}' disabled='{{isDisable}}'></input> | |
46 | + <input class='input_wrap' name='age' type='number' placeholder-class='text_999_30' placeholder='年龄' maxlength='2' value='{{age}}' disabled='true'></input> | |
47 | 47 | </view> |
48 | 48 | <view class="divide_line_30"></view> |
49 | 49 | |
... | ... |
... | ... | @@ -74,7 +74,8 @@ Page({ |
74 | 74 | genderData: { |
75 | 75 | label: '性别', |
76 | 76 | bindtype: 'gender', |
77 | - placeholder: '请选择性别', | |
77 | + disabled: true, | |
78 | + placeholder: '性别', | |
78 | 79 | values: ["男", "女"], |
79 | 80 | selected: '', |
80 | 81 | onChange: 'onPickerSelect' |
... | ... | @@ -159,8 +160,9 @@ Page({ |
159 | 160 | // 时间picker |
160 | 161 | birthDate: { |
161 | 162 | label: '出生年月', |
163 | + disabled:true, | |
162 | 164 | bindtype: 'birthday', |
163 | - placeholder: '请选择出生日期', | |
165 | + placeholder: '出生日期', | |
164 | 166 | selected: '', |
165 | 167 | mode: "date", |
166 | 168 | fields: "day", |
... | ... |
请
注册
或
登录
后发表评论