Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | </view> |
44 | 44 | <view class="item-text text-clip"> |
45 | 45 | <text |
46 | - class="text-muted">{{ item.details == null ? '暂无数据' : formatDetailText(item.details.data) }}</text> | |
46 | + class="text-muted">{{ item.details == null ? '暂无数据' : formatDetailText(item.details) }}</text> | |
47 | 47 | </view> |
48 | 48 | <view class="item-text"> |
49 | 49 | <text class="text-muted"> |
... | ... | @@ -487,7 +487,7 @@ |
487 | 487 | organizationName: e.organizationName, |
488 | 488 | details: e.details, |
489 | 489 | createdTime: e.createdTime, |
490 | - status: e.status, | |
490 | + status: e.status, | |
491 | 491 | type: e.type |
492 | 492 | }; |
493 | 493 | uni.navigateTo({ |
... | ... | @@ -496,7 +496,7 @@ |
496 | 496 | }, |
497 | 497 | formatDetailText(e) { |
498 | 498 | //去除字符串双引号 |
499 | - const jsonStr = JSON.stringify(e); | |
499 | + const jsonStr = JSON.stringify(e.data?e.data:e); | |
500 | 500 | const str = jsonStr.substring(1, jsonStr.length - 1); |
501 | 501 | const newStr = str.replace(/\"/g, ''); |
502 | 502 | return newStr; | ... | ... |