<div class="payItem" v-for="(item, index) in payList.slice(0, 4)" :key="index"> <div> 在遍历的时候根据你的需求 遍历指定次数