ymbo / react-ele Goto Github PK
View Code? Open in Web Editor NEWreact仿饿了么app(高度还原,动态获取数据)
react仿饿了么app(高度还原,动态获取数据)
热销和优惠部分的商品点击添加的时候会和下面的类别里的同种商品数量会有联动效果
这一页由于很多的数据循环操作,而且每一次的添加商品都会触发数据的循环,这样的后果导致在pc端点击速度快起来可以感受到卡顿,移动端就更别说了
url是:/shop/wx4g09jvzy8w/436263
提示:404 not Found
开发环境:node 9.4.0, npm:5.6.0
请问这是怎么回事儿呢?
本来想的是先用固定的数据,到时候用node写几个接口提供数据用,现在我发现好像webpack能设置跨域请求!
我看饿了么官网是做了不同的四个页面对应着四个链接,不知道我这个怎么解决
redux还比较生疏
我的react文件中为什么没有config文件这个东西呢?
在我编写完首页商家列表样式后,从饿了么获取商家数据,找不到接口,而且它的每次滚动加载,并没有发出请求,所以目前有两件事
1.临时获取饿了么首页商家列表的数据(主要是数据格式)
2.明白滚动加载在react怎么做
目前为止,我是用better scroll做的,但是刚刚仔细看了一下ele官网,它是用原生的滚动实现的,所以还是人家的方式好一些。
这一块的难点:鼠标向上滚动列表的时候,header部分是也会慢慢向上滚动的,直到tab吸附在window的头部
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.