App.vue 758 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. background-color: #f3f4f6;
  36. }
  37. </style>