修改好店评价 评价视频上传后展示异常的问题
This commit is contained in:
parent
4f82c7c5d7
commit
ca7806578b
@ -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
|
||||||
|
// 提取videoList2数组中每个对象的url属性
|
||||||
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user