预览
参考文档
- 小程序文档: mp.weixin.qq.com/debug/wxado…
- WePY框架: github.com/Tencent/wep…
- 富文本解析: github.com/icindy/wxPa…
- less autoprefix(部份机型上使用display: flex;会出现兼容性问题): github.com/Tencent/wep…
- 上拉刷新下拉加载:juejin.im/post/5a781c…
项目结构
接口
- 知乎日报API分析: github.com/izzyleung/Z…
- 轮播:news-at.zhihu.com/api/4/news/…
- 列表:news-at.zhihu.com/api/4/news/…
- 详情:news-at.zhihu.com/api/4/news/…
源码
运行
git clone https://github.com/czero1995/wepy_daily.git
cd wepy_daily
npm install
wepy build --watch
打开微信开发者工具,添加项目,项目目录指定dist文件夹复制代码