|
@@ -21,7 +21,7 @@
|
|
<text v-else class="iconfont icon-top"></text>
|
|
<text v-else class="iconfont icon-top"></text>
|
|
<view class="list_1">
|
|
<view class="list_1">
|
|
<view class="other">
|
|
<view class="other">
|
|
- <text>{{item.customer.phone}}</text>
|
|
|
|
|
|
+ <text>{{item.customer?item.customer.phone:'暂无'}}</text>
|
|
<text>{{item.reply[0].time||'暂无'}}</text>
|
|
<text>{{item.reply[0].time||'暂无'}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="flie">
|
|
<view class="flie">
|
|
@@ -140,7 +140,9 @@
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
let list = res.data;
|
|
let list = res.data;
|
|
for (let val of list) {
|
|
for (let val of list) {
|
|
- val.customer.phone = val.customer.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
|
|
|
|
|
+ if (val.customer && val.customer.phone) {
|
|
|
|
+ val.customer.phone = val.customer.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
that.$set(that, `list`, list)
|
|
that.$set(that, `list`, list)
|
|
that.$set(that, `total`, res.total)
|
|
that.$set(that, `total`, res.total)
|