景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

138 lines
2.3 KiB

<template>
<view class="item"
>
<view class="image" @click="showVideo(item, index)">
<image :src="item.spotImage && item.spotImage.split(',')[0]" mode="aspectFill">
</image>
</view>
<view class="bottom">
<view class="headImage">
{{ item.spotName }}
</view>
<view class="like">
<view class="">
查看详情
</view>
<view class=""
style="margin-top: 10rpx;">
<uv-icon size="26rpx"
name="arrow-right"></uv-icon>
</view>
</view>
</view>
</view>
</template>
<script>
import { mapState } from 'vuex'
export default {
props : {
item : {
default : {}
},
},
data() {
return {
queryParams: {
pageNo: 1,
pageSize: 10,
},
total : 0,
list : [],
}
},
computed : {
...mapState(['spotList']),
spotListWord(){
return this.spotList.filter(n => n.categoryId == 0)
},
},
methods: {
navigateTo(item){
this.$utils.navigateTo(`/pages_order/service/?id=${item.id}&type=Inheritance`)
},
}
}
</script>
<style scoped lang="scss">
.item {
background-color: #fff;
position: relative;
width: calc(50% - 20rpx);
margin-left: 20rpx;
margin-top: 20rpx;
.image {
position: relative;
width: 100%;
height: 420rpx;
overflow: hidden;
image {
width: 100%;
height: 420rpx;
border-radius: 30rpx;
}
.icon {
position: absolute;
right: 30rpx;
top: 30rpx;
width: 60rpx;
height: 60rpx;
background-color: #ffffffaa;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
}
.bottom {
font-size: 30rpx;
display: flex;
justify-content: space-between;
position: absolute;
bottom: 0;
left: 0;
background-color: #ffffffaa;
width: calc(100% - 40rpx);
padding: 30rpx;
font-weight: 900;
align-items: center;
.headImage {
display: flex;
align-items: center;
image {
width: 50rpx;
height: 50rpx;
border-radius: 50%;
margin-right: 6rpx;
}
}
.like {
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 22rpx;
}
}
}
.showVideo{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 1000%;
video{
// width: 100%;
// height: 100%;
}
}
</style>