App.vue 774 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script>
  2. import {
  3. checkUpdateApp
  4. } from './common/downApp.js';
  5. // 冷链送药移动端
  6. export default {
  7. onLaunch: function() {
  8. // console.log('App Launch')
  9. },
  10. onShow: function() {
  11. // #ifdef APP-PLUS
  12. uni.getSystemInfo({
  13. success: (res) => {
  14. var that = this;
  15. //检测当前平台,如果是安卓则启动安卓更新
  16. if (res.platform == "android") {
  17. checkUpdateApp();
  18. }
  19. }
  20. })
  21. // #endif
  22. // console.log('App Show')
  23. },
  24. onHide: function() {
  25. // console.log('App Hide')
  26. },
  27. }
  28. </script>
  29. <style lang="scss">
  30. /*每个页面公共css */
  31. @import "uview-ui/index.scss";
  32. @import "common/index.scss";
  33. @import url(@/static/fonts/iconfont.css);
  34. page {
  35. height: 100%;
  36. background-color: #f3f4f6;
  37. }
  38. </style>