App.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. /*每个页面公共css */
  16. @import "@/uni_modules/uview-ui/index.scss";
  17. @import '@/uni_modules/uni-scss/index.scss';
  18. @import "colorui/main.css";
  19. @import "colorui/icon.css";
  20. @import '@/style/icon/iconfont_colors.css';
  21. @import '@/style/icon/iconfont.css';
  22. .content{
  23. padding-bottom:150rpx;
  24. }
  25. .wrap{
  26. background:#fff;
  27. border-radius:20rpx;
  28. margin:20rpx;
  29. padding:20rpx;
  30. }
  31. .caution{
  32. color:red;
  33. }
  34. .footer{
  35. position:fixed;
  36. bottom:0;
  37. left:0;
  38. background:#fff;
  39. width:100%;
  40. z-index:10;
  41. padding:30rpx 0;
  42. .submit{
  43. background:#5F7DE9;
  44. color:#fff;
  45. width:90%;
  46. }
  47. }
  48. .button,.unable_button,.default_button,.caution_button{
  49. background:#5F7DE9;
  50. color:#fff;
  51. padding:5rpx 20rpx;
  52. border-radius: 10rpx;
  53. }
  54. .default_button{
  55. background:#fff;
  56. color:#000;
  57. border:2rpx solid #5F7DE9;
  58. }
  59. .caution_button{
  60. background:red;
  61. }
  62. .unable_button{
  63. background:#999;
  64. }
  65. .flex{
  66. display:flex;
  67. }
  68. .justify-space-between{
  69. justify-content: space-between;
  70. }
  71. .align-item-center{
  72. align-items: center;
  73. }
  74. .align-items-flex-start{
  75. align-items: flex-start;
  76. }
  77. </style>