From ecf11ae2d2473706c53fa689fc2e77b439417e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A6=99=E7=90=AA?= <624506849@qq.com> Date: Thu, 9 Jul 2026 10:49:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E9=97=B4=E6=8E=A8=E8=8D=90=E5=8A=9F=E8=83=BD=E4=B8=8E=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=B8=8A=E4=BC=A0=E4=BC=98=E5=8C=96=20-=20=E5=9C=A8?= =?UTF-8?q?=20promotion.js=20=E4=B8=AD=E6=96=B0=E5=A2=9E=20whetherStar=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=EF=BC=8C=E7=94=A8=E4=BA=8E=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E6=8E=A8=E8=8D=90=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E3=80=82=20-=20=E5=9C=A8=20goodsOperationSec.vue=20=E4=B8=AD?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=A0=B7=E5=BC=8F=E4=B8=8E=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=82=20-=20=E5=9C=A8=20live.vue=20?= =?UTF-8?q?=E4=B8=AD=E9=9B=86=E6=88=90=20whetherStar=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E7=9B=B4=E6=92=AD=E9=97=B4=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E7=8A=B6=E6=80=81=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/api/promotion.js | 6 ++ .../goods/goods-seller/goodsOperationSec.vue | 59 +++++++++++++------ seller/src/views/promotion/live/live.vue | 28 ++++++--- 3 files changed, 67 insertions(+), 26 deletions(-) diff --git a/seller/src/api/promotion.js b/seller/src/api/promotion.js index 9bf87678..9731bb07 100644 --- a/seller/src/api/promotion.js +++ b/seller/src/api/promotion.js @@ -6,6 +6,12 @@ import { getRequest, postRequest, postRequestWithNoForm, putRequest, deleteReque export const getLiveList = (params) => { return getRequest('/broadcast/studio', params) } + +// 是否推荐直播间 +export const whetherStar = (params) => { + return putRequest(`/broadcast/studio/recommend/${params.id}`, params) +} + // 添加直播间 export const addLive = (params) => { return postRequest('/broadcast/studio', params) diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index 62262d35..31eb823d 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -164,25 +164,27 @@
-
-
-
+
+
- - - {{ loadingVideo ? "正在上传..." : `${baseInfoForm.goodsVideo ? "已" : ""}上传视频` }} +
+ + + {{ loadingVideo ? "正在上传..." : `${baseInfoForm.goodsVideo ? "已" : ""}上传视频` }} + + + + 删除 - +
@@ -1074,6 +1076,15 @@ export default { file.url = file.response.result; this.baseInfoForm.goodsVideo = file.url; } + this.loadingVideo = false; + }, + handleRemoveGoodsVideo() { + this.baseInfoForm.goodsVideo = ""; + this.showGoodsVideo = false; + if (this.goodsVideo && typeof this.goodsVideo.destroy === "function") { + this.goodsVideo.destroy(); + } + this.goodsVideo = ""; }, // 图片大小不正确 handleMaxSize(size = 2) { @@ -2361,9 +2372,23 @@ export default { } .goods-video { + align-items: flex-start; + display: flex; + flex-direction: column; +} + +.goods-video-preview { + display: flex; align-items: center; } +.goods-video-actions { + display: flex; + align-items: center; + gap: 10px; + margin-top: 6px; +} + .mb-10 { margin-bottom: 10px; } diff --git a/seller/src/views/promotion/live/live.vue b/seller/src/views/promotion/live/live.vue index d545bc97..7f2d5a8b 100644 --- a/seller/src/views/promotion/live/live.vue +++ b/seller/src/views/promotion/live/live.vue @@ -53,8 +53,8 @@