问题描述:
会员等级可滑动。
解决方法:
pages/users/user_vip/index.vue,找到这个文件,对照下列代码修改。
<view class="steps acea-row row-center-wrapper" v-if="VipList.length && VipList.length < 6">
<view v-for="(item, index) in VipList" :key="item.id" :class="{ success: currentIndex == index }" class="item">
<view class="head">
<view class="line"></view>
<view class="icon acea-row row-center-wrapper">
<view class="inner"></view>
</view>
</view>
<view class="main">{{ item.name }}</view>
</view>
</view>
<view class="steps" v-else>
<view class="px-40">
<scroll-view scroll-x="true" class="white-nowrap vertical-middle w-full" show-scrollbar="false">
<view class="inline-block item h-100" v-for="(item, index) in VipList" :key="item.id" :class="{ success: currentIndex == index }" >
<view class="head">
<view class="line"></view>
<view class="icon acea-row row-center-wrapper">
<view class="inner"></view>
</view>
</view>
<view class="main">{{ item.name }}</view>
</view>
</scroll-view>
</view>
</view>