修改好店评价 评价视频上传后展示异常的问题

This commit is contained in:
赵毅 2025-12-01 17:26:25 +08:00
parent 4f82c7c5d7
commit ca7806578b

View File

@ -161,7 +161,7 @@ export default {
uploadVideo(e.file.url, res => { uploadVideo(e.file.url, res => {
console.log(res.data.url); console.log(res.data.url);
this.videoList.push({ url: this.picUrl + res.data.url }) this.videoList.push({ url: this.picUrl + res.data.url })
this.videoList2.push( res.data.url) this.videoList2.push({ url: res.data.url })
}) })
}, },
cancels(e) { cancels(e) {
@ -174,12 +174,14 @@ export default {
handleSubmit(){ handleSubmit(){
let that= this let that= this
// videoList2url
const videoUrls = that.videoList2.map(item => item.url).join(",");
request(apiArr.createComment,"POST",{ request(apiArr.createComment,"POST",{
merchant_id:that.info.id, merchant_id:that.info.id,
satisfaction:that.rating, satisfaction:that.rating,
comment:that.comment, comment:that.comment,
image_url:that.imgList2.join(","), image_url:that.imgList2.join(","),
video_url:that.videoList2.join(","), video_url:videoUrls,
}).then(res=>{ }).then(res=>{
that.comment="" that.comment=""
that.rating = 0 that.rating = 0