瑶都万能墙
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.
 
 
 

109 lines
1.9 KiB

<template>
<view class="item" @click="$emit('click')">
<image :src="item.imageTitle"
@click.stop="previewImage([item.imageTitle])"
mode="aspectFill"></image>
<view class="text">
<view class="title">
{{ item.title }}
</view>
<view class="createBy">
{{ item.num }}余座
{{ item.startTime }}出发
</view>
<view class="createBy">
{{ item.startAddress }}
{{ item.endAddress }}
</view>
<view class="createBy">
<view class="">
{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
</view>
<view class="phone"
v-if="item.phone"
@click.stop="callPhone">
<image src="/static/image/home/phone.png" mode=""></image>
联系司机
</view>
</view>
</view>
</view>
</template>
<script>
import mixinsSex from '@/mixins/sex.js'
export default {
mixins: [mixinsSex],
props: ['item'],
data() {
return {
};
},
methods: {
callPhone(){
uni.makePhoneCall({
phoneNumber: this.item.phone
})
},
},
}
</script>
<style lang="scss" scoped>
.item {
height: 220rpx;
width: 100%;
background-color: #fff;
overflow: hidden;
border-radius: 10rpx;
color: #777;
display: flex;
font-size: 24rpx;
margin: 30rpx 0;
image {
width: 50%;
height: 100%;
}
.text {
display: flex;
flex-direction: column;
padding: 16rpx;
width: 50%;
.title {
font-size: 30rpx;
font-weight: 600;
color: #000;
}
.createBy {
display: flex;
margin-top: auto;
line-height: 40rpx;
justify-content: space-between;
&>view {
display: flex;
align-items: center;
justify-content: center;
}
.phone{
background-color: rgba($uni-color, 0.2);
color: $uni-color;
padding: 8rpx 16rpx;
border-radius: 10rpx;
margin-left: auto;
image{
width: 20rpx;
height: 20rpx;
}
}
}
}
}
</style>