From 922b1cda60a08dbba9937d93457df40b54441cdf Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 23 七月 2025 14:26:30 +0800
Subject: [PATCH] 会员修改信息页面与用户管理页面调整
---
manager/src/views/video/VideoList.vue | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index f017ac9..bc301a1 100644
--- a/manager/src/views/video/VideoList.vue
+++ b/manager/src/views/video/VideoList.vue
@@ -55,11 +55,16 @@
>
</Form>
+ <Row class="operation padding-row">
+ <Button @click="recreateEsIndex" type="primary">閲嶆柊鏋勫缓es绱㈠紩</Button>
+ </Row>
+
<Modal
v-model="playVideoShow"
:title="playVideoTitle"
width="800"
:mask-closable="false"
+ @close="playVideoClose"
>
<div class="video-warp">
<video :src="playVideoUrl" autoplay controls style="width: 768px;height: 432px"/>
@@ -129,6 +134,22 @@
<div v-for="img in detail.imgs" :key="img" class="img-warp">
<img :src="img" class="image">
</div>
+ <Row v-for="goods in detail.goodsList" :key="goods.goodsId" style="width: 100%">
+ <Row style="width:100%;align-items: center; padding: 5px 10px">
+ <Col span="6">
+ <img :src="goods.thumbnail" style="width: 100px;height: 100px"/>
+ </Col>
+ <Col span="10">
+ <p>鍟嗗搧鍚嶇О: {{ goods.goodsName }}</p>
+ </Col>
+ <Col span="4">
+ <p>鍟嗗搧鍗曚环: 锟{ goods.price }}</p>
+ </Col>
+ <Col span="4">
+ <p>鍟嗗搧鏁伴噺: {{ goods.goodsNum }}</p>
+ </Col>
+ </Row>
+ </Row>
</div>
</Form-item>
@@ -186,7 +207,7 @@
</div>
</template>
<template slot-scope="{ row, index }" slot="videoFileKey">
- <div class="play-text" @click="playVideo(row.videoFileKey, row.title)">鐐瑰嚮鎾斁</div>
+ <div v-if="row.videoContentType === 'video'" class="play-text" @click="playVideo(row.videoFileKey, row.title)">鐐瑰嚮鎾斁</div>
</template>
<template slot-scope="{ row, index }" slot="videoDuration">
<div>{{formatSeconds(row.videoDuration)}}</div>
@@ -223,7 +244,7 @@
</template>
<script>
-import {getVideos, recommendSet, getVideoById, auditingVideo, up, down} from "@/api/video";
+import {getVideos, recommendSet, getVideoById, auditingVideo, up, down, recreateIndex} from "@/api/video";
import {getVideoTagList} from "@/api/videoTag";
import {getFilePreview} from "@/api/file";
import Editor from '@/components/editor/index.vue'
@@ -370,7 +391,7 @@
{
title: "鏉冮噸",
key: "weight",
- width: 170,
+ width: 80,
},
{
title: "鐘舵��",
@@ -398,6 +419,11 @@
this.getTags('')
},
methods: {
+ recreateEsIndex() {
+ recreateIndex().then(res => {
+ this.$Message.success(res.msg)
+ })
+ },
// 绉掕浆x鍒唜绉�
formatSeconds(seconds) {
if (isNaN(seconds) || seconds < 0) return '0绉�';
@@ -613,7 +639,7 @@
}
.video-warp {
width: 100%;
- height: 350px;
+ height: 440px;
}
.data-item {
display: flex;
--
Gitblit v1.8.0