personalCenterHead.axml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <import-sjs name="utils" from="./index.sjs"/>
  2. <mas-adc-nav-bar background="#1677FF" zIndex="100"/>
  3. <wrapper>
  4. <view class="personal-center-head">
  5. <view class="personal-center-container">
  6. <!-- 未登录 -->
  7. <view
  8. class="login login-out"
  9. a:if="{{ !isLogin }}"
  10. >
  11. <view class="login-top">
  12. <view class="login-top-title">
  13. 未登陆
  14. </view>
  15. <view class="login-top-desc">
  16. 登陆查看个人信息
  17. </view>
  18. </view>
  19. <button
  20. class="login-btn"
  21. onTap="onLogin"
  22. >
  23. <view>
  24. 去登陆
  25. </view>
  26. </button>
  27. </view>
  28. <!-- 已登陆 -->
  29. <view class="login login-in" a:else>
  30. <view class="login-top">
  31. <view class="login-top-left">
  32. <view class="avatar">
  33. <image
  34. class="avatar-img"
  35. src="{{ userInfo.avatar }}"
  36. />
  37. </view>
  38. <view class="title">
  39. <view class="user-name">
  40. {{ userInfo.nickName }}
  41. </view>
  42. <view
  43. class="user-number"
  44. a:if="{{ cardInfo.hisPatientId }}"
  45. >
  46. <text number-of-lines="1">
  47. ID号:{{ cardInfo.hisPatientId }}
  48. </text>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- <view class="login-top-right">
  53. <view class="change-btn" onTap="changeBtn">
  54. 切换就诊人
  55. </view>
  56. </view> -->
  57. </view>
  58. <view class="login-buttons">
  59. <block a:if="{{ cardInfo }}">
  60. <!-- <view
  61. class="login-btn"
  62. onTap="toPatientDetail"
  63. a:if="{{ cardInfo.hisPatientId }}"
  64. >
  65. <view class="login-btn-content">
  66. <image
  67. class="btn-icon"
  68. src="{{ qrImage }}"
  69. />
  70. <text>二维码</text>
  71. </view>
  72. </view> -->
  73. <view class="login-btn" a:if="{{ !cardInfo.hisPatientId }}" onTap="toAddCard">
  74. <view class="login-btn-content">
  75. <image
  76. class="btn-icon"
  77. src="{{ addIcon }}"
  78. />
  79. <text>添加就诊人</text>
  80. </view>
  81. </view>
  82. </block>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </wrapper>
  88. <patient-selector
  89. onClose="onClose"
  90. onChange="onChange"
  91. show="{{ showPatient }}"
  92. autoSelectDefault="{{ false }}"
  93. />