<view class="cityItem" v-for="(item,index) of cityInfo" v-if="index<3" :key="index" > {{item.name}} </view>
通过循环出的下标来进行判断取值 这里是数组前三项