小程序电商UI源码参考(开发至购物车)链接: https://pan.baidu.com/s/1gBFNVJigtWLCpn6ZJxQZfQ 密码: tge8
一、编写app.json文件
编写页面路劲的时候,文件会自动生成
二、封装请求
三、编写首页的业务逻辑,即index.js文件
四、从前端遍历返回的json数据
这里比较复杂的遍历是楼层的遍历
五、引入自定义组件
编写index.json
{
"usingComponents": {
"SearchInput": "../../components/SearchInput/SearchInput"
},
"navigationBarTitleText": "优购首页"
}
自定义的搜索框