| </section> | </section> | ||||
| <section class="footer_info"> | <section class="footer_info"> | ||||
| <div class="title">小昆山经济开发区</div> | |||||
| <div class="title">{{ areaName }}</div> | |||||
| <div class="info"> | <div class="info"> | ||||
| <div> | <div> | ||||
| <span>上海市·市辖区·松江区·小昆山镇</span> | <span>上海市·市辖区·松江区·小昆山镇</span> | ||||
| //例如:import 《组件名称》 from '《组件路径》'; | //例如:import 《组件名称》 from '《组件路径》'; | ||||
| export default { | export default { | ||||
| props: { | |||||
| areaName: { | |||||
| type: String, | |||||
| require: true, | |||||
| default: "", | |||||
| }, | |||||
| }, | |||||
| //import引入的组件需要注入到对象中才能使用 | //import引入的组件需要注入到对象中才能使用 | ||||
| components: {}, | components: {}, | ||||
| data() { | data() { |
| <section class="wrap_left"> | <section class="wrap_left"> | ||||
| <!-- <img src="@assets/image/index/logo.png" alt="logo" /> | <!-- <img src="@assets/image/index/logo.png" alt="logo" /> | ||||
| 小昆山数据可视化平台 --> | 小昆山数据可视化平台 --> | ||||
| <img src="@assets/image/index/logo-n.png" alt="logo" /> | |||||
| <!-- <img src="@assets/image/index/logo-n.png" alt="logo" /> --> | |||||
| {{ areaName }} | |||||
| </section> | </section> | ||||
| <section class="wrap_right"> | <section class="wrap_right"> | ||||
| <div> | <div> | ||||
| import { routerOpenInNewWindow } from "@/utils/common.js"; | import { routerOpenInNewWindow } from "@/utils/common.js"; | ||||
| import { mapGetters } from "vuex"; | import { mapGetters } from "vuex"; | ||||
| export default { | export default { | ||||
| props: { | |||||
| areaName: { | |||||
| type: String, | |||||
| require: true, | |||||
| default: "", | |||||
| }, | |||||
| }, | |||||
| //import引入的组件需要注入到对象中才能使用 | //import引入的组件需要注入到对象中才能使用 | ||||
| components: {}, | components: {}, | ||||
| computed: { | computed: { | ||||
| @include flex(row, space-between, center, wrap); | @include flex(row, space-between, center, wrap); | ||||
| .wrap_left { | .wrap_left { | ||||
| @include flex(row, center, center, wrap); | @include flex(row, center, center, wrap); | ||||
| font-size: 18px; | |||||
| img { | img { | ||||
| @include size(auto, 45px); | @include size(auto, 45px); | ||||
| margin-right: 10px; | margin-right: 10px; |
| <template> | <template> | ||||
| <div class="banner"> | <div class="banner"> | ||||
| <section class="nav"> | <section class="nav"> | ||||
| <Nav></Nav> | |||||
| <Nav :areaName="areaName"></Nav> | |||||
| </section> | </section> | ||||
| <!-- <el-carousel height="600px"> | <!-- <el-carousel height="600px"> | ||||
| <el-carousel-item v-for="item in 1" :key="item"> | <el-carousel-item v-for="item in 1" :key="item"> | ||||
| <img :src="item" alt="" /> | <img :src="item" alt="" /> | ||||
| </el-carousel-item> | </el-carousel-item> | ||||
| </el-carousel> --> | |||||
| </el-carousel>--> | |||||
| </div> | </div> | ||||
| </template> | </template> | ||||
| import Nav from "@components/Header.vue"; | import Nav from "@components/Header.vue"; | ||||
| export default { | export default { | ||||
| props: { | |||||
| areaName: { | |||||
| type: String, | |||||
| require: true, | |||||
| default: "", | |||||
| }, | |||||
| }, | |||||
| //import引入的组件需要注入到对象中才能使用 | //import引入的组件需要注入到对象中才能使用 | ||||
| components: { Nav }, | components: { Nav }, | ||||
| data() { | data() { | ||||
| } | } | ||||
| .is-active button::after, | .is-active button::after, | ||||
| .el-carousel__indicator:hover button::after { | .el-carousel__indicator:hover button::after { | ||||
| opacity: 0.72; | |||||
| background: #0086e7; | |||||
| opacity: 0.72; | |||||
| background: #0086e7; | |||||
| } | } | ||||
| } | } | ||||
| </style> | </style> |
| <template> | <template> | ||||
| <div class="home"> | <div class="home"> | ||||
| <Banner></Banner> | |||||
| <Banner :areaName="areaName"></Banner> | |||||
| <div> | <div> | ||||
| <park-introduce :navLists="indexTab" :parkInfo="parkInfo"></park-introduce> | |||||
| <park-introduce :navLists="indexTab" :parkInfo="parkInfo" :areaName="areaName"></park-introduce> | |||||
| <!-- 产业导向和发展方向 --> | <!-- 产业导向和发展方向 --> | ||||
| <ParkCard :name="'industrialOrientation'" :data="industrialOrientation" /> | <ParkCard :name="'industrialOrientation'" :data="industrialOrientation" /> | ||||
| <product :leadingIndustryArr="leadingIndustryArr"></product> | <product :leadingIndustryArr="leadingIndustryArr"></product> | ||||
| <advantage></advantage> | <advantage></advantage> | ||||
| <park-map :address="address"></park-map> | <park-map :address="address"></park-map> | ||||
| <ParkCard :name="'surroundingFacilities'" :data="surroundingFacilities" /> | <ParkCard :name="'surroundingFacilities'" :data="surroundingFacilities" /> | ||||
| <Footer></Footer> | |||||
| <Footer :areaName="areaName"></Footer> | |||||
| <slide-nav :navLists="indexTab" v-if="navShow"></slide-nav> | <slide-nav :navLists="indexTab" v-if="navShow"></slide-nav> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| // 周边配套 | // 周边配套 | ||||
| surroundingFacilities: null, | surroundingFacilities: null, | ||||
| navShow:false, | navShow:false, | ||||
| // 园区名称 | |||||
| areaName:"", | |||||
| }; | }; | ||||
| }, | }, | ||||
| computed: {}, | computed: {}, | ||||
| this.surroundingFacilities = | this.surroundingFacilities = | ||||
| this.parkInfo.surroundingFacilities; | this.parkInfo.surroundingFacilities; | ||||
| this.navShow = true; | this.navShow = true; | ||||
| this.areaName = this.parkInfo.areaName; | |||||
| } else { | } else { | ||||
| this.$message.error(`获取数据失败,请刷新重试!`); | this.$message.error(`获取数据失败,请刷新重试!`); | ||||
| } | } |
| <template> | <template> | ||||
| <div class="park_introduce" id="anchor-produce"> | <div class="park_introduce" id="anchor-produce"> | ||||
| <section class="top"> | <section class="top"> | ||||
| <div class="title">小昆山经济开发区</div> | |||||
| <div class="title">{{ areaName }}</div> | |||||
| <div class="subtitle">全面提升管理服务水平</div> | <div class="subtitle">全面提升管理服务水平</div> | ||||
| </section> | </section> | ||||
| <ul class="middle"> | <ul class="middle"> | ||||
| type: Object, | type: Object, | ||||
| default: () => {}, | default: () => {}, | ||||
| }, | }, | ||||
| areaName: { | |||||
| type: String, | |||||
| require: true, | |||||
| default: "", | |||||
| }, | |||||
| }, | }, | ||||
| data() { | data() { | ||||
| //这里存放数据 | //这里存放数据 |
| // 测试环境 | // 测试环境 | ||||
| // target: "http://192.168.18.236:18888/", | // target: "http://192.168.18.236:18888/", | ||||
| // 线上测试环境 | // 线上测试环境 | ||||
| target: "http://park.test.hhrchina.com/", | |||||
| // target: "http://park.test.hhrchina.com/", | |||||
| target: "http://xiaokunshan.cn", | |||||
| // 谢老师 | // 谢老师 | ||||
| // target: "http://192.168.18.138:18888/", | // target: "http://192.168.18.138:18888/", | ||||
| // 阚老师 | // 阚老师 |