assess.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 class="flex-box flex-v-ce">
  29. <image v-for="(items, indexs) in item.img_list" :key="indexs" @click="gopicture(item.img_list)" :src="items" class="imgs"></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. if(val) {
  58. this.ishow = true;
  59. }else {
  60. this.ishow = false;
  61. }
  62. }
  63. },
  64. data() {
  65. return {
  66. images: '',
  67. ishow: false,
  68. //title:"评论界面"
  69. }
  70. },
  71. methods: {
  72. gopicture(e) {
  73. console.log(e);
  74. uni.previewImage({
  75. urls: e,
  76. longPressActions: {
  77. itemList: ['发送给朋友', '保存图片', '收藏'],
  78. success: function(data) {
  79. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  80. },
  81. fail: function(err) {
  82. console.log(err.errMsg);
  83. }
  84. }
  85. });
  86. // this.images = e;
  87. // this.ishow = true;
  88. // uni.$emit('changpicture')
  89. }
  90. },
  91. }
  92. </script>
  93. <style>
  94. .imgs{
  95. width: 100upx;
  96. height: 100upx;
  97. margin-right: 10upx;
  98. }
  99. </style>