|
|
@@ -60,6 +60,11 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
<p class="reply_title">回复的留言</p>
|
|
|
+ <ul class="imgs" v-if="showImgs" v-for="i in imgss">
|
|
|
+ <li v-for="child in i">
|
|
|
+ <img :src="url + child" alt="">
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
<div class="reply_text">
|
|
|
{{item.reply_content}}
|
|
|
</div>
|
|
|
@@ -223,11 +228,13 @@
|
|
|
valTime:"week",
|
|
|
pages: 1,
|
|
|
imgs: [],
|
|
|
+ imgss: [],
|
|
|
url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
|
// url: 'http://192.168.2.187:8090', // 域名地址
|
|
|
fileList:[],
|
|
|
filesImg:'',
|
|
|
showImg:false,
|
|
|
+ showImgs:false,
|
|
|
};
|
|
|
},
|
|
|
props: ["currentTime"],
|
|
|
@@ -319,14 +326,23 @@
|
|
|
this.pages = res.data.data.total;
|
|
|
// console.log(this.listData)
|
|
|
let _img;
|
|
|
+ let _imgs;
|
|
|
for (let i = 0; i < res.data.data.list.length; i++) {
|
|
|
- _img = res.data.data.list[i].images.split(",");
|
|
|
+ _img = res.data.data.list[i].image.split(",");
|
|
|
+ _imgs = res.data.data.list[i].images.split(",");
|
|
|
+ console.log(res.data.data.list[i],"留言列表")
|
|
|
if(_img != ""){
|
|
|
this.showImg = true
|
|
|
this.imgs.push(_img);
|
|
|
}else {
|
|
|
this.showImg = false
|
|
|
}
|
|
|
+ if(_imgs != ""){
|
|
|
+ this.showImgs = true
|
|
|
+ this.imgss.push(_imgs);
|
|
|
+ }else {
|
|
|
+ this.showImgs = false
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (this.listData.length == 0) {
|
|
|
@@ -826,5 +842,9 @@
|
|
|
.reply_text {
|
|
|
margin-top: 10px;
|
|
|
text-align: right;
|
|
|
+ word-wrap:break-word;
|
|
|
+ }
|
|
|
+ .text {
|
|
|
+ word-wrap:break-word;
|
|
|
}
|
|
|
</style>
|