正在显示
4 个修改的文件
包含
65 行增加
和
41 行删除
... | ... | @@ -66,25 +66,32 @@ |
66 | 66 | </view> |
67 | 67 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> |
68 | 68 | <view style='height:90rpx;width:100%;clear:both;'> |
69 | - <text class='text_left'>配偶姓名</text> | |
70 | - <text class='text_right_333'>{{datas.spouse_name}}</text> | |
69 | + <text class='text_left'>是否有配偶</text> | |
70 | + <text class='text_right_333'>{{datas.has_spouse=='y'?"是":"否"}}</text> | |
71 | 71 | </view> |
72 | - <view style='height:90rpx;width:100%;clear:both;'> | |
73 | - <text class='text_left'>配偶证照类型</text> | |
74 | - <text class='text_right_333'>{{datas.spouse_id_card_type=='1'?"居民身份证":datas.spouse_id_card_type}}</text> | |
75 | - </view> | |
76 | - <view style='height:90rpx;width:100%;clear:both;'> | |
77 | - <text class='text_left'>配偶身份证照号码</text> | |
78 | - <text class='text_right_333'>{{datas.spouse_id_card_no}}</text> | |
79 | - </view> | |
80 | - <view style='height:90rpx;width:100%;clear:both;'> | |
81 | - <text class='text_left'>出生日期</text> | |
82 | - <text class='text_right_333'>{{datas.spouse_birthday>0?"datas.spouse_birthday":""}}</text> | |
83 | - </view> | |
84 | - <view style='height:90rpx;width:100%;clear:both;'> | |
85 | - <text class='text_left'>国籍</text> | |
86 | - <text class='text_right_333'>中国</text> | |
72 | + <view wx:if="{{datas.has_spouse=='y'}}"> | |
73 | + <view style='height:90rpx;width:100%;clear:both;'> | |
74 | + <text class='text_left'>配偶姓名</text> | |
75 | + <text class='text_right_333'>{{datas.spouse_name}}</text> | |
76 | + </view> | |
77 | + <view style='height:90rpx;width:100%;clear:both;'> | |
78 | + <text class='text_left'>配偶证照类型</text> | |
79 | + <text class='text_right_333'>{{datas.spouse_id_card_type=='1'?"居民身份证":datas.spouse_id_card_type}}</text> | |
80 | + </view> | |
81 | + <view style='height:90rpx;width:100%;clear:both;'> | |
82 | + <text class='text_left'>配偶身份证照号码</text> | |
83 | + <text class='text_right_333'>{{datas.spouse_id_card_no}}</text> | |
84 | + </view> | |
85 | + <view style='height:90rpx;width:100%;clear:both;'> | |
86 | + <text class='text_left'>出生日期</text> | |
87 | + <text class='text_right_333'>{{datas.spouse_birthday>0?"datas.spouse_birthday":""}}</text> | |
88 | + </view> | |
89 | + <view style='height:90rpx;width:100%;clear:both;'> | |
90 | + <text class='text_left'>国籍</text> | |
91 | + <text class='text_right_333'>中国</text> | |
92 | + </view> | |
87 | 93 | </view> |
94 | + | |
88 | 95 | </view> |
89 | 96 | |
90 | 97 | <!-- 赡养老人 --> |
... | ... | @@ -236,24 +243,31 @@ |
236 | 243 | </view> |
237 | 244 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> |
238 | 245 | <view style='height:90rpx;width:100%;clear:both;'> |
239 | - <text class='text_left'>配偶姓名</text> | |
240 | - <text class='text_right_333'>{{datas.spouse_name}}</text> | |
246 | + <text class='text_left'>是否有配偶</text> | |
247 | + <text class='text_right_333'>{{datas.has_spouse=='y'?"是":"否"}}</text> | |
241 | 248 | </view> |
242 | - <view style='height:90rpx;width:100%;clear:both;'> | |
243 | - <text class='text_left'>配偶证照类型</text> | |
244 | - <text class='text_right_333'>居民身份证</text> | |
245 | - </view> | |
246 | - <view style='height:90rpx;width:100%;clear:both;'> | |
247 | - <text class='text_left'>配偶身份证照号码</text> | |
248 | - <text class='text_right_333'>{{datas.spouse_id_card_no}}</text> | |
249 | - </view> | |
250 | - <view style='height:90rpx;width:100%;clear:both;'> | |
251 | - <text class='text_left'>出生日期</text> | |
252 | - <text class='text_right_333'>{{datas.birthday}}</text> | |
253 | - </view> | |
254 | - <view style='height:90rpx;width:100%;clear:both;'> | |
255 | - <text class='text_left'>国籍</text> | |
256 | - <text class='text_right_333'>中国</text> | |
249 | + <view wx:if="{{datas.has_spouse=='y'}}"> | |
250 | + <view style='height:90rpx;width:100%;clear:both;'> | |
251 | + <text class='text_left'>配偶姓名</text> | |
252 | + <text class='text_right_333'>{{datas.spouse_name}}</text> | |
253 | + </view> | |
254 | + <view style='height:90rpx;width:100%;clear:both;'> | |
255 | + <text class='text_left'>配偶证照类型</text> | |
256 | + <text class='text_right_333'>{{datas.spouse_id_card_type=='1'?"居民身份证":datas.spouse_id_card_type}}</text> | |
257 | + </view> | |
258 | + <view style='height:90rpx;width:100%;clear:both;'> | |
259 | + <text class='text_left'>配偶身份证照号码</text> | |
260 | + <text class='text_right_333'>{{datas.spouse_id_card_no}}</text> | |
261 | + </view> | |
262 | + <view style='height:90rpx;width:100%;clear:both;'> | |
263 | + <text class='text_left'>出生日期</text> | |
264 | + <text class='text_right_333'>{{datas.birthday}}</text> | |
265 | + </view> | |
266 | + <view style='height:90rpx;width:100%;clear:both;'> | |
267 | + <text class='text_left'>国籍</text> | |
268 | + <text class='text_right_333'>中国</text> | |
269 | + </view> | |
257 | 270 | </view> |
271 | + | |
258 | 272 | </view> |
259 | 273 | </scroll-view> |
\ No newline at end of file | ||
... | ... |
... | ... | @@ -186,6 +186,7 @@ Page({ |
186 | 186 | } |
187 | 187 | } |
188 | 188 | } |
189 | + newdata[i].id_card_no = this.formatIdNum(newdata[i].id_card_no) | |
189 | 190 | } |
190 | 191 | |
191 | 192 | var housetype_new = this.data.house_type |
... | ... | @@ -481,12 +482,14 @@ Page({ |
481 | 482 | |
482 | 483 | formatIdNum: function (idnum) { |
483 | 484 | if (idnum && idnum.length >= 6 && idnum.length < 10) { |
484 | - return idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length); | |
485 | - } else if (idnum.length >= 10) { | |
486 | - return idnum.substring(0, 4) + '****' + idnum.substring(idnum.length - 4, idnum.length); | |
487 | - } else { | |
488 | - return idnum | |
485 | + idnum = idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length); | |
486 | + } | |
487 | + if (idnum && idnum.length >= 10) { | |
488 | + idnum = idnum.substring(0, 4) + '****' + idnum.substring(idnum.length - 4, idnum.length); | |
489 | 489 | } |
490 | + | |
491 | + console.log("formatIdNum", idnum) | |
492 | + return idnum | |
490 | 493 | }, |
491 | 494 | |
492 | 495 | bindinput: function(e) { |
... | ... |
... | ... | @@ -220,7 +220,7 @@ |
220 | 220 | </view> |
221 | 221 | <view style='height:70rpx'> |
222 | 222 | <text class='text_999_28 ' style='line-height:70rpx'>共同赡养人证照号码:</text> |
223 | - <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{formatIdNum(itemdetail.id_card_no)}}</text> | |
223 | + <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{itemdetail.id_card_no}}</text> | |
224 | 224 | </view> |
225 | 225 | <view style='height:70rpx'> |
226 | 226 | <text class='text_999_28 ' style='line-height:70rpx'>共同赡养人出生日期:</text> |
... | ... | @@ -283,7 +283,7 @@ |
283 | 283 | </view> |
284 | 284 | <view style='height:70rpx'> |
285 | 285 | <text class='text_999_28 ' style='line-height:70rpx'>病人证照号码:</text> |
286 | - <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{formatIdNum(item.id_card_no)}}</text> | |
286 | + <text class='text_333_28 ' style='line-height:70rpx;margin-left:20rpx'>{{item.id_card_no}}</text> | |
287 | 287 | </view> |
288 | 288 | <view style='height:70rpx'> |
289 | 289 | <text class='text_999_28 ' style='line-height:70rpx'>病人出生日期:</text> |
... | ... |
请
注册
或
登录
后发表评论