微信小程序-今日头条案例

github地址:   https://github.com/HowName/toutiao

项目为仿今日头条,使用了百度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()});var timestamp = new Date().getTime();setTimeout(function(){wx.redirectTo({url: '../index/index?time=


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部