From 99bbcfacfa5075bd31d5e4a3fec23fdcc89ebd25 Mon Sep 17 00:00:00 2001 From: lpq Date: Wed, 22 Feb 2023 01:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/ProjectAdd.vue | 159 ++++++++++++++++++++----- 1 file changed, 126 insertions(+), 33 deletions(-) diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index c405fef2..b6ccb4d1 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -315,32 +315,20 @@ centered="true" v-model:visible="learnBgMore" :footer="null" + :width="650" wrapClassName="learnBgMoreModal" :z-index="9999" >
-
路径图背景
-
- -
+
封面图
@@ -613,6 +601,12 @@ export default { function calendarChange(date, dateStr, partial) { state.datePartial = partial } + const chooseImg2 = (item) => { + // console.log(item); + state.pathBgId = item.code; + state.pathBg = item.value.split(',')[0]; + state.mobilePicUrl = item.value.split(',')[1]; + }; return { ...toRefs(state), @@ -627,7 +621,8 @@ export default { templateScroll, handleChangeSelect, showLearnBgMore, - closeLearnBgMore + closeLearnBgMore, + chooseImg2 }; }, }; @@ -807,6 +802,33 @@ export default { width: 100%; // height: 40px; } + + .btn { + width: 33%; + margin-top: 30px; + display: flex; + justify-content: space-between; + margin-bottom: 30px; + + .samtn { + width: 100px; + height: 40px; + font-size: 14px; + border: 1px solid #4ea6ff; + border-radius: 8px; + cursor: pointer; + } + + .btn1 { + background-color: #fff; + color: #4ea6ff; + } + + .btn2 { + background-color: #4ea6ff; + color: #fff; + } + } } .filebox { @@ -948,26 +970,97 @@ export default { } } } -.imagesBox { - display: flex; - // justify-content: space-between; - flex-wrap: wrap; - padding-left: 51px; - padding-right: 39px; - margin-top: 20px; - height: 350px; - overflow-y: auto; - .learnBgItem { - border-radius: 8px; - width: 136px; - height: 106px; - background-size: 100%; - background-repeat: no-repeat; - margin-bottom: 20px; - margin-right: 10px; +.learnBgMoreModal { + .ant-modal { + width: 680px !important; + height: 528px !important; + + .ant-modal-content { + width: 680px !important; + height: 528px !important; + + .ant-modal-body { + width: 680px !important; + height: 528px !important; + padding: 0 !important; + + .main { + display: flex; + flex-direction: column; + + .top { + padding-left: 51px; + padding-right: 51px; + padding-top: 28px; + display: flex; + align-items: center; + justify-content: space-between; + cursor: pointer; + + .topc { + font-size: 16px; + font-weight: bold; + color: #000000; + line-height: 36px; + } + } + + .imagesBox { + display: flex; + // justify-content: space-between; + flex-wrap: wrap; + padding-left: 51px; + padding-right: 39px; + margin-top: 20px; + height: 350px; + overflow-y: auto; + + .learnBgItem { + border-radius: 8px; + width: 136px; + height: 106px; + background-size: 100%; + background-repeat: no-repeat; + margin-bottom: 20px; + margin-right: 10px; + } + } + + .btn { + width: 100%; + position: absolute; + bottom: 30px; + margin-top: 30px; + display: flex; + justify-content: center; + + .samtn { + width: 100px; + height: 40px; + font-size: 14px; + border: 1px solid #4ea6ff; + border-radius: 8px; + cursor: pointer; + } + + .btn1 { + background-color: #fff; + color: #4ea6ff; + } + + .btn2 { + background-color: #4ea6ff; + color: #fff; + margin-left: 16px; + } + } + } + } + } } } + .btn1 { background-color: #fff; color: #4ea6ff;