1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <view class="inspect">
- <view class="content">
- <view class="title flex">
- <view class="item flex-center" style="width: 172rpx;border-right: 4rpx solid #fff;">站点</view>
- <view class="item flex1 flex-center">检查项目</view>
- <view class="item flex-center" style="width: 236rpx;border-left: 4rpx solid #fff;">结果</view>
- </view>
- <view class="list">
- <!-- <style="{{ more ? index < 3 ? 'block' : 'none' : block }}"></style> -->
- <view class="item flex" wx:for="{{ list }}" wx:key="index" wx:if="{{ more?index<3 ? true : false : true }}">
- <view class="left flex-center">前台</view>
- <view class="right flex1 flex-column flex-justify-center">
- <view class="flex flex1" style="height: 100%;border-bottom: 2rpx solid #f2f2f2;" wx:for="{{ 3 }}" wx:key="index">
- <view class="text flex1 flex-center" style="padding: 18rpx;">地面无杂物、垃圾桶清</view>
- <view class="item-btn flex-center" style="width: 238rpx;border-left: 2rpx solid #d3d3d3;">
- <text>是</text>
- <image src="" style="margin-right: 20rpx;"></image>
- <text>否</text>
- <image src=""></image>
- </view>
- </view>
- </view>
- </view>
- <view class="module flex-center" wx:if="{{ list.length > 3 && more }}" bindtap="onOpenList">
- <view class="icon">>></view>
- </view>
- </view>
- </view>
- <view class="padding" style="padding: 0 36rpx;" style="display: none;">
- <view class="detail border-radius">
- <view class="top flex-align-center">
- <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">早班复查问题反馈</text>
- </view>
- <view class="box-textarea">
- <textarea bindinput="bindTextAreaInput" value="{{value}}" maxlength="{{maxlength}}" placeholder="请输入记录反馈" />
- <view class="box-text">{{number}}/{{maxlength}}</view>
- </view>
- <view class="change-img">
- <view class="text">
- <text>添加视频/图片</text>
- <text style="font-size:28rpx;color:#999;">({{imgs.length}}/9)</text>
- </view>
- <view class="img-box">
- <view class="position-relative" style="position: relative;" wx:for="{{ imgs }}" wx:key="index">
- <view class="item">
- <block wx:if="{{ item.type == 'video' }}">
- <!-- <video src="{{ item.url }}"></video> -->
- <!-- <text>视频播放</text> -->
- <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-index="{{index}}" bindtap="previewMedia">
- <!-- 这个是视频 -->
- <image class="icon-01" src="/images/icon_01.png"></image>
- <!-- <text style="position: absolute;">这个是视频</text> -->
- <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
- </view>
- </block>
- <block wx:if="{{ item.type == 'image' }}">
- <image class="img-content" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
- </block>
- </view>
- <image src="" class="delete-img" data-index="{{index}}" bindtap="onDeleteItem"></image>
- </view>
-
- <view class="item upload flex-column flex-center" wx:if="{{ imgs.length>0 && imgs.length < 9 &&imgs[0].type != 'video' }}" bindtap="chooseVideo">
- <image src=""></image>
- <text style="font-size: 28rpx;">添加视频</text>
- </view>
- <view class="item upload flex-column flex-center" wx:if="{{ imgs.length > 0 && imgs.length < 9}}" bindtap="chooseImage">
- <image src=""></image>
- <text style="font-size: 28rpx;">添加图片</text>
- </view>
- </view>
- </view>
- </view>
- <view class="btn flex-center">提交</view>
- </view>
- </view>
|