App.vue 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. </style>