1.左边滚动条
左边标签
<scroll-view scroll-y="true" :style="'height:'+scrollH+'px'" :scroll-into-view="leftscrollinto">
<view v-for="(item,index) in cares" :k='index' @click="changeIndex(index)"
:class="currentIndex==index? 'action':''" :id="'tab'+index">{
{item.name}}</view>
</scroll-view>
2.右边滚动条
右边标签
<scroll-view scroll-y="true" :style="'height:'+scrollH+'px'"
@scroll="scrollright" :scroll-into-view="rightscrollinto">
<view v-for="(j,i) in cares" :k='i' :id="'rightscroll'+i" class="right-item">
<view v-for="(item,z) in j.app_category_items" :key="z" style="height: 200rpx;">
<image :src="图片位置" mode="" class="image"></image>
<view class="">{
{item.name}}</view> //图片下的字
</view>
</view>
</scroll-view>
点击左边字体后实现右边图片跟随
data() {