feedback_detail.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="feedbackDetail">
  3. <div class="myRecord">
  4. <div class="detailTitle">我的反馈</div>
  5. <div class="infoBox">
  6. <span class="info">{{form.feedbackContent}}</span>
  7. <span class="infoImgBox">
  8. <img :src="item.url" class="infoImg" v-for="item in imgArr" @click="clickImg(item.url)" />
  9. </span>
  10. </div>
  11. </div>
  12. <div class="myRecord" v-if="form.status == '2'">
  13. <div class="detailTitle">回复内容</div>
  14. <div class="infoBox">
  15. <span class="info">{{form.replyContent}}</span>
  16. </div>
  17. <div class="handleBox">
  18. <div class="handleItem">
  19. <span class="handleTitle">受理企业</span>:
  20. <span class="handleInfo">{{form.receiveCompanyName}}</span>
  21. </div>
  22. <div class="handleItem">
  23. <span class="handleTitle">受理人</span>:
  24. <span class="handleInfo">{{form.receiver}}-{{form.receivePhone}}</span>
  25. <img src="https://www.idea-co-sf.com/gardenProduct/image/phoneIcon.png" class="phoneIcon">
  26. </div>
  27. <div class="handleItem">
  28. <span class="handleTitle">受理时间</span>:
  29. <span class="handleInfo">{{form.receiveTime}}</span>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import { parkFeedbackInfoGetById } from "@/js_sdk/http.js";
  37. export default {
  38. name: "feedbackDetail",
  39. data() {
  40. return{
  41. form:{
  42. },
  43. imgArr:[]
  44. }
  45. },
  46. onLoad(e){
  47. // console.log(e)
  48. try {
  49. parkFeedbackInfoGetById({id:e.id}).then(res=>{
  50. this.form = res
  51. let imgArr = res.feedbackPicture.split(',')
  52. console.log(imgArr)
  53. this.getImage(imgArr)
  54. })
  55. }catch (e){
  56. console.log(e)
  57. }
  58. },
  59. methods:{
  60. getImage(e){
  61. e.forEach(item=>{
  62. this.imgArr.push({url:this.$constant.BASE_URI + "/FileController/download/" + item})
  63. })
  64. },
  65. clickImg(url) {
  66. wx.previewImage({
  67. urls: [url], //接受的是一个数组,默认展示第一张
  68. current: "",
  69. success: function (res) {
  70. },
  71. fail: function (res) {
  72. },
  73. complete: function (res) {
  74. },
  75. })
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. .feedbackDetail{
  82. .myRecord{
  83. margin: 24rpx 0 34rpx 0;
  84. padding: 32rpx 32rpx;
  85. box-sizing: border-box;
  86. background: white;
  87. .detailTitle{
  88. color: #18172A;
  89. font-size: 32rpx;
  90. font-weight: 600;
  91. }
  92. .infoBox{
  93. width: 686rpx;
  94. padding: 24rpx;
  95. background: #F5F7FA;
  96. border-radius: 8rpx;
  97. box-sizing: border-box;
  98. margin-top: 16rpx;
  99. display: flex;
  100. flex-direction: column;
  101. .info{
  102. color: #666666;
  103. font-size: 28rpx;
  104. line-height: 44rpx;
  105. }
  106. .infoImgBox{
  107. display: flex;
  108. flex-wrap: wrap;
  109. }
  110. .infoImg{
  111. width: 180rpx;
  112. height: 180rpx;
  113. margin: 16rpx;
  114. }
  115. }
  116. .handleBox{
  117. margin-top: 32rpx;
  118. display: flex;
  119. flex-direction: column;
  120. padding: 24rpx 0;
  121. border-top: 1px solid #E8EDF5;;
  122. .handleItem{
  123. margin-bottom: 24rpx;
  124. display: flex;
  125. align-items: center;
  126. .handleTitle{
  127. display: inline-block;
  128. width: 140rpx;
  129. color: #18172A;
  130. font-size: 28rpx;
  131. text-align: justify;
  132. text-align-last: justify;
  133. }
  134. .handleInfo{
  135. color: #666666;
  136. font-size: 28rpx;
  137. }
  138. .phoneIcon{
  139. width: 48rpx;
  140. height: 48rpx;
  141. margin-left: 48rpx;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </style>