feedback.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="content">
  2. <view class="detail border-radius">
  3. <view class="top flex-align-center">
  4. <image src=""></image>
  5. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">水氧清洁水光提升综合管理</text>
  6. </view>
  7. <view class="box-textarea">
  8. <textarea bindinput="bindTextAreaInput" value="{{value}}" maxlength="{{maxlength}}" placeholder="请输入记录反馈" />
  9. <view class="box-text">{{number}}/{{maxlength}}</view>
  10. </view>
  11. <view class="change-img">
  12. <view class="text">
  13. <text>添加视频/图片</text>
  14. <text style="font-size:28rpx;color:#999;">({{imgs.length}}/9)</text>
  15. </view>
  16. <view class="img-box">
  17. <view class="position-relative" style="position: relative;" wx:for="{{ imgs }}" wx:key="index">
  18. <view class="item">
  19. <block wx:if="{{ item.type == 'video' }}">
  20. <!-- <video src="{{ item.url }}"></video> -->
  21. <!-- <text>视频播放</text> -->
  22. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-index="{{index}}" bindtap="previewMedia">这个是视频</view>
  23. </block>
  24. <block wx:if="{{ item.type == 'image' }}">
  25. <image class="img-content" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  26. </block>
  27. </view>
  28. <image src="" class="delete-img" data-index="{{index}}" bindtap="onDeleteItem"></image>
  29. </view>
  30. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length>0 && imgs.length < 9 &&imgs[0].type != 'video' }}">
  31. <image src=""></image>
  32. <text style="font-size: 28rpx;">添加视频</text>
  33. </view>
  34. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length > 0 && imgs.length < 9}}" bindtap="chooseImage">
  35. <image src=""></image>
  36. <text style="font-size: 28rpx;">添加图片</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>