App.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. data() {
  10. return {
  11. doctorInfo:{}
  12. }
  13. },
  14. methods: {
  15. goPage(path) {
  16. this.$router.push(path)
  17. },
  18. getData(){
  19. this.$api.getAccountInfo().then(res=>{
  20. if(!res.data.code){
  21. // if(res.data.data.role=="1"){
  22. // this.goPage("/docindex")
  23. // }else{
  24. // this.goPage("/patindex")
  25. // }
  26. localStorage.setItem("authinfo",JSON.stringify(res.data.data))
  27. }
  28. })
  29. }
  30. },
  31. created(){
  32. this.getData()
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. #app {
  38. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  39. -webkit-font-smoothing: antialiased;
  40. -moz-osx-font-smoothing: grayscale;
  41. text-align: center;
  42. color: #2c3e50;
  43. }
  44. .container {
  45. width: 100%;
  46. border: 1px solid #fff;
  47. height: 100vh;
  48. background: #EFEFEF;
  49. .content {
  50. width: 100%;
  51. /* border: 1px solid #fff; */
  52. margin: auto;
  53. /* height: 85%; */
  54. margin-top: 3rem;
  55. margin-bottom: 1rem;
  56. padding-bottom: 2rem;
  57. .title {
  58. font-size: 1.2rem;
  59. height: 1rem;
  60. padding: 1rem;
  61. font-weight: bold;
  62. color: #fff;
  63. }
  64. position: relative;
  65. z-index:10;
  66. overflow: scroll-y;
  67. .loginForm {
  68. width: 84%;
  69. margin: auto;
  70. margin-top: 6rem;
  71. .mint-field {
  72. border: 1px solid #ccc;
  73. border-radius: 50px;
  74. margin-top: 1rem;
  75. height: 3.2rem;
  76. }
  77. .mint-cell {
  78. min-height: 2.12rem;
  79. }
  80. }
  81. }
  82. }
  83. .csbtn {
  84. width: 70%;
  85. height: 3.5rem;
  86. line-height: 3.5rem;
  87. border-radius: 5px;
  88. margin: auto;
  89. margin-top: 20rem;
  90. background: #0570F2;
  91. font-weight: bold;
  92. color: white;
  93. font-size: 1.4rem;
  94. }
  95. .jbbtn {
  96. width: 70%;
  97. height: 3.2rem;
  98. line-height: 3.2rem;
  99. border-radius: 5px;
  100. margin: auto;
  101. margin-top: 2rem;
  102. background-image: linear-gradient(to right, #23E0FD, #0173F0);
  103. font-weight: bold;
  104. color: white;
  105. font-size: 1.4rem;
  106. }
  107. .bgimg {
  108. width: 100%;
  109. height: 10rem;
  110. position: absolute;
  111. background-image: url("./assets/images/commonbg.png");
  112. background-size: 100% 100%;
  113. }
  114. .pickerConfirm{
  115. width:100%;
  116. height: 40px;
  117. line-height: 40px;
  118. color:#26a2ff;
  119. }
  120. .sexPicker{
  121. position: fixed;
  122. width: 100%;
  123. z-index: 10;
  124. bottom:0;
  125. background: #fff;
  126. }
  127. .searchInput{
  128. border-radius: 1rem;
  129. }
  130. .inputDisable input:disabled {
  131. background-color: #fff!important;
  132. }
  133. .rowfont{
  134. font-size:1rem;
  135. text-align:left;
  136. padding-left:10px;
  137. line-height: 2rem;
  138. height: 2rem;
  139. }
  140. </style>