// Dom7

var $$ = Dom7;

// Theme

var theme = 'auto';

if (document.location.search.indexOf('theme=') >= 0) {

  theme = document.location.search.split('theme=')[1].split('&')[0];

}

// Init App

var app = new Framework7({

  id: 'com.app.myfin04',

  root: '#app',

  theme: 'ios',

  data: function() {

    return {

      user: {

        firstName: 'John',

        lastName: 'Doe',

      },

    };

  },

  methods: {

    helloWorld: function() {

      app.dialog.alert('Hello World!');

    },

  },

  routes: routes,

  popup: {

    closeOnEscape: true,

  },

  sheet: {

    closeOnEscape: true,

  },

  popover: {

    closeOnEscape: true,

  },

  actions: {

    closeOnEscape: true,

  },

  smartSelect: {

    pageTitle: 'Select Option',

    openIn: 'popup',

  }

});



//var introEl = $('.page-introduction')[0]



let user_data_var = JSON.parse(localStorage.getItem('f04_user'));

if (user_data_var != null) {

  //this.views.main.router.navigate('/home/')

  app.views.main.router.navigate('/');

  //introEl.style.display = 'visible'



} else {

  //$('.page-introduction').show();

  //introEl.style.display = 'none'

  //this.views.main.router.navigate('/intro/')

  app.views.main.router.navigate('/intro/');  

}





let item_data = JSON.parse(localStorage.getItem('f04_data'));

if (item_data != null) {

} else {

  var page = 1;

  var limit = 10;

  let req = {

    page,limit

  }

  if(req) {

    //get_item(req);

  }

}

//console.log(item_data)

//console.log(user_data_var)



