App.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <script>
  2. export default {
  3. onLaunch: function () {
  4. console.warn(
  5. "当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!"
  6. );
  7. console.log("App Launch");
  8. },
  9. onShow: function () {
  10. console.log("App Show");
  11. },
  12. onHide: function () {
  13. console.log("App Hide");
  14. },
  15. };
  16. </script>
  17. <style lang="scss">
  18. @import "@/uni.scss";
  19. /*每个页面公共css */
  20. @import "@/uni_modules/uni-scss/index.scss";
  21. /* #ifndef APP-NVUE */
  22. @import "@/static/customicons.css";
  23. /* #endif */
  24. button {
  25. background-color: $primary;
  26. font-weight: 500;
  27. font-size: 32rpx;
  28. color: #fff;
  29. margin: 0;
  30. width: 100%;
  31. &::after {
  32. border: 0;
  33. }
  34. }
  35. .button {
  36. background-color: $primary;
  37. font-weight: 500;
  38. font-size: 32rpx;
  39. color: #fff;
  40. margin: 0;
  41. width: 100%;
  42. border-radius: 20rpx;
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. padding: 20rpx 0;
  47. &::after {
  48. border: 0;
  49. }
  50. }
  51. .tip {
  52. font-family: PingFang SC, PingFang SC;
  53. font-weight: 400;
  54. font-size: 24rpx;
  55. color: #999999;
  56. }
  57. .button.plain {
  58. background: $uni-primary-light;
  59. color: $primary;
  60. }
  61. </style>