index.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!--components/detailsCard/index.wxml-->
  2. <wxs src="../../utils/util/util.wxs" module="util" />
  3. <view class="card card-padding">
  4. <view class="card-cont">
  5. <!-- 三角形icon -->
  6. <image class="triangle" src="../../static/comment/triangle.svg"></image>
  7. <!-- 状态图片 -->
  8. <image wx:if="{{recordInfo.reviewStatus != null}}" class="audit" src="../../static/comment/{{imageUrl}}.png"></image>
  9. <!-- 标题 -->
  10. <view class="title">
  11. <text>{{title}}</text>
  12. </view>
  13. <!-- 内容 -->
  14. <view class="cont" wx:if="{{type}}">
  15. <block>
  16. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{language=='ch'?msg[0].label_ch:msg[0].label_en}}">
  17. <text>{{userInfo.createTime}}</text>
  18. </van-cell>
  19. <van-cell wx:if="{{userInfo.username}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{language=='ch'?msg[1].label_ch:msg[1].label_en}}">
  20. <text>{{userInfo.username}}</text>
  21. </van-cell>
  22. <van-cell wx:if="{{userInfo.idNumber}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{language=='ch'?msg[3].label_ch:msg[3].label_en}}">
  23. <text>{{util.desensitization(userInfo.idNumber, 6, 14)}}</text>
  24. </van-cell>
  25. <van-cell wx:if="{{userInfo.phone}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{language=='ch'?msg[2].label_ch:msg[2].label_en}}">
  26. <text>{{util.desensitization(userInfo.phone, 3, 7)}}</text>
  27. </van-cell>
  28. <!-- 卡号 -->
  29. <van-cell wx:if="{{userInfo.cardIdEx}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{language=='ch'?msg[4].label_ch:msg[4].label_en}}">
  30. <text>{{userInfo.cardIdEx}}</text>
  31. </van-cell>
  32. <van-cell title-class="text-gray" value-class="text-black" border="{{ false }}" title="{{language=='ch'?item.label_ch:item.label_en}}" wx:if="{{item.type === 'photo'}}">
  33. <image class="photo" src="{{item.value}}"></image>
  34. </van-cell>
  35. <block wx:if="{{recordInfo.reviewStatus==3}}">
  36. <!-- 入场通道 -->
  37. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.PassageEntry[language]}}">
  38. <text>{{recordInfo.snAddr|| ''}}</text>
  39. </van-cell>
  40. <!-- 入场时间 -->
  41. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.TimeEntry[language]}}">
  42. <text>{{recordInfo.inTime || ''}}</text>
  43. </van-cell>
  44. <!-- 入场照片 -->
  45. <van-cell title-class="text-gray" value-class="text-black" border="{{ false }}" title="{{international.EntrancePhotos[language]}}">
  46. <image class="photo" src="{{recordInfo.inPhoto}}"></image>
  47. </van-cell>
  48. </block>
  49. <view class="cut-line-dash" wx:if="{{item.type === 'cutLine'}}"></view>
  50. </block>
  51. <!-- 二维码 -->
  52. <!-- <block wx:if="{{type||(recordInfo.reviewStatus==2&&!isRegular)}}">
  53. <view class="qrcode-area">
  54. <view>
  55. <image src="../../static/comment/qrcode.png" class="img" ></image>
  56. </view>
  57. <text>{{international.click_QRcode[language]}}</text>
  58. </view> -->
  59. <!-- 提示信息 -->
  60. <!-- <view class="tip">
  61. <text>{{international.scanning[language]}}</text>
  62. </view>
  63. </block> -->
  64. </view>
  65. <!-- {{international.Lease_until[language]}} -->
  66. <view class="cont" wx:else>
  67. <block>
  68. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.start_time[language]}}">
  69. <text>{{recordInfo.startTime}}</text>
  70. </van-cell>
  71. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.end_time[language]}}">
  72. <text>{{recordInfo.endTime}}</text>
  73. </van-cell>
  74. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Visit_for[language]}}">
  75. <text>{{recordInfo.reason || '-'}}</text>
  76. </van-cell>
  77. <van-cell wx:if="{{recordInfo.remark}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.remark[language]}}">
  78. <text>{{recordInfo.remark || ''}}</text>
  79. </van-cell>
  80. <block wx:if="{{recordInfo.reviewStatus==3}}">
  81. <!-- 入场通道 -->
  82. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.PassageEntry[language]}}">
  83. <text>{{recordInfo.snAddr|| ''}}</text>
  84. </van-cell>
  85. <!-- 入场时间 -->
  86. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.TimeEntry[language]}}">
  87. <text>{{recordInfo.inTime || ''}}</text>
  88. </van-cell>
  89. <!-- 入场照片 -->
  90. <van-cell title-class="text-gray" value-class="text-black" border="{{ false }}" title="{{international.EntrancePhotos[language]}}">
  91. <image class="photo" src="{{recordInfo.inPhoto}}"></image>
  92. </van-cell>
  93. </block>
  94. <!-- 二维码 -->
  95. <block wx:if="{{type||(recordInfo.reviewStatus==2&&!isRegular)}}">
  96. <view wx:if="{{recordInfo.commonQrCode}}">
  97. <view class="qrcode-area">
  98. <!-- 标题 -->
  99. <view class="qrcode-tit" wx:if="{{qrCodeOne}}">
  100. 通用二维码
  101. </view>
  102. <image wx:if="{{qrCodeShowType===1}}" src="../../static/appointment_my/qrCodeLose.png"></image>
  103. <image wx:if="{{qrCodeShowType===2}}" src="../../static/appointment_my/noTime.png"></image>
  104. <view wx:if="{{qrCodeShowType===3}}" bindtap="preview" data-src="{{qrCodeOne}}">
  105. <image src="{{qrCodeOne}}" class="img"></image>
  106. <!--创建一个画布,将它移出屏幕外看不到的地方-->
  107. <!-- <canvas class="canvas-code" canvas-id="myqrCodeOne" style="background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;" /> -->
  108. </view>
  109. <!-- <text>{{international.click_QRcode[language]}}</text> -->
  110. </view>
  111. <!-- 提示信息 -->
  112. <view class="tip">
  113. <text>{{international.tipsQrcodeOne[language]}}</text>
  114. </view>
  115. </view>
  116. <view wx:if="{{recordInfo.ladderQrCode}}">
  117. <view class="qrcode-area">
  118. <view class="qrcode-tit" wx:if="{{qrCodeTwo}}">
  119. 梯控二维码
  120. </view>
  121. <image wx:if="{{qrCodeShowType===1}}" src="../../static/appointment_my/qrCodeLose.png"></image>
  122. <image wx:if="{{qrCodeShowType===2}}" src="../../static/appointment_my/noTime.png"></image>
  123. <view wx:if="{{qrCodeShowType===3}}" bindtap="preview" data-src="{{qrCodeTwo}}">
  124. <image src="{{qrCodeTwo}}" class="img" bindtap="preview" data-src="{{qrCodeTwo}}"></image>
  125. <!--创建一个画布,将它移出屏幕外看不到的地方-->
  126. <!-- <canvas class="canvas-code" canvas-id="myqrCode2" style="background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;" /> -->
  127. </view>
  128. <!-- <text>{{international.click_QRcode[language]}}</text> -->
  129. </view>
  130. <!-- 提示信息 -->
  131. <view class="tip">
  132. <text>{{international.tipsQrcodeTwo[language]}}</text>
  133. </view>
  134. </view>
  135. </block>
  136. <view class="cut-line-dash"></view>
  137. <van-cell wx:if="{{recordInfo.name}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Name_Visitor[language]}}">
  138. <text>{{recordInfo.name || '-'}}</text>
  139. </van-cell>
  140. <van-cell wx:if="{{recordInfo.phone}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.phone_Visitor[language]}}">
  141. <text>{{recordInfo.phone}}</text>
  142. </van-cell>
  143. <van-cell wx:if="{{recordInfo.company}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Visiting_unit[language]}}">
  144. <text>{{recordInfo.company || '-'}}</text>
  145. </van-cell>
  146. <van-cell wx:if="{{recordInfo.photo}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Visitor_photo[language]}}" wx:if="{{recordInfo.photo}}">
  147. <image class="photo" src="{{recordInfo.photo}}" bind:tap="preview" data-src="{{recordInfo.photo}}"></image>
  148. </van-cell>
  149. <!-- 自定义 -->
  150. <view wx:if="{{recordInfo.contents}}" wx:for="{{recordInfo.contents}}">
  151. <van-cell wx:if="{{item.isShow==1}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{item.customName}}">
  152. <image wx:if="{{item.customType=='图片'}}" class="photo" src="{{item.customNameVal}}" bindtap="preview" data-src="{{item.customNameVal}}"></image>
  153. <text wx:else>{{item.customNameVal || ''}}</text>
  154. </van-cell>
  155. </view>
  156. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Passable_passage[language]}}" wx:if="{{recordInfo.reviewStatus==2}}">
  157. <text>{{recordInfo.throughList || ''}}</text>
  158. </van-cell>
  159. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Personnel_type[language]}}" wx:if="{{recordInfo.personnelType!=null}}">
  160. <text wx:if="{{recordInfo.personnelType== 0}}">访客</text>
  161. <text wx:if="{{recordInfo.personnelType== 1}}">同事</text>
  162. <text wx:if="{{recordInfo.personnelType== 2}}">亲属</text>
  163. </van-cell>
  164. <van-cell title-class="text-gray" value-class="text-black" border="{{ false }}" title="{{language=='ch'?item.label_ch:item.label_en}}" wx:if="{{item.type === 'photo'}}">
  165. <image class="photo" src="{{item.value}}"></image>
  166. </van-cell>
  167. <view class="cut-line-dash"></view>
  168. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Name_nterviewee[language]}}">
  169. <text>{{recordInfo.visiteeXm}}</text>
  170. </van-cell>
  171. <van-cell wx:if="{{recordInfo.visiteePhone}}" custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.number_person_interviewed[language]}}">
  172. <text>{{recordInfo.visiteePhone}}</text>
  173. </van-cell>
  174. <van-cell custom-class="van-cell" title-class="text-gray" value-class="text-black flex-sm" border="{{ false }}" title="{{international.Of_unit[language]}}">
  175. <text>{{recordInfo.visiteeCompany || ''}}</text>
  176. </van-cell>
  177. </block>
  178. </view>
  179. </view>
  180. </view>