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;