49 lines
1.4 KiB
Vue
49 lines
1.4 KiB
Vue
<template>
|
|
<scroll-view scroll-x>
|
|
<view :class="dataList.length == 4 ? 'disjbac' : 'disac'">
|
|
<view @tap.once="goDetail(item.id)" class="posir flexs" v-for="(item,index) in dataList" :key="index" style="width: 23%;height: 214rpx;" :style="{marginRight: dataList.length != 4 ? '20rpx' : ''}">
|
|
<image style="width: 100%;height: 214rpx;" class="radius10 " :src="item.imgsrc" mode="widthFix"></image>
|
|
<view class="posia scroll-title clips1">{{item.title}}</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name:"scroll-img",
|
|
props:{
|
|
dataList:{
|
|
type:Array,
|
|
default:()=>{
|
|
return [
|
|
{id:1,imgsrc:'/static/deleteImg/flying-img01.png',title:'控制室解决方案'},
|
|
{id:2,imgsrc:'/static/deleteImg/flying-img02.png',title:'户外屏解决方案'},
|
|
{id:3,imgsrc:'/static/deleteImg/flying-img03.png',title:'会议室解决方案'},
|
|
{id:4,imgsrc:'/static/deleteImg/flying-img04.png',title:'实体店解决方案'},
|
|
{id:5,imgsrc:'/static/deleteImg/flying-img04.png',title:'实体店解决方案'},
|
|
{id:6,imgsrc:'/static/deleteImg/flying-img04.png',title:'实体店解决方案'},
|
|
]
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.scroll-title {
|
|
bottom: 6rpx;
|
|
left: -40rpx;
|
|
right: -40rpx;
|
|
padding: 6rpx;
|
|
background-color: rgba(255,255,255,0.6);
|
|
transform: scale(.6);
|
|
text-align: center;
|
|
}
|
|
</style>
|