index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="content">
  3. <doctor-register v-if="userType==='1'"/>
  4. <patient-register v-if="userType==='2'" />
  5. </view>
  6. </template>
  7. <script>
  8. import{
  9. mapState
  10. } from 'vuex'
  11. import patientRegister from '@/views/patientItems/register/index.vue';
  12. import doctorRegister from '@/views/doctorItems/register/index';
  13. export default {
  14. components:{
  15. patientRegister,
  16. doctorRegister
  17. },
  18. data() {
  19. return {
  20. userType:null
  21. }
  22. },
  23. onLoad({type}) {
  24. this.userType=type;
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .content{
  32. &{
  33. padding: 0 24upx;
  34. }
  35. .title {
  36. font-size: 38upx;
  37. padding: 58upx 0 49upx 0;
  38. font-weight: 600;
  39. .tl-1{
  40. color: #3384ff;
  41. padding-right: 8upx;
  42. }
  43. }
  44. .list{
  45. .item{
  46. height: 160upx;
  47. margin-top: 24upx;
  48. display: flex;
  49. justify-content: flex-start;
  50. align-items: center;
  51. position: relative;
  52. .icon{
  53. .zhcx-iconfont{
  54. font-size: 55upx;
  55. }
  56. padding-right: 79upx;
  57. }
  58. .text{
  59. font-size: 32upx;
  60. color: #333;
  61. }
  62. .link{
  63. position: absolute;
  64. right: 34upx;
  65. }
  66. }
  67. }
  68. }
  69. </style>