Explorar el Código

工商查询查出数据为-的改为“”

xiaohaizhao hace 2 años
padre
commit
e9616c2ec3

+ 6 - 1
packageA/setclient/modules/information/index.js

@@ -50,7 +50,12 @@ Component({
                     icon: "none"
                     icon: "none"
                 });
                 });
                 this.setData({
                 this.setData({
-                    queryList: res.data,
+                    queryList: res.data.map(v => {
+                        for (const key in v) {
+                            if (v[key] == "-") v[key] = ''
+                        }
+                        return v
+                    }),
                     queryShow: true
                     queryShow: true
                 })
                 })
             })
             })

+ 1 - 1
packageA/setclient/modules/information/index.wxml

@@ -11,6 +11,6 @@
         <view class="exp">法人:{{item.legalPerson}} <text style="margin-left: 20rpx;">状态:{{item.bizStatus}}</text></view>
         <view class="exp">法人:{{item.legalPerson}} <text style="margin-left: 20rpx;">状态:{{item.bizStatus}}</text></view>
         <view class="exp">税号:{{item.taxNum}}</view>
         <view class="exp">税号:{{item.taxNum}}</view>
         <!-- <view class="exp">地区:{{item.regProvince + item.regCity+item.regArea}}</view> -->
         <!-- <view class="exp">地区:{{item.regProvince + item.regCity+item.regArea}}</view> -->
-        <view class="exp">地址:{{item.address}}</view>
+        <view class="exp">地址:{{item.address||' --'}}</view>
     </navigator>
     </navigator>
 </van-popup>
 </van-popup>