| | |
| | | </view> |
| | | <view class="content-wrap"> |
| | | <text class="name">{{Pdata.recipientName}}</text> |
| | | <text class="mess">{{Pdata.postMessage}}</text> |
| | | <text class="mess">{{isJSON(Pdata.postMessage) == true ? '[语音]' : Pdata.postMessage}}</text> |
| | | </view> |
| | | <view class="data-wrap"> |
| | | <text class="data">{{Pdata.postTime}}</text> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | isJSON(str) { |
| | | |
| | | if (typeof str == 'string') { |
| | | try { |
| | | var obj = JSON.parse(str); |
| | | if (typeof obj == 'object' && obj) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | |
| | | } catch (e) { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | }, |
| | | beginObj() { |
| | | this.bmainb = '3rem'; |
| | | //#ifdef MP-WEIXIN |