正在显示
15 个修改的文件
包含
203 行增加
和
164 行删除
... | ... | @@ -24,6 +24,14 @@ |
24 | 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 | 35 | .text_black_28 { |
28 | 36 | font-family: PingFangSC-Regular; |
29 | 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 | 12 | <view class="weui-cell__bd"> |
13 | 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 | 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 | 17 | </picker> |
18 | 18 | </view> |
19 | 19 | </view> | ... | ... |
... | ... | @@ -20,7 +20,7 @@ Page({ |
20 | 20 | birthday: '', |
21 | 21 | requestBody: {}, |
22 | 22 | idInfoData: '', |
23 | - profession_index: [0, 0, 0], | |
23 | + profession_index: [], | |
24 | 24 | |
25 | 25 | relativeData: { |
26 | 26 | isrequre: true, |
... | ... | @@ -47,8 +47,8 @@ Page({ |
47 | 47 | bindtype: 'cardtype', |
48 | 48 | selected: '', |
49 | 49 | placeholder: '请选择证照类型', |
50 | - values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | |
51 | - '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | |
50 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', | |
51 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证' | |
52 | 52 | ], |
53 | 53 | onChange: 'onPickerSelect' |
54 | 54 | }, |
... | ... | @@ -368,12 +368,12 @@ Page({ |
368 | 368 | |
369 | 369 | var birth_day |
370 | 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 | 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 | 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 | 377 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; |
378 | 378 | } |
379 | 379 | var cardtype_Data = that.data.cardtypeData |
... | ... | @@ -557,8 +557,9 @@ Page({ |
557 | 557 | birthdayChange: function(e) { |
558 | 558 | var birth_date = this.data.birthDate; |
559 | 559 | birth_date.selected = e.detail.value |
560 | + console.log('long_birth_date', Date.parse(new Date(e.detail.value)) / 1000) | |
560 | 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 | 563 | birthDate: birth_date |
563 | 564 | }) |
564 | 565 | }, |
... | ... | @@ -624,14 +625,10 @@ Page({ |
624 | 625 | |
625 | 626 | formSubmit: function(e) { |
626 | 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 | 628 | var regMoney = /^[0-9]*(\.[0,10]{1,2})?$/; |
632 | 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 | 632 | var formdata = e.detail.value; |
636 | 633 | console.log("formdata", formdata); |
637 | 634 | console.log('idnum', this.data.card_number.length < 1 && !format.isIDCardNum(formdata.id_card_no)) |
... | ... | @@ -705,9 +702,7 @@ Page({ |
705 | 702 | var formdata = data |
706 | 703 | console.log("form_data", formdata); |
707 | 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 | 706 | wx.request({ |
712 | 707 | url: baseUrl + 'persontax/v1/personal-taxes', |
713 | 708 | method: "POST", |
... | ... | @@ -719,22 +714,15 @@ Page({ |
719 | 714 | "id_card_type": that.data.cardtypeData.selected, |
720 | 715 | "id_card_no": formdata.id_card_no ? formdata.id_card_no : that.data.card_number, |
721 | 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 | 719 | "education": that.data.degreeData.selected, |
732 | 720 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : '', |
733 | 721 | "taxpayer_status": that.data.personstatusData.selected, |
734 | 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 | 724 | "is_disability": that.data.disabilityInfo.selected, |
737 | - "disability_no": formdata.disability_no, | |
725 | + "disability_no": that.data.disabilityInfo.selected=='否'?'':formdata.disability_no, | |
738 | 726 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
739 | 727 | "is_overseas_personnel": "否", |
740 | 728 | "comment": formdata.comment, |
... | ... | @@ -755,7 +743,7 @@ Page({ |
755 | 743 | "district_code": that.data.birthaddressInfo.address_code[2], |
756 | 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 | 747 | "mobile": formdata.mobile, |
760 | 748 | "contact_address": { |
761 | 749 | "province_code": that.data.contactaddressInfo.address_code[0], |
... | ... | @@ -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 | 821 | getCertifyStatus: function(formdata) { |
807 | 822 | var iddata = this.data.idInfoData; |
808 | 823 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; | ... | ... |
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | <view class='item_body'> |
14 | 14 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
15 | 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 | 17 | </view> |
18 | 18 | <view class="divide_line"></view> |
19 | 19 | <!-- <view class='item_body' bindtap='openpicker'> |
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | <view class='item_body' hidden="{{!isself}}"> |
47 | 47 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
48 | 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 | 50 | </view> |
51 | 51 | <view class="divide_line"></view> |
52 | 52 | |
... | ... | @@ -166,7 +166,7 @@ |
166 | 166 | <view class="divide_line"></view> |
167 | 167 | <view class='item_body'> |
168 | 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 | 170 | </view> |
171 | 171 | </view> |
172 | 172 | </view> |
... | ... | @@ -221,7 +221,7 @@ |
221 | 221 | <view class="divide_line"></view> |
222 | 222 | <view class='item_body'> |
223 | 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 | 225 | </view> |
226 | 226 | <view class="divide_line"></view> |
227 | 227 | <!-- <view class='item_body'> | ... | ... |
... | ... | @@ -30,6 +30,7 @@ Page({ |
30 | 30 | long_birth_date: 0, |
31 | 31 | long_start_date: 0, |
32 | 32 | long_end_date: 0, |
33 | + huji_address_detail: '', | |
33 | 34 | relativeData: { |
34 | 35 | isrequre: true, |
35 | 36 | label: '关系', |
... | ... | @@ -54,8 +55,8 @@ Page({ |
54 | 55 | bindtype: 'cardtype', |
55 | 56 | placeholder: '居民身份证', |
56 | 57 | selected: '', |
57 | - values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | |
58 | - '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | |
58 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', | |
59 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证' | |
59 | 60 | ], |
60 | 61 | onChange: 'onPickerSelect' |
61 | 62 | }, |
... | ... | @@ -300,9 +301,13 @@ Page({ |
300 | 301 | this.data.specificIndustryInfo.selected = tax_info.is_specific_profession |
301 | 302 | //非必填 |
302 | 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 | 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 | 311 | if (tax_info.join_date > 1000) { |
307 | 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 | 327 | this.data.bankInfo.selected = tax_info.bank |
323 | 328 | this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district |
324 | 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 | 331 | this.data.employeeInfo.selected = tax_info.is_employee |
327 | 332 | this.data.investpersonalInfo.selected = tax_info.is_business_angel |
328 | 333 | this.setData({ |
334 | + huji_address_detail: tax_info.huji_address_detail.replace(/(^\s*)|(\s*$)/g, ""), | |
329 | 335 | relativeData: this.data.relativeData, |
330 | 336 | name: this.data.name, |
331 | 337 | personstatusData: this.data.personstatusData, |
... | ... | @@ -500,16 +506,16 @@ Page({ |
500 | 506 | if (res.data && res.data.length > 0) { |
501 | 507 | var id_info = JSON.parse(res.data) |
502 | 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 | 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 | 516 | birth_day = id_info.birthday.year + '-0' + id_info.birthday.month + '-0' + id_info.birthday.day; |
511 | 517 | } |
512 | - | |
518 | + | |
513 | 519 | var cardtype_Data = that.data.cardtypeData |
514 | 520 | cardtype_Data.selected = '居民身份证' |
515 | 521 | var gender_Data = that.data.genderData |
... | ... | @@ -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 | 801 | formSubmit: function(e) { |
775 | 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 | 805 | var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; |
778 | 806 | // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; |
779 | 807 | var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ |
780 | 808 | var formdata = e.detail.value; |
781 | 809 | console.log("formdata", formdata) |
782 | 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 | 812 | this.showtoast('有必填项未填写'); |
785 | 813 | return |
786 | - } else if (!regname.test(formdata.name)) { | |
814 | + } else if (this.data.name.length > 0 && !regname.test(this.data.name)) { | |
787 | 815 | this.showtoast('请输入正确姓名'); |
788 | 816 | return |
789 | 817 | } else if (!this.data.isself && this.data.relativeData.selected.length < 1) { |
... | ... | @@ -795,17 +823,22 @@ Page({ |
795 | 823 | } else if (this.data.cardtypeData.selected.length < 1) { |
796 | 824 | this.showtoast('有必填项未填写'); |
797 | 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 | 827 | this.showtoast('有必填项未填写'); |
800 | 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 | 830 | this.showtoast('证件号码有误'); |
803 | 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 | 838 | this.showtoast('有必填项未填写'); |
806 | 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 | 842 | return |
810 | 843 | } else if (this.data.investInfo.selected.length < 1) { |
811 | 844 | this.showtoast('有必填项未填写'); |
... | ... | @@ -823,16 +856,16 @@ Page({ |
823 | 856 | this.showtoast('请输入正确金额'); |
824 | 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 | 869 | this.goCommit(formdata); |
837 | 870 | }, |
838 | 871 | |
... | ... | @@ -845,48 +878,50 @@ Page({ |
845 | 878 | var request_current_address = that.getCurrentAddressRequest() |
846 | 879 | var request_birth_address = that.getBirthAddressRequest() |
847 | 880 | var Authorization = app.globalData.Authorization; |
881 | + console.log('long_birth_date', that.data.long_birth_date) | |
882 | + | |
848 | 883 | wx.request({ |
849 | 884 | url: baseUrl + 'persontax/v1/personal-taxes/' + that.data.cur_id, |
850 | 885 | method: "PUT", |
851 | 886 | data: { |
852 | 887 | 'certification_status': that.getCertifyStatus(formdata), |
853 | - "name": formdata.name.length > 0 ? formdata.name : that.data.name, | |
888 | + "name": that.data.name, | |
854 | 889 | "family_ties": that.data.relativeData.selected, |
855 | 890 | "native": "中国", |
856 | 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 | 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 | 895 | "profession": request_profession, |
861 | 896 | "education": that.data.degreeData.selected, |
862 | 897 | "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no, |
863 | 898 | "taxpayer_status": that.data.personstatusData.selected, |
864 | 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 | 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 | 903 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
869 | 904 | "is_overseas_personnel": "否", |
870 | - "comment": formdata.comment, | |
905 | + "comment": formdata.comment.length > 0 ? formdata.comment : that.data.taxInfo.comment, | |
871 | 906 | "current_address": request_current_address, |
872 | 907 | "current_address_detail": formdata.current_address_detail ? formdata.current_address_detail : that.data.taxInfo.current_address_detail, |
873 | 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 | 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 | 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 | 916 | "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : 0, |
882 | 917 | "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : 0, |
883 | 918 | "is_employee": that.data.employeeInfo.selected, |
884 | 919 | "is_specific_profession": that.data.specificIndustryInfo.selected, |
885 | 920 | "is_investor": that.data.investInfo.selected, |
886 | 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 | 926 | header: { |
892 | 927 | 'content-type': 'application/json', // 默认值 |
... | ... | @@ -986,7 +1021,7 @@ Page({ |
986 | 1021 | }) |
987 | 1022 | }, |
988 | 1023 | |
989 | - getCertifyStatus: function (formdata) { | |
1024 | + getCertifyStatus: function(formdata) { | |
990 | 1025 | var iddata = this.data.idInfoData; |
991 | 1026 | var name = this.data.name.length > 0 ? this.data.name : formdata.name; |
992 | 1027 | var cardtype = this.data.cardtypeData.selected; | ... | ... |
... | ... | @@ -15,8 +15,8 @@ |
15 | 15 | <text class='text_black_28 float_left'>姓名</text> |
16 | 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 | 20 | </view> |
21 | 21 | <view class="divide_line"></view> |
22 | 22 | <!-- <view class='item_body' bindtap='openpicker'> |
... | ... | @@ -51,8 +51,8 @@ |
51 | 51 | <text class='text_black_28 float_left'>姓名</text> |
52 | 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 | 56 | </view> |
57 | 57 | <view class="divide_line"></view> |
58 | 58 | |
... | ... | @@ -88,15 +88,13 @@ |
88 | 88 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> |
89 | 89 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> |
90 | 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 | 94 | </view> |
96 | 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 | 98 | </view> |
101 | 99 | </view> |
102 | 100 | <view class="divide_line"></view> |
... | ... | @@ -178,7 +176,7 @@ |
178 | 176 | <view class="divide_line"></view> |
179 | 177 | <view class='item_body'> |
180 | 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 | 180 | </view> |
183 | 181 | </view> |
184 | 182 | </view> |
... | ... | @@ -202,9 +200,10 @@ |
202 | 200 | <view class='item_body'> |
203 | 201 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
204 | 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 | 207 | </view> |
209 | 208 | <!-- 非必填部分02 --> |
210 | 209 | <view hidden='{{!isshow02}}'> |
... | ... | @@ -235,7 +234,7 @@ |
235 | 234 | <view class="divide_line"></view> |
236 | 235 | <view class='item_body'> |
237 | 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 | 238 | </view> |
240 | 239 | <view class="divide_line"></view> |
241 | 240 | <!-- <view class=' item_body '> |
... | ... | @@ -247,7 +246,7 @@ |
247 | 246 | <view class="divide_line"></view> |
248 | 247 | <view class='item_body '> |
249 | 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 | 250 | </view> |
252 | 251 | <view class="divide_line"></view> |
253 | 252 | <!-- <view class='item_body '> |
... | ... | @@ -259,7 +258,7 @@ |
259 | 258 | <view class="divide_line"></view> |
260 | 259 | <view class='item_body '> |
261 | 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 | 262 | </view> |
264 | 263 | <view class="divide_line"></view> |
265 | 264 | </view> | ... | ... |
1 | 1 | <!--pages/main/guide/guide.wxml--> |
2 | 2 | |
3 | 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 | 4 | <view class="bg_wrap"> |
9 | 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 | 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 | 25 | </view> |
29 | - <image class='arrow_wrap float_right'src='/images/arrow_right.png'></image> | |
30 | 26 | </view> |
31 | 27 | |
32 | 28 | </view> |
\ No newline at end of file | ... | ... |
1 | 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 | 3 | .bgimg { |
30 | 4 | position: absolute; |
31 | 5 | height: 400rpx; |
... | ... | @@ -46,7 +20,6 @@ text_wrap2 { |
46 | 20 | } |
47 | 21 | |
48 | 22 | .bg_wrap { |
49 | - position: relative; | |
50 | 23 | display: flex; |
51 | 24 | flex-direction: column; |
52 | 25 | background-color: #fff; | ... | ... |
... | ... | @@ -97,6 +97,11 @@ Page({ |
97 | 97 | for (var i = 0; i < data.items.length; i++) { |
98 | 98 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) |
99 | 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 | 105 | datalist.push(data.items[i]) |
101 | 106 | } |
102 | 107 | this.setData({ | ... | ... |
1 | -<view class='page' > | |
1 | +<view class='page'> | |
2 | 2 | |
3 | 3 | <view wx:if="{{taxlist.length>0}}" hidden='{{!load_finish}}'> |
4 | 4 | <block wx:for="{{taxlist}}" wx:key="" indx='index'> |
... | ... | @@ -18,31 +18,33 @@ |
18 | 18 | <text class='text_999_22'>{{item.id_card_no}}</text> |
19 | 19 | </view> |
20 | 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 | 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 | 41 | </view> |
39 | - | |
40 | 42 | </view> |
41 | 43 | |
42 | 44 | </block> |
43 | 45 | </view> |
44 | 46 | |
45 | - <view class='rectangle_dashed_bg' bindtap="goadd" > | |
47 | + <view class='rectangle_dashed_bg' bindtap="goadd"> | |
46 | 48 | <view class='text_blue_28' style='text-align:center'> |
47 | 49 | 十 添加家庭成员 |
48 | 50 | </view> | ... | ... |
... | ... | @@ -33,8 +33,14 @@ |
33 | 33 | .text_gray_bg { |
34 | 34 | height: 32rpx; |
35 | 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 | 44 | border-radius: 16px; |
39 | 45 | } |
40 | 46 | ... | ... |
请
注册
或
登录
后发表评论