App.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <script>
  2. export default {
  3. globalData: {
  4. //shareUrl: 'https://gdoctor.xazhima.com/api/v1.0/api.php', //开发环境全局接口域名 线上:https://guolu.xazhima.com/
  5. shareUrl: "https://kiq.xazhima.com/",
  6. globalTimestamp: Date.now().toString(),
  7. secret: "AirQK_weichat_app_zhima",
  8. selectedIndex:0,
  9. user_id: '',
  10. open_id:'',
  11. user_status:'',
  12. user_name:'',
  13. user_phone:'',
  14. user_headUrl:'',
  15. isAuth:false,
  16. session_key: '',
  17. },
  18. onLaunch: function () {
  19. console.log("App Launch");
  20. },
  21. onShow: function () {
  22. console.log("App Show");
  23. },
  24. onHide: function () {
  25. console.log("App Hide");
  26. },
  27. };
  28. </script>
  29. <style>
  30. /*每个页面公共css */
  31. .display-flex-start {
  32. display: flex;
  33. align-items: center;
  34. }
  35. .display-flex-end {
  36. display: flex;
  37. justify-content: flex-end;
  38. align-items: center;
  39. }
  40. .display-between {
  41. display: flex;
  42. justify-content: space-between;
  43. }
  44. .display-around {
  45. display: flex;
  46. justify-content: space-around;
  47. }
  48. .display-between-column {
  49. display: flex;
  50. flex-direction: column;
  51. justify-content: space-between;
  52. }
  53. .display-around-column {
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: space-around;
  57. }
  58. .display-wrap {
  59. display: flex;
  60. flex-wrap: wrap;
  61. }
  62. .items-center {
  63. align-items: center;
  64. }
  65. </style>