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.
121 lines
2.2 KiB
121 lines
2.2 KiB
<!--
|
|
* @Author: ch
|
|
* @Date: 2022-03-23 10:29:07
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-04-09 17:18:09
|
|
* @Description: file content
|
|
-->
|
|
<template>
|
|
<view class="pick">
|
|
<view class="max">
|
|
<view class="title">{{data[0].name}}</view>
|
|
<view class="desc">{{data[0].name}}</view>
|
|
<!-- <view class="tag"></view> -->
|
|
<view class="price">¥{{data[0].startingPrice}}</view>
|
|
<view class="img-box">
|
|
<image class="img" :src="data[0].mainPicture"/>
|
|
</view>
|
|
</view>
|
|
<view class="min">
|
|
<view class="title">{{data[1].name}}</view>
|
|
<view class="min--info-box">
|
|
<view class="min--info-box-right">
|
|
<view class="desc">{{data[1].name}}</view>
|
|
<!-- <view class="tag"></view> -->
|
|
<view class="price">¥{{data[1].startingPrice}}</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<image class="img" :src="data[1].mainPicture"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="min">
|
|
<view class="title">{{data[2].name}}</view>
|
|
<view class="min--info-box">
|
|
<view class="min--info-box-right">
|
|
<view class="desc">{{data[2].name}}</view>
|
|
<view class="tag"></view>
|
|
<view class="price">¥{{data[2].startingPrice}}</view>
|
|
</view>
|
|
<view class="img-box">
|
|
<image class="img" :src="data[2].mainPicture"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return{}
|
|
},
|
|
props:{
|
|
data : {
|
|
type : Array,
|
|
default : []
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
|
|
.pick{
|
|
margin: 0 30rpx;
|
|
height: 450rpx;
|
|
display: flex;
|
|
flex-flow: column wrap;
|
|
justify-content: space-between;
|
|
.title,.desc{
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
margin: 10rpx 20rpx;
|
|
}
|
|
.title{
|
|
margin-top: 20rpx;
|
|
}
|
|
.desc{
|
|
color: $color-grey4;
|
|
font-size: 22rpx;
|
|
}
|
|
.price{
|
|
margin: 24rpx 0 10rpx 20rpx;
|
|
color: $color-yellow4;
|
|
}
|
|
}
|
|
|
|
.max{
|
|
width: 335rpx;
|
|
height: 450rpx;
|
|
background: $color-grey0;
|
|
border-radius: 8rpx;
|
|
|
|
.img-box{
|
|
display: flex;
|
|
justify-content: end;
|
|
}
|
|
.img{
|
|
width: 260rpx;
|
|
height: 260rpx;
|
|
}
|
|
}
|
|
.min{
|
|
width: 335rpx;
|
|
height: 215rpx;
|
|
background: $color-grey0;
|
|
border-radius: 8rpx;
|
|
&--info-box{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
&--info-box-right{
|
|
width: 180rpx;
|
|
}
|
|
|
|
.img{
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
}
|
|
}
|
|
</style> |