inspect.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <view class="inspect">
  2. <view class="content">
  3. <view class="title flex">
  4. <view class="item flex-center" style="width: 172rpx;border-right: 4rpx solid #fff;">站点</view>
  5. <view class="item flex1 flex-center">检查项目</view>
  6. <view class="item flex-center" style="width: 236rpx;border-left: 4rpx solid #fff;">结果</view>
  7. </view>
  8. <view class="list">
  9. <!-- <style="{{ more ? index < 3 ? 'block' : 'none' : block }}"></style> -->
  10. <view class="item flex" wx:for="{{ check.option_list }}" wx:for-index="idx" wx:key="index" wx:if="{{ more?idx<3 ? true : false : true }}">
  11. <view class="left flex-center">{{ item.location }}</view>
  12. <view class="right flex1 flex-column flex-justify-center">
  13. <view class="flex flex1" style="height: 100%;border-bottom: 2rpx solid #f2f2f2;" wx:for="{{ item.children }}" wx:key="index">
  14. <view class="text flex1 flex-center" style="padding: 18rpx;">{{ item.name }}</view>
  15. <view class="item-btn flex-center" style="width: 238rpx;border-left: 2rpx solid #d3d3d3;">
  16. <block wx:if="{{ is_list }}">
  17. <block wx:if="{{ item.value == 1 }}">
  18. <text>是</text>
  19. <image src="/images/select_ok.png" style="margin-right: 20rpx;"></image>
  20. </block>
  21. <block wx:if="{{ item.value == 2 }}">
  22. <text>否</text>
  23. <image src="/images/select_ok.png"></image>
  24. </block>
  25. <block wx:if="{{ item.value == 0 }}">
  26. <text>未记录</text>
  27. </block>
  28. </block>
  29. <block wx:if="{{ !is_list }}">
  30. <text>是</text>
  31. <image src="/images/select_{{ item.status ? 'ok' : 'no' }}.png" style="margin-right: 20rpx;" bindtap="onChangeStatus" data-idx="{{idx}}" data-index="{{index}}" data-status="true"></image>
  32. <text>否</text>
  33. <image src="/images/select_{{ !item.status ? 'ok' : 'no' }}.png" bindtap="onChangeStatus" data-idx="{{idx}}" data-index="{{index}}" data-status="false"></image>
  34. </block>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="module flex-center" wx:if="{{ check.option_list.length > 3 && more }}" bindtap="onOpenList">
  40. <view class="icon">>></view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="padding" style="padding: 0 36rpx;">
  45. <view class="detail border-radius">
  46. <view class="top flex-align-center">
  47. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">早班复查问题反馈</text>
  48. </view>
  49. <block wx:if="{{ is_list }}">
  50. <view class="check-list" wx:if="{{ check.feedback }}">
  51. <view class="item flex-column">
  52. <view class="user-info flex-align-center">
  53. <image src="{{ check.feedback.avatar_url }}"></image>
  54. <view class="info flex-column flex1">
  55. <text style="font-size: 28rpx;margin-bottom: 6rpx;">{{ check.feedback.nickname }}</text>
  56. <text style="font-size: 20rpx;color: #999;">{{ check.feedback.update_time }}</text>
  57. </view>
  58. <!-- <view class="more flex-align-center flex-justify-space-between" data-item="{{ item }}" bindtap="onEditItem" wx:if="{{ item.allow_edit == 1 }}">
  59. <text></text>
  60. <text></text>
  61. <text></text>
  62. </view> -->
  63. <!-- <view class="more">···</view> -->
  64. </view>
  65. <text style="font-size: 28rpx;color: #666;margin-bottom: 30rpx;">{{ check.feedback.content }}</text>
  66. <view class="box" wx:if="{{ check.feedback.media_list && check.feedback.media_list.length > 0 }}">
  67. <view class="item-media" wx:for="{{ check.feedback.media_list }}" wx:key="index">
  68. <block wx:if="{{ item.type == 'video' }}">
  69. <!-- <video src="{{ item.url }}"></video> -->
  70. <!-- <text>视频播放</text> -->
  71. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-idx="{{ idx }}" data-index="{{index}}" bindtap="previewMedia">
  72. <!-- 这个是视频 -->
  73. <image class="icon-01" src="/images/icon_01.png"></image>
  74. <!-- <text style="position: absolute;">这个是视频</text> -->
  75. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  76. </view>
  77. </block>
  78. <block wx:if="{{ item.type == 'image' }}">
  79. <image class="img-content" data-idx="{{ idx }}" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  80. </block>
  81. </view>
  82. <!-- <image src="{{item.url}}" data-index="{{item}}" bindtap="previewImage" wx:for="{{item.media_list}}" wx:key="index"></image> -->
  83. </view>
  84. </view>
  85. </view>
  86. <view class="no-more-data" wx:if="{{ !check.feedback }}">暂无反馈记录~</view>
  87. </block>
  88. <block wx:if="{{ !is_list }}">
  89. <view class="box-textarea">
  90. <textarea bindinput="bindTextAreaInput" value="{{value}}" maxlength="{{maxlength}}" placeholder="请输入记录反馈" />
  91. <view class="box-text">{{number}}/{{maxlength}}</view>
  92. </view>
  93. <view class="change-img">
  94. <view class="text">
  95. <text>添加视频/图片</text>
  96. <text style="font-size:28rpx;color:#999;">({{imgs.length}}/9)</text>
  97. </view>
  98. <view class="img-box">
  99. <view class="position-relative" style="position: relative;" wx:for="{{ imgs }}" wx:key="index">
  100. <view class="item">
  101. <block wx:if="{{ item.type == 'video' }}">
  102. <!-- <video src="{{ item.url }}"></video> -->
  103. <!-- <text>视频播放</text> -->
  104. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-index="{{index}}" bindtap="previewMedia">
  105. <!-- 这个是视频 -->
  106. <image class="icon-01" src="/images/icon_01.png"></image>
  107. <!-- <text style="position: absolute;">这个是视频</text> -->
  108. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  109. </view>
  110. </block>
  111. <block wx:if="{{ item.type == 'image' }}">
  112. <image class="img-content" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  113. </block>
  114. </view>
  115. <image src="/images/icon_03.png" class="delete-img" data-index="{{index}}" bindtap="onDeleteItem"></image>
  116. </view>
  117. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length < 9 &&imgs[0].type != 'video' }}" bindtap="chooseVideo">
  118. <image src="/images/icon_06.png"></image>
  119. <text style="font-size: 28rpx;">添加视频</text>
  120. </view>
  121. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length < 9}}" bindtap="chooseImage">
  122. <image src="/images/icon_07.png"></image>
  123. <text style="font-size: 28rpx;">添加图片</text>
  124. </view>
  125. </view>
  126. </view>
  127. </block>
  128. </view>
  129. <view class="btn flex-center" wx:if="{{ is_list && check.allow_edit == 1 }}" bindtap="onChangeEdit">编辑晚班记录</view>
  130. <view class="btn flex-center" wx:if="{{ !is_list }}" bindtap="onCheckUpdate">提交</view>
  131. </view>
  132. </view>