index.wxml
<!--index.wxml-->
<view class="pyg_index">
<!--搜索框开始-->
<SearchInput></SearchInput>
<!-- 搜索框结束-->
</view>
<!--轮播-->
<view>
<swiper></swiper>
</view>
<!--分类导航-->
<view>
<Navigation></Navigation>
</view>
<!--每日秒杀-->
<view>
<seckilling></seckilling>
</view>
index.json
{
"usingComponents": {
"SearchInput":"../../components/SearchInput/SearchInput",
"swiper":"../../components/swiper/swiper",
"Navigation":"../../components/Navigation/Navigation",
"seckilling":"../../components/seckilling/seckilling"
}
}