App.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. addTime:'',
  19. },
  20. onLaunch: function() {
  21. uni.hideTabBar({})
  22. console.log('App Launch')
  23. // let equType = uni.getSystemInfoSync().platform;
  24. //  switch(equType){
  25. //     case 'android':
  26. //        console.log('运行Android上')
  27. //        break;
  28. //     case 'ios':
  29. //        console.log('运行iOS上');
  30. // setTimeout(()=>{
  31. // getApp().globalData.isIos = true
  32. // },100)
  33. //        break;
  34. //     default:
  35. //        console.log('运行在开发者工具上')
  36. //        break;
  37. // }
  38. },
  39. onShow: function() {
  40. },
  41. onHide: function() {
  42. console.log('App Hide')
  43. },
  44. methods:{
  45. },
  46. }
  47. </script>
  48. <style>
  49. /*每个页面公共css */
  50. /* @import './common/uni.css'; */
  51. page {
  52. height: 100%;
  53. /* background: #fff; */
  54. }
  55. </style>