App.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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 == 0){
  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. overflow-x: hidden;
  50. .content {
  51. width: 100%;
  52. /* border: 1px solid #fff; */
  53. margin: auto;
  54. /* height: 85%; */
  55. margin-top: 3rem;
  56. margin-bottom: 1rem;
  57. padding-bottom: 2rem;
  58. .title {
  59. font-size: 1.2rem;
  60. height: 1rem;
  61. padding: 1rem;
  62. font-weight: bold;
  63. color: #fff;
  64. }
  65. position: relative;
  66. z-index:10;
  67. overflow: scroll-y;
  68. .loginForm {
  69. width: 84%;
  70. margin: auto;
  71. margin-top: 6rem;
  72. .mint-field {
  73. border: 1px solid #ccc;
  74. border-radius: 50px;
  75. margin-top: 1rem;
  76. height: 3.2rem;
  77. }
  78. .mint-cell {
  79. min-height: 2.12rem;
  80. }
  81. }
  82. }
  83. }
  84. .csbtn {
  85. width: 70%;
  86. height: 3.5rem;
  87. line-height: 3.5rem;
  88. border-radius: 5px;
  89. margin: auto;
  90. /* margin-top: 20rem; */
  91. background: #0570F2;
  92. font-weight: bold;
  93. color: white;
  94. font-size: 1.4rem;
  95. }
  96. .jbbtn {
  97. width: 70%;
  98. height: 3.2rem;
  99. line-height: 3.2rem;
  100. border-radius: 5px;
  101. margin: auto;
  102. margin-top: 2rem;
  103. background-image: linear-gradient(to right, #23E0FD, #0173F0);
  104. font-weight: bold;
  105. color: white;
  106. font-size: 1.4rem;
  107. }
  108. .bgimg {
  109. width: 100%;
  110. height: 10rem;
  111. position: absolute;
  112. background-image: url("./assets/images/commonbg.png");
  113. background-size: 100% 100%;
  114. }
  115. .pickerConfirm {
  116. width: 100%;
  117. height: 40px;
  118. line-height: 40px;
  119. color: #26a2ff;
  120. }
  121. .sexPicker {
  122. position: fixed;
  123. width: 100%;
  124. z-index: 10;
  125. bottom: 0;
  126. background: #fff;
  127. }
  128. .searchInput {
  129. border-radius: 1rem;
  130. }
  131. .inputDisable input:disabled {
  132. background-color: #fff !important;
  133. color: red;
  134. opacity: 1;
  135. -webkit-text-fill-color: #000;
  136. }
  137. input:disabled::-webkit-input-placeholder,
  138. input:disabled::-webkit-input-placeholder {
  139. /* font-size: 14px;
  140. font-family: PingFangSC-Medium, PingFang SC;
  141. font-weight: 500; */
  142. color: #9f9f9f;
  143. -webkit-text-fill-color: #9f9f9f;
  144. }
  145. .inputDisable input:disabled {
  146. background-color: #fff !important;
  147. color: red;
  148. opacity: 1;
  149. -webkit-text-fill-color: #000;
  150. }
  151. .rowfont {
  152. font-size: 1rem;
  153. text-align: left;
  154. padding-left: 10px;
  155. line-height: 2rem;
  156. height: 2rem;
  157. }
  158. .picker-item {
  159. font-size: 14px !important;
  160. white-space: normal !important;
  161. text-overflow: inherit !important;
  162. height: auto !important;
  163. line-height: normal !important;
  164. margin: 10px 0 !important;
  165. color: #999 !important;
  166. }
  167. .picker-center-highlight:before, .picker-center-highlight:after{
  168. background-color: transparent;
  169. }
  170. .picker-item.picker-selected{
  171. color: #000 !important;
  172. }
  173. .mint-msgbox {
  174. font-size: 24px;
  175. }
  176. .mint-msgbox-title {
  177. font-size: 24px;
  178. }
  179. .mint-msgbox-confirm {
  180. font-size: 24px;
  181. }
  182. .v-modal {
  183. height: 100vh !important;
  184. }
  185. </style>