正在显示
4 个修改的文件
包含
30 行增加
和
19 行删除
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | 41 | ||
42 | .text_333_28 { | 42 | .text_333_28 { |
43 | font-family: PingFangSC-Regular; | 43 | font-family: PingFangSC-Regular; |
44 | - font-size: 28rpx; | 44 | + font-size: 26rpx; |
45 | color: #333; | 45 | color: #333; |
46 | text-align: right; | 46 | text-align: right; |
47 | line-height: 80rpx; | 47 | line-height: 80rpx; |
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | 49 | ||
50 | .text_999_28 { | 50 | .text_999_28 { |
51 | font-family: PingFangSC-Regular; | 51 | font-family: PingFangSC-Regular; |
52 | - font-size: 28rpx; | 52 | + font-size: 26rpx; |
53 | color: #999; | 53 | color: #999; |
54 | text-align: right; | 54 | text-align: right; |
55 | line-height: 80rpx; | 55 | line-height: 80rpx; |
@@ -11,9 +11,14 @@ | @@ -11,9 +11,14 @@ | ||
11 | 11 | ||
12 | <view class="weui-cell__bd"> | 12 | <view class="weui-cell__bd"> |
13 | <picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'> | 13 | <picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'> |
14 | - <view wx:if="{{selected&&disabled&&disabled=='true'}}" class="text_999_28 float_right">{{selected}}</view> | 14 | + <!-- <view wx:if="{{selected&&disabled}}" class="text_999_28 float_right">{{selected}}</view> |
15 | <view wx:elif="{{selected}}" class="text_333_28 float_right ">{{selected}}</view> | 15 | <view wx:elif="{{selected}}" class="text_333_28 float_right ">{{selected}}</view> |
16 | - <view wx:else class="text_999_28 float_right ">{{placeholder}}</view> | 16 | + <view wx:else class="text_999_28 float_right ">{{placeholder}}</view> --> |
17 | + | ||
18 | + <text wx:if="{{selected&&disabled}}" class="text_999_28 float_right">{{selected}}</text> | ||
19 | + <text wx:elif="{{selected}}" class="text_333_28 float_right ">{{selected}}</text> | ||
20 | + <text wx:else class="text_999_28 float_right ">{{placeholder}}</text> | ||
21 | + | ||
17 | </picker> | 22 | </picker> |
18 | </view> | 23 | </view> |
19 | </view> | 24 | </view> |
@@ -295,6 +295,7 @@ Page({ | @@ -295,6 +295,7 @@ Page({ | ||
295 | this.data.personstatusData.selected = tax_info.taxpayer_status | 295 | this.data.personstatusData.selected = tax_info.taxpayer_status |
296 | 296 | ||
297 | this.data.cardtypeData.selected = tax_info.id_card_type | 297 | this.data.cardtypeData.selected = tax_info.id_card_type |
298 | + console.log('cardtypeData', this.data.cardtypeData) | ||
298 | this.data.card_number = tax_info.id_card_no | 299 | this.data.card_number = tax_info.id_card_no |
299 | this.data.mobile = tax_info.mobile | 300 | this.data.mobile = tax_info.mobile |
300 | this.data.investInfo.selected = tax_info.is_investor | 301 | this.data.investInfo.selected = tax_info.is_investor |
@@ -593,18 +594,23 @@ Page({ | @@ -593,18 +594,23 @@ Page({ | ||
593 | }) | 594 | }) |
594 | break; | 595 | break; |
595 | case 'cardtype': | 596 | case 'cardtype': |
596 | - var is_idcard = this.data.isIdCard | ||
597 | var cardtype_data = this.data.cardtypeData | 597 | var cardtype_data = this.data.cardtypeData |
598 | - cardtype_data.selected = cardtype_data.values[e.detail.value] | ||
599 | - if (0 == e.detail.value) { | ||
600 | - is_idcard = true | ||
601 | - } else { | ||
602 | - is_idcard = false | 598 | + var new_type = cardtype_data.values[e.detail.value] |
599 | + console.log('cardtype', cardtype_data.values[e.detail.value]) | ||
600 | + if (new_type != this.data.cardtypeData.selected) { | ||
601 | + var is_idcard = this.data.isIdCard | ||
602 | + cardtype_data.selected = cardtype_data.values[e.detail.value] | ||
603 | + if (0 == e.detail.value) { | ||
604 | + is_idcard = true | ||
605 | + } else { | ||
606 | + is_idcard = false | ||
607 | + } | ||
608 | + this.setData({ | ||
609 | + card_number:"", | ||
610 | + isIdCard: is_idcard, | ||
611 | + cardtypeData: cardtype_data | ||
612 | + }) | ||
603 | } | 613 | } |
604 | - this.setData({ | ||
605 | - isIdCard: is_idcard, | ||
606 | - cardtypeData: cardtype_data | ||
607 | - }) | ||
608 | break; | 614 | break; |
609 | case 'forigner': | 615 | case 'forigner': |
610 | var forigner_data = this.data.forignerInfo | 616 | var forigner_data = this.data.forignerInfo |
@@ -808,7 +814,7 @@ Page({ | @@ -808,7 +814,7 @@ Page({ | ||
808 | var formdata = e.detail.value; | 814 | var formdata = e.detail.value; |
809 | console.log("formdata", formdata) | 815 | console.log("formdata", formdata) |
810 | console.log("card_number", this.data.card_number) | 816 | console.log("card_number", this.data.card_number) |
811 | - if (this.data.name.length < 1 ) { | 817 | + if (this.data.name.length < 1) { |
812 | this.showtoast('有必填项未填写'); | 818 | this.showtoast('有必填项未填写'); |
813 | return | 819 | return |
814 | } else if (this.data.name.length > 0 && !regname.test(this.data.name)) { | 820 | } else if (this.data.name.length > 0 && !regname.test(this.data.name)) { |
@@ -834,7 +840,7 @@ Page({ | @@ -834,7 +840,7 @@ Page({ | ||
834 | // this.showtoast('有必填项未填写'); | 840 | // this.showtoast('有必填项未填写'); |
835 | // return | 841 | // return |
836 | // } | 842 | // } |
837 | - else if (this.data.mobile.length < 1 ) { | 843 | + else if (this.data.mobile.length < 1) { |
838 | this.showtoast('有必填项未填写'); | 844 | this.showtoast('有必填项未填写'); |
839 | return | 845 | return |
840 | } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) { | 846 | } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) { |
@@ -889,7 +895,7 @@ Page({ | @@ -889,7 +895,7 @@ Page({ | ||
889 | "family_ties": that.data.relativeData.selected, | 895 | "family_ties": that.data.relativeData.selected, |
890 | "native": "中国", | 896 | "native": "中国", |
891 | "id_card_type": that.data.cardtypeData.selected, | 897 | "id_card_type": that.data.cardtypeData.selected, |
892 | - "id_card_no": that.data.card_number, | 898 | + "id_card_no": that.data.card_number, |
893 | "gender": that.data.genderData.selected, | 899 | "gender": that.data.genderData.selected, |
894 | "birth_date": that.data.long_birth_date, | 900 | "birth_date": that.data.long_birth_date, |
895 | "profession": request_profession, | 901 | "profession": request_profession, |
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | <text class='text_black_28 float_left'>姓名</text> | 51 | <text class='text_black_28 float_left'>姓名</text> |
52 | <!-- <input class='input_wrap float_right' placeholder-class='text_999_28' placeholder="{{taxInfo.certification_status=='active'&&name?name:'请输入姓名'}}" disabled="{{taxInfo.certification_status=='active'}}"></input> --> | 52 | <!-- <input class='input_wrap float_right' placeholder-class='text_999_28' placeholder="{{taxInfo.certification_status=='active'&&name?name:'请输入姓名'}}" disabled="{{taxInfo.certification_status=='active'}}"></input> --> |
53 | 53 | ||
54 | - <input class='input_wrap float_right' hidden="{{taxInfo.certification_status==' active'}}" placeholder="请输入姓名" value='{{name}}' disabled="{{taxInfo.certification_status=='active'}}" bindblur='bindinputname'></input> | 54 | + <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入姓名" value='{{name}}' disabled="{{taxInfo.certification_status=='active'}}" bindblur='bindinputname'></input> |
55 | <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||name?name:'请输入姓名'}}" disabled="{{taxInfo.certification_status=='active'}}" bindblur='bindinputname'></input> | 55 | <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||name?name:'请输入姓名'}}" disabled="{{taxInfo.certification_status=='active'}}" bindblur='bindinputname'></input> |
56 | </view> | 56 | </view> |
57 | <view class="divide_line"></view> | 57 | <view class="divide_line"></view> |
@@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
85 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | 85 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
86 | <text class='text_black_28 float_left'>证照号码</text> | 86 | <text class='text_black_28 float_left'>证照号码</text> |
87 | <view wx:if="{{isIdCard}}"> | 87 | <view wx:if="{{isIdCard}}"> |
88 | - <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> | 88 | + <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden="{{taxInfo.certification_status=='active'}}"></image> |
89 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> | 89 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> |
90 | <!-- <input class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'&&card_number?card_number:'请输入证件号码'}}" placeholder-class='text_999_28' name='id_card_no' maxlength='24' disabled="{{taxInfo.certification_status=='active'}}"></input> --> | 90 | <!-- <input class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'&&card_number?card_number:'请输入证件号码'}}" placeholder-class='text_999_28' name='id_card_no' maxlength='24' disabled="{{taxInfo.certification_status=='active'}}"></input> --> |
91 | <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证件号码" value='{{card_number}}' name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}" maxlength='24' bindblur='bindinputcardnum'></input> | 91 | <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证件号码" value='{{card_number}}' name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}" maxlength='24' bindblur='bindinputcardnum'></input> |
请
注册
或
登录
后发表评论