![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/051744bb3aeb99aff90068081891e597.png)
//左按钮
<image src="" @click="slideLeft">
</image>
<scroll-view class="uni-swiper-tab" scroll-x ref="scrollView" :scroll-left="scrollLeft">
<view class="scrollx_items" v-for="(img,index) in scrollimg" :key="index" :class="scrollxIndex==index?'':'mengbu'" @click="previewImgClick(index)">
<image style="z-index:-1;" class="scrollx_items_img" :src="img" :class="scrollxIndex==index?'jinbian':''"></image>
</view>
</scroll-view>
//右按钮
<image @click="slideRight">
</image>
slideLeft(event) {
this.scrollLeft = event.detail.x-100;
},
slideRight(event) {
this.scrollLeft = event.detail.x+ 100;
}