App.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <script>
  2. export default {
  3. onLaunch: function () {
  4. console.log("App Launch");
  5. },
  6. onShow: function () {
  7. console.log("App Show");
  8. },
  9. onHide: function () {
  10. console.log("App Hide");
  11. },
  12. };
  13. </script>
  14. <style lang="scss">
  15. @import "@/uni.scss";
  16. /*每个页面公共css */
  17. @import "@/uni_modules/uni-scss/index.scss";
  18. button {
  19. background-color: $primary;
  20. font-weight: 500;
  21. font-size: 32rpx;
  22. color: #fff;
  23. margin: 0;
  24. width: 100%;
  25. &::after {
  26. border: 0;
  27. }
  28. }
  29. .button {
  30. background-color: $primary;
  31. font-weight: 500;
  32. font-size: 32rpx;
  33. color: #fff;
  34. margin: 0;
  35. width: 100%;
  36. border-radius: 20rpx;
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. padding: 20rpx 0;
  41. &::after {
  42. border: 0;
  43. }
  44. }
  45. .tip {
  46. font-family: PingFang SC, PingFang SC;
  47. font-weight: 400;
  48. font-size: 24rpx;
  49. color: #999999;
  50. }
  51. .button.plain {
  52. background: $uni-primary-light;
  53. color: $primary;
  54. }
  55. .checkbox {
  56. .wx-checkbox-input {
  57. width: 34rpx;
  58. height: 34rpx;
  59. border-radius: 50%;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. }
  64. /*checkbox选中后样式 */
  65. .wx-checkbox-input.wx-checkbox-input-checked {
  66. background: $primary;
  67. border-color: $primary;
  68. }
  69. /*checkbox选中后图标样式 */
  70. .wx-checkbox-input.wx-checkbox-input-checked::before {
  71. width: 20rpx;
  72. height: 20rpx;
  73. line-height: 20rpx;
  74. text-align: center;
  75. font-size: 22rpx;
  76. color: #fff;
  77. background: transparent;
  78. transform: translate(-50%, -50%) scale(1);
  79. -webkit-transform: translate(-50%, -50%) scale(1);
  80. }
  81. }
  82. .required {
  83. &::before {
  84. content: "*";
  85. color: $error;
  86. font-size: 32rpx;
  87. margin-right: 10rpx;
  88. }
  89. }
  90. </style>