123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <view class="content">
- <view class="detail border-radius">
- <view class="top flex-align-center">
- <image src=""></image>
- <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">这个是视频</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' }}">
- <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>
|