App.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. line-height: 88rpx;
  31. padding: 0 24rpx;
  32. display: flex;
  33. align-items: center;
  34. position: sticky;
  35. left: 0;
  36. right: 0;
  37. top: 0;
  38. z-index: 99999;
  39. .back{
  40. .img{
  41. width: 48rpx;
  42. height: 48rpx;
  43. vertical-align: middle;
  44. }
  45. }
  46. .title{
  47. color: rgb(16,16,16);
  48. font-size: 36rpx;
  49. flex: 1;
  50. position: absolute;
  51. left: 0;
  52. right: 0;
  53. text-align: center;
  54. flex-shrink: 0;
  55. .img{
  56. width: 32rpx;
  57. height: 32rpx;
  58. vertical-align: middle;
  59. margin-left: 8rpx;
  60. }
  61. }
  62. .right{
  63. display: flex;
  64. align-items: center;
  65. margin-left: auto;
  66. font-size: 32rpx;
  67. color: rgba(16,16,16,1);
  68. .img{
  69. width: 32rpx;
  70. height: 32rpx;
  71. margin-right: 4rpx;
  72. }
  73. }
  74. }
  75. // 导航栏标题文字
  76. .u-title {
  77. font-size: 36rpx !important
  78. }
  79. ::v-deep.uicon-nav-back{
  80. color: #101010 !important;
  81. font-weight: bold !important;
  82. font-size: 36rpx !important
  83. }
  84. #__vconsole{
  85. z-index: 99999;
  86. position: absolute;
  87. }
  88. .slot{
  89. color: rgba(16,16,16,1);
  90. font-size: 32rpx;
  91. margin-right: 32rpx;
  92. }
  93. .uni-icon-success-no-circle:before {
  94. content: "" !important ;
  95. display: none;
  96. }
  97. .uni-toast .uni-toast__content{
  98. margin: -10px 1px 10px 1px;
  99. }
  100. </style>