2020-06-11 16:37:52 +08:00
|
|
|
<template>
|
2020-06-29 17:24:57 +08:00
|
|
|
<view class="item" @click="toDetailsPage">
|
2020-06-29 08:47:37 +08:00
|
|
|
<image :src="info.goods_image" class="img"></image>
|
2020-06-11 16:37:52 +08:00
|
|
|
<view class="info">
|
2020-06-18 14:57:26 +08:00
|
|
|
<text class="title u-line-1">{{ info.goods_name }}</text>
|
|
|
|
<text class="jianjie u-line-2">{{ info.goods_advword }}</text>
|
|
|
|
<text class="price">{{ info.goods_price }}</text>
|
2020-06-11 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
2020-06-18 14:57:26 +08:00
|
|
|
name:"item",
|
|
|
|
props: {
|
|
|
|
info: Object
|
2020-06-29 08:47:37 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2020-06-29 17:24:57 +08:00
|
|
|
toDetailsPage() {
|
|
|
|
this.$u.route({
|
|
|
|
url: 'pageB/sdetails/index',
|
|
|
|
params: {
|
|
|
|
id: this.info.goods_id
|
2020-06-29 08:47:37 +08:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
2020-06-11 16:37:52 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.item{
|
|
|
|
|
|
|
|
width: 330rpx;
|
|
|
|
height: 469rpx;
|
|
|
|
margin-bottom: 27rpx;
|
|
|
|
background-color: #f8f8f8;
|
|
|
|
border-radius: 10rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
.img{
|
|
|
|
width: 100%;
|
|
|
|
height: 272rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
.info{
|
2020-06-18 14:57:26 +08:00
|
|
|
width: 320rpx;
|
2020-06-11 16:37:52 +08:00
|
|
|
padding: 0 12rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
.title{
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.jianjie{
|
|
|
|
font-size: 26rpx;
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
.price{
|
|
|
|
color: #FF3131;
|
|
|
|
font-size: 26rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|