正在显示
9 个修改的文件
包含
433 行增加
和
113 行删除
images/lable_bg.png
0 → 100644
156.5 KB
... | ... | @@ -10,7 +10,29 @@ |
10 | 10 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
11 | 11 | |
12 | 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}}"> | |
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}}" class="text_333_28 float_right">{{selected}}</view> | |
15 | + <view wx:elif="{{placeholder}}" class="text_333_28 float_right">{{placeholder}}</view> | |
16 | + </picker> | |
17 | + </view> | |
18 | + | |
19 | + <!-- <text class='text_333_28 float_right'>请选择关系</text> --> | |
20 | + </view> | |
21 | +</template> | |
22 | + | |
23 | +<template name="picker_cell_mutiple"> | |
24 | + <view class='item_body'> | |
25 | + <text hidden='{{!isrequre}}' style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | |
26 | + <view wx:if='{{isrequre}}'> | |
27 | + <text class='text_black_28 float_left'>{{label}}</text> | |
28 | + </view> | |
29 | + <view wx:else> | |
30 | + <text class='text_666_28 float_left'>{{label}}</text> | |
31 | + </view> | |
32 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | |
33 | + | |
34 | + <view class="weui-cell__bd"> | |
35 | + <picker mode='picker_cell_mutiple' range-key="{{range_key}}"value="{{multiIndex}}" range="{{values}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}"> | |
14 | 36 | <view wx:if="{{selected}}" class="text_333_28 float_right">{{selected}}</view> |
15 | 37 | <view wx:elif="{{placeholder}}" class="text_333_28 float_right">{{placeholder}}</view> |
16 | 38 | </picker> | ... | ... |
... | ... | @@ -10,107 +10,131 @@ Page({ |
10 | 10 | isshow01: false, |
11 | 11 | isshow02: false, |
12 | 12 | isshow03: false, |
13 | - taxInfo:{}, | |
14 | - proffessiondata:{}, | |
15 | - bankinfo:{}, | |
16 | - name:'', | |
17 | - id_card_number:'', | |
18 | - | |
13 | + taxInfo: {}, | |
14 | + proffessionlist: {}, | |
15 | + banklist: {}, | |
16 | + cur_id: '', | |
17 | + isself: true, | |
18 | + name: '', | |
19 | + id_card_number: '', | |
19 | 20 | |
20 | 21 | relativeData: { |
21 | - isrequre: true, | |
22 | + isrequre: true, | |
22 | 23 | label: '关系', |
23 | - selected: '请选择关系', | |
24 | + bindtype: 'relative', | |
25 | + placeholder: '请选择关系', | |
24 | 26 | values: ["子女", "配偶"], |
25 | 27 | onChange: 'onPickerSelect' |
26 | 28 | }, |
27 | 29 | personstatusData: { |
28 | 30 | isrequre: true, |
29 | 31 | label: '纳税人状态', |
30 | - selected: '请选择纳税人状态', | |
32 | + bindtype: 'personstatus', | |
33 | + placeholder: '请选择纳税人状态', | |
31 | 34 | values: ["正常(在职)", "非正常"], |
32 | 35 | onChange: 'onPickerSelect' |
33 | 36 | }, |
34 | 37 | cardtypeData: { |
35 | 38 | isrequre: true, |
36 | 39 | label: '证照类型', |
40 | + bindtype: 'cardtype', | |
37 | 41 | selected: '居民身份证', |
38 | - values: ["居民身份证", "军官证",'士兵证','武警警官证','港澳居民来往大陆通行证','外交官证','中国护照', | |
39 | - '外国护照','香港永久性居民身份证','澳门特别行政区永久性居民身份证','台湾身份证','外国人永久居留证'], | |
42 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | |
43 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | |
44 | + ], | |
40 | 45 | onChange: 'onPickerSelect' |
41 | 46 | }, |
42 | 47 | forignerInfo: { |
43 | 48 | isrequre: true, |
44 | 49 | label: '是否境外人员', |
50 | + bindtype: 'forigner', | |
45 | 51 | selected: '否', |
46 | 52 | values: ["否", "是"], |
47 | 53 | onChange: 'onPickerSelect' |
48 | 54 | }, |
55 | + bankInfo: { | |
56 | + label: '开户银行', | |
57 | + bindtype: 'bank', | |
58 | + placeholder: '请选择开户银行', | |
59 | + onChange: 'onPickerSelect' | |
60 | + }, | |
49 | 61 | genderData: { |
50 | 62 | label: '性别', |
51 | - selected: '请选择性别', | |
63 | + bindtype: 'gender', | |
64 | + placeholder: '请选择性别', | |
52 | 65 | values: ["男", "女"], |
53 | 66 | onChange: 'onPickerSelect' |
54 | 67 | }, |
55 | 68 | professionData: { |
69 | + mode: 'multiSelector', | |
56 | 70 | label: '职业', |
57 | - selected: '请选择职业', | |
58 | - values: [], | |
71 | + bindtype: 'profession', | |
72 | + multiIndex: [0, 0, 0], | |
73 | + placeholder: '请选择职业', | |
59 | 74 | onChange: 'onPickerSelect' |
60 | 75 | }, |
61 | 76 | degreeData: { |
62 | 77 | label: '学历', |
63 | - selected: '请选择学历', | |
64 | - values: ["研究生", "大学本科",'大学本科以下'], | |
78 | + bindtype: 'degree', | |
79 | + placeholder: '请选择学历', | |
80 | + values: ["研究生", "大学本科", '大学本科以下'], | |
65 | 81 | onChange: 'onPickerSelect' |
66 | 82 | }, |
67 | - deformityInfo: { | |
83 | + disabilityInfo: { | |
68 | 84 | label: '是否残疾', |
69 | - selected: '请选择是否残疾', | |
85 | + bindtype: 'disable', | |
86 | + placeholder: '请选择是否残疾', | |
70 | 87 | values: ["否", "是"], |
71 | 88 | onChange: 'onPickerSelect' |
72 | 89 | }, |
73 | 90 | lieshuInfo: { |
74 | 91 | label: '是否烈属', |
75 | - selected: '请选择是否烈属', | |
92 | + bindtype: 'lieshu', | |
93 | + placeholder: '请选择是否烈属', | |
76 | 94 | values: ["否", "是"], |
77 | 95 | onChange: 'onPickerSelect' |
78 | 96 | }, |
79 | 97 | lonelyolderInfo: { |
80 | 98 | label: '是否孤老', |
81 | - selected: '请选择是否孤老', | |
99 | + bindtype: 'lonelyolder', | |
100 | + placeholder: '请选择是否孤老', | |
82 | 101 | values: ["否", "是"], |
83 | 102 | onChange: 'onPickerSelect' |
84 | 103 | }, |
85 | 104 | investInfo: { |
86 | 105 | isrequre: true, |
87 | 106 | label: '是否股东、投资者', |
88 | - selected: '请选择是否股东、投资者', | |
107 | + bindtype: 'invest', | |
108 | + placeholder: '请选择是否股东、投资者', | |
89 | 109 | values: ["否", "是"], |
90 | 110 | onChange: 'onPickerSelect' |
91 | 111 | }, |
92 | - professionInfo: { | |
112 | + specificIndustryInfo: { | |
93 | 113 | isrequre: true, |
94 | 114 | label: '是否特定行业', |
95 | - selected: '请选择是否特定行业', | |
115 | + bindtype: 'specificIndustry', | |
116 | + placeholder: '请选择是否特定行业', | |
96 | 117 | values: ["否", "是"], |
97 | 118 | onChange: 'onPickerSelect' |
98 | 119 | }, |
99 | 120 | employeeInfo: { |
100 | 121 | label: '是否雇员', |
101 | - selected: '请选择是否雇员', | |
122 | + bindtype: 'employee', | |
123 | + placeholder: '请选择是否雇员', | |
102 | 124 | values: ["否", "是"], |
103 | 125 | onChange: 'onPickerSelect' |
104 | 126 | }, |
105 | 127 | investpersonalInfo: { |
106 | 128 | label: '是否天使投资个人', |
107 | - selected: '请选择是否天使投资个人', | |
129 | + bindtype: 'investpersonal', | |
130 | + placeholder: '请选择是否天使投资个人', | |
108 | 131 | values: ["否", "是"], |
109 | 132 | onChange: 'onPickerSelect' |
110 | 133 | }, |
111 | 134 | // 时间picker |
112 | 135 | birthDate: { |
113 | 136 | label: '出生年月', |
137 | + bindtype: 'birthday', | |
114 | 138 | placeholder: '请选择出生日期', |
115 | 139 | mode: "date", |
116 | 140 | fields: "day", |
... | ... | @@ -118,6 +142,7 @@ Page({ |
118 | 142 | }, |
119 | 143 | startDate: { |
120 | 144 | label: '在职受雇日期', |
145 | + bindtype: 'startday', | |
121 | 146 | placeholder: '请选择受雇日期', |
122 | 147 | mode: "date", |
123 | 148 | fields: "day", |
... | ... | @@ -125,11 +150,31 @@ Page({ |
125 | 150 | }, |
126 | 151 | endDate: { |
127 | 152 | label: '离职日期', |
153 | + bindtype: 'endday', | |
128 | 154 | placeholder: '请选择离职日期', |
129 | 155 | mode: "date", |
130 | 156 | fields: "day", |
131 | 157 | onChange: 'endChange', |
132 | 158 | }, |
159 | + // 地址选择器 | |
160 | + contactaddressInfo: { | |
161 | + label: '联系地址', | |
162 | + mode: 'region', | |
163 | + placeholder: '请选择联系地址', | |
164 | + onChange: 'onPickerSelect' | |
165 | + }, | |
166 | + currentaddressInfo: { | |
167 | + label: '居住地', | |
168 | + mode: 'region', | |
169 | + placeholder: '请选择居住地', | |
170 | + onChange: 'onPickerSelect' | |
171 | + }, | |
172 | + birthaddressInfo: { | |
173 | + label: '户籍所在地', | |
174 | + mode: 'region', | |
175 | + placeholder: '请选择户籍所在地', | |
176 | + onChange: 'onPickerSelect' | |
177 | + }, | |
133 | 178 | condition: false |
134 | 179 | }, |
135 | 180 | |
... | ... | @@ -137,26 +182,37 @@ Page({ |
137 | 182 | * 生命周期函数--监听页面加载 |
138 | 183 | */ |
139 | 184 | onLoad: function(options) { |
140 | - console.log(options.id) | |
141 | - this.getpersonalTax(options.id) | |
185 | + console.log('options.id', options.id) | |
186 | + if (!options.id || options.id.length < 0) { | |
187 | + this.setData({ | |
188 | + isself: false, | |
189 | + cur_id: '' | |
190 | + }) | |
191 | + } else { | |
192 | + this.setData({ | |
193 | + cur_id: options.id, | |
194 | + }) | |
195 | + this.getpersonalTax(options.id) | |
196 | + } | |
142 | 197 | this.getproffessiondata() |
143 | 198 | this.getbanklist() |
144 | 199 | }, |
145 | 200 | |
146 | - getpersonalTax:function(id){ | |
201 | + getpersonalTax: function(id) { | |
147 | 202 | var that = this |
148 | 203 | var Authorization = app.globalData.Authorization; |
149 | 204 | wx.request({ |
150 | - url: baseUrl + 'persontax/v1/personal-taxes/'+id, | |
205 | + url: baseUrl + 'persontax/v1/personal-taxes/' + id, | |
151 | 206 | method: "GET", |
152 | 207 | header: { |
153 | 208 | 'content-type': 'application/json', // 默认值 |
154 | 209 | "Authorization": Authorization |
155 | 210 | }, |
156 | - success: function (res) { | |
211 | + success: function(res) { | |
157 | 212 | console.log(res) |
158 | 213 | that.setData({ |
159 | - taxInfo: res.data | |
214 | + taxInfo: res.data, | |
215 | + isself: res.data.family_ties ? false : true | |
160 | 216 | }) |
161 | 217 | }, |
162 | 218 | fail(res) { |
... | ... | @@ -165,9 +221,10 @@ Page({ |
165 | 221 | }) |
166 | 222 | }, |
167 | 223 | |
168 | - getproffessiondata:function(){ | |
224 | + getproffessiondata: function() { | |
169 | 225 | var that = this |
170 | 226 | var Authorization = app.globalData.Authorization; |
227 | + var proffession_info = that.data.professionData | |
171 | 228 | wx.request({ |
172 | 229 | url: baseUrl + 'common/v1/professions', |
173 | 230 | method: "GET", |
... | ... | @@ -175,21 +232,25 @@ Page({ |
175 | 232 | 'content-type': 'application/json', // 默认值 |
176 | 233 | "Authorization": Authorization |
177 | 234 | }, |
178 | - success: function (res) { | |
179 | - console.log(res) | |
235 | + success: function(res) { | |
236 | + console.log('proffessiondata', res.data) | |
237 | + proffession_info.values = res.data.items | |
180 | 238 | that.setData({ |
181 | - proffessiondata:res.data | |
239 | + proffessionlist: res.data.items, | |
240 | + professionData: proffession_info | |
182 | 241 | }) |
183 | 242 | }, |
184 | 243 | fail(res) { |
185 | 244 | console.log(res) |
186 | 245 | } |
187 | 246 | }) |
247 | + console.log('proffessionData--', that.data.professionData) | |
188 | 248 | }, |
189 | 249 | |
190 | - getbanklist: function () { | |
250 | + getbanklist: function() { | |
191 | 251 | var that = this |
192 | 252 | var Authorization = app.globalData.Authorization; |
253 | + var bank_info = that.data.bankInfo | |
193 | 254 | wx.request({ |
194 | 255 | url: baseUrl + 'walletmgm/v1/bankinfos', |
195 | 256 | method: "GET", |
... | ... | @@ -197,11 +258,15 @@ Page({ |
197 | 258 | 'content-type': 'application/json', // 默认值 |
198 | 259 | "Authorization": Authorization |
199 | 260 | }, |
200 | - success: function (res) { | |
261 | + success: function(res) { | |
201 | 262 | console.log(res) |
263 | + bank_info.values = that.handleBankinfo(res.data.items) | |
264 | + | |
202 | 265 | that.setData({ |
203 | - bankinfo: res.data | |
266 | + banklist: res.data.items, | |
267 | + bankInfo: bank_info | |
204 | 268 | }) |
269 | + console.log("bankInfo", that.data.bankInfo) | |
205 | 270 | }, |
206 | 271 | fail(res) { |
207 | 272 | console.log(res) |
... | ... | @@ -209,6 +274,14 @@ Page({ |
209 | 274 | }) |
210 | 275 | }, |
211 | 276 | |
277 | + handleBankinfo: function(data) { | |
278 | + var bank_name = [] | |
279 | + for (var i = 0; i < data.length; i++) { | |
280 | + bank_name.push(data[i].bank_name) | |
281 | + } | |
282 | + return bank_name | |
283 | + }, | |
284 | + | |
212 | 285 | /** |
213 | 286 | * 生命周期函数--监听页面初次渲染完成 |
214 | 287 | */ |
... | ... | @@ -226,7 +299,7 @@ Page({ |
226 | 299 | success: function(res) { |
227 | 300 | console.log(res.data) |
228 | 301 | that.setData({ |
229 | - name:res.data.name, | |
302 | + name: res.data.name, | |
230 | 303 | id_card_number: res.data.id_card_number |
231 | 304 | }) |
232 | 305 | }, |
... | ... | @@ -252,23 +325,208 @@ Page({ |
252 | 325 | }, |
253 | 326 | |
254 | 327 | onPickerSelect: function(e) { |
255 | - console.log('picker发送选择改变,携带值为', e.detail.value) | |
256 | - var relative_data = this.data.relativeData | |
257 | - relative_data.selected = relative_data.values[e.detail.value] | |
258 | - this.setData({ | |
259 | - relativeData: relative_data | |
260 | - }) | |
328 | + console.log('picker发送选择改变,携带值为', e) | |
329 | + switch (e.currentTarget.id) { | |
330 | + case 'relative': | |
331 | + var relative_data = this.data.relativeData | |
332 | + relative_data.selected = relative_data.values[e.detail.value] | |
333 | + this.setData({ | |
334 | + relativeData: relative_data | |
335 | + }) | |
336 | + break; | |
337 | + case 'personstatus': | |
338 | + var personstatus_data = this.data.personstatusData | |
339 | + personstatus_data.selected = personstatus_data.values[e.detail.value] | |
340 | + this.setData({ | |
341 | + personstatusData: personstatus_data | |
342 | + }) | |
343 | + break; | |
344 | + case 'cardtype': | |
345 | + var cardtype_data = this.data.cardtypeData | |
346 | + cardtype_data.selected = cardtype_data.values[e.detail.value] | |
347 | + this.setData({ | |
348 | + cardtypeData: cardtype_data | |
349 | + }) | |
350 | + break; | |
351 | + case 'forigner': | |
352 | + var forigner_data = this.data.forignerInfo | |
353 | + forigner_data.selected = forigner_data.values[e.detail.value] | |
354 | + this.setData({ | |
355 | + forignerInfo: forigner_data | |
356 | + }) | |
357 | + break; | |
358 | + case 'bank': | |
359 | + var bank_data = this.data.bankInfo | |
360 | + bank_data.selected = bank_data.values[e.detail.value] | |
361 | + this.setData({ | |
362 | + bankInfo: bank_data | |
363 | + }) | |
364 | + break; | |
365 | + case 'gender': | |
366 | + var gender_data = this.data.genderData | |
367 | + gender_data.selected = gender_data.values[e.detail.value] | |
368 | + this.setData({ | |
369 | + genderData: gender_data | |
370 | + }) | |
371 | + break; | |
372 | + case 'profession': | |
373 | + // var profession_data = this.data.professionData | |
374 | + // profession_data.selected = profession_data.values[e.detail.value] | |
375 | + // this.setData({ | |
376 | + // professionData: profession_data | |
377 | + // }) | |
378 | + break; | |
379 | + case 'degree': | |
380 | + var degree_data = this.data.degreeData | |
381 | + degree_data.selected = degree_data.values[e.detail.value] | |
382 | + this.setData({ | |
383 | + degreeData: degree_data | |
384 | + }) | |
385 | + break; | |
386 | + case 'disable': | |
387 | + var disable_data = this.data.disabilityInfo | |
388 | + disable_data.selected = disable_data.values[e.detail.value] | |
389 | + this.setData({ | |
390 | + disabilityInfo: disable_data | |
391 | + }) | |
392 | + break; | |
393 | + case 'lieshu': | |
394 | + var lieshu_data = this.data.lieshuInfo | |
395 | + lieshu_data.selected = lieshu_data.values[e.detail.value] | |
396 | + this.setData({ | |
397 | + lieshuInfo: lieshu_data | |
398 | + }) | |
399 | + break; | |
400 | + case 'lonelyolder': | |
401 | + var lonelyolder_data = this.data.lonelyolderInfo | |
402 | + lonelyolder_data.selected = lonelyolder_data.values[e.detail.value] | |
403 | + this.setData({ | |
404 | + lonelyolderInfo: lonelyolder_data | |
405 | + }) | |
406 | + break; | |
407 | + case 'invest': | |
408 | + var invest_data = this.data.investInfo | |
409 | + invest_data.selected = invest_data.values[e.detail.value] | |
410 | + this.setData({ | |
411 | + investInfo: invest_data | |
412 | + }) | |
413 | + break; | |
414 | + case 'specificIndustry': | |
415 | + var specificIndustry_data = this.data.specificIndustryInfo | |
416 | + specificIndustry_data.selected = specificIndustry_data.values[e.detail.value] | |
417 | + this.setData({ | |
418 | + specificIndustryInfo: specificIndustry_data | |
419 | + }) | |
420 | + break; | |
421 | + case 'employee': | |
422 | + var employee_data = this.data.employeeInfo | |
423 | + employee_data.selected = employee_data.values[e.detail.value] | |
424 | + this.setData({ | |
425 | + employeeInfo: employee_data | |
426 | + }) | |
427 | + break; | |
428 | + } | |
429 | + | |
261 | 430 | }, |
262 | 431 | |
263 | 432 | getIdInfo: function(e) { |
264 | - if (true) { | |
265 | - wx.navigateTo({ | |
266 | - url: '../idinfo/idinfo', | |
267 | - success: function(res) {}, | |
268 | - }) | |
269 | - } else { | |
433 | + wx.navigateTo({ | |
434 | + url: '../idinfo/idinfo', | |
435 | + success: function(res) {}, | |
436 | + }) | |
437 | + }, | |
270 | 438 | |
271 | - } | |
439 | + formBindSubmit: function(e) { | |
440 | + var formdata = e.detail.value; | |
441 | + console.log("formdata", formdata); | |
442 | + | |
443 | + // this.goCommit(); | |
444 | + }, | |
445 | + | |
446 | + goCommit: function() { | |
447 | + var that = this | |
448 | + var Authorization = app.globalData.Authorization; | |
449 | + wx.request({ | |
450 | + url: baseUrl + 'persontax/v1/personal-taxes/'+that.data.cur_id, | |
451 | + method: "GET", | |
452 | + data: { | |
453 | + "name": "张美嘉", | |
454 | + "family_ties": "子女", | |
455 | + "native": "中国", | |
456 | + "id_card_type": "身份证", | |
457 | + "id_card_no": "320302199010220011", | |
458 | + "gender": "男", | |
459 | + "birth_date": "1990_10_22", | |
460 | + "profession": { | |
461 | + "one_level_code": "1", | |
462 | + "one_level_name": "专业技术人员", | |
463 | + "two_level_code": "11", | |
464 | + "two_level_name": "科学研究人员", | |
465 | + "three_level_code": "111", | |
466 | + "three_level_name": "哲学研究人员" | |
467 | + }, | |
468 | + "education": "高中", | |
469 | + "taxpayer_no": "3209023812121232", | |
470 | + "taxpayer_status": "正常", | |
471 | + "is_martyr_family": "是", | |
472 | + "martyr_family_no": "无", | |
473 | + "is_disability": "是", | |
474 | + "disability_no": "无", | |
475 | + "is_lonely_man": "是", | |
476 | + "is_overseas_personnel": "否", | |
477 | + "comment": "", | |
478 | + "current_address": { | |
479 | + "province_code": "xxx", | |
480 | + "province": "北京市", | |
481 | + "city_code": "xxx", | |
482 | + "city": "直辖区", | |
483 | + "district_code": "xxx", | |
484 | + "district": "朝阳区" | |
485 | + }, | |
486 | + "current_address_detail": "望京东路8号", | |
487 | + "huji_address": { | |
488 | + "province_code": "xxx", | |
489 | + "province": "北京市", | |
490 | + "city_code": "xxx", | |
491 | + "city": "直辖区", | |
492 | + "district_code": "xxx", | |
493 | + "district": "朝阳区" | |
494 | + }, | |
495 | + "huji_address_detail": "望京东路8号", | |
496 | + "mobile": "13888888888", | |
497 | + "contact_address": { | |
498 | + "province_code": "xxx", | |
499 | + "province": "浙江省", | |
500 | + "city_code": "xxx", | |
501 | + "city": "杭州市", | |
502 | + "district_code": "xxx", | |
503 | + "district": "滨江区" | |
504 | + }, | |
505 | + "contact_address_detail": "", | |
506 | + "email": "xxxxxx@xx", | |
507 | + "bank": "中国建设银行", | |
508 | + "bank_account": "666222111121122111", | |
509 | + "join_date": "2018年8月1日", | |
510 | + "separate_date": "2018年8月1日", | |
511 | + "is_employee": "是", | |
512 | + "is_specific_profession": "是", | |
513 | + "is_investor": "否", | |
514 | + "is_business_angel": "否", | |
515 | + "company_equity_total": "0.00", | |
516 | + "personal_equity_total": "0.00", | |
517 | + "employee_no": "XA20180801" | |
518 | + }, | |
519 | + header: { | |
520 | + 'content-type': 'application/json', // 默认值 | |
521 | + "Authorization": Authorization | |
522 | + }, | |
523 | + success: function(res) { | |
524 | + console.log(res) | |
525 | + }, | |
526 | + fail(res) { | |
527 | + console.log(res) | |
528 | + } | |
529 | + }) | |
272 | 530 | }, |
273 | 531 | |
274 | 532 | /** | ... | ... |
1 | 1 | <!--pages/main//editinfo/editinfo.wxml--> |
2 | -<import src="../../common/picker_cell_normal" /> | |
2 | +<import src="../../common/picker_cell" /> | |
3 | 3 | |
4 | 4 | <view class='page'> |
5 | 5 | <form bindsubmit='formBindSubmit'> |
6 | 6 | |
7 | 7 | <!-- 成员关系 --> |
8 | - <view class='head_wrap' hidden="{{taxInfo.family_ties?false:true}}"> | |
8 | + <view class='head_wrap' hidden="{{isself}}"> | |
9 | 9 | <text class='head_text_wrap1'>成员关系</text> |
10 | 10 | </view> |
11 | - <view class='data_list' hidden="{{taxInfo.family_ties?false:true}}"> | |
11 | + <view class='data_list' hidden="{{isself}}"> | |
12 | 12 | <view class='data_item'> |
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='请填写姓名' value='{{name}}'></input> | |
16 | + <input class='input_wrap float_right' placeholder='请填写姓名' name='name' value='{{name}}'></input> | |
17 | 17 | </view> |
18 | 18 | <view class="divide_line"></view> |
19 | 19 | <!-- <view class='item_body' bindtap='openpicker'> |
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | |
43 | 43 | <view class='data_list'> |
44 | 44 | <view class='data_item'> |
45 | - <view class='item_body' hidden="{{taxInfo.family_ties?true:false}}"> | |
45 | + <view class='item_body' hidden="{{!isself}}"> | |
46 | 46 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
47 | 47 | <text class='text_black_28 float_left'>姓名</text> |
48 | 48 | <input class='input_wrap float_right' placeholder='请填写姓名' value='{{taxInfo.name}}'></input> |
... | ... | @@ -78,6 +78,7 @@ |
78 | 78 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
79 | 79 | <text class='text_black_28 float_left'>证照号码</text> |
80 | 80 | <image class='image_camera float_right' src='/images/camera.png'></image> |
81 | + <!-- <input class='input_wrap float_right'placeholder='请输入证件号码' value='{{id_card_number}}' name=''></input> --> | |
81 | 82 | <text class='text_333_28 float_right'>{{id_card_number}}</text> |
82 | 83 | </view> |
83 | 84 | <view class="divide_line"></view> |
... | ... | @@ -112,7 +113,7 @@ |
112 | 113 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
113 | 114 | <text class='text_333_28 float_right'></text> |
114 | 115 | </view> --> |
115 | - <template is="picker_cell_normal" data="{{...professionData}}" /> | |
116 | + <template is="picker_cell_mutiple" data="{{...professionData}}" /> | |
116 | 117 | <view class="divide_line"></view> |
117 | 118 | <!-- <view class='item_body'> |
118 | 119 | <text class='text_666_28 float_left'>学历</text> |
... | ... | @@ -123,7 +124,7 @@ |
123 | 124 | <view class="divide_line"></view> |
124 | 125 | <view class='item_body'> |
125 | 126 | <text class='text_666_28 float_left'>纳税人识别号</text> |
126 | - <input class='input_wrap float_right'></input> | |
127 | + <input class='input_wrap float_right' name='taxpayer_no' type='number'></input> | |
127 | 128 | </view> |
128 | 129 | <view class="divide_line"></view> |
129 | 130 | <!-- <view class='item_body'> |
... | ... | @@ -131,11 +132,11 @@ |
131 | 132 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
132 | 133 | <text class='text_333_28 float_right'></text> |
133 | 134 | </view> --> |
134 | - <template is="picker_cell_normal" data="{{...deformityInfo}}" /> | |
135 | + <template is="picker_cell_normal" data="{{...disabilityInfo}}" /> | |
135 | 136 | <view class="divide_line"></view> |
136 | 137 | <view class='item_body'> |
137 | 138 | <text class='text_666_28 float_left'>残疾证号</text> |
138 | - <input class='input_wrap float_right'></input> | |
139 | + <input class='input_wrap float_right' name='disability_no' type='number'></input> | |
139 | 140 | </view> |
140 | 141 | <view class="divide_line"></view> |
141 | 142 | <!-- <view class='item_body'> |
... | ... | @@ -147,7 +148,7 @@ |
147 | 148 | <view class="divide_line"></view> |
148 | 149 | <view class='item_body'> |
149 | 150 | <text class='text_666_28 float_left'>烈属证号</text> |
150 | - <input class='input_wrap float_right'></input> | |
151 | + <input class='input_wrap float_right' name='martyr_family_no' type='number'></input> | |
151 | 152 | </view> |
152 | 153 | <view class="divide_line"></view> |
153 | 154 | <!-- <view class='item_body'> |
... | ... | @@ -177,58 +178,62 @@ |
177 | 178 | <view class='item_body'> |
178 | 179 | <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> |
179 | 180 | <text class='text_black_28 float_left'>联系电话</text> |
180 | - <input class='input_wrap float_right' placeholder='请填写电话' value='{{taxInfo.mobile}}'></input> | |
181 | + <input class='input_wrap float_right' placeholder='请填写电话' value='{{taxInfo.mobile}}' name='mobile' type='number'></input> | |
181 | 182 | </view> |
182 | 183 | <!-- 非必填部分02 --> |
183 | 184 | <view hidden='{{!isshow02}}'> |
184 | 185 | <view class="divide_line"></view> |
185 | - <view class='item_body'> | |
186 | + <!-- <view class='item_body'> | |
186 | 187 | <text class='text_666_28 float_left'>联系地址</text> |
187 | 188 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
188 | 189 | <text class='text_333_28 float_right'></text> |
189 | - </view> | |
190 | + </view> --> | |
191 | + <template is="picker_cell_normal" data="{{...contactaddressInfo}}" /> | |
190 | 192 | <view class="divide_line"></view> |
191 | 193 | <view class='item_body'> |
192 | 194 | <text class='text_666_28 float_left'>详细地址</text> |
193 | - <input class='input_wrap float_right'></input> | |
195 | + <input class='input_wrap float_right' name='contact_address_detail'></input> | |
194 | 196 | </view> |
195 | 197 | <view class="divide_line"></view> |
196 | - <view class='item_body'> | |
198 | + <!-- <view class='item_body'> | |
197 | 199 | <text class='text_666_28 float_left'>开户银行</text> |
198 | 200 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
199 | 201 | <text class='text_333_28 float_right'></text> |
200 | - </view> | |
202 | + </view> --> | |
203 | + <template is="picker_cell_normal" data="{{...bankInfo}}" /> | |
201 | 204 | <view class="divide_line"></view> |
202 | 205 | <view class='item_body'> |
203 | 206 | <text class='text_666_28 float_left'>银行账号</text> |
204 | - <input class='input_wrap float_right'></input> | |
207 | + <input class='input_wrap float_right' name='bank_account'></input> | |
205 | 208 | </view> |
206 | 209 | <view class="divide_line"></view> |
207 | 210 | <view class='item_body'> |
208 | 211 | <text class='text_666_28 float_left'>电子邮箱</text> |
209 | - <input class='input_wrap float_right'></input> | |
212 | + <input class='input_wrap float_right' name='email'></input> | |
210 | 213 | </view> |
211 | 214 | <view class="divide_line"></view> |
212 | - <view class='item_body'> | |
215 | + <!-- <view class='item_body'> | |
213 | 216 | <text class='text_666_28 float_left'>居住地</text> |
214 | 217 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
215 | 218 | <text class='text_333_28 float_right'></text> |
216 | - </view> | |
219 | + </view> --> | |
220 | + <template is="picker_cell_normal" data="{{...currentaddressInfo}}" /> | |
217 | 221 | <view class="divide_line"></view> |
218 | 222 | <view class='item_body'> |
219 | 223 | <text class='text_666_28 float_left'>详细地址</text> |
220 | - <input class='input_wrap float_right'></input> | |
224 | + <input class='input_wrap float_right' name='current_address_detail'></input> | |
221 | 225 | </view> |
222 | 226 | <view class="divide_line"></view> |
223 | - <view class='item_body'> | |
227 | + <!-- <view class='item_body'> | |
224 | 228 | <text class='text_666_28 float_left'>户籍所在地</text> |
225 | 229 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
226 | 230 | <text class='text_333_28 float_right'></text> |
227 | - </view> | |
231 | + </view> --> | |
232 | + <template is="picker_cell_normal" data="{{...birthaddressInfo}}" /> | |
228 | 233 | <view class="divide_line"></view> |
229 | 234 | <view class='item_body'> |
230 | 235 | <text class='text_666_28 float_left'>详细地址</text> |
231 | - <input class='input_wrap float_right'></input> | |
236 | + <input class='input_wrap float_right' name='huji_address_detail'></input> | |
232 | 237 | </view> |
233 | 238 | <view class="divide_line"></view> |
234 | 239 | </view> |
... | ... | @@ -264,7 +269,7 @@ |
264 | 269 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
265 | 270 | <text class='text_333_28 float_right'></text> |
266 | 271 | </view> --> |
267 | - <template is="picker_cell_normal" data="{{...professionInfo}}" /> | |
272 | + <template is="picker_cell_normal" data="{{...specificIndustryInfo}}" /> | |
268 | 273 | <view hidden='{{!isshow03}}'> |
269 | 274 | <view class="divide_line"></view> |
270 | 275 | <!-- <view class='item_body'> |
... | ... | @@ -276,7 +281,7 @@ |
276 | 281 | <view class="divide_line"></view> |
277 | 282 | <view class='item_body'> |
278 | 283 | <text class='text_666_28 float_left'>公司股本总额</text> |
279 | - <input class='input_wrap float_right'></input> | |
284 | + <input class='input_wrap float_right' name='company_equity_total' type='digit'></input> | |
280 | 285 | </view> |
281 | 286 | <view class="divide_line"></view> |
282 | 287 | <!-- <view class='item_body'> |
... | ... | @@ -296,7 +301,7 @@ |
296 | 301 | <view class="divide_line"></view> |
297 | 302 | <view class='item_body'> |
298 | 303 | <text class='text_666_28 float_left'>工号</text> |
299 | - <input class='input_wrap float_right'></input> | |
304 | + <input class='input_wrap float_right' name='employee_no' type='number'></input> | |
300 | 305 | </view> |
301 | 306 | <view class="divide_line"></view> |
302 | 307 | <!-- <view class='item_body'> |
... | ... | @@ -308,7 +313,7 @@ |
308 | 313 | <view class="divide_line"></view> |
309 | 314 | <view class='item_body'> |
310 | 315 | <text class='text_666_28 float_left'>个人投资总额</text> |
311 | - <input class='input_wrap float_right'></input> | |
316 | + <input class='input_wrap float_right' name='personal_equity_total' type='digit'></input> | |
312 | 317 | </view> |
313 | 318 | <view class="divide_line"></view> |
314 | 319 | </view> |
... | ... | @@ -316,7 +321,7 @@ |
316 | 321 | |
317 | 322 | <view style='width:100%'> |
318 | 323 | <text class='text_666_28 float_left'>备注</text> |
319 | - <input class='extra_input' value='利用人力资源管理信息化平台,节省人员管理成本,降低用工管控风险'></input> | |
324 | + <input class='extra_input' value='' name='comment'></input> | |
320 | 325 | </view> |
321 | 326 | </view> |
322 | 327 | ... | ... |
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | |
3 | 3 | <view wx:if="{{taxlist.length>0}}"> |
4 | 4 | <block wx:for="{{taxlist}}" wx:key="" indx='index'> |
5 | - <view class='rectangle_solid_bg' bindtap='goadd' id='{{item.id}}' > | |
5 | + <!-- <view class='rectangle_solid_bg' bindtap='goadd' id='{{item.id}}' > | |
6 | 6 | <view style='padding:12rpx 22rpx'> |
7 | 7 | <text class='text_black_28'>{{item.name}}</text> |
8 | 8 | <text class='rectangle_orange_bg text_red_20' hidden="{{item.family_ties?false:true}}">{{item.family_ties}}</text> |
... | ... | @@ -17,12 +17,33 @@ |
17 | 17 | <image class='id_image_wrap' src='/images/id.png'></image> |
18 | 18 | <text class='text_999_22'>{{item.id_card_no}}</text> |
19 | 19 | </view> |
20 | + </view> --> | |
21 | + <view class='rectangle_solid_blue_bg'> | |
22 | + <view style='padding:11px 15px'> | |
23 | + <text class='text_white_32'>{{item.name}}</text> | |
24 | + <text class='text_gray_bg text_blue_20'>{{item.family_ties}}</text> | |
25 | + </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.mobile}}</text> | |
29 | + <text style='margin:0rpx 20rpx;color:#fff;height:14rpx'>|</text> | |
30 | + <image class='id_image_wrap' src='/images/id.png'></image> | |
31 | + <text class='text_white_22'>{{item.id_card_no}}</text> | |
32 | + </view> | |
20 | 33 | </view> |
34 | + <view class='rectangle_solid_bg' bindtap='goadd' id='{{item.id}}'> | |
35 | + <view style='padding: 0 15px '> | |
36 | + <image class='arrow_wrap' src='/images/arrow_right.png'> </image> | |
37 | + <text class='text_999_28'>去完善</text> | |
38 | + </view> | |
39 | + | |
40 | + </view> | |
41 | + | |
21 | 42 | </block> |
22 | 43 | </view> |
23 | 44 | |
24 | - <view class='rectangle_dashed_bg' bindtap="goadd" id='add'> | |
25 | - <view class='text_blue_28' style='padding:14rpx'> | |
45 | + <view class='rectangle_dashed_bg' bindtap="goadd" id=''> | |
46 | + <view class='text_blue_28' style='text-align:center'> | |
26 | 47 | 十 添加家庭成员 |
27 | 48 | </view> |
28 | 49 | </view> | ... | ... |
1 | 1 | /* pages/home/home.wxss */ |
2 | 2 | |
3 | +.page { | |
4 | + background-color: #fefefe; | |
5 | +} | |
6 | + | |
3 | 7 | .rectangle_solid_bg { |
4 | - margin: 20rpx 32rpx; | |
5 | - background: #fff; | |
6 | - box-shadow: 0 8rpx 28rpx 0 rgba(208, 208, 208, 0.50); | |
7 | - border-radius: 8rpx; | |
8 | + margin: 0rpx 32rpx; | |
9 | + height: 80rpx; | |
10 | + background-color: #fff; | |
11 | + border-radius: 0 0 4px 4px; | |
12 | + border: 1px solid #eee; | |
13 | + /* background-image: linear-gradient(-90deg, #6ca7ff 0%, #4b8cf6 100%); */ | |
14 | +} | |
15 | + | |
16 | +.rectangle_solid_blue_bg { | |
17 | + margin: 20rpx 32rpx 0; | |
18 | + height: 168rpx; | |
19 | + background-color: #fff; | |
20 | + border-radius: 4px 4px 0 0; | |
21 | + background-image: linear-gradient(-90deg, #6ca7ff 0%, #4b8cf6 100%); | |
8 | 22 | } |
9 | 23 | |
10 | 24 | .rectangle_dashed_bg { |
... | ... | @@ -16,67 +30,66 @@ |
16 | 30 | border-radius: 8rpx; |
17 | 31 | } |
18 | 32 | |
19 | -.rectangle_orange_bg { | |
33 | +.text_gray_bg { | |
20 | 34 | height: 32rpx; |
21 | 35 | margin: 0rpx 20rpx; |
22 | 36 | opacity: 0.5; |
23 | -background: #F9DCD6; | |
24 | -border-radius: 2px; | |
37 | + background: #DFECFE; | |
38 | + border-radius: 16px; | |
25 | 39 | } |
26 | 40 | |
27 | -.text_red_20 { | |
41 | +.text_blue_20 { | |
28 | 42 | font-family: PingFang-SC-Medium; |
29 | 43 | font-size: 20rpx; |
30 | - padding: 6rpx 14rpx; | |
44 | + padding: 6rpx 16rpx; | |
31 | 45 | text-align: center; |
32 | - color: #FF7052; | |
46 | + color: #357aeb; | |
33 | 47 | letter-spacing: 0.28; |
34 | 48 | } |
35 | 49 | |
36 | -.text_blue_28 { | |
50 | +.text_999_28 { | |
37 | 51 | font-family: PingFang-SC-Medium; |
38 | 52 | font-size: 28rpx; |
39 | - text-align: center; | |
40 | - color: #4E8FE7; | |
53 | + color: #357aeb; | |
54 | + line-height: 80rpx; | |
55 | + letter-spacing: 0.28px; | |
41 | 56 | } |
42 | 57 | |
43 | -.text_light_blue_28 { | |
58 | +.text_blue_28 { | |
44 | 59 | font-family: PingFang-SC-Medium; |
45 | 60 | font-size: 28rpx; |
46 | - margin-top: 10rpx; | |
47 | 61 | color: #357aeb; |
62 | + line-height: 68rpx; | |
48 | 63 | } |
49 | 64 | |
50 | -.text_black_28 { | |
51 | - font-family: PingFangSC-Regular; | |
52 | - font-size: 28rpx; | |
53 | - color: #000; | |
54 | - text-align: center; | |
65 | +.text_white_32 { | |
66 | + font-family: PingFangSC-Semibold; | |
67 | + font-size: 16px; | |
68 | + color: #fff; | |
69 | + line-height: 20px; | |
55 | 70 | } |
56 | 71 | |
57 | -.text_999_22 { | |
72 | +.text_white_22 { | |
58 | 73 | font-family: PingFangSC-Regular; |
59 | 74 | font-size: 22rpx; |
60 | - color: #999; | |
75 | + color: #fff; | |
61 | 76 | } |
62 | 77 | |
63 | 78 | .arrow_wrap { |
64 | 79 | width: 40rpx; |
65 | 80 | height: 40rpx; |
66 | - float:right; | |
67 | - margin-top: 9rpx; | |
81 | + float: right; | |
68 | 82 | vertical-align: center; |
69 | - margin-left:8rpx; | |
70 | 83 | } |
71 | 84 | |
72 | 85 | .phone_image_wrap { |
73 | - width: 12rpx; | |
86 | + width: 20rpx; | |
74 | 87 | height: 20rpx; |
75 | - margin-right:12rpx; | |
88 | + margin-right: 12rpx; | |
76 | 89 | } |
77 | 90 | |
78 | 91 | .id_image_wrap { |
79 | 92 | width: 30rpx; |
80 | 93 | height: 20rpx; |
81 | - margin-right:12rpx; | |
94 | + margin-right: 12rpx; | |
82 | 95 | } | ... | ... |
请
注册
或
登录
后发表评论