| this.setData({ | this.setData({ | ||||
| listLoading: false | 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 => { | }).catch(error => { | ||||
| console.log(error, 'error appletLogin') | console.log(error, 'error appletLogin') |
| <image class='own-head-img' src='{{item.senderHeadPortrait}}'></image> | <image class='own-head-img' src='{{item.senderHeadPortrait}}'></image> | ||||
| </view> | </view> | ||||
| </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> | </view> | ||||
| <!-- own结尾 --> | <!-- own结尾 --> | ||||
| </block> | </block> |
| .historyText { | .historyText { | ||||
| color: #ccc; | 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); | |||||
| } |