From 36b09a2179dcc6b3639c32dfad01284284c99f44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 26 Feb 2026 10:40:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/upload/upload.vue | 19 ++++-
pages/plugins/video/detail/detail.vue | 90 +++++---------------
pages/plugins/video/search/search-record.vue | 8 ++
3 files changed, 44 insertions(+), 73 deletions(-)
diff --git a/components/upload/upload.vue b/components/upload/upload.vue
index cf7d94be..b966d20c 100644
--- a/components/upload/upload.vue
+++ b/components/upload/upload.vue
@@ -54,6 +54,11 @@
type: Boolean,
default: false,
},
+ // 是否返回全部信息
+ propIsAllInfo: {
+ type: Boolean,
+ default: false,
+ },
// 路径类型 默认common
propPathType: {
type: String,
@@ -98,10 +103,20 @@
var data = typeof res.data == 'object' ? res.data : JSON.parse(res.data);
if (data.code == 0 && (data.data.url || null) != null) {
if(self.propSingleCall) {
- self.$emit('call-back', data.data.url, self.propCallData);
+ // 是否返回全部信息
+ if(self.propIsAllInfo) {
+ self.$emit('call-back', data.data, self.propCallData);
+ } else {
+ self.$emit('call-back', data.data.url, self.propCallData);
+ }
} else {
var list = self.form_images_list;
- list.push(data.data.url);
+ // 返回全部信息
+ if(self.propIsAllInfo) {
+ list.push(data.data);
+ } else {
+ list.push(data.data.url);
+ }
self.setData({
form_images_list: list,
});
diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue
index b3a95f6d..91c2d4d9 100644
--- a/pages/plugins/video/detail/detail.vue
+++ b/pages/plugins/video/detail/detail.vue
@@ -147,9 +147,9 @@
-
+
-
+