- 当前 Bug 的表现(可附上截图)
【真机首页列表不渲染】之前一直正常使用。控制台没有报错,数据打印也没问题
- 预期表现
【开发者工具】正常的效果
- 复现路径
首页不可用,其它页面没问题
- 提供一个最简复现 Demo
首页 布局代码如下
<block wx:for="{{lessons}}" wx:key=’{{lesson.objectId}}’ wx:for-item=“lesson”>
<view class=‘card’>
<view class=‘card-body’ catchtap=“goLessonDetail” data-id=’{{lesson.objectId}}’>
<view class=‘card-body-bg’ style=“background-image: url({{lesson.lessonCover}})”></view>
<view wx:if="{{lesson.status == 1}}" class=‘lesson-status zan-font-12’ style=‘background-color: #3cc51f’>
考勤中
</view>
<view class=‘lesson-info’>
<p class=“zan-font-bold”>{{lesson.title}}</p>
<view class=“lesson-desc”>
<label class=‘zan-font-12’>{{lesson.address}}</label>
</view>
</view>
</view>
<view class=‘card-footer’>
<view class=‘zan-font-12’>
<view class=“zan-icon zan-icon-clock” style=“margin-right: 8px”></view>{{lesson.week}} {{lesson.time}}
</view>
<view class=‘teacher-info’>
<image class=“user-img” src="{{lesson.creator.avatarUrl}}"></image>
<text class=“zan-font-12 user-name”>{{lesson.creator.name || lesson.creator.nickName}}</text>
</view>
</view>
</view>
<ad wx:if="{{index===1}}" class=‘card’ unit-id=“adunit-5b8785ebe1364281”></ad>
</block>