Commit c40bdd5c authored by 华国豪's avatar 华国豪 🙄

no message

parent ba8e3e9e
...@@ -46,77 +46,14 @@ ...@@ -46,77 +46,14 @@
</el-row> </el-row>
<recommend/> <recommend/>
</div> </div>
<div class="_block"> <div class="_block" v-for="item in ClassifyGoodsList">
<el-row class="tit"> <el-row class="tit">
<div> <div>
<img src="../../assets/img/ps/shafa.png" alt=""> <img src="../../assets/img/ps/shafa.png" alt="">
<p>家纺家饰</p> <p>家纺家饰</p>
</div> </div>
</el-row> </el-row>
<commodity2/> <commodity2 :data="item"/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/jiaju.png" alt="">
<p>家居日用</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/chuju.png" alt="">
<p>厨具锅具</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/canju.png" alt="">
<p>餐具水具</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/shuma.png" alt="">
<p>数码生活</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/muying.png" alt="">
<p>母婴亲子</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/xiangbao.png" alt="">
<p>箱包手袋</p>
</div>
</el-row>
<commodity2/>
</div>
<div class="_block">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/shishang.png" alt="">
<p>个护时尚</p>
</div>
</el-row>
<commodity2/>
</div> </div>
</el-row> </el-row>
</el-row> </el-row>
...@@ -138,8 +75,26 @@ export default { ...@@ -138,8 +75,26 @@ export default {
}, },
data(){ data(){
return{ return{
ClassifyGoodsList: [],
} }
},methods: {
getClassifyGoods: function () {
this.apiJavaPost(
"/api/goodsMarket/getClassifyGoods",
{id: ''},
res => {
if (res.data.resultCode === 1) {
this.ClassifyGoodsList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
}
},
mounted() {
this.getClassifyGoods()
} }
} }
</script> </script>
...@@ -77,8 +77,7 @@ ...@@ -77,8 +77,7 @@
export default { export default {
components: { components: {
}, },
props:{ props:['data'],
},
data(){ data(){
return{ return{
list: [1,2,3,4,5,6,7,8] list: [1,2,3,4,5,6,7,8]
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment