index.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!--pages/index/index.wxml-->
  2. <view class="index-container">
  3. <view class="header" wx:if="{{showTopBar}}">
  4. <view class="main-header">
  5. <view class="location">
  6. <view class="location-info ittflex-jcs">
  7. 您预约了{{topBarObj.timeStr}}的健康筛查
  8. </view>
  9. <view class="scan">
  10. 待体检
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="buy-conten">
  16. <view class="left default-tag">
  17. <image class="quanyi-img" src="../../imaes/quanyi@2x.png"></image>
  18. </view>
  19. <view class="blance desc">
  20. <view class="count">
  21. <text class="desc-text">剩余:</text>
  22. <text class="bolder-text">{{useNumber}}</text>
  23. </view>
  24. <view class="desc-text b-text ittflex-jcs">次健康早筛服务权益</view>
  25. </view>
  26. <view class="btn default-btn buy-btn" bindtap="handlePackage">{{useNumber == 0 ? '立即购买' : '立即预约'}}</view>
  27. </view>
  28. <view class="file-info">
  29. <view class="file-title">
  30. <text class="title">档案信息</text>
  31. <view class="nav-tap" bindtap="handleAllFile">
  32. <text class="nav-title">全部</text>
  33. <van-icon name="arrow" color="#999"/>
  34. </view>
  35. </view>
  36. <view class="file-content">
  37. <block wx:if="{{documentVos.length == 0}}">
  38. <view class="no-data ittflex" >
  39. <image class="nodata-img" src="../../imaes/quesheng1@2x.png"></image>
  40. <text class="none-data-text">暂无档案</text>
  41. </view>
  42. </block>
  43. <block wx:else>
  44. <view class="file-item" wx:for="{{documentVos}}" wx:key="index">
  45. <view class="main-con">
  46. <view class="file-left user-info">
  47. <view class="header-img">
  48. <image class="headImg" src="{{item.headImg}}"></image>
  49. </view>
  50. <view class="person">
  51. <view class="p-info ittflex-jcs">
  52. <text class="name-text">{{item.realName}}</text>
  53. <view class="sex-tag">
  54. <image class="sex-img" src="{{item.sex ? '../../imaes/nan@2x.png' : '../../imaes/nv@2x.png'}}"></image>
  55. </view>
  56. </view>
  57. <view class="p-date">{{item.birthDay}}</view>
  58. </view>
  59. <view class="qrcode" data-realname="{{item.realName}}" data-id="{{item.documentId}}" bindtap="handleShowQRCode">
  60. <image class="qrcode-item" src="../../imaes/erweima@2x.png"></image>
  61. </view>
  62. </view>
  63. <view class="file-right check-report" data-reportid="{{item.reportId}}" wx:if="{{item.reportId !== null }}" bindtap="handleRepoetDetail">查看报告</view>
  64. </view>
  65. <view class="px-border {{index == documentVos.length - 1 ? 'display-none' : ''}}" ></view>
  66. </view>
  67. </block>
  68. </view>
  69. <view class="add-btn absolute-btn ittflex" bindtap="handleAddCheck">添加检测人</view>
  70. </view>
  71. <view class="index-banner" bindtap="handlActions">
  72. <view class="inner-img">
  73. <image mode="widthFix" src="{{homepageImg}}"></image>
  74. </view>
  75. </view>
  76. <view class="my-dialog" wx:if="{{qrcodeDialog}}">
  77. <view class="qr-content">
  78. <view class="qr-title">{{qrUserName}}的二维码</view>
  79. <image class="qr-content-img" src="{{QRCodeBase64}}"></image>
  80. <view class="qr-close">
  81. <view class="ver-line"></view>
  82. <view class="qe-close-icon ittflex" bindtap="handleCloseQRCode">
  83. <van-icon name="cross" color="#fff" size="25" />
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <van-overlay show="{{ phoneAuthShow }}">
  89. <view class="wrapper ittflex">
  90. <view class="userinfo-auth-modal">
  91. <view class="modal-title">申请权限</view>
  92. <view class="px-border"></view>
  93. <view class="app-logo">
  94. <image class="logopng" src="../../imaes/logo1@2x.png"></image>
  95. </view>
  96. <view class="auth-text">
  97. 小程序申请授权你的手机号
  98. </view>
  99. <button class="confirm auth-btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击授权</button>
  100. </view>
  101. </view>
  102. </van-overlay>
  103. <van-overlay show="{{ userAuthShow }}">
  104. <view class="wrapper ittflex">
  105. <view class="userinfo-auth-modal">
  106. <view class="modal-title">申请权限</view>
  107. <view class="px-border"></view>
  108. <view class="app-logo">
  109. <image class="logopng" src="../../imaes/logo1@2x.png"></image>
  110. </view>
  111. <view class="auth-text">
  112. 小程序申请授权你的公开信息(昵称,头像)
  113. </view>
  114. <button class="confirm auth-btn" bindtap="getUserinfo">点击授权</button>
  115. </view>
  116. </view>
  117. </van-overlay>
  118. </view>