@@ -251,8 +251,10 @@ Page({ | |||
this.setData({ | |||
listLoading: false | |||
}) | |||
if(this.data.attentionTypeIds.length > 0 && res.data.total == 0){ | |||
this.getListData(1); | |||
if(this.data.attentionTypeIds){ | |||
if(this.data.attentionTypeIds.length > 0 && res.data.total == 0){ | |||
this.getListData(1); | |||
} | |||
} | |||
}).catch(error => { | |||
console.log(error, 'error appletLogin') |
@@ -29,8 +29,10 @@ | |||
<image class='own-head-img' src='{{item.senderHeadPortrait}}'></image> | |||
</view> | |||
</view> | |||
<view wx:else> | |||
{{ item.object.info }} \ {{ item.date }} | |||
<view wx:else class="product-item-view"> | |||
<view class="content-view"> | |||
{{ item.object.info }} \ {{ item.date }} | |||
</view> | |||
</view> | |||
<!-- own结尾 --> | |||
</block> |
@@ -285,3 +285,16 @@ page { | |||
.historyText { | |||
color: #ccc; | |||
} | |||
.product-item-view { | |||
width: 100%; | |||
margin-bottom: 15rpx; | |||
box-sizing: border-box; | |||
padding: 0 20rpx; | |||
} | |||
.product-item-view .content-view{ | |||
background: #fff; | |||
border-radius: 20rpx; | |||
box-shadow: -1px 3px 12px 4px | |||
rgba(186, 186, 186, 0.1); | |||
} |