detail.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="feedback-detail">
  3. <view class="hd">
  4. <view class="item">
  5. <view class="label">反馈类型</view>
  6. <view class="txt">{{detail.category}}</view>
  7. </view>
  8. <view class="item">
  9. <view class="label">问题分类</view>
  10. <view class="txt">{{detail.type}}</view>
  11. </view>
  12. <view class="item">
  13. <view class="label">姓名</view>
  14. <view class="txt">{{detail.realname}}</view>
  15. </view>
  16. <view class="item">
  17. <view class="label">电话/邮箱</view>
  18. <view class="txt">{{detail.contact}}</view>
  19. </view>
  20. </view>
  21. <view class="content">
  22. <view class="con">{{detail.content}}</view>
  23. <view class="img-box" v-if="detail">
  24. <image v-for="(item,index) in detail.images" :key="index" :src="item" mode="scaleToFill"></image>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import { feedbackDetail } from '@/api/user.js'
  31. export default{
  32. data(){
  33. return {
  34. con:'等我回家考虑带我去来晚了我开了房让我来看房问了分类和南方乐乐弄了凉快凉快我洛克王国了各类隔离了哪两个纳兰容若了呢林鸿恩个哦给你绕个人纵容和内容呢人挪活人',
  35. id:'',
  36. detail:{}
  37. }
  38. },
  39. onLoad(options) {
  40. this.id = options.id
  41. feedbackDetail(options.id).then(res=>{
  42. this.detail = res.data
  43. })
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. .feedback-detail{
  49. .hd{
  50. padding: 30rpx;
  51. background-color: #fff;
  52. .item{
  53. display: flex;
  54. justify-content: space-between;
  55. margin-bottom: 30rpx;
  56. font-size: 28rpx;
  57. color: #282828;
  58. &:last-child{
  59. margin-bottom: 0;
  60. }
  61. .txt{
  62. flex: 1;
  63. margin-left: 50rpx;
  64. text-align: right;
  65. color: #868686;
  66. }
  67. }
  68. }
  69. .content{
  70. position: relative;
  71. margin-top: 20rpx;
  72. padding: 30rpx 40rpx;
  73. line-height: 1.5;
  74. background-color: #fff;
  75. }
  76. .img-box{
  77. margin-top: 20rpx;
  78. }
  79. }
  80. </style>