【文件属性】:
文件名称:微信小程序-微信小程序-今日头条案例
文件大小:301KB
文件格式:ZIP
更新时间:2022-08-25 21:44:49
微信小程序
微信小程序-今日头条案例
项目为仿今日头条,使用了百度ApiStore接口查询数据,使用微信组件/api有 封装请求方法,底部tab,启动页动画,loading,scroll-view,swiper,列表页支持上下拉加载更多
> 效果图:
启动欢迎页,几行代码可实现旋转与缩放:
//flash.js
onReady:function(){
// 页面渲染完成
var that = this,duration = 1500;
var animation = wx.createAnimation({
duration: duration,
});
//step() 方法表示一组动画的结束
animation.scale(2).rotate(360).step();
animation.scale(1).step();
this.setData({
animationData : animation.export()
【文件预览】:
toutiao-master
----pages()
--------index()
--------user()
--------flash()
----utils()
--------util.js(460B)
----app.js(1KB)
----res()
--------user.png(4KB)
--------flash.png(280KB)
--------user-sel.png(4KB)
--------index-sel.png(3KB)
--------index.png(3KB)
----README.md(5KB)
----app.json(678B)
----app.wxss(34B)
网友评论
- 无法使用,没有任何功能