<view class="scroll-texts">
<scroll-view scroll-y="true" class="scroll-Y none_dis" :class="(index == btn_num && btn_tag == false) ? 'div_dis' : 'none_dis'">
<view class="scroll-text">
{{item.course.course_profile}}
</view>
</scroll-view>
<view class="scroll-Yed" :class="((index == btn_num && btn_tag == true) || (btn_num == -1 && btn_tag == true)) ? 'div_dis' : 'none_dis'">
{{item.course.course_profile}}
</view>
<view class="scroll-btn flexcenter" @tap.stop="openBtn(index)">
<view class="scroll-btn-text">
{{((index == btn_num && btn_tag == true) || (btn_num == -1 && btn_tag == true)) ? '详情' : '收起'}}
</view>
<view class="scroll-btn-img">
<image :src="((index == btn_num && btn_tag == true) || (btn_num == -1 && btn_tag == true)) ? '/static/sign-up/open.png' : '/static/sign-up/close.png'" mode=""></image>
</view>
</view>
v-for循环中,每个块的点击事件互不影响
最新推荐文章于 2023-09-12 16:11:50 发布