function address_add(req) {

  app.preloader.show();

  $.ajax({

    type: "post",

    url: base_url + 'address_add',

    data: req,

    success: (res) => {

      if (res.status) {

        app.preloader.hide();

        localStorage.setItem('t05_user', JSON.stringify({

          uuid: res.data.uuid,

          email: res.data.email,

          sess_token: res.data.token,

          data: res.data

        }))

        showToast('Add address successfully');

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

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Add Address Error');

      }

    }

  })

}