App.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <style lang="scss">
  2. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  3. @import "@/uni_modules/uview-ui/index.scss";
  4. //@import '@/assets/font/font.css';
  5. </style>
  6. <script>
  7. import './config/.env.js'
  8. import './assets/js/font.js'
  9. export default {
  10. onLaunch: function() {
  11. console.log('App Launch')
  12. },
  13. onShow: function() {
  14. console.log('App Show ---- App Show')
  15. },
  16. onHide: function() {
  17. console.log('App Hide -- App Hide -App Hide')
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. html, body {
  23. background-color:#F2F4F6;
  24. margin: 0;
  25. padding: 0;
  26. }
  27. // 导航
  28. .navbar-c{
  29. background-color: #fff;
  30. height: 88rpx;
  31. line-height: 88rpx;
  32. padding: 0 24rpx;
  33. display: flex;
  34. align-items: center;
  35. position: sticky;
  36. left: 0;
  37. right: 0;
  38. top: 0;
  39. z-index: 99999;
  40. .back{
  41. .img{
  42. width: 48rpx;
  43. height: 48rpx;
  44. vertical-align: middle;
  45. }
  46. }
  47. .title{
  48. color: rgb(16,16,16);
  49. font-size: 36rpx;
  50. flex: 1;
  51. position: absolute;
  52. left: 0;
  53. right: 0;
  54. text-align: center;
  55. flex-shrink: 0;
  56. .img{
  57. width: 32rpx;
  58. height: 32rpx;
  59. vertical-align: middle;
  60. margin-left: 8rpx;
  61. }
  62. }
  63. .right{
  64. display: flex;
  65. align-items: center;
  66. margin-left: auto;
  67. font-size: 32rpx;
  68. color: rgba(16,16,16,1);
  69. .img{
  70. width: 32rpx;
  71. height: 32rpx;
  72. margin-right: 4rpx;
  73. }
  74. }
  75. }
  76. // 导航栏标题文字
  77. .u-title {
  78. font-size: 36rpx !important
  79. }
  80. /deep/.uicon-nav-back{
  81. color: #101010 !important;
  82. font-weight: bold !important;
  83. font-size: 36rpx !important
  84. }
  85. #__vconsole{
  86. z-index: 99999;
  87. position: absolute;
  88. }
  89. .slot{
  90. color: rgba(16,16,16,1);
  91. font-size: 32rpx;
  92. margin-right: 32rpx;
  93. }
  94. .uni-icon-success-no-circle:before {
  95. content: "" !important ;
  96. display: none;
  97. }
  98. .uni-toast .uni-toast__content{
  99. margin: -10px 1px 10px 1px;
  100. }
  101. </style>