修改商品组件bug

master
hequan_waynaqua 4 years ago
parent d943031462
commit aeb1e4862c

@ -53,7 +53,12 @@ export default {
Skeleton Skeleton
}, },
// eslint-disable-next-line vue/require-prop-types // eslint-disable-next-line vue/require-prop-types
props: ['goodsId'], props: {
goodsId: {
type: String,
default: ''
}
},
data() { data() {
return { return {
banner: [], banner: [],

@ -14,6 +14,7 @@
<goods-item <goods-item
v-for="(item,idx) in list" v-for="(item,idx) in list"
:key="idx" :key="idx"
:goods-id="item.id"
:img="item.picUrl" :img="item.picUrl"
:title="item.name" :title="item.name"
:desc="item.brief" :desc="item.brief"

Loading…
Cancel
Save