|
|
@ -4,27 +4,27 @@ |
|
|
|
:style="{height: height}" |
|
|
|
@scrolltolower="loadMoreData"> |
|
|
|
<view class="videoList"> |
|
|
|
<view class="video-item" v-for="(item, index) in list" :key="index" |
|
|
|
<view class="video-item" v-for="(item, index) in spotListWord" :key="index" |
|
|
|
> |
|
|
|
<view class="image" @click="showVideo(item, index)"> |
|
|
|
<image :src="item.travelVideo.videoImage" mode="aspectFill"> |
|
|
|
<image :src="item.spotImage" mode="aspectFill"> |
|
|
|
</image> |
|
|
|
<view class="icon"> |
|
|
|
<uv-icon size="35rpx" name="play-right-fill"> |
|
|
|
</uv-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="bottom"> |
|
|
|
<view class="headImage"> |
|
|
|
<!-- <image src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img" mode="aspectFill"> |
|
|
|
</image> --> |
|
|
|
{{ item.travelVideo.videoTitle }} |
|
|
|
{{ item.spotName }} |
|
|
|
</view> |
|
|
|
<view class="like" |
|
|
|
@click="addThumpup(item.travelVideo.id)"> |
|
|
|
<uv-icon size="45rpx" color="#FF4340" v-if="item.thumpupFlag" name="heart-fill"></uv-icon> |
|
|
|
<uv-icon size="45rpx" v-else name="heart"></uv-icon> |
|
|
|
{{ item.travelVideo.videoThumpup }} |
|
|
|
|
|
|
|
<view class="like"> |
|
|
|
<view class=""> |
|
|
|
查看详情 |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="" |
|
|
|
style="margin-top: 10rpx;"> |
|
|
|
<uv-icon size="30rpx" |
|
|
|
name="arrow-right"></uv-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -33,7 +33,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import index from '../../uni_modules/uv-ui-tools' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
export default { |
|
|
|
props : { |
|
|
|
height : { |
|
|
@ -52,6 +52,12 @@ import index from '../../uni_modules/uv-ui-tools' |
|
|
|
list : [], |
|
|
|
} |
|
|
|
}, |
|
|
|
computed : { |
|
|
|
...mapState(['spotList']), |
|
|
|
spotListWord(){ |
|
|
|
return this.spotList.filter(n => n.categoryId == 0) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
showVideo(item, current){ |
|
|
|
// this.$utils.hanldePreview |
|
|
@ -60,6 +66,10 @@ import index from '../../uni_modules/uv-ui-tools' |
|
|
|
// current : item.videoContent |
|
|
|
// }) |
|
|
|
|
|
|
|
this.$utils.navigateTo(`/pages_order/service/articleDetail?id=${item.id}&type=Inheritance`) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
let sources = [] |
|
|
|
|
|
|
|
this.list.forEach(n => { |
|
|
@ -117,23 +127,20 @@ import index from '../../uni_modules/uv-ui-tools' |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
.videoList { |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
.video-item { |
|
|
|
margin: 20rpx; |
|
|
|
width: 335rpx; |
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
position: relative; |
|
|
|
.image { |
|
|
|
position: relative; |
|
|
|
width: 100%; |
|
|
|
height: 420rpx; |
|
|
|
border-radius: 30rpx; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
height: 420rpx; |
|
|
|
border-radius: 30rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.icon { |
|
|
@ -151,10 +158,17 @@ import index from '../../uni_modules/uv-ui-tools' |
|
|
|
} |
|
|
|
|
|
|
|
.bottom { |
|
|
|
padding: 10rpx 0; |
|
|
|
font-size: 22rpx; |
|
|
|
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; |
|
|
@ -171,6 +185,9 @@ import index from '../../uni_modules/uv-ui-tools' |
|
|
|
.like { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
font-weight: 500; |
|
|
|
font-size: 26rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|