App.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. @font-face {
  19. font-family: PingFang SC;
  20. src: url('./static/PingFangBold.ttf');
  21. }
  22. button {
  23. background-color: $primary;
  24. font-weight: 500;
  25. font-size: 32rpx;
  26. color: #fff;
  27. margin: 0;
  28. width: 100%;
  29. &::after {
  30. border: 0;
  31. }
  32. }
  33. .button {
  34. background-color: $primary;
  35. font-weight: 500;
  36. font-size: 32rpx;
  37. color: #fff;
  38. margin: 0;
  39. width: 100%;
  40. border-radius: 20rpx;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. padding: 20rpx 0;
  45. &::after {
  46. border: 0;
  47. }
  48. }
  49. .tip {
  50. font-family: PingFang SC, PingFang SC;
  51. font-weight: 400;
  52. font-size: 24rpx;
  53. color: #999999;
  54. }
  55. .button.plain {
  56. background: $uni-primary-light;
  57. color: $primary;
  58. }
  59. </style>