提交 632412a283e806ca5a5916107fd205708f3cbb92

作者 wangyu
1 个父辈 886f48c6

优化

... ... @@ -95,8 +95,8 @@ App({
95 95 globalData: {
96 96 appId: appId,
97 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 100 OSSUrl: "https://oss.workai.com.cn/",
101 101 userInfo: null,
102 102 hasLogin: false,
... ...
... ... @@ -31,6 +31,8 @@ Page({
31 31 long_birth_date: 0,
32 32 long_start_date: 0,
33 33 long_end_date: 0,
  34 + personal_equity_total:0,
  35 + company_equity_total:0,
34 36 huji_address_detail: '',
35 37 relativeData: {
36 38 isrequre: true,
... ... @@ -345,6 +347,8 @@ Page({
345 347 specificIndustryInfo: this.data.specificIndustryInfo,
346 348 genderData: this.data.genderData,
347 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 353 professionData: this.data.professionData,
350 354 degreeData: this.data.degreeData,
... ... @@ -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 829 formSubmit: function(e) {
812 830 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000)
813 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 877 } else if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) {
860 878 this.showtoast('请输入正确邮箱');
861 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 881 this.showtoast('请输入正确金额');
864 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 884 this.showtoast('请输入正确金额');
867 885 return
868 886 }
... ... @@ -929,8 +947,8 @@ Page({
929 947 "is_specific_profession": that.data.specificIndustryInfo.selected,
930 948 "is_investor": that.data.investInfo.selected,
931 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 952 "employee_no": formdata.employee_no.length > 0 ? formdata.employee_no : that.data.taxInfo.employee_no,
935 953 },
936 954 header: {
... ...
... ... @@ -307,7 +307,7 @@
307 307 <view class="divide_line"></view>
308 308 <view class='item_body '>
309 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 311 </view>
312 312 <view class="divide_line"></view>
313 313 <!-- <view class='item_body '>
... ... @@ -340,7 +340,7 @@
340 340 <view class="divide_line"></view>
341 341 <view class='item_body'>
342 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 344 </view>
345 345 <view class="divide_line"></view>
346 346 </view>
... ...
... ... @@ -4,7 +4,7 @@
4 4 "ignore": []
5 5 },
6 6 "setting": {
7   - "urlCheck": false,
  7 + "urlCheck": true,
8 8 "es6": true,
9 9 "postcss": true,
10 10 "minified": true,
... ...
注册登录 后发表评论