App.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <script>
  2. export default {
  3. data() {
  4. return {
  5. }
  6. },
  7. methods: {
  8. },
  9. onLaunch: function() {
  10. },
  11. onShow: function() {
  12. if(uni.getStorageSync('userInfo')){
  13. uni.reLaunch({
  14. url:'/pages/dialog'
  15. })
  16. }else{
  17. uni.reLaunch({
  18. url:'/pages/login'
  19. })
  20. }
  21. },
  22. onHide: function() {
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. /*每个页面公共css */
  28. @import "@/uni_modules/uview-ui/index.scss";
  29. * {
  30. box-sizing: border-box;
  31. }
  32. uni-page-body,
  33. html,
  34. body {
  35. height: 100%;
  36. width: 750rpx;
  37. background: #F6F6F6;
  38. }
  39. .u-button--primary {
  40. background-color: #5776E6;
  41. }
  42. .uni-input-placeholder {
  43. text-align: right;
  44. }
  45. .ml5 {
  46. margin-left: 10rpx;
  47. }
  48. .contain {
  49. height: 100%;
  50. padding-bottom: 120rpx;
  51. padding-top: 24rpx;
  52. overflow-y: auto;
  53. .main {
  54. padding: 0 32rpx;
  55. background-color: #fff;
  56. }
  57. .tijiao {
  58. position: fixed;
  59. width: 100%;
  60. bottom: 0;
  61. left: 0;
  62. background-color: #fff;
  63. padding: 16rpx 32rpx;
  64. box-sizing: border-box;
  65. box-shadow: 0 -6px 12px 0 rgba(153, 153, 153, 0.10);
  66. }
  67. .u-cell__value {
  68. color: #333 !important;
  69. }
  70. }
  71. .tabPage{
  72. width: 100%;
  73. padding-bottom: 172rpx;
  74. box-sizing: border-box;
  75. }
  76. .adf{
  77. display: flex;
  78. }
  79. .adfac{
  80. display: flex;
  81. align-items: center;
  82. }
  83. .adfacjc{
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. }
  88. .adfacjb{
  89. display: flex;
  90. align-items: center;
  91. justify-content: space-between;
  92. }
  93. .adffcacjc{
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .adffcacjb{
  100. display: flex;
  101. flex-direction: column;
  102. align-items: center;
  103. justify-content: space-between;
  104. }
  105. .zt_btn{
  106. width: 100%;
  107. height: 88rpx;
  108. background: #833478;
  109. border-radius: 24rpx;
  110. font-family: PingFangSC, PingFang SC;
  111. font-weight: 400;
  112. font-size: 32rpx;
  113. color: #FFFFFF;
  114. line-height: 88rpx;
  115. text-align: center;
  116. letter-spacing: 2rpx;
  117. }
  118. .qx_btn{
  119. width: 100%;
  120. height: 88rpx;
  121. background: #FAFAFA;
  122. border-radius: 24rpx;
  123. font-family: PingFangSC, PingFang SC;
  124. font-weight: 400;
  125. font-size: 32rpx;
  126. color: #393939;
  127. line-height: 88rpx;
  128. text-align: center;
  129. letter-spacing: 2rpx;
  130. }
  131. </style>