From f3e79b56956e10674fb647b913e02b16ba2a0258 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Mon, 8 Jan 2024 15:23:09 +0800
Subject: [PATCH] fix
---
src/pages/article/add/index.vue | 28 ++++++++++++++++------------
src/styles/page/page.scss | 2 ++
2 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue
index 6d57cba..9c8f892 100644
--- a/src/pages/article/add/index.vue
+++ b/src/pages/article/add/index.vue
@@ -229,20 +229,20 @@
class="inline-input">
-
-
+
{
data.lableId = data.lableId ? data.lableId.split(',').map(e => +e) : []
- if (data.activityStartTime && data.activityEndTime) data.time = [data.activityStartTime, data.activityEndTime]
+ // if (data.activityStartTime && data.activityEndTime) data.time = [data.activityStartTime, data.activityEndTime]
// 文件上传回显
if (data.fileList) {
data.fileList.map(e => {
@@ -1570,9 +1573,10 @@ export default {
// if (!form.titleImg) return Util.errorMsg('请上传封面')
// }
if (tId === 25) {
- if ((!form.time || !form.time.length) && isRelease) return Util.errorMsg('请选择起止时间')
- form.activityStartTime = form.time[0]
- form.activityEndTime = form.time[1]
+ if ((!form.activityStartTime) && isRelease) return Util.errorMsg('请输入起止时间')
+ // if ((!form.time || !form.time.length) && isRelease) return Util.errorMsg('请选择起止时间')
+ // form.activityStartTime = form.time[0]
+ // form.activityEndTime = form.time[1]
}
if (tId === 24 && form.connectionType !== 2) {
if (form.connectionType === 1) {
diff --git a/src/styles/page/page.scss b/src/styles/page/page.scss
index 2467e40..81f86a8 100644
--- a/src/styles/page/page.scss
+++ b/src/styles/page/page.scss
@@ -41,6 +41,7 @@
padding: 123px 0 0 243px;
font-size: 48px;
color: #fff;
+ object-fit: cover;
}
.single-banner {
position: relative;
@@ -48,6 +49,7 @@
.banner-img {
width: 100%;
height: 480px;
+ object-fit: cover;
}
.texts {
position: absolute;