注意:1.v-for绑定在uni-collapse中,手风琴讲不生效,我们要另外包一层view
2.change事件只有在uni-collapse中生效,我们只需改为click事件即可
<uni-collapse ref="collapse" accordion>
<view v-for="item in projectList" @click="getSublist(item.projectSn)">
<uni-collapse-item :title="item.projectName" :name="item.id" :key="item.id">
<view style="position: absolute;top: 0;"></view>
<view class="content">
<view v-for="inlineItem in videoList" :key="inlineItem.id" class="content-item"
@click.stop="goToPath(inlineItem.projectSn,inlineItem.equipmentName)">
{{ inlineItem.equipmentName }}
</view>
</view>
</uni-collapse-item>
</view>
</uni-collapse>