<script>
	export default {
		onLaunch: function() {
			wx.onAppRoute(function(res) {
			  console.log('route',res)
			  let pages = getCurrentPages()
			  let view = pages[pages.length - 1]
			  if(view) {
			    wx.showShareMenu({
			      withShareTicket:true,
			      menus:['shareAppMessage','shareTimeline']
			    })
			  }
			})
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "./assets/style.less";
	/*每个页面公共css */
</style>
