Pārlūkot izejas kodu

修改首页关注类型非空判断!

release/210823_需求对对碰
王饶冀 pirms 4 gadiem
vecāks
revīzija
6b266954af

+ 4
- 2
pages/index/index.js Parādīt failu

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')

+ 4
- 2
pages/msgModule/wechat2/wechat2.wxml Parādīt failu

<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>

+ 13
- 0
pages/msgModule/wechat2/wechat2.wxss Parādīt failu

.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);
}

Notiek ielāde…
Atcelt
Saglabāt