● 项目介绍:外卖首页,实现菜品分类、购物车功能。适配H5及微信小程序。 ● 技术栈:React + Taro + Taro UI + Webpack。
● 项目重点: 1、采用组件封装。 2、父子组件交互与事件的监听订阅。 3、实例化事件管理器(工具): 监听到分类改变进行菜品数量刷新。 4、flex布局。
启动:
npm run dev:h5 web
npm run dev:weapp 微信小程序
npm run dev:swan 百度小程序
npm run dev:alipay 支付宝小程序