51 lines
1010 B
Vue
51 lines
1010 B
Vue
<template>
|
|
<view class="item">
|
|
<image class="head" :src="info.pintuan_image"></image>
|
|
<text class="title u-line-1">{{ info.pintuan_goods_name }}</text>
|
|
<view class="price">
|
|
<text>¥{{ info.pintuan_goods_price }}</text>
|
|
<text>立即购买</text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name:"item",
|
|
props: {
|
|
info: Object
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.item{
|
|
width: 210rpx;
|
|
.head{
|
|
width: 210rpx;
|
|
height: 131rpx;
|
|
border-radius: 6rpx;
|
|
|
|
}
|
|
.title{
|
|
display: inline-block;
|
|
width: 100%;
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
margin-top: 16rpx;
|
|
}
|
|
.price{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 19rpx;
|
|
>text:first-child{
|
|
font-size: 26rpx;
|
|
color: #FF3131;
|
|
}
|
|
>text:last-child{
|
|
color: #FDD360;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
</style> |