正在显示
15 个修改的文件
包含
203 行增加
和
164 行删除
@@ -24,6 +24,14 @@ | @@ -24,6 +24,14 @@ | ||
24 | height: 80rpx; | 24 | height: 80rpx; |
25 | } | 25 | } |
26 | 26 | ||
27 | +.text_wrap{ | ||
28 | + /* width: 500rpx; | ||
29 | + overflow: hidden; | ||
30 | + text-overflow: ellipsis; | ||
31 | + white-space: nowrap; | ||
32 | + float: right; */ | ||
33 | +} | ||
34 | + | ||
27 | .text_black_28 { | 35 | .text_black_28 { |
28 | font-family: PingFangSC-Regular; | 36 | font-family: PingFangSC-Regular; |
29 | font-size: 28rpx; | 37 | font-size: 28rpx; |
images/taxcalculate.png
已删除
100644 → 0
10.1 KB
images/taxperson.png
已删除
100644 → 0
7.4 KB
@@ -12,8 +12,8 @@ | @@ -12,8 +12,8 @@ | ||
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&&disabled=='true'}}" class="text_999_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> | 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> | ||
17 | </picker> | 17 | </picker> |
18 | </view> | 18 | </view> |
19 | </view> | 19 | </view> |
@@ -20,7 +20,7 @@ Page({ | @@ -20,7 +20,7 @@ Page({ | ||
20 | birthday: '', | 20 | birthday: '', |
21 | requestBody: {}, | 21 | requestBody: {}, |
22 | idInfoData: '', | 22 | idInfoData: '', |
23 | - profession_index: [0, 0, 0], | 23 | + profession_index: [], |
24 | 24 | ||
25 | relativeData: { | 25 | relativeData: { |
26 | isrequre: true, | 26 | isrequre: true, |
@@ -47,8 +47,8 @@ Page({ | @@ -47,8 +47,8 @@ Page({ | ||
47 | bindtype: 'cardtype', | 47 | bindtype: 'cardtype', |
48 | selected: '', | 48 | selected: '', |
49 | placeholder: '请选择证照类型', | 49 | placeholder: '请选择证照类型', |
50 | - values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | ||
51 | - '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | 50 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', |
51 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证' | ||
52 | ], | 52 | ], |
53 | onChange: 'onPickerSelect' | 53 | onChange: 'onPickerSelect' |
54 | }, | 54 | }, |
@@ -368,12 +368,12 @@ Page({ | @@ -368,12 +368,12 @@ Page({ | ||
368 | 368 | ||
369 | var birth_day | 369 | var birth_day |
370 | if (id_info.birthday.month > 9 && id_info.birthday.day > 9) { | 370 | if (id_info.birthday.month > 9 && id_info.birthday.day > 9) { |
371 | - birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | 371 | + birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-' + id_info.birthday.day; |
372 | } else if (id_info.birthday.month > 9 && id_info.birthday.day < 10) { | 372 | } else if (id_info.birthday.month > 9 && id_info.birthday.day < 10) { |
373 | + birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-0' + id_info.birthday.day; | ||
374 | + } else if (id_info.birthday.month < 10 && id_info.birthday.day > 9) { | ||
373 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-' + id_info.birthday.day; | 375 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-' + id_info.birthday.day; |
374 | - } else if (id_info.birthday.month < 9 && id_info.birthday.day > 10) { | ||
375 | - birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | ||
376 | - } else if (id_info.birthday.month < 9 && id_info.birthday.day < 10) { | 376 | + } else if (id_info.birthday.month < 10 && id_info.birthday.day < 10) { |
377 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | 377 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; |
378 | } | 378 | } |
379 | var cardtype_Data = that.data.cardtypeData | 379 | var cardtype_Data = that.data.cardtypeData |
@@ -557,8 +557,9 @@ Page({ | @@ -557,8 +557,9 @@ Page({ | ||
557 | birthdayChange: function(e) { | 557 | birthdayChange: function(e) { |
558 | var birth_date = this.data.birthDate; | 558 | var birth_date = this.data.birthDate; |
559 | birth_date.selected = e.detail.value | 559 | birth_date.selected = e.detail.value |
560 | + console.log('long_birth_date', Date.parse(new Date(e.detail.value)) / 1000) | ||
560 | this.setData({ | 561 | this.setData({ |
561 | - long_birth_date: Date.parse(new Date(e.detail.value)) / 1000, | 562 | + long_birth_date: (Date.parse(new Date(e.detail.value))/1000), |
562 | birthDate: birth_date | 563 | birthDate: birth_date |
563 | }) | 564 | }) |
564 | }, | 565 | }, |
@@ -624,14 +625,10 @@ Page({ | @@ -624,14 +625,10 @@ Page({ | ||
624 | 625 | ||
625 | formSubmit: function(e) { | 626 | formSubmit: function(e) { |
626 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) | 627 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) |
627 | - // var pro_index = this.data.profession_index | ||
628 | - // var profession_datas = this.data.professionData.values[pro_index[pro_index[0]]][0] | ||
629 | - // console.log('profession_datas', profession_datas) | ||
630 | - // var regMoney = /^[0-9]*(/.[0-9]{1,2})?$/; | ||
631 | var regMoney = /^[0-9]*(\.[0,10]{1,2})?$/; | 628 | var regMoney = /^[0-9]*(\.[0,10]{1,2})?$/; |
632 | var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; | 629 | var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; |
633 | - var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; | ||
634 | - var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"); | 630 | + var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,}$/; |
631 | + var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); | ||
635 | var formdata = e.detail.value; | 632 | var formdata = e.detail.value; |
636 | console.log("formdata", formdata); | 633 | console.log("formdata", formdata); |
637 | console.log('idnum', this.data.card_number.length < 1 && !format.isIDCardNum(formdata.id_card_no)) | 634 | console.log('idnum', this.data.card_number.length < 1 && !format.isIDCardNum(formdata.id_card_no)) |
@@ -705,9 +702,7 @@ Page({ | @@ -705,9 +702,7 @@ Page({ | ||
705 | var formdata = data | 702 | var formdata = data |
706 | console.log("form_data", formdata); | 703 | console.log("form_data", formdata); |
707 | var Authorization = app.globalData.Authorization; | 704 | var Authorization = app.globalData.Authorization; |
708 | - var pro_index = that.data.profession_index | ||
709 | - var profession_data_info = that.data.professionData.values[pro_index[pro_index[0]]][0] | ||
710 | - console.log('profession_datas', profession_data_info) | 705 | + var request_profession = that.getProfessionRequest() |
711 | wx.request({ | 706 | wx.request({ |
712 | url: baseUrl + 'persontax/v1/personal-taxes', | 707 | url: baseUrl + 'persontax/v1/personal-taxes', |
713 | method: "POST", | 708 | method: "POST", |
@@ -719,22 +714,15 @@ Page({ | @@ -719,22 +714,15 @@ Page({ | ||
719 | "id_card_type": that.data.cardtypeData.selected, | 714 | "id_card_type": that.data.cardtypeData.selected, |
720 | "id_card_no": formdata.id_card_no ? formdata.id_card_no : that.data.card_number, | 715 | "id_card_no": formdata.id_card_no ? formdata.id_card_no : that.data.card_number, |
721 | "gender": that.data.genderData.selected, | 716 | "gender": that.data.genderData.selected, |
722 | - "birth_date": that.data.long_birth_date > 1000 ? that.data.long_birth_date : null, | ||
723 | - "profession": { | ||
724 | - "one_level_code": profession_data_info.value, | ||
725 | - "one_level_name": profession_data_info.label, | ||
726 | - "two_level_code": profession_data_info.children[pro_index[1]].value, | ||
727 | - "two_level_name": profession_data_info.children[pro_index[1]].label, | ||
728 | - "three_level_code": profession_data_info.children[pro_index[1]].children[pro_index[2]].value, | ||
729 | - "three_level_name": profession_data_info.children[pro_index[1]].children[pro_index[2]].label | ||
730 | - }, | 717 | + "birth_date": that.data.long_birth_date , |
718 | + "profession": request_profession, | ||
731 | "education": that.data.degreeData.selected, | 719 | "education": that.data.degreeData.selected, |
732 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : '', | 720 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : '', |
733 | "taxpayer_status": that.data.personstatusData.selected, | 721 | "taxpayer_status": that.data.personstatusData.selected, |
734 | "is_martyr_family": that.data.lieshuInfo.selected, | 722 | "is_martyr_family": that.data.lieshuInfo.selected, |
735 | - "martyr_family_no": formdata.martyr_family_no, | 723 | + "martyr_family_no": that.data.lieshuInfo.selected=='否'?'':formdata.martyr_family_no, |
736 | "is_disability": that.data.disabilityInfo.selected, | 724 | "is_disability": that.data.disabilityInfo.selected, |
737 | - "disability_no": formdata.disability_no, | 725 | + "disability_no": that.data.disabilityInfo.selected=='否'?'':formdata.disability_no, |
738 | "is_lonely_man": that.data.lonelyolderInfo.selected, | 726 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
739 | "is_overseas_personnel": "否", | 727 | "is_overseas_personnel": "否", |
740 | "comment": formdata.comment, | 728 | "comment": formdata.comment, |
@@ -755,7 +743,7 @@ Page({ | @@ -755,7 +743,7 @@ Page({ | ||
755 | "district_code": that.data.birthaddressInfo.address_code[2], | 743 | "district_code": that.data.birthaddressInfo.address_code[2], |
756 | "district": that.data.birthaddressInfo.address_value[2] | 744 | "district": that.data.birthaddressInfo.address_value[2] |
757 | }, | 745 | }, |
758 | - "huji_address_detail": formdata.huji_address_detail, | 746 | + "huji_address_detail": formdata.huji_address_detail.replace(/(^\s*)|(\s*$)/g, ""), |
759 | "mobile": formdata.mobile, | 747 | "mobile": formdata.mobile, |
760 | "contact_address": { | 748 | "contact_address": { |
761 | "province_code": that.data.contactaddressInfo.address_code[0], | 749 | "province_code": that.data.contactaddressInfo.address_code[0], |
@@ -803,6 +791,33 @@ Page({ | @@ -803,6 +791,33 @@ Page({ | ||
803 | }) | 791 | }) |
804 | }, | 792 | }, |
805 | 793 | ||
794 | + getProfessionRequest: function () { | ||
795 | + var that = this | ||
796 | + var pro_index = that.data.profession_index | ||
797 | + | ||
798 | + if (pro_index.length == 3) { | ||
799 | + var profession_data_info = that.data.professionData.values[pro_index[pro_index[0]]][0] | ||
800 | + console.log('profession_datas', profession_data_info) | ||
801 | + return { | ||
802 | + "one_level_code": profession_data_info.value, | ||
803 | + "one_level_name": profession_data_info.label, | ||
804 | + "two_level_code": profession_data_info.children[pro_index[1]].value, | ||
805 | + "two_level_name": profession_data_info.children[pro_index[1]].label, | ||
806 | + "three_level_code": profession_data_info.children[pro_index[1]].children[pro_index[2]].value, | ||
807 | + "three_level_name": profession_data_info.children[pro_index[1]].children[pro_index[2]].label | ||
808 | + } | ||
809 | + } else { | ||
810 | + return { | ||
811 | + "one_level_code": '', | ||
812 | + "one_level_name": '', | ||
813 | + "two_level_code": '', | ||
814 | + "two_level_name": '', | ||
815 | + "three_level_code": '', | ||
816 | + "three_level_name": '' | ||
817 | + } | ||
818 | + } | ||
819 | + }, | ||
820 | + | ||
806 | getCertifyStatus: function(formdata) { | 821 | getCertifyStatus: function(formdata) { |
807 | var iddata = this.data.idInfoData; | 822 | var iddata = this.data.idInfoData; |
808 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; | 823 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <view class='item_body'> | 13 | <view class='item_body'> |
14 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | 14 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
15 | <text class='text_black_28 float_left'>姓名</text> | 15 | <text class='text_black_28 float_left'>姓名</text> |
16 | - <input class='input_wrap float_right' placeholder='请填写姓名' name='name' value='{{name}}' placeholder-class='text_999_28' ></input> | 16 | + <input class='input_wrap float_right' placeholder='请填写姓名' name='name' value='{{name}}' placeholder-class='text_999_28' maxlength='15'></input> |
17 | </view> | 17 | </view> |
18 | <view class="divide_line"></view> | 18 | <view class="divide_line"></view> |
19 | <!-- <view class='item_body' bindtap='openpicker'> | 19 | <!-- <view class='item_body' bindtap='openpicker'> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <view class='item_body' hidden="{{!isself}}"> | 46 | <view class='item_body' hidden="{{!isself}}"> |
47 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | 47 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
48 | <text class='text_black_28 float_left'>姓名</text> | 48 | <text class='text_black_28 float_left'>姓名</text> |
49 | - <input class='input_wrap float_right' placeholder='请填写姓名' value='' placeholder-class='text_999_28'></input> | 49 | + <input class='input_wrap float_right' placeholder='请填写姓名' value='' placeholder-class='text_999_28' maxlength='15'></input> |
50 | </view> | 50 | </view> |
51 | <view class="divide_line"></view> | 51 | <view class="divide_line"></view> |
52 | 52 | ||
@@ -166,7 +166,7 @@ | @@ -166,7 +166,7 @@ | ||
166 | <view class="divide_line"></view> | 166 | <view class="divide_line"></view> |
167 | <view class='item_body'> | 167 | <view class='item_body'> |
168 | <text class='text_666_28 float_left'>备注</text> | 168 | <text class='text_666_28 float_left'>备注</text> |
169 | - <input class='input_wrap float_right' type='number' value='{{taxInfo.comment}}' name='comment' placeholder-class='text_999_28' placeholder='请输入备注' ></input> | 169 | + <input class='input_wrap float_right' value='{{taxInfo.comment}}' name='comment' placeholder-class='text_999_28' placeholder='请输入备注' ></input> |
170 | </view> | 170 | </view> |
171 | </view> | 171 | </view> |
172 | </view> | 172 | </view> |
@@ -221,7 +221,7 @@ | @@ -221,7 +221,7 @@ | ||
221 | <view class="divide_line"></view> | 221 | <view class="divide_line"></view> |
222 | <view class='item_body'> | 222 | <view class='item_body'> |
223 | <text class='text_666_28 float_left'>电子邮箱</text> | 223 | <text class='text_666_28 float_left'>电子邮箱</text> |
224 | - <input class='input_wrap float_right' name='email' placeholder-class='text_999_28' placeholder='请输入电子邮箱' maxlength='24'></input> | 224 | + <input class='input_wrap float_right' name='email' placeholder-class='text_999_28' placeholder='请输入电子邮箱' maxlength='20'></input> |
225 | </view> | 225 | </view> |
226 | <view class="divide_line"></view> | 226 | <view class="divide_line"></view> |
227 | <!-- <view class='item_body'> | 227 | <!-- <view class='item_body'> |
@@ -30,6 +30,7 @@ Page({ | @@ -30,6 +30,7 @@ Page({ | ||
30 | long_birth_date: 0, | 30 | long_birth_date: 0, |
31 | long_start_date: 0, | 31 | long_start_date: 0, |
32 | long_end_date: 0, | 32 | long_end_date: 0, |
33 | + huji_address_detail: '', | ||
33 | relativeData: { | 34 | relativeData: { |
34 | isrequre: true, | 35 | isrequre: true, |
35 | label: '关系', | 36 | label: '关系', |
@@ -54,8 +55,8 @@ Page({ | @@ -54,8 +55,8 @@ Page({ | ||
54 | bindtype: 'cardtype', | 55 | bindtype: 'cardtype', |
55 | placeholder: '居民身份证', | 56 | placeholder: '居民身份证', |
56 | selected: '', | 57 | selected: '', |
57 | - values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | ||
58 | - '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | 58 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', |
59 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证' | ||
59 | ], | 60 | ], |
60 | onChange: 'onPickerSelect' | 61 | onChange: 'onPickerSelect' |
61 | }, | 62 | }, |
@@ -300,9 +301,13 @@ Page({ | @@ -300,9 +301,13 @@ Page({ | ||
300 | this.data.specificIndustryInfo.selected = tax_info.is_specific_profession | 301 | this.data.specificIndustryInfo.selected = tax_info.is_specific_profession |
301 | //非必填 | 302 | //非必填 |
302 | this.data.genderData.selected = tax_info.gender | 303 | this.data.genderData.selected = tax_info.gender |
303 | - if (tax_info.birth_date > 1000) { | 304 | + if (tax_info.birth_date == -62135596800 || tax_info.birth_date == 0) { |
305 | + this.data.birthDate.selected = '' | ||
306 | + } else { | ||
304 | this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) | 307 | this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) |
305 | } | 308 | } |
309 | + | ||
310 | + console.log('this.data.birthDate', new Date(tax_info.birth_date).toLocaleDateString()) | ||
306 | if (tax_info.join_date > 1000) { | 311 | if (tax_info.join_date > 1000) { |
307 | this.data.startDate.selected = format.yearFormString(tax_info.join_date) + '-' + format.monthFormString(tax_info.join_date) + '-' + format.dayFormString(tax_info.join_date) | 312 | this.data.startDate.selected = format.yearFormString(tax_info.join_date) + '-' + format.monthFormString(tax_info.join_date) + '-' + format.dayFormString(tax_info.join_date) |
308 | } | 313 | } |
@@ -322,10 +327,11 @@ Page({ | @@ -322,10 +327,11 @@ Page({ | ||
322 | this.data.bankInfo.selected = tax_info.bank | 327 | this.data.bankInfo.selected = tax_info.bank |
323 | this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district | 328 | this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district |
324 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district | 329 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district |
325 | - this.data.birthaddressInfo.selected = tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district | 330 | + this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") |
326 | this.data.employeeInfo.selected = tax_info.is_employee | 331 | this.data.employeeInfo.selected = tax_info.is_employee |
327 | this.data.investpersonalInfo.selected = tax_info.is_business_angel | 332 | this.data.investpersonalInfo.selected = tax_info.is_business_angel |
328 | this.setData({ | 333 | this.setData({ |
334 | + huji_address_detail: tax_info.huji_address_detail.replace(/(^\s*)|(\s*$)/g, ""), | ||
329 | relativeData: this.data.relativeData, | 335 | relativeData: this.data.relativeData, |
330 | name: this.data.name, | 336 | name: this.data.name, |
331 | personstatusData: this.data.personstatusData, | 337 | personstatusData: this.data.personstatusData, |
@@ -500,16 +506,16 @@ Page({ | @@ -500,16 +506,16 @@ Page({ | ||
500 | if (res.data && res.data.length > 0) { | 506 | if (res.data && res.data.length > 0) { |
501 | var id_info = JSON.parse(res.data) | 507 | var id_info = JSON.parse(res.data) |
502 | var birth_day | 508 | var birth_day |
503 | - if (id_info.birthday.month > 9 && id_info.birthday.day>9){ | ||
504 | - birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | ||
505 | - } else if(id_info.birthday.month > 9 && id_info.birthday.day<10){ | 509 | + if (id_info.birthday.month > 9 && id_info.birthday.day > 9) { |
510 | + birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-' + id_info.birthday.day; | ||
511 | + } else if (id_info.birthday.month > 9 && id_info.birthday.day < 10) { | ||
512 | + birth_day = id_info.birthday.year + '-' + id_info.birthday.month + '-0' + id_info.birthday.day; | ||
513 | + } else if (id_info.birthday.month < 10 && id_info.birthday.day > 9) { | ||
506 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-' + id_info.birthday.day; | 514 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-' + id_info.birthday.day; |
507 | - } else if (id_info.birthday.month < 9 && id_info.birthday.day > 10) { | ||
508 | - birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | ||
509 | - } else if (id_info.birthday.month < 9 && id_info.birthday.day < 10) { | 515 | + } else if (id_info.birthday.month < 10 && id_info.birthday.day < 10) { |
510 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; | 516 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; |
511 | } | 517 | } |
512 | - | 518 | + |
513 | var cardtype_Data = that.data.cardtypeData | 519 | var cardtype_Data = that.data.cardtypeData |
514 | cardtype_Data.selected = '居民身份证' | 520 | cardtype_Data.selected = '居民身份证' |
515 | var gender_Data = that.data.genderData | 521 | var gender_Data = that.data.genderData |
@@ -771,19 +777,41 @@ Page({ | @@ -771,19 +777,41 @@ Page({ | ||
771 | } | 777 | } |
772 | }, | 778 | }, |
773 | 779 | ||
780 | + bindinputmobile: function(e) { | ||
781 | + console.log('bindinputmobile', e) | ||
782 | + this.setData({ | ||
783 | + mobile: e.detail.value | ||
784 | + }) | ||
785 | + }, | ||
786 | + | ||
787 | + bindinputname: function(e) { | ||
788 | + console.log('bindinputname', e) | ||
789 | + this.setData({ | ||
790 | + name: e.detail.value | ||
791 | + }) | ||
792 | + }, | ||
793 | + | ||
794 | + bindinputcardnum: function(e) { | ||
795 | + console.log('bindinputcardnum', e) | ||
796 | + this.setData({ | ||
797 | + card_number: e.detail.value | ||
798 | + }) | ||
799 | + }, | ||
800 | + | ||
774 | formSubmit: function(e) { | 801 | formSubmit: function(e) { |
775 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) | 802 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) |
776 | - var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"); | 803 | + var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); |
804 | + var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; | ||
777 | var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; | 805 | var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; |
778 | // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; | 806 | // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; |
779 | var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ | 807 | var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ |
780 | var formdata = e.detail.value; | 808 | var formdata = e.detail.value; |
781 | console.log("formdata", formdata) | 809 | console.log("formdata", formdata) |
782 | console.log("card_number", this.data.card_number) | 810 | console.log("card_number", this.data.card_number) |
783 | - if (this.data.name && this.data.name.length < 1 && formdata.name.length < 1) { | 811 | + if (this.data.name.length < 1 ) { |
784 | this.showtoast('有必填项未填写'); | 812 | this.showtoast('有必填项未填写'); |
785 | return | 813 | return |
786 | - } else if (!regname.test(formdata.name)) { | 814 | + } else if (this.data.name.length > 0 && !regname.test(this.data.name)) { |
787 | this.showtoast('请输入正确姓名'); | 815 | this.showtoast('请输入正确姓名'); |
788 | return | 816 | return |
789 | } else if (!this.data.isself && this.data.relativeData.selected.length < 1) { | 817 | } else if (!this.data.isself && this.data.relativeData.selected.length < 1) { |
@@ -795,17 +823,22 @@ Page({ | @@ -795,17 +823,22 @@ Page({ | ||
795 | } else if (this.data.cardtypeData.selected.length < 1) { | 823 | } else if (this.data.cardtypeData.selected.length < 1) { |
796 | this.showtoast('有必填项未填写'); | 824 | this.showtoast('有必填项未填写'); |
797 | return | 825 | return |
798 | - } else if (this.data.isIdCard && (this.data.card_number.length < 1 && formdata.id_card_no.length < 1)) { | 826 | + } else if (this.data.card_number.length < 1) { |
799 | this.showtoast('有必填项未填写'); | 827 | this.showtoast('有必填项未填写'); |
800 | return | 828 | return |
801 | - } else if (this.data.isIdCard && !format.isIDCardNum(formdata.id_card_no)) { | 829 | + } else if (this.data.isIdCard && this.data.card_number.length > 0 && !format.isIDCardNum(this.data.card_number)) { |
802 | this.showtoast('证件号码有误'); | 830 | this.showtoast('证件号码有误'); |
803 | return | 831 | return |
804 | - } else if (!this.data.isIdCard && (!formdata.id_card_no || formdata.id_card_no.length < 1)) { | 832 | + } |
833 | + // else if (!this.data.isIdCard && (this.data.card_number.length < 1 && formdata.id_card_no.length < 1)) { | ||
834 | + // this.showtoast('有必填项未填写'); | ||
835 | + // return | ||
836 | + // } | ||
837 | + else if (this.data.mobile.length < 1 ) { | ||
805 | this.showtoast('有必填项未填写'); | 838 | this.showtoast('有必填项未填写'); |
806 | return | 839 | return |
807 | - } else if (formdata.mobile.length < 1) { | ||
808 | - this.showtoast('有必填项未填写'); | 840 | + } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) { |
841 | + this.showtoast('手机号码有误'); | ||
809 | return | 842 | return |
810 | } else if (this.data.investInfo.selected.length < 1) { | 843 | } else if (this.data.investInfo.selected.length < 1) { |
811 | this.showtoast('有必填项未填写'); | 844 | this.showtoast('有必填项未填写'); |
@@ -823,16 +856,16 @@ Page({ | @@ -823,16 +856,16 @@ Page({ | ||
823 | this.showtoast('请输入正确金额'); | 856 | this.showtoast('请输入正确金额'); |
824 | return | 857 | return |
825 | } | 858 | } |
826 | - var new_ard_num = '' | ||
827 | - if (this.data.isIdCard && this.data.card_number.length > 0) { | ||
828 | - new_ard_num = this.data.card_number | ||
829 | - } | ||
830 | - if (!this.data.isIdCard && formdata.id_card_no && formdata.id_card_no.length > 0) { | ||
831 | - new_ard_num = formdata.id_card_no | ||
832 | - } | ||
833 | - this.setData({ | ||
834 | - card_number: new_ard_num, | ||
835 | - }) | 859 | + // var new_ard_num = '' |
860 | + // if (this.data.isIdCard && this.data.card_number.length > 0) { | ||
861 | + // new_ard_num = this.data.card_number | ||
862 | + // } | ||
863 | + // if (!this.data.isIdCard && formdata.id_card_no && formdata.id_card_no.length > 0) { | ||
864 | + // new_ard_num = formdata.id_card_no | ||
865 | + // } | ||
866 | + // this.setData({ | ||
867 | + // card_number: new_ard_num, | ||
868 | + // }) | ||
836 | this.goCommit(formdata); | 869 | this.goCommit(formdata); |
837 | }, | 870 | }, |
838 | 871 | ||
@@ -845,48 +878,50 @@ Page({ | @@ -845,48 +878,50 @@ Page({ | ||
845 | var request_current_address = that.getCurrentAddressRequest() | 878 | var request_current_address = that.getCurrentAddressRequest() |
846 | var request_birth_address = that.getBirthAddressRequest() | 879 | var request_birth_address = that.getBirthAddressRequest() |
847 | var Authorization = app.globalData.Authorization; | 880 | var Authorization = app.globalData.Authorization; |
881 | + console.log('long_birth_date', that.data.long_birth_date) | ||
882 | + | ||
848 | wx.request({ | 883 | wx.request({ |
849 | url: baseUrl + 'persontax/v1/personal-taxes/' + that.data.cur_id, | 884 | url: baseUrl + 'persontax/v1/personal-taxes/' + that.data.cur_id, |
850 | method: "PUT", | 885 | method: "PUT", |
851 | data: { | 886 | data: { |
852 | 'certification_status': that.getCertifyStatus(formdata), | 887 | 'certification_status': that.getCertifyStatus(formdata), |
853 | - "name": formdata.name.length > 0 ? formdata.name : that.data.name, | 888 | + "name": that.data.name, |
854 | "family_ties": that.data.relativeData.selected, | 889 | "family_ties": that.data.relativeData.selected, |
855 | "native": "中国", | 890 | "native": "中国", |
856 | "id_card_type": that.data.cardtypeData.selected, | 891 | "id_card_type": that.data.cardtypeData.selected, |
857 | - "id_card_no": formdata.id_card_no ? formdata.id_card_no : that.data.card_number, | 892 | + "id_card_no": that.data.card_number, |
858 | "gender": that.data.genderData.selected, | 893 | "gender": that.data.genderData.selected, |
859 | - "birth_date": that.data.long_birth_date > 1000 ? that.data.long_birth_date : null, | 894 | + "birth_date": that.data.long_birth_date, |
860 | "profession": request_profession, | 895 | "profession": request_profession, |
861 | "education": that.data.degreeData.selected, | 896 | "education": that.data.degreeData.selected, |
862 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no, | 897 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no, |
863 | "taxpayer_status": that.data.personstatusData.selected, | 898 | "taxpayer_status": that.data.personstatusData.selected, |
864 | "is_martyr_family": that.data.lieshuInfo.selected, | 899 | "is_martyr_family": that.data.lieshuInfo.selected, |
865 | - "martyr_family_no": formdata.martyr_family_no, | 900 | + "martyr_family_no": that.data.lieshuInfo.selected == '否' ? '' : (formdata.martyr_family_no.length > 0 ? formdata.martyr_family_no : that.data.taxInfo.martyr_family_no), |
866 | "is_disability": that.data.disabilityInfo.selected, | 901 | "is_disability": that.data.disabilityInfo.selected, |
867 | - "disability_no": formdata.disability_no, | 902 | + "disability_no": that.data.disabilityInfo.selected == '否' ? '' : (formdata.disability_no.length > 0 ? formdata.disability_no : that.data.taxInfo.disability_no), |
868 | "is_lonely_man": that.data.lonelyolderInfo.selected, | 903 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
869 | "is_overseas_personnel": "否", | 904 | "is_overseas_personnel": "否", |
870 | - "comment": formdata.comment, | 905 | + "comment": formdata.comment.length > 0 ? formdata.comment : that.data.taxInfo.comment, |
871 | "current_address": request_current_address, | 906 | "current_address": request_current_address, |
872 | "current_address_detail": formdata.current_address_detail ? formdata.current_address_detail : that.data.taxInfo.current_address_detail, | 907 | "current_address_detail": formdata.current_address_detail ? formdata.current_address_detail : that.data.taxInfo.current_address_detail, |
873 | "huji_address": request_birth_address, | 908 | "huji_address": request_birth_address, |
874 | - "huji_address_detail": formdata.huji_address_detail ? formdata.huji_address_detail : that.data.taxInfo.huji_address_detail, | ||
875 | - "mobile": formdata.mobile, | 909 | + "huji_address_detail": formdata.huji_address_detail.replace(/(^\s*)|(\s*$)/g, "").length > 0 ? formdata.huji_address_detail.replace(/(^\s*)|(\s*$)/g, "") : that.data.huji_address_detail, |
910 | + "mobile": that.data.mobile, | ||
876 | "contact_address": request_contact_address ? request_contact_address : that.data.taxInfo.contact_address_detail, | 911 | "contact_address": request_contact_address ? request_contact_address : that.data.taxInfo.contact_address_detail, |
877 | - "contact_address_detail": formdata.contact_address_detail, | ||
878 | - "email": formdata.email, | 912 | + "contact_address_detail": formdata.contact_address_detail.length > 0 ? formdata.contact_address_detail : that.data.taxInfo.contact_address_detail, |
913 | + "email": formdata.email.length > 0 ? formdata.email : that.data.taxInfo.email, | ||
879 | "bank": that.data.bankInfo.selected, | 914 | "bank": that.data.bankInfo.selected, |
880 | - "bank_account": formdata.bank_account, | 915 | + "bank_account": formdata.bank_account.length > 0 ? formdata.bank_account : that.data.taxInfo.bank_account, |
881 | "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : 0, | 916 | "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : 0, |
882 | "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : 0, | 917 | "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : 0, |
883 | "is_employee": that.data.employeeInfo.selected, | 918 | "is_employee": that.data.employeeInfo.selected, |
884 | "is_specific_profession": that.data.specificIndustryInfo.selected, | 919 | "is_specific_profession": that.data.specificIndustryInfo.selected, |
885 | "is_investor": that.data.investInfo.selected, | 920 | "is_investor": that.data.investInfo.selected, |
886 | "is_business_angel": that.data.investpersonalInfo.selected, | 921 | "is_business_angel": that.data.investpersonalInfo.selected, |
887 | - "company_equity_total": parseFloat(formdata.company_equity_total), | ||
888 | - "personal_equity_total": parseFloat(formdata.personal_equity_total), | ||
889 | - "employee_no": formdata.employee_no | 922 | + "company_equity_total": parseFloat(formdata.company_equity_total) > 0 ? parseFloat(formdata.company_equity_total) : that.data.taxInfo.company_equity_total, |
923 | + "personal_equity_total": parseFloat(formdata.personal_equity_total) > 0 ? parseFloat(formdata.personal_equity_total) : that.data.taxInfo.personal_equity_total, | ||
924 | + "employee_no": formdata.employee_no.length > 0 ? formdata.employee_no : that.data.taxInfo.employee_no, | ||
890 | }, | 925 | }, |
891 | header: { | 926 | header: { |
892 | 'content-type': 'application/json', // 默认值 | 927 | 'content-type': 'application/json', // 默认值 |
@@ -986,7 +1021,7 @@ Page({ | @@ -986,7 +1021,7 @@ Page({ | ||
986 | }) | 1021 | }) |
987 | }, | 1022 | }, |
988 | 1023 | ||
989 | - getCertifyStatus: function (formdata) { | 1024 | + getCertifyStatus: function(formdata) { |
990 | var iddata = this.data.idInfoData; | 1025 | var iddata = this.data.idInfoData; |
991 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; | 1026 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; |
992 | var cardtype = this.data.cardtypeData.selected; | 1027 | var cardtype = this.data.cardtypeData.selected; |
@@ -15,8 +15,8 @@ | @@ -15,8 +15,8 @@ | ||
15 | <text class='text_black_28 float_left'>姓名</text> | 15 | <text class='text_black_28 float_left'>姓名</text> |
16 | <!-- <input class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'&&name?name:'请输入姓名'}}" name='name' disabled="{{taxInfo.certification_status=='active'}}"></input> --> | 16 | <!-- <input class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'&&name?name:'请输入姓名'}}" name='name' disabled="{{taxInfo.certification_status=='active'}}"></input> --> |
17 | 17 | ||
18 | - <input class='input_wrap float_right' hidden="{{taxInfo.certification_status==' active'}}" placeholder="请输入姓名" value='{{name}}' name='name' disabled="{{taxInfo.certification_status=='active'}}" ></input> | ||
19 | - <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||name?name:'请输入姓名'}}" name='name' disabled="{{taxInfo.certification_status=='active'}}"></input> | 18 | + <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入姓名" value='{{name}}' name='name' disabled="{{taxInfo.certification_status=='active'}}" maxlength='15' bindblur='bindinputname'></input> |
19 | + <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||name?name:'请输入姓名'}}" name='name' disabled="{{taxInfo.certification_status=='active'}}" maxlength='15' bindblur='bindinputname'></input> | ||
20 | </view> | 20 | </view> |
21 | <view class="divide_line"></view> | 21 | <view class="divide_line"></view> |
22 | <!-- <view class='item_body' bindtap='openpicker'> | 22 | <!-- <view class='item_body' bindtap='openpicker'> |
@@ -51,8 +51,8 @@ | @@ -51,8 +51,8 @@ | ||
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'}}" ></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'}}"></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> | ||
56 | </view> | 56 | </view> |
57 | <view class="divide_line"></view> | 57 | <view class="divide_line"></view> |
58 | 58 | ||
@@ -88,15 +88,13 @@ | @@ -88,15 +88,13 @@ | ||
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'></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'></input> | ||
92 | - <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||card_number?card_number:'请输入证件号码'}}" name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}" | ||
93 | - maxlength='24'></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> |
92 | + <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||card_number?card_number:'请输入证件号码'}}" name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}"maxlength='24' bindblur='bindinputcardnum'></input> | ||
94 | 93 | ||
95 | </view> | 94 | </view> |
96 | <view wx:else> | 95 | <view wx:else> |
97 | - <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'></input> | ||
98 | - <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||card_number?card_number:'请输入证件号码'}}" name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}" | ||
99 | - maxlength='24'></input> | 96 | + <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> |
97 | + <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||card_number?card_number:'请输入证件号码'}}" name='id_card_no' disabled="{{taxInfo.certification_status=='active'}}" bindblur='bindinputcardnum' maxlength='24'></input> | ||
100 | </view> | 98 | </view> |
101 | </view> | 99 | </view> |
102 | <view class="divide_line"></view> | 100 | <view class="divide_line"></view> |
@@ -178,7 +176,7 @@ | @@ -178,7 +176,7 @@ | ||
178 | <view class="divide_line"></view> | 176 | <view class="divide_line"></view> |
179 | <view class='item_body'> | 177 | <view class='item_body'> |
180 | <text class='text_666_28 float_left'>备注</text> | 178 | <text class='text_666_28 float_left'>备注</text> |
181 | - <input class='input_wrap float_right' type='number' value='{{taxInfo.comment}}' name='comment' placeholder-class='text_999_28' placeholder='请输入备注'></input> | 179 | + <input class='input_wrap float_right' value='{{taxInfo.comment}}' name='comment' placeholder-class='text_999_28' placeholder='请输入备注'></input> |
182 | </view> | 180 | </view> |
183 | </view> | 181 | </view> |
184 | </view> | 182 | </view> |
@@ -202,9 +200,10 @@ | @@ -202,9 +200,10 @@ | ||
202 | <view class='item_body'> | 200 | <view class='item_body'> |
203 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | 201 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
204 | <text class='text_black_28 float_left'>联系电话</text> | 202 | <text class='text_black_28 float_left'>联系电话</text> |
205 | - <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入电话" value='{{mobile}}' name='mobile' type='number' disabled="{{taxInfo.certification_status=='active'}}" maxlength='11'></input> | ||
206 | - <input hidden="{{taxInfo.certification_status!='active'}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||mobile?mobile:'请输入电话'}}" name='mobile' type='number' disabled="{{taxInfo.certification_status=='active'}}" | ||
207 | - maxlength='11'></input> | 203 | + <input class='input_wrap float_right' hidden="{{isself||taxInfo.certification_status=='active'}}" placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' disabled="{{taxInfo.certification_status=='active'||isself}}" maxlength='11' bindblur='bindinputmobile'></input> |
204 | + | ||
205 | + <input hidden="{{taxInfo.certification_status!='active'&&!isself}}" class='input_wrap float_right' placeholder="{{taxInfo.certification_status=='active'||mobile?mobile:'请输入手机号'}}" name='mobile' type='number' disabled="{{taxInfo.certification_status=='active'||isself}}" | ||
206 | + maxlength='11' bindblur='bindinputmobile'></input> | ||
208 | </view> | 207 | </view> |
209 | <!-- 非必填部分02 --> | 208 | <!-- 非必填部分02 --> |
210 | <view hidden='{{!isshow02}}'> | 209 | <view hidden='{{!isshow02}}'> |
@@ -235,7 +234,7 @@ | @@ -235,7 +234,7 @@ | ||
235 | <view class="divide_line"></view> | 234 | <view class="divide_line"></view> |
236 | <view class='item_body'> | 235 | <view class='item_body'> |
237 | <text class='text_666_28 float_left'>电子邮箱</text> | 236 | <text class='text_666_28 float_left'>电子邮箱</text> |
238 | - <input class='input_wrap float_right' name='email' value='{{taxInfo.email}}' placeholder='请输入电子邮箱' placeholder-class='text_999_28'></input> | 237 | + <input class='input_wrap float_right' name='email' value='{{taxInfo.email}}' placeholder='请输入电子邮箱' placeholder-class='text_999_28' maxlength='20'></input> |
239 | </view> | 238 | </view> |
240 | <view class="divide_line"></view> | 239 | <view class="divide_line"></view> |
241 | <!-- <view class=' item_body '> | 240 | <!-- <view class=' item_body '> |
@@ -247,7 +246,7 @@ | @@ -247,7 +246,7 @@ | ||
247 | <view class="divide_line"></view> | 246 | <view class="divide_line"></view> |
248 | <view class='item_body '> | 247 | <view class='item_body '> |
249 | <text class='text_666_28 float_left '>详细地址</text> | 248 | <text class='text_666_28 float_left '>详细地址</text> |
250 | - <input class='input_wrap float_right ' name='current_address_detail' value='{{taxInfo.current_address_detail}}' placeholder-class='text_999_28' placeholder='请输入详细居住地址'></input> | 249 | + <input class='input_wrap float_right ' name='current_address_detail' value="{{taxInfo.current_address_detail}}" placeholder-class='text_999_28' placeholder='请输入详细居住地址'></input> |
251 | </view> | 250 | </view> |
252 | <view class="divide_line"></view> | 251 | <view class="divide_line"></view> |
253 | <!-- <view class='item_body '> | 252 | <!-- <view class='item_body '> |
@@ -259,7 +258,7 @@ | @@ -259,7 +258,7 @@ | ||
259 | <view class="divide_line"></view> | 258 | <view class="divide_line"></view> |
260 | <view class='item_body '> | 259 | <view class='item_body '> |
261 | <text class='text_666_28 float_left '>详细地址</text> | 260 | <text class='text_666_28 float_left '>详细地址</text> |
262 | - <input class='input_wrap float_right ' name='huji_address_detail' value='{{taxInfo.huji_address_detail}} ' placeholder-class='text_999_28' placeholder='请输入详细户籍地址'></input> | 261 | + <input class='input_wrap float_right ' name='huji_address_detail' placeholder-class='text_999_28' placeholder='请输入详细户籍地址' value='{{huji_address_detail}}'></input> |
263 | </view> | 262 | </view> |
264 | <view class="divide_line"></view> | 263 | <view class="divide_line"></view> |
265 | </view> | 264 | </view> |
1 | <!--pages/main/guide/guide.wxml--> | 1 | <!--pages/main/guide/guide.wxml--> |
2 | 2 | ||
3 | <view class='page'> | 3 | <view class='page'> |
4 | - <!-- <image src='/images/tax_person.png' style='height:460rpx;width:690rpx;margin:30rpx ;align-items:center' bindtap='gotaxPerson'> | ||
5 | - </image> | ||
6 | - <image src='/images/tax_calculate.png' style='height:460rpx;width:690rpx;margin:0 30rpx ;align-items:center' bindtap='gotaxCalculate'> | ||
7 | - </image> --> | ||
8 | <view class="bg_wrap"> | 4 | <view class="bg_wrap"> |
9 | <image class='bgimg' src='/images/guide_bg.png'></image> | 5 | <image class='bgimg' src='/images/guide_bg.png'></image> |
10 | - </view> | ||
11 | 6 | ||
12 | - <view class='card_rectangle_bg' style='margin-top:360rpx;padding:30rpx' bindtap='gotaxPerson'> | ||
13 | - <image class="icon_wrap" src="/images/taxperson.png"></image> | ||
14 | - <view style='width:1px;height:140rpx;background-color:#e5e5e5;margin-left:40rpx'></view> | ||
15 | - <view style='display:flex;flex-direction: column;width:432rpx;margin-left:30rpx;align-self:center;'> | ||
16 | - <text style='font-size: 36rpx;color: #000;font-weight:bold;text-align: left;'>自然人信息采集</text> | ||
17 | - <text style='font-size:28rpx;color: #999;text-align: left;margin-top:6rpx'>采集本人和家庭成员的基本信息</text> | 7 | + <view class='card_rectangle_bg' style='margin-top:360rpx;padding:30rpx' bindtap='gotaxPerson'> |
8 | + <image class="icon_wrap" src="/images/tax_person.png"></image> | ||
9 | + <view style='width:1px;height:140rpx;background-color:#e5e5e5;margin-left:40rpx'></view> | ||
10 | + <view style='display:flex;flex-direction: column;width:432rpx;margin-left:30rpx;align-self:center;'> | ||
11 | + <text style='font-size: 36rpx;color: #000;font-weight:bold;text-align: left;'>自然人信息采集</text> | ||
12 | + <text style='font-size:28rpx;color: #999;text-align: left;margin-top:6rpx'>采集本人和家庭成员的基本信息</text> | ||
13 | + </view> | ||
14 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
18 | </view> | 15 | </view> |
19 | - <image class='arrow_wrap'src='/images/arrow_right.png'></image> | ||
20 | - </view> | ||
21 | 16 | ||
22 | - <view class='card_rectangle_bg' style='margin-top:30rpx;padding:30rpx' bindtap='gotaxCalculate'> | ||
23 | - <image class="icon_wrap" src="/images/taxcalculate.png"></image> | ||
24 | - <view style='width:1px;height:140rpx;background-color:#e5e5e5;margin-left:40rpx'></view> | ||
25 | - <view style='display:flex;flex-direction: column;width:432rpx;margin-left:30rpx;align-self:center;'> | ||
26 | - <text style='font-size: 36rpx;color: #666;'>个税计算器</text> | ||
27 | - <text style='font-size:28rpx;color: #999;margin-top:6rpx'>正在开发中</text> | 17 | + <view class='card_rectangle_bg' style='margin-top:30rpx;padding:30rpx' bindtap='gotaxCalculate'> |
18 | + <image class="icon_wrap" src="/images/tax_calculate.png"></image> | ||
19 | + <view style='width:1px;height:140rpx;background-color:#e5e5e5;margin-left:40rpx'></view> | ||
20 | + <view style='display:flex;flex-direction: column;width:432rpx;margin-left:30rpx;align-self:center;'> | ||
21 | + <text style='font-size: 36rpx;color: #666;'>个税计算器</text> | ||
22 | + <text style='font-size:28rpx;color: #999;margin-top:6rpx'>正在开发中</text> | ||
23 | + </view> | ||
24 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | ||
28 | </view> | 25 | </view> |
29 | - <image class='arrow_wrap float_right'src='/images/arrow_right.png'></image> | ||
30 | </view> | 26 | </view> |
31 | 27 | ||
32 | </view> | 28 | </view> |
1 | /* pages/main/guide/guide.wxss */ | 1 | /* pages/main/guide/guide.wxss */ |
2 | 2 | ||
3 | -img_wrap { | ||
4 | - width: 100%; | ||
5 | - height: 460rpx; | ||
6 | - align-items: center; | ||
7 | - margin-left: 30rpx; | ||
8 | - margin-right: 30rpx; | ||
9 | - border-radius: 8rpx; | ||
10 | -} | ||
11 | - | ||
12 | -.text_wrap1 { | ||
13 | - position: relative; | ||
14 | - font-family: PingFangSC-Semibold; | ||
15 | - font-size: 30px; | ||
16 | - color: #fff; | ||
17 | - letter-spacing: 0; | ||
18 | - margin-left: 90rpx; | ||
19 | - margin-top: 20rpx; | ||
20 | -} | ||
21 | - | ||
22 | -text_wrap2 { | ||
23 | - font-family: PingFang-SC-Medium; | ||
24 | - font-size: 16px; | ||
25 | - color: #fff; | ||
26 | - letter-spacing: 0; | ||
27 | -} | ||
28 | - | ||
29 | .bgimg { | 3 | .bgimg { |
30 | position: absolute; | 4 | position: absolute; |
31 | height: 400rpx; | 5 | height: 400rpx; |
@@ -46,7 +20,6 @@ text_wrap2 { | @@ -46,7 +20,6 @@ text_wrap2 { | ||
46 | } | 20 | } |
47 | 21 | ||
48 | .bg_wrap { | 22 | .bg_wrap { |
49 | - position: relative; | ||
50 | display: flex; | 23 | display: flex; |
51 | flex-direction: column; | 24 | flex-direction: column; |
52 | background-color: #fff; | 25 | background-color: #fff; |
@@ -97,6 +97,11 @@ Page({ | @@ -97,6 +97,11 @@ Page({ | ||
97 | for (var i = 0; i < data.items.length; i++) { | 97 | for (var i = 0; i < data.items.length; i++) { |
98 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) | 98 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) |
99 | data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no) | 99 | data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no) |
100 | + if (i==0){ | ||
101 | + data.items[i].relative = "本人" | ||
102 | + }else{ | ||
103 | + data.items[i].relative = data.items[i].family_ties | ||
104 | + } | ||
100 | datalist.push(data.items[i]) | 105 | datalist.push(data.items[i]) |
101 | } | 106 | } |
102 | this.setData({ | 107 | this.setData({ |
1 | -<view class='page' > | 1 | +<view class='page'> |
2 | 2 | ||
3 | <view wx:if="{{taxlist.length>0}}" hidden='{{!load_finish}}'> | 3 | <view wx:if="{{taxlist.length>0}}" hidden='{{!load_finish}}'> |
4 | <block wx:for="{{taxlist}}" wx:key="" indx='index'> | 4 | <block wx:for="{{taxlist}}" wx:key="" indx='index'> |
@@ -18,31 +18,33 @@ | @@ -18,31 +18,33 @@ | ||
18 | <text class='text_999_22'>{{item.id_card_no}}</text> | 18 | <text class='text_999_22'>{{item.id_card_no}}</text> |
19 | </view> | 19 | </view> |
20 | </view> --> | 20 | </view> --> |
21 | - <view class='rectangle_solid_blue_bg' bindtap='goedit' id='{{item.id}}'> | ||
22 | - <view style='padding:11px 15px'> | ||
23 | - <text class='text_white_32'>{{item.name}}</text> | ||
24 | - <text class='text_gray_bg text_blue_20' hidden="{{item.family_ties?false:true}}">{{item.family_ties}}</text> | 21 | + <view bindtap='goedit' id='{{item.id}}' indx='{{index}}'> |
22 | + <view class='rectangle_solid_blue_bg'> | ||
23 | + <view style='padding:11px 15px'> | ||
24 | + <text class='text_white_32'>{{item.name}}</text> | ||
25 | + <text class='text_gray_bg text_blue_20' hidden="{{'本人'==item.relative}}">{{item.relative}}</text> | ||
26 | + <text class='text_white_bg text_blue_20' hidden="{{'本人'!=item.relative}}">{{item.relative}}</text> | ||
27 | + </view> | ||
28 | + <view style='padding:0 15px'> | ||
29 | + <image class='phone_image_wrap' src='/images/phone.png'></image> | ||
30 | + <text class='text_white_22'>{{item.newmobile&&item.newmobile.length>0?item.newmobile:"未录入手机号码"}}</text> | ||
31 | + <text style='margin:0rpx 20rpx;color:#fff;font-size: 20rpx;'>|</text> | ||
32 | + <image class='id_image_wrap' src='/images/id.png'></image> | ||
33 | + <text class='text_white_22'>{{item.newidnum&&item.newidnum.length>0?item.newidnum:"未录入证件号码 "}}</text> | ||
34 | + </view> | ||
25 | </view> | 35 | </view> |
26 | - <view style='padding:0 15px'> | ||
27 | - <image class='phone_image_wrap' src='/images/phone.png'></image> | ||
28 | - <text class='text_white_22'>{{item.newmobile&&item.newmobile.length>0?item.newmobile:"未录入手机号码"}}</text> | ||
29 | - <text style='margin:0rpx 20rpx;color:#fff;font-size: 20rpx;'>|</text> | ||
30 | - <image class='id_image_wrap' src='/images/id.png'></image> | ||
31 | - <text class='text_white_22'>{{item.newidnum&&item.newidnum.length>0?item.newidnum:"未录入证件号码 "}}</text> | ||
32 | - </view> | ||
33 | - </view> | ||
34 | - <view class='rectangle_solid_bg' > | ||
35 | - <view style='padding: 0 15px '> | ||
36 | - <image class='arrow_wrap' src='/images/arrow_right.png'> </image> | ||
37 | - <text class='text_999_28' >{{text_tip}}</text> | 36 | + <view class='rectangle_solid_bg'> |
37 | + <view style='padding: 0 15px '> | ||
38 | + <image class='arrow_wrap' src='/images/arrow_right.png'> </image> | ||
39 | + <text class='text_999_28'>{{text_tip}}</text> | ||
40 | + </view> | ||
38 | </view> | 41 | </view> |
39 | - | ||
40 | </view> | 42 | </view> |
41 | 43 | ||
42 | </block> | 44 | </block> |
43 | </view> | 45 | </view> |
44 | 46 | ||
45 | - <view class='rectangle_dashed_bg' bindtap="goadd" > | 47 | + <view class='rectangle_dashed_bg' bindtap="goadd"> |
46 | <view class='text_blue_28' style='text-align:center'> | 48 | <view class='text_blue_28' style='text-align:center'> |
47 | 十 添加家庭成员 | 49 | 十 添加家庭成员 |
48 | </view> | 50 | </view> |
@@ -33,8 +33,14 @@ | @@ -33,8 +33,14 @@ | ||
33 | .text_gray_bg { | 33 | .text_gray_bg { |
34 | height: 32rpx; | 34 | height: 32rpx; |
35 | margin: 0rpx 20rpx; | 35 | margin: 0rpx 20rpx; |
36 | - opacity: 0.5; | ||
37 | - background: #DFECFE; | 36 | + background-color: #DFECFE; |
37 | + border-radius: 16px; | ||
38 | +} | ||
39 | + | ||
40 | +.text_white_bg { | ||
41 | + height: 32rpx; | ||
42 | + margin: 0rpx 20rpx; | ||
43 | + background: #fff; | ||
38 | border-radius: 16px; | 44 | border-radius: 16px; |
39 | } | 45 | } |
40 | 46 |
请
注册
或
登录
后发表评论