App.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <script>
  2. import { mapState, mapMutations } from 'vuex';
  3. export default {
  4. onLaunch: function() {
  5. console.log('App Launch');
  6. },
  7. onShow: function() {
  8. console.log('App Show');
  9. },
  10. onHide: function() {
  11. console.log('App Hide');
  12. }
  13. };
  14. </script>
  15. <style lang="scss">
  16. @import 'uview-ui/index.scss';
  17. @font-face {
  18. font-family: 'iconfont';
  19. src: url('https://at.alicdn.com/t/font_920828_nk2k2hhgl8.ttf') format('truetype');
  20. }
  21. .icon {
  22. font-family: iconfont;
  23. }
  24. /*每个页面公共css */
  25. page {
  26. background-color: #eaeaea;
  27. }
  28. /* 原生组件模式下需要注意组件外部样式 */
  29. m-input {
  30. width: 100%;
  31. /* min-height: 100%; */
  32. display: flex;
  33. flex: 1;
  34. }
  35. .tui-swiper-item {
  36. .uni-scroll-view {
  37. position: absolute;
  38. }
  39. }
  40. .uni-picker-container {
  41. z-index: 10000;
  42. }
  43. .content {
  44. display: flex;
  45. flex: 1;
  46. flex-direction: column;
  47. background-color: #efeff4;
  48. padding: 10px;
  49. }
  50. .input-group {
  51. margin-top: 20px;
  52. position: relative;
  53. }
  54. .input-group::before {
  55. position: absolute;
  56. right: 0;
  57. top: 0;
  58. left: 0;
  59. height: 1px;
  60. content: '';
  61. -webkit-transform: scaleY(0.5);
  62. transform: scaleY(0.5);
  63. background-color: #c8c7cc;
  64. }
  65. .input-group::after {
  66. position: absolute;
  67. right: 0;
  68. bottom: 0;
  69. left: 0;
  70. height: 1px;
  71. content: '';
  72. -webkit-transform: scaleY(0.5);
  73. transform: scaleY(0.5);
  74. background-color: #c8c7cc;
  75. }
  76. .input-row {
  77. display: flex;
  78. flex-direction: row;
  79. position: relative;
  80. font-size: 18px;
  81. line-height: 40px;
  82. background-color: #ffffff;
  83. }
  84. .input-row .title {
  85. width: 100px;
  86. padding-left: 15px;
  87. }
  88. .input-row.border::after {
  89. position: absolute;
  90. right: 0;
  91. bottom: 0;
  92. left: 8px;
  93. height: 1px;
  94. content: '';
  95. -webkit-transform: scaleY(0.5);
  96. transform: scaleY(0.5);
  97. background-color: #c8c7cc;
  98. }
  99. .btn-row {
  100. margin-top: 10px;
  101. padding: 10px;
  102. }
  103. button.primary {
  104. background-color: #0faeff;
  105. }
  106. </style>