正在显示
4 个修改的文件
包含
65 行增加
和
41 行删除
@@ -66,25 +66,32 @@ | @@ -66,25 +66,32 @@ | ||
66 | </view> | 66 | </view> |
67 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> | 67 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> |
68 | <view style='height:90rpx;width:100%;clear:both;'> | 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 | </view> | 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 | </view> | 93 | </view> |
94 | + | ||
88 | </view> | 95 | </view> |
89 | 96 | ||
90 | <!-- 赡养老人 --> | 97 | <!-- 赡养老人 --> |
@@ -236,24 +243,31 @@ | @@ -236,24 +243,31 @@ | ||
236 | </view> | 243 | </view> |
237 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> | 244 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> |
238 | <view style='height:90rpx;width:100%;clear:both;'> | 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 | </view> | 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 | </view> | 270 | </view> |
271 | + | ||
258 | </view> | 272 | </view> |
259 | </scroll-view> | 273 | </scroll-view> |
@@ -186,6 +186,7 @@ Page({ | @@ -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 | var housetype_new = this.data.house_type | 192 | var housetype_new = this.data.house_type |
@@ -481,12 +482,14 @@ Page({ | @@ -481,12 +482,14 @@ Page({ | ||
481 | 482 | ||
482 | formatIdNum: function (idnum) { | 483 | formatIdNum: function (idnum) { |
483 | if (idnum && idnum.length >= 6 && idnum.length < 10) { | 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 | bindinput: function(e) { | 495 | bindinput: function(e) { |
@@ -220,7 +220,7 @@ | @@ -220,7 +220,7 @@ | ||
220 | </view> | 220 | </view> |
221 | <view style='height:70rpx'> | 221 | <view style='height:70rpx'> |
222 | <text class='text_999_28 ' style='line-height:70rpx'>共同赡养人证照号码:</text> | 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 | </view> | 224 | </view> |
225 | <view style='height:70rpx'> | 225 | <view style='height:70rpx'> |
226 | <text class='text_999_28 ' style='line-height:70rpx'>共同赡养人出生日期:</text> | 226 | <text class='text_999_28 ' style='line-height:70rpx'>共同赡养人出生日期:</text> |
@@ -283,7 +283,7 @@ | @@ -283,7 +283,7 @@ | ||
283 | </view> | 283 | </view> |
284 | <view style='height:70rpx'> | 284 | <view style='height:70rpx'> |
285 | <text class='text_999_28 ' style='line-height:70rpx'>病人证照号码:</text> | 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 | </view> | 287 | </view> |
288 | <view style='height:70rpx'> | 288 | <view style='height:70rpx'> |
289 | <text class='text_999_28 ' style='line-height:70rpx'>病人出生日期:</text> | 289 | <text class='text_999_28 ' style='line-height:70rpx'>病人出生日期:</text> |
@@ -7,6 +7,13 @@ | @@ -7,6 +7,13 @@ | ||
7 | flex-wrap: nowrap; | 7 | flex-wrap: nowrap; |
8 | } | 8 | } |
9 | 9 | ||
10 | +.arrow_wrap { | ||
11 | + width: 40rpx; | ||
12 | + height: 40rpx; | ||
13 | + float: right; | ||
14 | + margin-top:24rpx; | ||
15 | +} | ||
16 | + | ||
10 | .text_num_wrap { | 17 | .text_num_wrap { |
11 | font-family: PingFangSC-Regular; | 18 | font-family: PingFangSC-Regular; |
12 | font-size: 18px; | 19 | font-size: 18px; |
请
注册
或
登录
后发表评论