App.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <script>
  2. var md5 = require("./common/md5.js");
  3. export default {
  4. globalData: { //https://stock.xazhima.com/
  5. shareUrl:'https://kano.xazhima.com/api/api.php',
  6. //shareUrl: 'https://fenxiao.xazhima.com/api/api.php', //开发环境全局接口域名 线上:https://f.xazhima.com/api/api.php
  7. globalTimestamp: (Date.now()).toString(),
  8. user_id: '',
  9. openId:'',
  10. isAuth:true,
  11. session_key: '',
  12. isAndroid:Boolean,
  13. isIos:false,
  14. userPhone:'',
  15. userCodeNumber:'',
  16. managerName:'',
  17. managerPhone:''
  18. },
  19. onLaunch: function() {
  20. uni.hideTabBar({})
  21. console.log('App Launch')
  22. // let equType = uni.getSystemInfoSync().platform;
  23. //  switch(equType){
  24. //     case 'android':
  25. //        console.log('运行Android上')
  26. //        break;
  27. //     case 'ios':
  28. //        console.log('运行iOS上');
  29. // setTimeout(()=>{
  30. // getApp().globalData.isIos = true
  31. // },100)
  32. //        break;
  33. //     default:
  34. //        console.log('运行在开发者工具上')
  35. //        break;
  36. // }
  37. },
  38. onShow: function() {
  39. },
  40. onHide: function() {
  41. console.log('App Hide')
  42. },
  43. methods:{
  44. },
  45. }
  46. </script>
  47. <style>
  48. /*每个页面公共css */
  49. /* @import './common/uni.css'; */
  50. page {
  51. height: 100%;
  52. /* background: #fff; */
  53. }
  54. </style>