Files
2026-05-26 15:52:30 +08:00

90 lines
1.7 KiB
Vue

<template>
<custom-waterfalls-flow-vue3-2
:value="props.goods"
:column="props.column"
:columnSpace="3"
imageKey="picUrl"
v-if="props.goods.length"
>
<!-- #ifdef MP-WEIXIN -->
<view v-for="(v, i) in props.goods" :key="i" :slot="`slot${i}`">
<card_goods :data="v"></card_goods>
</view>
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<template v-slot:default="item">
<card_goods :data="item"></card_goods>
</template>
<!-- #endif -->
</custom-waterfalls-flow-vue3-2>
</template>
<script setup>
import { ref, watch } from 'vue';
import useMescroll from '@/uni_modules/mescroll-uni/hooks/useMescroll.js';
import SpuApi from '@/sheep/api/product/spu';
import card_goods from './card_goods.vue'
const props = defineProps({
goods: {
type: Array,
required: true,
default() {
return [];
},
},
column: {
type: Number,
default() {
return 1;
},
},
});
</script>
<style lang="scss" scoped>
.goodItem{
background-color: #fff;
padding: 20rpx 26rpx;
box-sizing: border-box;
margin-bottom: 32rpx;
.title{
font-size: 24rpx;
line-height: 30rpx;
color: #333333;
font-weight: 500;
}
.label{
font-size: 20rpx;
color: #ff5040;
border: 1px solid #ff5040;
border-radius: 8rpx;
height: 34rpx;
line-height: 34rpx;
padding: 0 8rpx;
box-sizing: border-box;
margin-top: 10rpx;
margin-bottom: 12rpx;
}
.num{
color: #777777;
font-size: 20rpx;
}
.price{
color: #EE0A24;
font-size: 24rpx;
}
.priceNum{
font-size: 34rpx;
}
.shopIcon{
width: 48rpx;
height: 48rpx;
image{
width: 100%;
height: 100%;
}
}
}
</style>