提交 e57d7132bf94be7c058ead52ad31443921a340e4

作者 pangy
2 个父辈 fabc29d0 25ba81d5

Merge branch 'dev_py' into dev2.0

... ... @@ -1008,7 +1008,7 @@ Page({
1008 1008 var bank_info = that.data.bankInfo
1009 1009 var bank_info_2 = that.data.bankInfo_2
1010 1010 wx.request({
1011   - url: baseUrl + 'walletmgm/v1/bankinfos',
  1011 + url: baseUrl + 'persontax/v1/bank-list',
1012 1012 method: "GET",
1013 1013 header: {
1014 1014 'content-type': 'application/json', // 默认值
... ... @@ -1016,8 +1016,8 @@ Page({
1016 1016 },
1017 1017 success: function(res) {
1018 1018 console.log(res)
1019   - bank_info.values = that.handleBankinfo(res.data.items)
1020   - bank_info_2.values = that.handleBankinfo(res.data.items)
  1019 + bank_info.values = res.data.banks//that.handleBankinfo(res.data.items)
  1020 + bank_info_2.values = res.data.banks//that.handleBankinfo(res.data.items)
1021 1021 that.setData({
1022 1022 bankInfo: bank_info,
1023 1023 bankInfo_2: bank_info_2
... ...
... ... @@ -447,7 +447,7 @@ Page({
447 447 var Authorization = app.globalData.Authorization;
448 448 var bank_info = that.data.bankInfo
449 449 wx.request({
450   - url: baseUrl + 'walletmgm/v1/bankinfos',
  450 + url: baseUrl + 'persontax/v1/bank-list',
451 451 method: "GET",
452 452 header: {
453 453 'content-type': 'application/json', // 默认值
... ... @@ -455,7 +455,7 @@ Page({
455 455 },
456 456 success: function(res) {
457 457 console.log(res)
458   - bank_info.values = that.handleBankinfo(res.data.items)
  458 + bank_info.values = res.data.banks//that.handleBankinfo(res.data.items)
459 459
460 460 that.setData({
461 461 banklist: res.data.items,
... ... @@ -869,14 +869,17 @@ Page({
869 869 // this.showtoast('有必填项未填写');
870 870 // return
871 871 // } else
872   - if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) {
  872 + if (this.data.mobile.length < 1) {
  873 + this.showtoast('请输入手机号码');
  874 + return
  875 + } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) {
873 876 this.showtoast('手机号码有误');
874 877 return
875 878 }
876   - if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) {
877   - this.showtoast('请输入正确邮箱');
878   - return
879   - }
  879 + // if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) {
  880 + // this.showtoast('请输入正确邮箱');
  881 + // return
  882 + // }
880 883 //else if (this.data.investInfo.selected.length < 1) {
881 884 // this.showtoast('有必填项未填写');
882 885 // return
... ... @@ -936,23 +939,23 @@ Page({
936 939
937 940 "mobile": that.data.mobile,
938 941 "current_address": request_current_address,
939   - "current_address_detail": formdata.current_address_detail ? formdata.current_address_detail : that.data.taxInfo.current_address_detail,
  942 + "current_address_detail": formdata.current_address_detail,
940 943 "huji_address": request_birth_address,
941   - "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,
942   - "email": formdata.email.length > 0 ? formdata.email : that.data.taxInfo.email,
  944 + "huji_address_detail": formdata.huji_address_detail.replace(/(^\s*)|(\s*$)/g, ""),
  945 + "email": formdata.email,
943 946
944 947 "profession": request_profession,
945 948 "education": that.data.degreeData.selected,
946 949 "bank": that.data.bankInfo.selected,
947   - "bank_account": formdata.bank_account.length > 0 ? formdata.bank_account : that.data.taxInfo.bank_account,
  950 + "bank_account": formdata.bank_account,
948 951 // "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no,
949 952 // "taxpayer_status": that.data.personstatusData.selected,
950 953 "is_disability": that.data.disabilityInfo.selected,
951   - "disability_no": that.data.disabilityInfo.selected == '否' ? '' : (formdata.disability_no.length > 0 ? formdata.disability_no : that.data.taxInfo.disability_no),
  954 + "disability_no": that.data.disabilityInfo.selected == '否' ? '' : formdata.disability_no,
952 955 "is_martyr_family": that.data.lieshuInfo.selected,
953   - "martyr_family_no": that.data.lieshuInfo.selected == '否' ? '' : (formdata.martyr_family_no.length > 0 ? formdata.martyr_family_no : that.data.taxInfo.martyr_family_no),
  956 + "martyr_family_no": that.data.lieshuInfo.selected == '否' ? '' : formdata.martyr_family_no,
954 957 "is_lonely_man": that.data.lonelyolderInfo.selected,
955   - "comment": formdata.comment.length > 0 ? formdata.comment : that.data.taxInfo.comment,
  958 + "comment": formdata.comment,
956 959
957 960 // "contact_address": request_contact_address ? request_contact_address : that.data.taxInfo.contact_address_detail,
958 961 // "contact_address_detail": formdata.contact_address_detail.length > 0 ? formdata.contact_address_detail : that.data.taxInfo.contact_address_detail,
... ...
... ... @@ -141,8 +141,8 @@
141 141 <view class='data_item'>
142 142 <view hidden='{{!isshow03}}'>
143 143 <template is="picker_cell_normal" data="{{...degreeData}}" />
144   - <view class="divide_line_30"></view>
145   - <template is="picker_cell_normal" data="{{...professionData}}" />
  144 + <!-- <view class="divide_line_30"></view>
  145 + <template is="picker_cell_normal" data="{{...professionData}}" /> -->
146 146 <view class="divide_line_30"></view>
147 147 <template is="picker_cell_normal" data="{{...bankInfo}}" />
148 148 <view class="divide_line_30"></view>
... ...
注册登录 后发表评论