App.vue 474 B

1234567891011121314151617181920212223242526
  1. <script>
  2. import {mapState,mapMutations,mapActions} from 'vuex'
  3. export default {
  4. onLaunch: function() {
  5. console.log('App Launch')
  6. this.fetchShops()
  7. this.fetchOrder()
  8. },
  9. onShow: function() {
  10. console.log('App Show')
  11. },
  12. onHide: function() {
  13. console.log('App Hide')
  14. },
  15. methods: {
  16. ...mapActions('m_shop',['fetchShops']),
  17. ...mapActions('m_order',['fetchOrder']),
  18. },
  19. }
  20. </script>
  21. <style>
  22. /*每个页面公共css */
  23. </style>