<template>
|
|
<view class="cardList">
|
|
<view class="container" v-for="item in 2" :key="item">
|
|
<view class="content">
|
|
<view class="left">
|
|
<image src="@/static/image/member/item-img.png" mode="widthFix"></image>
|
|
</view>
|
|
<view class="right">
|
|
<view class="detailed">
|
|
<view class="title">周五桌游野餐雅致...</view>
|
|
<view class="date">2024.10.28 10:00</view>
|
|
<view class="address">成都市东丽湖露营地32号</view>
|
|
</view>
|
|
<view class="tips-box">
|
|
<view class="tips-box-item">高质量</view>
|
|
<view class="tips-box-item">多平台招募</view>
|
|
<view class="tips-box-item">交友</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom-box">
|
|
<view class="bottom-box-l">
|
|
<uv-avatar-group :urls="urls" size="45rpx" gap="0.1"></uv-avatar-group>
|
|
<view class="num">4人参加</view>
|
|
</view>
|
|
<view class="bottom-box-r">
|
|
参与招募
|
|
</view>
|
|
</view>
|
|
<view class="tabs-box" :class="item == 1? 'bzcx-item' : 'ycx-item'">{{item == 1? '保证成行' : '已成行'}}</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
cardListData: {
|
|
type: Array,
|
|
default: []
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
urls: [
|
|
'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
'https://cdn.uviewui.com/uview/album/2.jpg',
|
|
'https://cdn.uviewui.com/uview/album/3.jpg',
|
|
]
|
|
};
|
|
},
|
|
components: {
|
|
|
|
},
|
|
computed: {},
|
|
watch: {
|
|
|
|
},
|
|
created() {
|
|
|
|
},
|
|
mounted() {},
|
|
methods: {
|
|
skip(val) {
|
|
uni.navigateTo({
|
|
url: '/pages_order/orderDetails'
|
|
})
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.cardList {
|
|
.container {
|
|
margin-bottom: 30rpx;
|
|
border-radius: 20rpx;
|
|
background: #1B1713;
|
|
position: relative;
|
|
|
|
.content {
|
|
display: flex;
|
|
padding: 24rpx 35rpx;
|
|
border-bottom: 1px solid #2A2A2A;
|
|
|
|
.left {
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
|
|
image {
|
|
width: 228rpx;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
flex: 1;
|
|
margin-left: 23rpx;
|
|
color: $uni-text-color-grey;
|
|
font-size: 24rpx;
|
|
|
|
.detailed {
|
|
.title {
|
|
font-size: 32rpx;
|
|
color: #fff;
|
|
padding-top: 11rpx;
|
|
}
|
|
|
|
.date {
|
|
padding: 25rpx 0 19rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&::before {
|
|
content: '';
|
|
display: block;
|
|
background: url('@/static/image/cart/timeIcon.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
margin-right: 10rpx;
|
|
}
|
|
}
|
|
|
|
.address {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&::before {
|
|
content: '';
|
|
display: block;
|
|
background: url('@/static/image/cart/addressIcon.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
width: 22rpx;
|
|
height: 26rpx;
|
|
margin-right: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tips-box {
|
|
display: flex;
|
|
align-items: center;
|
|
.tips-box-item {
|
|
padding: 0 24rpx;
|
|
height: 38rpx;
|
|
line-height: 38rpx;
|
|
background: #282421;
|
|
border-radius: 7rpx;
|
|
font-size: 20rpx;
|
|
color: #999999;
|
|
margin-right: 14rpx;
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
.bottom-box {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 104rpx;
|
|
padding: 0 21rpx;
|
|
&-l {
|
|
display: flex;
|
|
align-items: center;
|
|
.num {
|
|
font-weight: 500;
|
|
font-size: 25rpx;
|
|
color: #999999;
|
|
margin-left: 20rpx;
|
|
}
|
|
}
|
|
&-r {
|
|
width: 180rpx;
|
|
height: 53rpx;
|
|
background: url('@/static/image/member/canyu-bg.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
font-weight: 500;
|
|
font-size: 23rpx;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
line-height: 53rpx;
|
|
}
|
|
}
|
|
|
|
.tabs-box {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 117rpx;
|
|
height: 40rpx;
|
|
font-weight: 500;
|
|
font-size: 21rpx;
|
|
text-align: center;
|
|
line-height: 40rpx;
|
|
}
|
|
.bzcx-item {
|
|
background: url('@/static/image/member/bzcx-bg.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
color: #FF9000;
|
|
}
|
|
.ycx-item {
|
|
background: url('@/static/image/member/ycx-bg.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
color: #FF3B47;
|
|
}
|
|
}
|
|
}
|
|
|
|
</style>
|