github地址: /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=