write-back.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="write-back-page">
  3. <scroll-view class="scroll-y" scroll-y="true" >
  4. <view class="item-box">
  5. <view class="label-view">
  6. <text>回复内容</text>
  7. </view>
  8. <textarea class="textarea"
  9. placeholder="请输入"
  10. placeholder-style="color: #B8BECC"
  11. :maxlength="-1"
  12. auto-height
  13. />
  14. </view>
  15. <tm-upload-img
  16. :filePaths="filePaths"
  17. :isMultiple="true"
  18. @changeFilePaths="changeFilePaths"
  19. />
  20. </scroll-view>
  21. <view class="fixed-buttom-btn">
  22. <text class="btn-text">确定</text>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. // 改善回复
  28. export default {
  29. data() {
  30. return {
  31. filePaths: ['/static/img-icon.png', '/static/img-icon.png']
  32. }
  33. },
  34. created() {
  35. uni.setNavigationBarTitle({
  36. title: '原因'
  37. });
  38. },
  39. methods: {
  40. changeFilePaths(filePaths) {
  41. this.filePaths = filePaths;
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="less">
  47. .write-back-page {
  48. height: 100%;
  49. padding-top: 15rpx;
  50. .scroll-y {
  51. height: calc(100% - 102rpx);
  52. .item-box {
  53. display: flex;
  54. background-color: #FFFFFF;
  55. border-bottom: 0.62rpx solid #DADEE6;
  56. padding: 25rpx 0;
  57. padding-left: 25rpx;
  58. .label-view {
  59. width: 175rpx;
  60. line-height: 37.5rpx;
  61. >text {
  62. font-size: 22.5rpx;
  63. color: #666F80;
  64. }
  65. }
  66. .textarea {
  67. width: 100%;
  68. min-height: 587.5rpx;
  69. background-color: #fff;
  70. padding: 0 25rpx;
  71. line-height: 37.5rpx;
  72. font-size: 22.5rpx;
  73. color: #525866;
  74. box-sizing: border-box;
  75. }
  76. }
  77. }
  78. }
  79. </style>