<template>
|
|
<view class="active-card">
|
|
<view class="active-title">【人找车】{{item.title}}</view>
|
|
<view class="active-time flex align-center">
|
|
<text>【始发终点】{{item.outGo}} - {{item.toGo}}</text>
|
|
</view>
|
|
<view class="active-add flex align-center">
|
|
<text>【乘坐人数】{{item.sum}} 位</text>
|
|
</view>
|
|
<view class="active-time2 flex align-center">
|
|
<text>【出发时间】{{item.outGoTime}}</text>
|
|
</view>
|
|
<view class="active-menu flex align-center justify-between">
|
|
<view class="menu-price">
|
|
<!-- <text class="unit"></text>
|
|
<text class="price">{{item.money}}</text> -->
|
|
<!-- <text>价格面议</text> -->
|
|
</view>
|
|
<view class="menu-btn" @click="seeDetail">{{text}}</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default{
|
|
props:{
|
|
text:{
|
|
type:String,
|
|
default:'查看详情'
|
|
},
|
|
item:{
|
|
type:Object,
|
|
},
|
|
i:{
|
|
type:Number,
|
|
}
|
|
},
|
|
data(){
|
|
return{
|
|
|
|
}
|
|
},
|
|
methods:{
|
|
seeDetail(){
|
|
this.$emit('seeDetail',this.item)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.active-card {
|
|
|
|
background: #ffffff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
|
|
overflow: hidden;
|
|
padding-bottom: 10rpx;
|
|
margin-bottom: 20rpx;
|
|
|
|
.active-title {
|
|
word-wrap:break-word;
|
|
word-break:break-all;
|
|
font-size: 32rpx;
|
|
color: #000;
|
|
font-weight: 700;
|
|
margin-top: 20rpx;
|
|
line-height: 60rpx;
|
|
/* 文本不会换行显示 */
|
|
white-space: nowrap;
|
|
/* 超出盒子部分隐藏 */
|
|
overflow: hidden;
|
|
/* 文本超出的部分打点显示 */
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.active-time {
|
|
word-wrap:break-word;
|
|
word-break:break-all;
|
|
color: #707070;
|
|
font-size: 28rpx;
|
|
margin: 20rpx 0;
|
|
image {
|
|
width: 33rpx;
|
|
height: 33rpx;
|
|
margin-right: 27rpx;
|
|
}
|
|
/* 文本不会换行显示 */
|
|
white-space: nowrap;
|
|
/* 超出盒子部分隐藏 */
|
|
overflow: hidden;
|
|
/* 文本超出的部分打点显示 */
|
|
text-overflow: ellipsis;
|
|
}
|
|
.active-add {
|
|
color: #707070;
|
|
font-size: 28rpx;
|
|
word-wrap:break-word;
|
|
word-break:break-all;
|
|
/* 文本不会换行显示 */
|
|
white-space: nowrap;
|
|
/* 超出盒子部分隐藏 */
|
|
overflow: hidden;
|
|
/* 文本超出的部分打点显示 */
|
|
text-overflow: ellipsis;
|
|
// overflow: hidden;/*这个参数根据需求来决定要不要*/
|
|
image {
|
|
width: 30rpx;
|
|
height: 35rpx;
|
|
margin-right: 27rpx;
|
|
}
|
|
}
|
|
.active-time2 {
|
|
color: #707070;
|
|
font-size: 28rpx;
|
|
margin: 20rpx 0;
|
|
image {
|
|
width: 33rpx;
|
|
height: 33rpx;
|
|
margin-right: 27rpx;
|
|
}
|
|
}
|
|
|
|
.active-menu {
|
|
margin-top: 21rpx;
|
|
padding: 0 10rpx;
|
|
.menu-price {
|
|
font-size: 32rpx;
|
|
.price {
|
|
color: #D33D3E;
|
|
font-size: 40rpx;
|
|
}
|
|
}
|
|
.menu-btn {
|
|
width: 213rpx;
|
|
height: 79rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
//background-color: #00CCCC;
|
|
//border-radius: 40rpx;
|
|
color: #00CCCC;
|
|
font-size: 32rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|