inspect.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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="{{ list }}" wx:key="index" wx:if="{{ more?index<3 ? true : false : true }}">
  11. <view class="left flex-center">前台</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="{{ 3 }}" wx:key="index">
  14. <view class="text flex1 flex-center" style="padding: 18rpx;">地面无杂物、垃圾桶清</view>
  15. <view class="item-btn flex-center" style="width: 238rpx;border-left: 2rpx solid #d3d3d3;">
  16. <text>是</text>
  17. <image src="" style="margin-right: 20rpx;"></image>
  18. <text>否</text>
  19. <image src=""></image>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="module flex-center" wx:if="{{ list.length > 3 && more }}" bindtap="onOpenList">
  25. <view class="icon">>></view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="padding" style="padding: 0 36rpx;" style="display: none;">
  30. <view class="detail border-radius">
  31. <view class="top flex-align-center">
  32. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">早班复查问题反馈</text>
  33. </view>
  34. <view class="box-textarea">
  35. <textarea bindinput="bindTextAreaInput" value="{{value}}" maxlength="{{maxlength}}" placeholder="请输入记录反馈" />
  36. <view class="box-text">{{number}}/{{maxlength}}</view>
  37. </view>
  38. <view class="change-img">
  39. <view class="text">
  40. <text>添加视频/图片</text>
  41. <text style="font-size:28rpx;color:#999;">({{imgs.length}}/9)</text>
  42. </view>
  43. <view class="img-box">
  44. <view class="position-relative" style="position: relative;" wx:for="{{ imgs }}" wx:key="index">
  45. <view class="item">
  46. <block wx:if="{{ item.type == 'video' }}">
  47. <!-- <video src="{{ item.url }}"></video> -->
  48. <!-- <text>视频播放</text> -->
  49. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-index="{{index}}" bindtap="previewMedia">
  50. <!-- 这个是视频 -->
  51. <image class="icon-01" src="/images/icon_01.png"></image>
  52. <!-- <text style="position: absolute;">这个是视频</text> -->
  53. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  54. </view>
  55. </block>
  56. <block wx:if="{{ item.type == 'image' }}">
  57. <image class="img-content" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  58. </block>
  59. </view>
  60. <image src="" class="delete-img" data-index="{{index}}" bindtap="onDeleteItem"></image>
  61. </view>
  62. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length>0 && imgs.length < 9 &&imgs[0].type != 'video' }}" bindtap="chooseVideo">
  63. <image src=""></image>
  64. <text style="font-size: 28rpx;">添加视频</text>
  65. </view>
  66. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length > 0 && imgs.length < 9}}" bindtap="chooseImage">
  67. <image src=""></image>
  68. <text style="font-size: 28rpx;">添加图片</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="btn flex-center">提交</view>
  74. </view>
  75. </view>