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>

展开全部
收起
0回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部