From ca7806578b486ee8366349e54fec957df4d1a9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 1 Dec 2025 17:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A5=BD=E5=BA=97=E8=AF=84?= =?UTF-8?q?=E4=BB=B7=20=E8=AF=84=E4=BB=B7=E8=A7=86=E9=A2=91=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=90=8E=E5=B1=95=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/localLife/comment/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/localLife/comment/index.vue b/packages/localLife/comment/index.vue index dfc6c636..87952d63 100644 --- a/packages/localLife/comment/index.vue +++ b/packages/localLife/comment/index.vue @@ -161,7 +161,7 @@ export default { uploadVideo(e.file.url, res => { console.log(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) { @@ -174,12 +174,14 @@ export default { handleSubmit(){ let that= this + // 提取videoList2数组中每个对象的url属性 + const videoUrls = that.videoList2.map(item => item.url).join(","); request(apiArr.createComment,"POST",{ merchant_id:that.info.id, satisfaction:that.rating, comment:that.comment, image_url:that.imgList2.join(","), - video_url:that.videoList2.join(","), + video_url:videoUrls, }).then(res=>{ that.comment="" that.rating = 0