正在显示
2 个修改的文件
包含
13 行增加
和
3 行删除
... | ... | @@ -67,6 +67,16 @@ Page({ |
67 | 67 | if (newdata.rent_end && newdata.rent_end > 0) { |
68 | 68 | newdata.rent_end = format.formatTime_date(newdata.rent_end) |
69 | 69 | } |
70 | + if (newdata.house_address) { | |
71 | + if (newdata.house_address.province == newdata.house_address.city) { | |
72 | + newdata.house_address_new = newdata.house_address.city + newdata.house_address.district | |
73 | + } else { | |
74 | + newdata.house_address_new = newdata.house_address.province + newdata.house_address.city + newdata.house_address.district | |
75 | + } | |
76 | + } | |
77 | + if (newdata.work_city) { | |
78 | + newdata.work_city_new = newdata.work_city.province + newdata.work_city.city | |
79 | + } | |
70 | 80 | this.setData({ |
71 | 81 | datas: newdata |
72 | 82 | }) | ... | ... |
... | ... | @@ -137,7 +137,7 @@ |
137 | 137 | <view wx:if="{{house_type=='house_fund_rent'}}"> |
138 | 138 | <view style='height:90rpx;width:100%'> |
139 | 139 | <text class='text_left'>主要工作城市</text> |
140 | - <text class='text_right_333'>{{datas.house_address}}</text> | |
140 | + <text class='text_right_333'>{{datas.work_city_new}}</text> | |
141 | 141 | </view> |
142 | 142 | <view style='height:90rpx'> |
143 | 143 | <text class='text_right_333'>{{datas.house_detail_address}}</text> |
... | ... | @@ -168,7 +168,7 @@ |
168 | 168 | <view style='width:100%;height:20rpx;background:#f9f9f9'></view> |
169 | 169 | <view style='height:90rpx;width:100%'> |
170 | 170 | <text class='text_left'>租赁房屋坐落地址</text> |
171 | - <text class='text_right_333'>{{datas.house_address}}</text> | |
171 | + <text class='text_right_333'>{{datas.house_address_new}}</text> | |
172 | 172 | </view> |
173 | 173 | <view style='height:90rpx'> |
174 | 174 | <text class='text_right_333'>{{datas.house_detail_address}}</text> |
... | ... | @@ -190,7 +190,7 @@ |
190 | 190 | <view wx:if="{{house_type=='house_fund_loan'}}"> |
191 | 191 | <view style='height:90rpx;width:100%'> |
192 | 192 | <text class='text_left'>房屋坐落地址</text> |
193 | - <text class='text_right_333'>{{datas.house_address}}</text> | |
193 | + <text class='text_right_333'>{{datas.house_address_new}}</text> | |
194 | 194 | </view> |
195 | 195 | <view style='height:90rpx'> |
196 | 196 | <text class='text_right_333'>{{datas.house_detail_address}}</text> | ... | ... |
请
注册
或
登录
后发表评论