2***@qq.com
2***@qq.com
  • 发布:2020-04-16 11:22
  • 更新:2020-04-16 11:22
  • 阅读:776

【报Bug】两个scroller和recycle-list,recycle-list设置点击事件传值之后 第二个scroller点击失效

分类:nvue
<div>  
        <div>  
            <scroller v-if="maxClass.length!=0" class="class" scroll-direction="horizontal">  
                <div style="padding: 10px;" @click="maxClassClick(0)">  
                    <text class="class-text" :class="{'class-text-click':maxIs==0}">全部</text>  
                </div>  
                <div style="padding: 10px;" v-for="(v,i) in maxClass" @click="maxClassClick(i+1)">  
                    <text class="class-text" :class="{'class-text-click':maxIs==(i+1)}">{{v.title}}</text>  
                </div>  
            </scroller>  
            <scroller v-if="minClass.length!=0" class="class" scroll-direction="horizontal">  
                <div style="padding: 10px;" @click="minClassClick(0)">  
                    <text class="class-text" :class="{'class-text-click':minIs==0}">全部</text>  
                </div>  
                <div style="padding: 10px;" v-for="(v,i) in minClass" @click="minClassClick(i+1)">  
                    <text class="class-text" :class="{'class-text-click':minIs==(i+1)}">{{v.title}}</text>  
                </div>  
            </scroller>  
        </div>  
        <recycle-list for="v in dataList">  
            <cell-slot>  
                <div style="padding: 10px;border-bottom-width: 1px;border-bottom-color: #F8F8F8;" @click="clicks(1)">  
                    <text style="font-size: 14px;font-weight: bold;color: #000;">{{v.title}}</text>  
                    <text style="font-size: 14px;color: #000;">{{v.text}}</text>  
                    <text style="font-size: 12px;color: #333;text-align: right;">{{v.date}}</text>  
                </div>  
            </cell-slot>  
        </recycle-list>  
    </div>
2020-04-16 11:22 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复