feedback.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <view class="content">
  2. <view class="detail border-radius">
  3. <view class="top flex-align-center">
  4. <image src="{{ cover }}"></image>
  5. <text class="flex1 ellipsis" style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">{{ name }}</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">
  23. <!-- 这个是视频 -->
  24. <image class="icon-01" src="/images/icon_01.png"></image>
  25. <!-- <text style="position: absolute;">这个是视频</text> -->
  26. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  27. </view>
  28. </block>
  29. <block wx:if="{{ item.type == 'image' }}">
  30. <image class="img-content" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  31. </block>
  32. </view>
  33. <image src="/images/icon_03.png" class="delete-img" data-index="{{index}}" bindtap="onDeleteItem"></image>
  34. </view>
  35. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length < 9 &&imgs[0].type != 'video' }}" bindtap="chooseVideo">
  36. <image src="/images/icon_06.png"></image>
  37. <text style="font-size: 28rpx;">添加视频</text>
  38. </view>
  39. <view class="item upload flex-column flex-center" wx:if="{{ imgs.length < 9}}" bindtap="chooseImage">
  40. <image src="/images/icon_07.png"></image>
  41. <text style="font-size: 28rpx;">添加图片</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="detail border-radius rater" wx:if="{{ raterList.length > 0 && score == 'false' }}">
  47. <view class="rater-text">
  48. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">客户评价</text>
  49. <text style="font-size: 28rpx;color:#999;">(选填,且只有第一次填写生效)</text>
  50. </view>
  51. <view class="item flex-align-center" wx:for="{{ raterList }}" wx:key="index">
  52. <text class="text-01">{{ item.text }}</text>
  53. <wux-rater slot="footer" active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{ item.num }}" data-index="{{ index }}" bind:change="onChange" />
  54. <text class="text-02">{{ raterStatus[item.num] }}</text>
  55. </view>
  56. </view>
  57. <view class="btn flex-center" bindtap="onSubmit">提交</view>
  58. </view>