assess.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view>
  3. <view v-for="(item,index) in feedback_list" :key="index" class="uni-padding-wrap" style="border-bottom: 1px solid #EEEEEE;padding-bottom: 10upx;">
  4. <view class="uni-comment">
  5. <view class="uni-comment-list">
  6. <view class="uni-comment-face"><image style="width: 100%;height: 100%;" :src="item.member_avatar"></image></view>
  7. <view class="uni-comment-body">
  8. <view class="uni-comment-top">
  9. <text style="font-size: 28upx;color: #303133">{{item.member_truename}}</text>
  10. <uniIcon type="star" size="16"></uniIcon>
  11. </view>
  12. <view class="uni-comment-date">
  13. <text style="color: #909399;font-size: 20upx;">{{item.add_time}}</text>
  14. </view>
  15. </view>
  16. <view>
  17. <van-rate
  18. size="16"
  19. :value="item.satisfaction"
  20. void-icon="star"
  21. void-color="#eee"
  22. color="#ee0a24"
  23. readonly='true'
  24. />
  25. </view>
  26. </view>
  27. <view style="color: #303133;font-size: 28upx;" class="uni-comment-content">{{item.content}}</view>
  28. <view v-for="(items, indexs) in item.img_list" :key="indexs" >
  29. <image @click="gopicture(items)" style="float: left;width: 100upx;height: 100upx;padding-right:18upx;" :src="items"></image>
  30. </view>
  31. </view>
  32. </view>
  33. <unipopup :images="images" :show="ishow"/>
  34. </view>
  35. </template>
  36. <script>
  37. import unipopup from '@/component/openpictrue.vue'
  38. import uniIcon from '@/component/uni-icon/uni-icon.vue'
  39. export default {
  40. components: {
  41. unipopup
  42. },
  43. props: {
  44. feedback_list: {
  45. type: Array
  46. },
  47. showpicture: {
  48. type: Boolean,
  49. default: false,
  50. }
  51. },
  52. component:{
  53. uniIcon
  54. },
  55. watch: {
  56. 'showpicture': function(val){
  57. console.log(val)
  58. if(val) {
  59. this.ishow = true;
  60. }else {
  61. this.ishow = false;
  62. }
  63. }
  64. },
  65. data() {
  66. return {
  67. images: '',
  68. ishow: false,
  69. //title:"评论界面"
  70. }
  71. },
  72. methods: {
  73. gopicture(e,a) {
  74. this.images = e;
  75. this.ishow = true;
  76. uni.$emit('changpicture')
  77. }
  78. },
  79. }
  80. </script>
  81. <style>
  82. </style>