personalCenterHead.axml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <button onTap="onHandleYb2" style="{{ margin: '10px' }}">测试医保2.0页面</button>
  88. </wrapper>
  89. <patient-selector
  90. onClose="onClose"
  91. onChange="onChange"
  92. show="{{ showPatient }}"
  93. autoSelectDefault="{{ false }}"
  94. />