const indexList = ref([{index: 'X', children: [{name: '谢X'}]}, {index: 'Z', children: [{name: '张X'}]}])
<view v-for="item in indexList" :key="item.index">
<u-index-anchor :index="item.index" />
<view class="list-cell-box">
<view @click="handleCheck(it.userId)" class="list-cell" v-for="it in item.children" :key="it.userId">
<view class="list-cell-name">{{ it.nickname }}</view>
<view class="list-cell-phone">{{ it.mobile }}</view>
<u-icon v-if="curUserId === it.userId" class="list-cell-icon" name="checkmark" size="28" color="#1677FF" />
</view>
</view>
</view>
</u-index-list>
const indexList = ref([{index: 'X', children: [{name: '谢X'}]}, {index: 'Z', children: [{name: '张X'}]}])