App.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <script>
  2. import {hasUpdate} from '@/utils/common.js'
  3. export default {
  4. onLaunch: function() {
  5. console.log('App Launch')
  6. // if(!this.$store.state.token){
  7. // this.$store.dispatch('WXLogin')
  8. // }
  9. },
  10. onShow: function() {
  11. console.log('App Show')
  12. hasUpdate()
  13. },
  14. onHide: function() {
  15. console.log('App Hide')
  16. },
  17. }
  18. </script>
  19. <style>
  20. @import "/wxcomponents/vant/common/index.wxss";
  21. /*每个页面公共css */
  22. page{
  23. font-size: 14px;
  24. color: #333333;
  25. width: 100%;
  26. min-height: 100%;
  27. background-color: #f5f5f5;
  28. }
  29. view{
  30. box-sizing: border-box;
  31. }
  32. .flex{
  33. display: flex;
  34. }
  35. .white-wrap{
  36. background-color: #fff;
  37. }
  38. /* 固定屏幕底部区域 */
  39. .fix-bottom-wrap{
  40. background: #FFFFFF;
  41. border: 1px solid #F2F2F2;
  42. box-shadow: 0px -2px 6px rgba(110, 119, 141, 0.07);
  43. position: fixed;
  44. left: 0;
  45. right: 0;
  46. bottom: 0;
  47. z-index: 99;
  48. padding-top: 25rpx;
  49. padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
  50. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  51. padding-left: 32rpx;
  52. padding-right: 32rpx;
  53. }
  54. /* 空页面 */
  55. .van-empty{
  56. margin-top: 200rpx;
  57. }
  58. /* 审批列表页状态颜色 */
  59. .approve-list-status-wait{
  60. color: #3385FF;
  61. }
  62. .approve-list-status-success{
  63. color: #63D594;
  64. }
  65. .approve-list-status-fail{
  66. color:#FF4444;
  67. }
  68. .approve-list-status-back{
  69. color: #999999;
  70. }
  71. .approve-list-status-cancel{
  72. color: #999999;
  73. }
  74. .approve-list-status-doing{
  75. color: #FFA244;
  76. }
  77. </style>