| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <template>
- <div id="app">
- <router-view />
- </div>
- </template>
- <script>
- export default {
- name: 'App',
- data() {
- return {
- doctorInfo: {}
- }
- },
- methods: {
- goPage(path) {
- this.$router.push(path)
- },
- getData() {
- this.$api.getAccountInfo().then(res=>{
- if(res.data.code == 0){
- if(res.data.data.role=="1"){
- this.goPage("/docindex")
- }else{
- this.goPage("/patindex")
- }
- localStorage.setItem("authinfo",JSON.stringify(res.data.data))
- }
- })
- }
- },
- created() {
-
- this.getData()
- }
- }
- </script>
- <style lang="scss">
- #app {
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-align: center;
- color: #2c3e50;
- }
- .container {
- width: 100%;
- border: 1px solid #fff;
- height: 100vh;
- background: #EFEFEF;
- overflow-x: hidden;
- .content {
- width: 100%;
- /* border: 1px solid #fff; */
- margin: auto;
- /* height: 85%; */
- margin-top: 3rem;
- margin-bottom: 1rem;
- padding-bottom: 2rem;
- .title {
- font-size: 1.2rem;
- height: 1rem;
- padding: 1rem;
- font-weight: bold;
- color: #fff;
- }
- position: relative;
- z-index:10;
- overflow: scroll-y;
- .loginForm {
- width: 84%;
- margin: auto;
- margin-top: 6rem;
- .mint-field {
- border: 1px solid #ccc;
- border-radius: 50px;
- margin-top: 1rem;
- height: 3.2rem;
- }
- .mint-cell {
- min-height: 2.12rem;
- }
- }
- }
- }
- .csbtn {
- width: 70%;
- height: 3.5rem;
- line-height: 3.5rem;
- border-radius: 5px;
- margin: auto;
- /* margin-top: 20rem; */
- background: #0570F2;
- font-weight: bold;
- color: white;
- font-size: 1.4rem;
- }
- .jbbtn {
- width: 70%;
- height: 3.2rem;
- line-height: 3.2rem;
- border-radius: 5px;
- margin: auto;
- margin-top: 2rem;
- background-image: linear-gradient(to right, #23E0FD, #0173F0);
- font-weight: bold;
- color: white;
- font-size: 1.4rem;
- }
- .bgimg {
- width: 100%;
- height: 10rem;
- position: absolute;
- background-image: url("./assets/images/commonbg.png");
- background-size: 100% 100%;
- }
- .pickerConfirm {
- width: 100%;
- height: 40px;
- line-height: 40px;
- color: #26a2ff;
- }
- .sexPicker {
- position: fixed;
- width: 100%;
- z-index: 10;
- bottom: 0;
- background: #fff;
- }
- .searchInput {
- border-radius: 1rem;
- }
- .inputDisable input:disabled {
- background-color: #fff !important;
- color: red;
- opacity: 1;
- -webkit-text-fill-color: #000;
- }
- input:disabled::-webkit-input-placeholder,
- input:disabled::-webkit-input-placeholder {
- /* font-size: 14px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500; */
- color: #9f9f9f;
- -webkit-text-fill-color: #9f9f9f;
- }
- .inputDisable input:disabled {
- background-color: #fff !important;
- color: red;
- opacity: 1;
- -webkit-text-fill-color: #000;
- }
- .rowfont {
- font-size: 1rem;
- text-align: left;
- padding-left: 10px;
- line-height: 2rem;
- height: 2rem;
- }
- .picker-item {
- font-size: 14px !important;
- white-space: normal !important;
- text-overflow: inherit !important;
- height: auto !important;
- line-height: normal !important;
- margin: 10px 0 !important;
- color: #999 !important;
- }
- .picker-center-highlight:before, .picker-center-highlight:after{
- background-color: transparent;
- }
- .picker-item.picker-selected{
- color: #000 !important;
- }
- .mint-msgbox {
- font-size: 24px;
- }
- .mint-msgbox-title {
- font-size: 24px;
- }
- .mint-msgbox-confirm {
- font-size: 24px;
- }
- .v-modal {
- height: 100vh !important;
- }
- </style>
|