//dom
<scroll-view class="content" scroll-y="true" style="height:340rpx" scroll-y bindscroll='onPageScrollIndex' enhanced="true" scroll-into-view="{
{toViewClick}}">
<view class="contain">
<!-- 这里index-list=[] 是为了清空vant自带的右侧索引栏-->
<van-index-bar highlight-color='#FF8B00' index-list="{
{[]}}">
<view wx:for="{
{ customerData }}" wx:key="index">
<van-index-anchor index="{
{item.letter}}" bindtap="letterClick" data-index='{
{index}}' id="section-{
{index}}" />
<view wx:for="{
{tagPopList}}" wx:for-item="ins" wx:key="ins">
<view class="sub_list actives dis-flex flex-y-center" wx:for="{
{10}}" wx:key="ins">未使用 <text style="font-size:16rpx;color:#4ECDC4;margin-left:6rpx" class="iconfont icon-gouxuan"></text></view>
</view>
</view>
</van-index-bar
微信小程序索引菜单
最新推荐文章于 2025-05-16 10:02:46 发布