提交 632412a283e806ca5a5916107fd205708f3cbb92

作者 wangyu
1 个父辈 886f48c6

优化

@@ -95,8 +95,8 @@ App({ @@ -95,8 +95,8 @@ App({
95 globalData: { 95 globalData: {
96 appId: appId, 96 appId: appId,
97 onshow_count: 0, 97 onshow_count: 0,
98 - baseUrl: "http://47.96.75.229:20000/",  
99 - // baseUrl: "https://api.workai.com.cn/", 98 + // baseUrl: "http://47.96.75.229:20000/",
  99 + baseUrl: "https://api.workai.com.cn/",
100 OSSUrl: "https://oss.workai.com.cn/", 100 OSSUrl: "https://oss.workai.com.cn/",
101 userInfo: null, 101 userInfo: null,
102 hasLogin: false, 102 hasLogin: false,
@@ -31,6 +31,8 @@ Page({ @@ -31,6 +31,8 @@ Page({
31 long_birth_date: 0, 31 long_birth_date: 0,
32 long_start_date: 0, 32 long_start_date: 0,
33 long_end_date: 0, 33 long_end_date: 0,
  34 + personal_equity_total:0,
  35 + company_equity_total:0,
34 huji_address_detail: '', 36 huji_address_detail: '',
35 relativeData: { 37 relativeData: {
36 isrequre: true, 38 isrequre: true,
@@ -345,6 +347,8 @@ Page({ @@ -345,6 +347,8 @@ Page({
345 specificIndustryInfo: this.data.specificIndustryInfo, 347 specificIndustryInfo: this.data.specificIndustryInfo,
346 genderData: this.data.genderData, 348 genderData: this.data.genderData,
347 bankInfo: this.data.bankInfo, 349 bankInfo: this.data.bankInfo,
  350 + personal_equity_total:tax_info.personal_equity_total,
  351 + company_equity_total: tax_info.company_equity_total,
348 352
349 professionData: this.data.professionData, 353 professionData: this.data.professionData,
350 degreeData: this.data.degreeData, 354 degreeData: this.data.degreeData,
@@ -808,6 +812,20 @@ Page({ @@ -808,6 +812,20 @@ Page({
808 }) 812 })
809 }, 813 },
810 814
  815 + personalmoney:function(e){
  816 + console.log('personalmoney', e)
  817 + this.setData({
  818 + personal_equity_total: e.detail.value
  819 + })
  820 + },
  821 +
  822 + companymoney:function(e){
  823 + console.log('companymoney', e)
  824 + this.setData({
  825 + company_equity_total: e.detail.value
  826 + })
  827 + },
  828 +
811 formSubmit: function(e) { 829 formSubmit: function(e) {
812 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) 830 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000)
813 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); 831 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$");
@@ -859,10 +877,10 @@ Page({ @@ -859,10 +877,10 @@ Page({
859 } else if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) { 877 } else if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) {
860 this.showtoast('请输入正确邮箱'); 878 this.showtoast('请输入正确邮箱');
861 return 879 return
862 - } else if (formdata.company_equity_total && formdata.company_equity_total.length > 0 && !regMoney.test(formdata.company_equity_total)) { 880 + } else if (this.data.company_equity_total && this.data.company_equity_total.length > 0 && !regMoney.test(this.data.company_equity_total)) {
863 this.showtoast('请输入正确金额'); 881 this.showtoast('请输入正确金额');
864 return 882 return
865 - } else if (formdata.personal_equity_total && formdata.personal_equity_total.length > 0 && !regMoney.test(formdata.personal_equity_total)) { 883 + } else if (this.data.personal_equity_total && this.data.personal_equity_total.length > 0 && !regMoney.test(this.data.personal_equity_total)) {
866 this.showtoast('请输入正确金额'); 884 this.showtoast('请输入正确金额');
867 return 885 return
868 } 886 }
@@ -929,8 +947,8 @@ Page({ @@ -929,8 +947,8 @@ Page({
929 "is_specific_profession": that.data.specificIndustryInfo.selected, 947 "is_specific_profession": that.data.specificIndustryInfo.selected,
930 "is_investor": that.data.investInfo.selected, 948 "is_investor": that.data.investInfo.selected,
931 "is_business_angel": that.data.investpersonalInfo.selected, 949 "is_business_angel": that.data.investpersonalInfo.selected,
932 - "company_equity_total": parseFloat(formdata.company_equity_total) > 0 ? parseFloat(formdata.company_equity_total) : that.data.taxInfo.company_equity_total,  
933 - "personal_equity_total": parseFloat(formdata.personal_equity_total) > 0 ? parseFloat(formdata.personal_equity_total) : that.data.taxInfo.personal_equity_total, 950 + "company_equity_total": parseFloat(that.data.company_equity_total) ,
  951 + "personal_equity_total":parseFloat(that.data.personal_equity_total) ,
934 "employee_no": formdata.employee_no.length > 0 ? formdata.employee_no : that.data.taxInfo.employee_no, 952 "employee_no": formdata.employee_no.length > 0 ? formdata.employee_no : that.data.taxInfo.employee_no,
935 }, 953 },
936 header: { 954 header: {
@@ -307,7 +307,7 @@ @@ -307,7 +307,7 @@
307 <view class="divide_line"></view> 307 <view class="divide_line"></view>
308 <view class='item_body '> 308 <view class='item_body '>
309 <text class='text_666_28 float_left'>公司股本总额</text> 309 <text class='text_666_28 float_left'>公司股本总额</text>
310 - <input class='input_wrap float_right ' name='company_equity_total' type='digit' value='{{taxInfo.company_equity_total}}' placeholder-class='text_999_28' placeholder='请输入股本总额' maxlength='13'></input> 310 + <input class='input_wrap float_right ' name='company_equity_total' type='digit' value='{{taxInfo.company_equity_total}}' placeholder-class='text_999_28' placeholder='请输入股本总额(保留两位小数)' maxlength='13' bindblur='companymoney'></input>
311 </view> 311 </view>
312 <view class="divide_line"></view> 312 <view class="divide_line"></view>
313 <!-- <view class='item_body '> 313 <!-- <view class='item_body '>
@@ -340,7 +340,7 @@ @@ -340,7 +340,7 @@
340 <view class="divide_line"></view> 340 <view class="divide_line"></view>
341 <view class='item_body'> 341 <view class='item_body'>
342 <text class='text_666_28 float_left '>个人投资总额</text> 342 <text class='text_666_28 float_left '>个人投资总额</text>
343 - <input class='input_wrap float_right ' name='personal_equity_total' type='digit' value='{{taxInfo.personal_equity_total}}' placeholder-class='text_999_28' placeholder='请输入个人投资总额' maxlength='13'></input> 343 + <input class='input_wrap float_right ' name='personal_equity_total' type='digit' value='{{taxInfo.personal_equity_total}}' placeholder-class='text_999_28' placeholder='请输入个人投资总额(保留两位小数)' maxlength='13' bindblur='personalmoney'></input>
344 </view> 344 </view>
345 <view class="divide_line"></view> 345 <view class="divide_line"></view>
346 </view> 346 </view>
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 "ignore": [] 4 "ignore": []
5 }, 5 },
6 "setting": { 6 "setting": {
7 - "urlCheck": false, 7 + "urlCheck": true,
8 "es6": true, 8 "es6": true,
9 "postcss": true, 9 "postcss": true,
10 "minified": true, 10 "minified": true,
注册登录 后发表评论