App.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div class="main">
  3. <router-view> </router-view>
  4. </div>
  5. <!-- 开启底部安全区适配 -->
  6. <van-number-keyboard safe-area-inset-bottom />
  7. </template>
  8. <style lang="scss">
  9. #app {
  10. font-family: PingFangSC-Regular, PingFang SC;
  11. -webkit-font-smoothing: antialiased;
  12. -moz-osx-font-smoothing: grayscale;
  13. text-align: center;
  14. color: #333333;
  15. background: #f6f6f6;
  16. height: 100vh;
  17. box-sizing: border-box;
  18. }
  19. .main {
  20. height: 100vh;
  21. overflow-y: hidden;
  22. .van-cell__title {
  23. text-align: left;
  24. color: #666666;
  25. }
  26. .van-cell__value {
  27. color: #999999;
  28. }
  29. --van-cell-font-size: 16px;
  30. --van-field-label-color: #666666;
  31. --van-field-input-text-color: #333333;
  32. --van-nav-bar-icon-color: #333333;
  33. --van-nav-bar-title-text-color: #333333;
  34. --van-font-weight-bold: 600;
  35. --van-nav-bar-title-font-size: 16px;
  36. --van-button-normal-font-size: 16px;
  37. .van-button {
  38. font-weight: 600;
  39. }
  40. .save_btn {
  41. position: fixed;
  42. bottom: 0;
  43. width: 100%;
  44. padding: 8px 16px;
  45. background-color: #ffffff;
  46. box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.2);
  47. --van-button-border-width: 0;
  48. --van-button-default-border-color: unset;
  49. --van-button-border-radius: 4px;
  50. .van-button {
  51. width: calc(100% - 32px);
  52. }
  53. }
  54. }
  55. </style>