for developer:Do not set same key {true} in wx:key,
<!-- 分类 -->
<view class="layout cate">
<view class="title_left message-category">
<!--cate-active 选中 -->
<scroll-view class="flex" scroll-x="false" scroll-with-animation="true">
<view class="category {{labelType==index? 'cate-active' : ''}}" wx:for="{{hotStar}}" wx:key="hotStar" data-labelid="{{index}}" bindtap="tabFun">{{item.itemName}}</view>
</scroll-view>
</view>
<view class="scroll-view {{labelType==index? 'show-active' : 'hide-active'}}" wx:for="{{hotStar}}" wx:key="hotStar" wx:for-item="hotStar">
<scroll-view class="scroll-view_H" scroll-x="true" scroll-with-animation="true" scroll-into-view="{{toView}}" scroll-left="{{scrollTop}}">
<!-- 滚动第一个view -->
<view class="scroll-view-item_H" wx:for="{{hotStar.dtos}}" wx:key="hotStarVOs" data-id="{{item.starId}}">
<!-- 弹授权 -->
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo" class="scroll-view-item_H_C left" data-id="{{item.starId}}" data-status="热门人物" data-id="{{item.starId}}" plain>
<view class='img'>
<image lazy-load="true" wx:if="{{item.avatar != ''}}" src="{{item.avatar}}"></image>
<image lazy-load="true" wx:else src="{{imageUrl}}/images/index/placeholder@3x.png"></image>
</view>
<view class='info flex'>
<view class='product flex'>
<view class="title {{item.productVOs.length == ''?'active':''}}">{{item.peopleName}}</view>
<text class='line' wx:if="{{item.productVOs.length != ''}}">|</text>
<view class='product-name'>{{item.productVOs[0].productName}}</view>
</view>
<view class='people'>
<text>{{item.hotTitle==null?'-':item.hotTitle}}</text>
</view>
</view>
</button>
</view>
</scroll-view>
</view>
</view>
你好,请检查一下列表中的key值是否有重复
看了没有的
你好 问题具体出现在哪一个for循环上呢,麻烦提供一个能够简单复现问题的代码片段
我在看
已解决。谢谢
可以把解决过程发出来吗,这样子有利于帮助别人解决问题,社区是共同帮助而不是自己解决了就好哦~