提交 25a0bcfa82e9e785d0149aa797f0099272250d22

作者 wangyu
1 个父辈 e4a8f826

首页ui修改

989 Bytes | 宽: | 高:

810 Bytes | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

838 Bytes | 宽: | 高:

464 Bytes | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
@@ -10,7 +10,29 @@ @@ -10,7 +10,29 @@
10 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 10 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
11 11
12 <view class="weui-cell__bd"> 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 <view wx:if="{{selected}}" class="text_333_28 float_right">{{selected}}</view> 36 <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> 37 <view wx:elif="{{placeholder}}" class="text_333_28 float_right">{{placeholder}}</view>
16 </picker> 38 </picker>
@@ -23,6 +23,7 @@ @@ -23,6 +23,7 @@
23 color: #fff; 23 color: #fff;
24 text-align: center; 24 text-align: center;
25 background-color: #659CF7; 25 background-color: #659CF7;
  26 + background-image: linear-gradient(-90deg, #659CF7 0%, #357AEB 100%);
26 /* background:gradient(linear, 0 0, 0 bottom, from(#659CF7), to(#357AEB) */ 27 /* background:gradient(linear, 0 0, 0 bottom, from(#659CF7), to(#357AEB) */
27 } 28 }
28 29
@@ -10,107 +10,131 @@ Page({ @@ -10,107 +10,131 @@ Page({
10 isshow01: false, 10 isshow01: false,
11 isshow02: false, 11 isshow02: false,
12 isshow03: false, 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 relativeData: { 21 relativeData: {
21 - isrequre: true, 22 + isrequre: true,
22 label: '关系', 23 label: '关系',
23 - selected: '请选择关系', 24 + bindtype: 'relative',
  25 + placeholder: '请选择关系',
24 values: ["子女", "配偶"], 26 values: ["子女", "配偶"],
25 onChange: 'onPickerSelect' 27 onChange: 'onPickerSelect'
26 }, 28 },
27 personstatusData: { 29 personstatusData: {
28 isrequre: true, 30 isrequre: true,
29 label: '纳税人状态', 31 label: '纳税人状态',
30 - selected: '请选择纳税人状态', 32 + bindtype: 'personstatus',
  33 + placeholder: '请选择纳税人状态',
31 values: ["正常(在职)", "非正常"], 34 values: ["正常(在职)", "非正常"],
32 onChange: 'onPickerSelect' 35 onChange: 'onPickerSelect'
33 }, 36 },
34 cardtypeData: { 37 cardtypeData: {
35 isrequre: true, 38 isrequre: true,
36 label: '证照类型', 39 label: '证照类型',
  40 + bindtype: 'cardtype',
37 selected: '居民身份证', 41 selected: '居民身份证',
38 - values: ["居民身份证", "军官证",'士兵证','武警警官证','港澳居民来往大陆通行证','外交官证','中国护照',  
39 - '外国护照','香港永久性居民身份证','澳门特别行政区永久性居民身份证','台湾身份证','外国人永久居留证'], 42 + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照',
  43 + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证'
  44 + ],
40 onChange: 'onPickerSelect' 45 onChange: 'onPickerSelect'
41 }, 46 },
42 forignerInfo: { 47 forignerInfo: {
43 isrequre: true, 48 isrequre: true,
44 label: '是否境外人员', 49 label: '是否境外人员',
  50 + bindtype: 'forigner',
45 selected: '否', 51 selected: '否',
46 values: ["否", "是"], 52 values: ["否", "是"],
47 onChange: 'onPickerSelect' 53 onChange: 'onPickerSelect'
48 }, 54 },
  55 + bankInfo: {
  56 + label: '开户银行',
  57 + bindtype: 'bank',
  58 + placeholder: '请选择开户银行',
  59 + onChange: 'onPickerSelect'
  60 + },
49 genderData: { 61 genderData: {
50 label: '性别', 62 label: '性别',
51 - selected: '请选择性别', 63 + bindtype: 'gender',
  64 + placeholder: '请选择性别',
52 values: ["男", "女"], 65 values: ["男", "女"],
53 onChange: 'onPickerSelect' 66 onChange: 'onPickerSelect'
54 }, 67 },
55 professionData: { 68 professionData: {
  69 + mode: 'multiSelector',
56 label: '职业', 70 label: '职业',
57 - selected: '请选择职业',  
58 - values: [], 71 + bindtype: 'profession',
  72 + multiIndex: [0, 0, 0],
  73 + placeholder: '请选择职业',
59 onChange: 'onPickerSelect' 74 onChange: 'onPickerSelect'
60 }, 75 },
61 degreeData: { 76 degreeData: {
62 label: '学历', 77 label: '学历',
63 - selected: '请选择学历',  
64 - values: ["研究生", "大学本科",'大学本科以下'], 78 + bindtype: 'degree',
  79 + placeholder: '请选择学历',
  80 + values: ["研究生", "大学本科", '大学本科以下'],
65 onChange: 'onPickerSelect' 81 onChange: 'onPickerSelect'
66 }, 82 },
67 - deformityInfo: { 83 + disabilityInfo: {
68 label: '是否残疾', 84 label: '是否残疾',
69 - selected: '请选择是否残疾', 85 + bindtype: 'disable',
  86 + placeholder: '请选择是否残疾',
70 values: ["否", "是"], 87 values: ["否", "是"],
71 onChange: 'onPickerSelect' 88 onChange: 'onPickerSelect'
72 }, 89 },
73 lieshuInfo: { 90 lieshuInfo: {
74 label: '是否烈属', 91 label: '是否烈属',
75 - selected: '请选择是否烈属', 92 + bindtype: 'lieshu',
  93 + placeholder: '请选择是否烈属',
76 values: ["否", "是"], 94 values: ["否", "是"],
77 onChange: 'onPickerSelect' 95 onChange: 'onPickerSelect'
78 }, 96 },
79 lonelyolderInfo: { 97 lonelyolderInfo: {
80 label: '是否孤老', 98 label: '是否孤老',
81 - selected: '请选择是否孤老', 99 + bindtype: 'lonelyolder',
  100 + placeholder: '请选择是否孤老',
82 values: ["否", "是"], 101 values: ["否", "是"],
83 onChange: 'onPickerSelect' 102 onChange: 'onPickerSelect'
84 }, 103 },
85 investInfo: { 104 investInfo: {
86 isrequre: true, 105 isrequre: true,
87 label: '是否股东、投资者', 106 label: '是否股东、投资者',
88 - selected: '请选择是否股东、投资者', 107 + bindtype: 'invest',
  108 + placeholder: '请选择是否股东、投资者',
89 values: ["否", "是"], 109 values: ["否", "是"],
90 onChange: 'onPickerSelect' 110 onChange: 'onPickerSelect'
91 }, 111 },
92 - professionInfo: { 112 + specificIndustryInfo: {
93 isrequre: true, 113 isrequre: true,
94 label: '是否特定行业', 114 label: '是否特定行业',
95 - selected: '请选择是否特定行业', 115 + bindtype: 'specificIndustry',
  116 + placeholder: '请选择是否特定行业',
96 values: ["否", "是"], 117 values: ["否", "是"],
97 onChange: 'onPickerSelect' 118 onChange: 'onPickerSelect'
98 }, 119 },
99 employeeInfo: { 120 employeeInfo: {
100 label: '是否雇员', 121 label: '是否雇员',
101 - selected: '请选择是否雇员', 122 + bindtype: 'employee',
  123 + placeholder: '请选择是否雇员',
102 values: ["否", "是"], 124 values: ["否", "是"],
103 onChange: 'onPickerSelect' 125 onChange: 'onPickerSelect'
104 }, 126 },
105 investpersonalInfo: { 127 investpersonalInfo: {
106 label: '是否天使投资个人', 128 label: '是否天使投资个人',
107 - selected: '请选择是否天使投资个人', 129 + bindtype: 'investpersonal',
  130 + placeholder: '请选择是否天使投资个人',
108 values: ["否", "是"], 131 values: ["否", "是"],
109 onChange: 'onPickerSelect' 132 onChange: 'onPickerSelect'
110 }, 133 },
111 // 时间picker 134 // 时间picker
112 birthDate: { 135 birthDate: {
113 label: '出生年月', 136 label: '出生年月',
  137 + bindtype: 'birthday',
114 placeholder: '请选择出生日期', 138 placeholder: '请选择出生日期',
115 mode: "date", 139 mode: "date",
116 fields: "day", 140 fields: "day",
@@ -118,6 +142,7 @@ Page({ @@ -118,6 +142,7 @@ Page({
118 }, 142 },
119 startDate: { 143 startDate: {
120 label: '在职受雇日期', 144 label: '在职受雇日期',
  145 + bindtype: 'startday',
121 placeholder: '请选择受雇日期', 146 placeholder: '请选择受雇日期',
122 mode: "date", 147 mode: "date",
123 fields: "day", 148 fields: "day",
@@ -125,11 +150,31 @@ Page({ @@ -125,11 +150,31 @@ Page({
125 }, 150 },
126 endDate: { 151 endDate: {
127 label: '离职日期', 152 label: '离职日期',
  153 + bindtype: 'endday',
128 placeholder: '请选择离职日期', 154 placeholder: '请选择离职日期',
129 mode: "date", 155 mode: "date",
130 fields: "day", 156 fields: "day",
131 onChange: 'endChange', 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 condition: false 178 condition: false
134 }, 179 },
135 180
@@ -137,26 +182,37 @@ Page({ @@ -137,26 +182,37 @@ Page({
137 * 生命周期函数--监听页面加载 182 * 生命周期函数--监听页面加载
138 */ 183 */
139 onLoad: function(options) { 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 this.getproffessiondata() 197 this.getproffessiondata()
143 this.getbanklist() 198 this.getbanklist()
144 }, 199 },
145 200
146 - getpersonalTax:function(id){ 201 + getpersonalTax: function(id) {
147 var that = this 202 var that = this
148 var Authorization = app.globalData.Authorization; 203 var Authorization = app.globalData.Authorization;
149 wx.request({ 204 wx.request({
150 - url: baseUrl + 'persontax/v1/personal-taxes/'+id, 205 + url: baseUrl + 'persontax/v1/personal-taxes/' + id,
151 method: "GET", 206 method: "GET",
152 header: { 207 header: {
153 'content-type': 'application/json', // 默认值 208 'content-type': 'application/json', // 默认值
154 "Authorization": Authorization 209 "Authorization": Authorization
155 }, 210 },
156 - success: function (res) { 211 + success: function(res) {
157 console.log(res) 212 console.log(res)
158 that.setData({ 213 that.setData({
159 - taxInfo: res.data 214 + taxInfo: res.data,
  215 + isself: res.data.family_ties ? false : true
160 }) 216 })
161 }, 217 },
162 fail(res) { 218 fail(res) {
@@ -165,9 +221,10 @@ Page({ @@ -165,9 +221,10 @@ Page({
165 }) 221 })
166 }, 222 },
167 223
168 - getproffessiondata:function(){ 224 + getproffessiondata: function() {
169 var that = this 225 var that = this
170 var Authorization = app.globalData.Authorization; 226 var Authorization = app.globalData.Authorization;
  227 + var proffession_info = that.data.professionData
171 wx.request({ 228 wx.request({
172 url: baseUrl + 'common/v1/professions', 229 url: baseUrl + 'common/v1/professions',
173 method: "GET", 230 method: "GET",
@@ -175,21 +232,25 @@ Page({ @@ -175,21 +232,25 @@ Page({
175 'content-type': 'application/json', // 默认值 232 'content-type': 'application/json', // 默认值
176 "Authorization": Authorization 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 that.setData({ 238 that.setData({
181 - proffessiondata:res.data 239 + proffessionlist: res.data.items,
  240 + professionData: proffession_info
182 }) 241 })
183 }, 242 },
184 fail(res) { 243 fail(res) {
185 console.log(res) 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 var that = this 251 var that = this
192 var Authorization = app.globalData.Authorization; 252 var Authorization = app.globalData.Authorization;
  253 + var bank_info = that.data.bankInfo
193 wx.request({ 254 wx.request({
194 url: baseUrl + 'walletmgm/v1/bankinfos', 255 url: baseUrl + 'walletmgm/v1/bankinfos',
195 method: "GET", 256 method: "GET",
@@ -197,11 +258,15 @@ Page({ @@ -197,11 +258,15 @@ Page({
197 'content-type': 'application/json', // 默认值 258 'content-type': 'application/json', // 默认值
198 "Authorization": Authorization 259 "Authorization": Authorization
199 }, 260 },
200 - success: function (res) { 261 + success: function(res) {
201 console.log(res) 262 console.log(res)
  263 + bank_info.values = that.handleBankinfo(res.data.items)
  264 +
202 that.setData({ 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 fail(res) { 271 fail(res) {
207 console.log(res) 272 console.log(res)
@@ -209,6 +274,14 @@ Page({ @@ -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,7 +299,7 @@ Page({
226 success: function(res) { 299 success: function(res) {
227 console.log(res.data) 300 console.log(res.data)
228 that.setData({ 301 that.setData({
229 - name:res.data.name, 302 + name: res.data.name,
230 id_card_number: res.data.id_card_number 303 id_card_number: res.data.id_card_number
231 }) 304 })
232 }, 305 },
@@ -252,23 +325,208 @@ Page({ @@ -252,23 +325,208 @@ Page({
252 }, 325 },
253 326
254 onPickerSelect: function(e) { 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 getIdInfo: function(e) { 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 <!--pages/main//editinfo/editinfo.wxml--> 1 <!--pages/main//editinfo/editinfo.wxml-->
2 -<import src="../../common/picker_cell_normal" /> 2 +<import src="../../common/picker_cell" />
3 3
4 <view class='page'> 4 <view class='page'>
5 <form bindsubmit='formBindSubmit'> 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 <text class='head_text_wrap1'>成员关系</text> 9 <text class='head_text_wrap1'>成员关系</text>
10 </view> 10 </view>
11 - <view class='data_list' hidden="{{taxInfo.family_ties?false:true}}"> 11 + <view class='data_list' hidden="{{isself}}">
12 <view class='data_item'> 12 <view class='data_item'>
13 <view class='item_body'> 13 <view class='item_body'>
14 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> 14 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
15 <text class='text_black_28 float_left'>姓名</text> 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 </view> 17 </view>
18 <view class="divide_line"></view> 18 <view class="divide_line"></view>
19 <!-- <view class='item_body' bindtap='openpicker'> 19 <!-- <view class='item_body' bindtap='openpicker'>
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 42
43 <view class='data_list'> 43 <view class='data_list'>
44 <view class='data_item'> 44 <view class='data_item'>
45 - <view class='item_body' hidden="{{taxInfo.family_ties?true:false}}"> 45 + <view class='item_body' hidden="{{!isself}}">
46 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> 46 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
47 <text class='text_black_28 float_left'>姓名</text> 47 <text class='text_black_28 float_left'>姓名</text>
48 <input class='input_wrap float_right' placeholder='请填写姓名' value='{{taxInfo.name}}'></input> 48 <input class='input_wrap float_right' placeholder='请填写姓名' value='{{taxInfo.name}}'></input>
@@ -78,6 +78,7 @@ @@ -78,6 +78,7 @@
78 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> 78 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
79 <text class='text_black_28 float_left'>证照号码</text> 79 <text class='text_black_28 float_left'>证照号码</text>
80 <image class='image_camera float_right' src='/images/camera.png'></image> 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 <text class='text_333_28 float_right'>{{id_card_number}}</text> 82 <text class='text_333_28 float_right'>{{id_card_number}}</text>
82 </view> 83 </view>
83 <view class="divide_line"></view> 84 <view class="divide_line"></view>
@@ -112,7 +113,7 @@ @@ -112,7 +113,7 @@
112 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 113 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
113 <text class='text_333_28 float_right'></text> 114 <text class='text_333_28 float_right'></text>
114 </view> --> 115 </view> -->
115 - <template is="picker_cell_normal" data="{{...professionData}}" /> 116 + <template is="picker_cell_mutiple" data="{{...professionData}}" />
116 <view class="divide_line"></view> 117 <view class="divide_line"></view>
117 <!-- <view class='item_body'> 118 <!-- <view class='item_body'>
118 <text class='text_666_28 float_left'>学历</text> 119 <text class='text_666_28 float_left'>学历</text>
@@ -123,7 +124,7 @@ @@ -123,7 +124,7 @@
123 <view class="divide_line"></view> 124 <view class="divide_line"></view>
124 <view class='item_body'> 125 <view class='item_body'>
125 <text class='text_666_28 float_left'>纳税人识别号</text> 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 </view> 128 </view>
128 <view class="divide_line"></view> 129 <view class="divide_line"></view>
129 <!-- <view class='item_body'> 130 <!-- <view class='item_body'>
@@ -131,11 +132,11 @@ @@ -131,11 +132,11 @@
131 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 132 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
132 <text class='text_333_28 float_right'></text> 133 <text class='text_333_28 float_right'></text>
133 </view> --> 134 </view> -->
134 - <template is="picker_cell_normal" data="{{...deformityInfo}}" /> 135 + <template is="picker_cell_normal" data="{{...disabilityInfo}}" />
135 <view class="divide_line"></view> 136 <view class="divide_line"></view>
136 <view class='item_body'> 137 <view class='item_body'>
137 <text class='text_666_28 float_left'>残疾证号</text> 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 </view> 140 </view>
140 <view class="divide_line"></view> 141 <view class="divide_line"></view>
141 <!-- <view class='item_body'> 142 <!-- <view class='item_body'>
@@ -147,7 +148,7 @@ @@ -147,7 +148,7 @@
147 <view class="divide_line"></view> 148 <view class="divide_line"></view>
148 <view class='item_body'> 149 <view class='item_body'>
149 <text class='text_666_28 float_left'>烈属证号</text> 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 </view> 152 </view>
152 <view class="divide_line"></view> 153 <view class="divide_line"></view>
153 <!-- <view class='item_body'> 154 <!-- <view class='item_body'>
@@ -177,58 +178,62 @@ @@ -177,58 +178,62 @@
177 <view class='item_body'> 178 <view class='item_body'>
178 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> 179 <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
179 <text class='text_black_28 float_left'>联系电话</text> 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 </view> 182 </view>
182 <!-- 非必填部分02 --> 183 <!-- 非必填部分02 -->
183 <view hidden='{{!isshow02}}'> 184 <view hidden='{{!isshow02}}'>
184 <view class="divide_line"></view> 185 <view class="divide_line"></view>
185 - <view class='item_body'> 186 + <!-- <view class='item_body'>
186 <text class='text_666_28 float_left'>联系地址</text> 187 <text class='text_666_28 float_left'>联系地址</text>
187 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 188 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
188 <text class='text_333_28 float_right'></text> 189 <text class='text_333_28 float_right'></text>
189 - </view> 190 + </view> -->
  191 + <template is="picker_cell_normal" data="{{...contactaddressInfo}}" />
190 <view class="divide_line"></view> 192 <view class="divide_line"></view>
191 <view class='item_body'> 193 <view class='item_body'>
192 <text class='text_666_28 float_left'>详细地址</text> 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 </view> 196 </view>
195 <view class="divide_line"></view> 197 <view class="divide_line"></view>
196 - <view class='item_body'> 198 + <!-- <view class='item_body'>
197 <text class='text_666_28 float_left'>开户银行</text> 199 <text class='text_666_28 float_left'>开户银行</text>
198 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 200 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
199 <text class='text_333_28 float_right'></text> 201 <text class='text_333_28 float_right'></text>
200 - </view> 202 + </view> -->
  203 + <template is="picker_cell_normal" data="{{...bankInfo}}" />
201 <view class="divide_line"></view> 204 <view class="divide_line"></view>
202 <view class='item_body'> 205 <view class='item_body'>
203 <text class='text_666_28 float_left'>银行账号</text> 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 </view> 208 </view>
206 <view class="divide_line"></view> 209 <view class="divide_line"></view>
207 <view class='item_body'> 210 <view class='item_body'>
208 <text class='text_666_28 float_left'>电子邮箱</text> 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 </view> 213 </view>
211 <view class="divide_line"></view> 214 <view class="divide_line"></view>
212 - <view class='item_body'> 215 + <!-- <view class='item_body'>
213 <text class='text_666_28 float_left'>居住地</text> 216 <text class='text_666_28 float_left'>居住地</text>
214 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 217 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
215 <text class='text_333_28 float_right'></text> 218 <text class='text_333_28 float_right'></text>
216 - </view> 219 + </view> -->
  220 + <template is="picker_cell_normal" data="{{...currentaddressInfo}}" />
217 <view class="divide_line"></view> 221 <view class="divide_line"></view>
218 <view class='item_body'> 222 <view class='item_body'>
219 <text class='text_666_28 float_left'>详细地址</text> 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 </view> 225 </view>
222 <view class="divide_line"></view> 226 <view class="divide_line"></view>
223 - <view class='item_body'> 227 + <!-- <view class='item_body'>
224 <text class='text_666_28 float_left'>户籍所在地</text> 228 <text class='text_666_28 float_left'>户籍所在地</text>
225 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 229 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
226 <text class='text_333_28 float_right'></text> 230 <text class='text_333_28 float_right'></text>
227 - </view> 231 + </view> -->
  232 + <template is="picker_cell_normal" data="{{...birthaddressInfo}}" />
228 <view class="divide_line"></view> 233 <view class="divide_line"></view>
229 <view class='item_body'> 234 <view class='item_body'>
230 <text class='text_666_28 float_left'>详细地址</text> 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 </view> 237 </view>
233 <view class="divide_line"></view> 238 <view class="divide_line"></view>
234 </view> 239 </view>
@@ -264,7 +269,7 @@ @@ -264,7 +269,7 @@
264 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 269 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
265 <text class='text_333_28 float_right'></text> 270 <text class='text_333_28 float_right'></text>
266 </view> --> 271 </view> -->
267 - <template is="picker_cell_normal" data="{{...professionInfo}}" /> 272 + <template is="picker_cell_normal" data="{{...specificIndustryInfo}}" />
268 <view hidden='{{!isshow03}}'> 273 <view hidden='{{!isshow03}}'>
269 <view class="divide_line"></view> 274 <view class="divide_line"></view>
270 <!-- <view class='item_body'> 275 <!-- <view class='item_body'>
@@ -276,7 +281,7 @@ @@ -276,7 +281,7 @@
276 <view class="divide_line"></view> 281 <view class="divide_line"></view>
277 <view class='item_body'> 282 <view class='item_body'>
278 <text class='text_666_28 float_left'>公司股本总额</text> 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 </view> 285 </view>
281 <view class="divide_line"></view> 286 <view class="divide_line"></view>
282 <!-- <view class='item_body'> 287 <!-- <view class='item_body'>
@@ -296,7 +301,7 @@ @@ -296,7 +301,7 @@
296 <view class="divide_line"></view> 301 <view class="divide_line"></view>
297 <view class='item_body'> 302 <view class='item_body'>
298 <text class='text_666_28 float_left'>工号</text> 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 </view> 305 </view>
301 <view class="divide_line"></view> 306 <view class="divide_line"></view>
302 <!-- <view class='item_body'> 307 <!-- <view class='item_body'>
@@ -308,7 +313,7 @@ @@ -308,7 +313,7 @@
308 <view class="divide_line"></view> 313 <view class="divide_line"></view>
309 <view class='item_body'> 314 <view class='item_body'>
310 <text class='text_666_28 float_left'>个人投资总额</text> 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 </view> 317 </view>
313 <view class="divide_line"></view> 318 <view class="divide_line"></view>
314 </view> 319 </view>
@@ -316,7 +321,7 @@ @@ -316,7 +321,7 @@
316 321
317 <view style='width:100%'> 322 <view style='width:100%'>
318 <text class='text_666_28 float_left'>备注</text> 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 </view> 325 </view>
321 </view> 326 </view>
322 327
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 2
3 <view wx:if="{{taxlist.length>0}}"> 3 <view wx:if="{{taxlist.length>0}}">
4 <block wx:for="{{taxlist}}" wx:key="" indx='index'> 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 <view style='padding:12rpx 22rpx'> 6 <view style='padding:12rpx 22rpx'>
7 <text class='text_black_28'>{{item.name}}</text> 7 <text class='text_black_28'>{{item.name}}</text>
8 <text class='rectangle_orange_bg text_red_20' hidden="{{item.family_ties?false:true}}">{{item.family_ties}}</text> 8 <text class='rectangle_orange_bg text_red_20' hidden="{{item.family_ties?false:true}}">{{item.family_ties}}</text>
@@ -17,12 +17,33 @@ @@ -17,12 +17,33 @@
17 <image class='id_image_wrap' src='/images/id.png'></image> 17 <image class='id_image_wrap' src='/images/id.png'></image>
18 <text class='text_999_22'>{{item.id_card_no}}</text> 18 <text class='text_999_22'>{{item.id_card_no}}</text>
19 </view> 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 </view> 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 </block> 42 </block>
22 </view> 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 </view> 48 </view>
28 </view> 49 </view>
1 /* pages/home/home.wxss */ 1 /* pages/home/home.wxss */
2 2
  3 +.page {
  4 + background-color: #fefefe;
  5 +}
  6 +
3 .rectangle_solid_bg { 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 .rectangle_dashed_bg { 24 .rectangle_dashed_bg {
@@ -16,67 +30,66 @@ @@ -16,67 +30,66 @@
16 border-radius: 8rpx; 30 border-radius: 8rpx;
17 } 31 }
18 32
19 -.rectangle_orange_bg { 33 +.text_gray_bg {
20 height: 32rpx; 34 height: 32rpx;
21 margin: 0rpx 20rpx; 35 margin: 0rpx 20rpx;
22 opacity: 0.5; 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 font-family: PingFang-SC-Medium; 42 font-family: PingFang-SC-Medium;
29 font-size: 20rpx; 43 font-size: 20rpx;
30 - padding: 6rpx 14rpx; 44 + padding: 6rpx 16rpx;
31 text-align: center; 45 text-align: center;
32 - color: #FF7052; 46 + color: #357aeb;
33 letter-spacing: 0.28; 47 letter-spacing: 0.28;
34 } 48 }
35 49
36 -.text_blue_28 { 50 +.text_999_28 {
37 font-family: PingFang-SC-Medium; 51 font-family: PingFang-SC-Medium;
38 font-size: 28rpx; 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 font-family: PingFang-SC-Medium; 59 font-family: PingFang-SC-Medium;
45 font-size: 28rpx; 60 font-size: 28rpx;
46 - margin-top: 10rpx;  
47 color: #357aeb; 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 font-family: PingFangSC-Regular; 73 font-family: PingFangSC-Regular;
59 font-size: 22rpx; 74 font-size: 22rpx;
60 - color: #999; 75 + color: #fff;
61 } 76 }
62 77
63 .arrow_wrap { 78 .arrow_wrap {
64 width: 40rpx; 79 width: 40rpx;
65 height: 40rpx; 80 height: 40rpx;
66 - float:right;  
67 - margin-top: 9rpx; 81 + float: right;
68 vertical-align: center; 82 vertical-align: center;
69 - margin-left:8rpx;  
70 } 83 }
71 84
72 .phone_image_wrap { 85 .phone_image_wrap {
73 - width: 12rpx; 86 + width: 20rpx;
74 height: 20rpx; 87 height: 20rpx;
75 - margin-right:12rpx; 88 + margin-right: 12rpx;
76 } 89 }
77 90
78 .id_image_wrap { 91 .id_image_wrap {
79 width: 30rpx; 92 width: 30rpx;
80 height: 20rpx; 93 height: 20rpx;
81 - margin-right:12rpx; 94 + margin-right: 12rpx;
82 } 95 }
注册登录 后发表评论