提交 489f9dbcbf86ac6fb9d36c7228e308726a83b8de

作者 wangyu
1 个父辈 1b4ebab9

优化自然人列表

... ... @@ -5,7 +5,7 @@
5 5 <view wx:for="{{additionlist}}" wx:key="" style='display:flex;flex-direction:column' wx:for-index="idx01" wx:for-item="item">
6 6 <view style='margin:30rpx 44rpx;float:left;display:flex;flex-direction:column'>
7 7 <text class=' text_333_40 float_left'>{{item.legal_entity}}</text>
8   - <view wx:if="{{item.status=='to_declare'&&item.addition_items.length<1}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'>
  8 + <view wx:if="{{item.status=='init'&&item.addition_items.length<1}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'>
9 9 <!-- <view wx:if="{{item.status=='to_declare'}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'> -->
10 10 立即申报
11 11 </view>
... ...
... ... @@ -94,7 +94,7 @@ Page({
94 94 console.log('taxInfo', res)
95 95 that.setData({
96 96 taxInfo: res.data,
97   - isself: res.data.family_ties ? false : true
  97 + isself: res.data.family_ties=='本人' ? true : false
98 98 })
99 99 that.handleDatas(res.data)
100 100 },
... ...
... ... @@ -260,7 +260,7 @@ Page({
260 260 that.setData({
261 261 taxInfo: res.data,
262 262 // isself: '魏先森' != res.data.name ? false : true
263   - isself: res.data.family_ties ? false : true
  263 + isself: res.data.family_ties=="本人" ? true : false
264 264 })
265 265 that.handleDatas(res.data)
266 266 },
... ...
... ... @@ -100,12 +100,16 @@ Page({
100 100 for (var i = 0; i < data.items.length; i++) {
101 101 data.items[i].newmobile = this.formatMobile(data.items[i].mobile)
102 102 data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no)
103   - if (i == 0) {
104   - data.items[i].relative = "本人"
  103 + data.items[i].relative = data.items[i].family_ties
  104 + if (data.items[i].family_ties=="本人"){
105 105 this.self_id = data.items[i].id
106   - }else{
107   - data.items[i].relative = data.items[i].family_ties
108 106 }
  107 + // if (i == 0) {
  108 + // data.items[i].relative = "本人"
  109 + // this.self_id = data.items[i].id
  110 + // }else{
  111 + // data.items[i].relative = data.items[i].family_ties
  112 + // }
109 113 datalist.push(data.items[i])
110 114 }
111 115 this.setData({
... ...
注册登录 后发表评论