Commit 1bbcc2fa by 孙美琪

相关样式修改

parent d61c12c3
...@@ -160,7 +160,8 @@ function logout () { ...@@ -160,7 +160,8 @@ function logout () {
width: 100%; width: 100%;
.nav-bar-content { .nav-bar-content {
width: 1280px; //width: 1280px;
width: calc(100% - 226px);
margin: 0 auto; margin: 0 auto;
height: 64px; height: 64px;
display: flex; display: flex;
......
<template> <template>
<div class="app-container"> <div class="app-container">
<div style="width: 1280px;margin: 0 auto"> <div style="width: calc(100% - 190px);margin: 0 auto">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col v-for="item in assemblyData" :key="item.id" :span="6"> <el-col v-for="item in assemblyData" :key="item.id" :span="6">
<div class="item flex"> <div class="item flex">
...@@ -19,17 +19,38 @@ ...@@ -19,17 +19,38 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<el-dialog
v-model="dialogTableVisible"
:title="dialogTitle"
width="1600"
>
<div>
<iframe v-show="iframeShow" ref="iframe" :src="iframeSrc"
:style="{ width: iframeWidth + 'px', height: iframeHeight + 'px' }"></iframe>
</div>
<!-- <template #footer>-->
<!-- <div class="dialog-footer">-->
<!-- <el-button @click="cancel">关闭</el-button>-->
<!-- </div>-->
<!-- </template>-->
</el-dialog>
</div> </div>
</template> </template>
<script setup name="ComponentServicesList"> <script setup name="ComponentServicesList">
import { ref } from 'vue' import {ref} from 'vue'
import { assemblyList } from '@/api/home.js' import {assemblyList} from '@/api/home.js'
const baseUrl = import.meta.env.VITE_APP_BASE_API const baseUrl = import.meta.env.VITE_APP_BASE_API
const assemblyData = ref([]) const assemblyData = ref([])
const iframeSrc = ref('')
const iframeShow = ref(false)
const dialogTableVisible = ref(false)
const iframeWidth = ref(1560)
const iframeHeight = ref(800)
const dialogTitle = ref('')
function getAassemblyList () { function getAassemblyList() {
assemblyList().then(res => { assemblyList().then(res => {
assemblyData.value = res.data assemblyData.value = res.data
}) })
...@@ -37,8 +58,17 @@ function getAassemblyList () { ...@@ -37,8 +58,17 @@ function getAassemblyList () {
getAassemblyList() getAassemblyList()
function openPage (data) { function openPage(data) {
window.open(data.url) dialogTitle.value = data.title
iframeSrc.value = data.url
dialogTableVisible.value = true
iframeShow.value = true
// window.open(data.url)
}
function cancel() {
dialogTableVisible.value = false
iframeShow.value = false
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
...@@ -50,8 +80,9 @@ function openPage (data) { ...@@ -50,8 +80,9 @@ function openPage (data) {
.item { .item {
height: 168px; height: 168px;
background: #FBFCFE; //background: #FBFCFE;
border-radius: 3px; background: url("@/assets/images/assemblyBg.jpg") no-repeat center center / cover;
border-radius: 15px;
border: 1px solid #D8D9DB; border: 1px solid #D8D9DB;
padding: 24px 24px 0 24px; padding: 24px 24px 0 24px;
margin-bottom: 24px; margin-bottom: 24px;
...@@ -77,10 +108,23 @@ function openPage (data) { ...@@ -77,10 +108,23 @@ function openPage (data) {
} }
img { img {
width: 64px; width: 85px;
height: 64px; height: 85px;
object-fit: cover; object-fit: contain;
margin-right: 24px; margin-right: 30px;
border-radius: 15px;
} }
} }
.iframe-container {
position: absolute;
top: 10%;
left: 6%;
}
.iframe-container iframe {
position: absolute;
top: 0;
left: 0;
}
</style> </style>
...@@ -406,8 +406,8 @@ function submit () { ...@@ -406,8 +406,8 @@ function submit () {
width: 360px; width: 360px;
height: 144px; height: 144px;
background: linear-gradient(180deg, #DEEBFF 0%, rgba(222, 235, 255, 0) 100%), #FFFFFF; background: linear-gradient(180deg, #DEEBFF 0%, rgba(222, 235, 255, 0) 100%), #FFFFFF;
box-shadow: 0px 9px 28px 8px rgba(46, 119, 227, 0.02), 0px 6px 16px 0px rgba(46, 119, 227, 0.04), 0px 3px 6px -4px rgba(46, 119, 227, 0.06); box-shadow: 0 9px 28px 8px rgba(46, 119, 227, 0.02), 0 6px 16px 0 rgba(46, 119, 227, 0.04), 0 3px 6px -4px rgba(46, 119, 227, 0.06);
border-radius: 0px 0px 0px 0px; border-radius: 15px;
border: 2px solid #FFFFFF; border: 2px solid #FFFFFF;
&:nth-child(2) { &:nth-child(2) {
...@@ -504,8 +504,9 @@ function submit () { ...@@ -504,8 +504,9 @@ function submit () {
.product-card { .product-card {
margin-bottom: 24px; margin-bottom: 24px;
border: 1px solid rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.08); //box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.08);
border-radius: 0px 0px 0px 0px; box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.08);
border-radius: 15px;
&:hover { &:hover {
border: 1px solid #2E77E3; border: 1px solid #2E77E3;
...@@ -514,6 +515,7 @@ function submit () { ...@@ -514,6 +515,7 @@ function submit () {
.top-info { .top-info {
padding: 18px 20px 12px 20px; padding: 18px 20px 12px 20px;
border-radius: 15px 15px 0 0;
background: linear-gradient(153deg, rgba(255, 175, 175, 0) 0%, #FDE7E7 100%), linear-gradient(145deg, #EDFCFF 0%, rgba(97, 227, 255, 0) 100%), #F0F6FF; background: linear-gradient(153deg, rgba(255, 175, 175, 0) 0%, #FDE7E7 100%), linear-gradient(145deg, #EDFCFF 0%, rgba(97, 227, 255, 0) 100%), #F0F6FF;
.title { .title {
......
...@@ -156,15 +156,15 @@ ...@@ -156,15 +156,15 @@
</template> </template>
<script setup name="Index"> <script setup name="Index">
import { banner, assemblyList, informationList } from '@/api/home.js' import {banner, assemblyList, informationList} from '@/api/home.js'
import { ref } from 'vue' import {ref} from 'vue'
const baseUrl = import.meta.env.VITE_APP_BASE_API const baseUrl = import.meta.env.VITE_APP_BASE_API
const assemblyData = ref([]) const assemblyData = ref([])
const bannerImgList = ref([]) const bannerImgList = ref([])
function getBanner () { function getBanner() {
banner().then(res => { banner().then(res => {
bannerImgList.value = res.data bannerImgList.value = res.data
}) })
...@@ -172,7 +172,7 @@ function getBanner () { ...@@ -172,7 +172,7 @@ function getBanner () {
getBanner() getBanner()
function getAassemblyList () { function getAassemblyList() {
assemblyList().then(res => { assemblyList().then(res => {
assemblyData.value = res.data.length > 3 ? res.data.slice(0, 3) : res.data assemblyData.value = res.data.length > 3 ? res.data.slice(0, 3) : res.data
}) })
...@@ -183,7 +183,7 @@ getAassemblyList() ...@@ -183,7 +183,7 @@ getAassemblyList()
const informationData = ref([]) const informationData = ref([])
const informationMainData = ref({}) const informationMainData = ref({})
function getInformation () { function getInformation() {
informationList().then(res => { informationList().then(res => {
res.data.forEach(item => { res.data.forEach(item => {
item.year = new Date(item.createTime).getFullYear() item.year = new Date(item.createTime).getFullYear()
...@@ -201,7 +201,7 @@ function getInformation () { ...@@ -201,7 +201,7 @@ function getInformation () {
getInformation() getInformation()
function openAssembly (data) { function openAssembly(data) {
window.open(data.url) window.open(data.url)
} }
</script> </script>
...@@ -227,7 +227,8 @@ function openAssembly (data) { ...@@ -227,7 +227,8 @@ function openAssembly (data) {
} }
.block { .block {
width: 1280px; //width: 1280px;
width: calc(100% - 214px);
margin: 0 auto; margin: 0 auto;
} }
...@@ -263,6 +264,7 @@ function openAssembly (data) { ...@@ -263,6 +264,7 @@ function openAssembly (data) {
border: 1px solid #C8CBCC; border: 1px solid #C8CBCC;
border-radius: 2px; border-radius: 2px;
height: 40px; height: 40px;
color: #303233;
} }
.resource-item { .resource-item {
...@@ -391,8 +393,18 @@ function openAssembly (data) { ...@@ -391,8 +393,18 @@ function openAssembly (data) {
} }
} }
//.information-right {
// //flex: 1;
// padding-right: 210px;
//}
//.information {
// width: 100%;
// padding: 0 214px;
//}
.information-item { .information-item {
width: 470px; width: 570px;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
...@@ -418,8 +430,8 @@ function openAssembly (data) { ...@@ -418,8 +430,8 @@ function openAssembly (data) {
img { img {
margin-top: 25px; margin-top: 25px;
width: 469px; width: 569px;
height: 286px;
} }
.date { .date {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment