123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title></title>
- <!-- 引入 Vue -->
- <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
- <!-- 引入样式 -->
- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
- <!-- 引入组件库 -->
- <script src="https://unpkg.com/element-ui/lib/index.js"></script>
- <link rel="stylesheet" href="swiper/swiper-bundle.css">
- <!-- jquery-->
- <script src="js/jquery-3.5.1.min.js"></script>
- <script src="js/urljson.js"></script>
- <style>
- * {
- padding: 0;
- margin: 0;
- font-family: Microsoft YaHei;
- }
- ul {
- list-style-type: none;
- }
- li {
- list-style: none;
- }
- @font-face {
- font-family: 'DOUYU';
- src: url('fonts/DOUYUFONT-2.OTF');
- font-weight: normal;
- font-style: normal;
- }
- @font-face {
- font-family: 'Source Han Sans SC';
- src: url('fonts/MSYHL.TTC');
- font-weight: normal;
- font-style: normal;
- }
- .backbutton img {
- margin-right: 0.625rem;
- }
- #indexcygyy {
- height: 100vh;
- /* background-image: url(images/indexcygyy.png); */
- background-size: 100% 100%;
- font-family: Microsoft YaHei;
- color: #FFFFFF;
- padding-top: 10px;
- box-sizing: border-box;
- position: relative;
- }
- .content {
- width: 20vw;
- /* min-width: 402px; */
- height: auto;
- background: rgb(4 20 40 / 50%);
- display: flex;
- flex-direction: column;
- align-items: center;
- left: 64%;
- top: 15vh;
- position: absolute;
- border-radius: 1.525rem;
- padding: 20px;
- }
- .title {
- color: #FFFFFF;
- position: absolute;
- left: 12%;
- top: 15vh;
- }
- .subtitle {
- font-family: DOUYU;
- font-size: 2.225rem;
- display: inline-block;
- padding: 2rem 3rem;
- background-color: #176ED0;
- border-radius: .5rem;
- }
- .mainTitle {
- border-radius: 0px 60px 0px 0px;
- font-size: 1.225rem;
- padding: 2rem 3rem;
- background-color: rgba(0, 0, 0, .5);
- text-indent: 2em;
- width: 32vw;
- height: 453px;
- overflow: auto;
- margin-top: 20px;
- line-height: 36px;
- -ms-overflow-style: none;
- scrollbar-width: none;
- }
- .contentList {
- height: auto;
- justify-content: space-between;
- line-height: normal;
- background-color: transparent;
- color: #FFFFFF !important;
- font-size: 1.37rem;
- font-family: Microsoft YaHei;
- letter-spacing: 2px;
- /* font-weight: 600; */
- padding: 25px;
- width: 100%;
- display: flex;
- justify-content: space-between;
- cursor: pointer;
- box-sizing: border-box;
- }
- .contentList:hover {
- transform: scale(1.2);
- }
- .listRight {
- display: flex;
- align-items: center;
- }
- .listRight>img {
- width: 0.7rem;
- height: 1.2rem;
- }
- .el-collapse-item__content {
- padding: 0 15px 15px 15px;
- }
- .listLeft {
- display: flex;
- align-items: center;
- }
- .collapseItem {
- color: #DFDFDF;
- display: flex;
- flex-wrap: wrap;
- font-size: 0.9rem;
- }
- .link {
- cursor: pointer;
- width: 50%;
- }
- .listLeft>img {
- width: 3rem;
- height: 3rem;
- }
- .content>.title {
- /* margin-top: 1.875rem; */
- font-family: DOUYU;
- font-weight: normal;
- font-size: 1.625rem;
- color: #FFFFFF;
- /* line-height: 3rem; */
- /* text-shadow: 0px 2px 4px rgba(11, 96, 169, 0.25); */
- background: linear-gradient(0deg, rgba(184, 225, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- .content>.line {
- width: 37.9375rem;
- height: 1.125rem;
- /* margin-bottom: 1.25rem; */
- }
- .content>.text {
- width: 95%;
- min-height: 120px;
- font-size: 1rem;
- color: #FFFFFF;
- line-height: 1.875rem;
- text-indent: 2.5rem;
- }
- .dialog {
- width: 76vw;
- background: rgba(4, 20, 40, .8);
- position: absolute;
- height: 71vh;
- top: 17vh;
- left: 12vw;
- display: flex;
- flex-direction: column;
- /* justify-content: center; */
- }
- .close>img {
- width: 1.1rem;
- height: 1.1rem;
- cursor: pointer;
- }
- .dialogHeader {
- display: flex;
- padding: 25px 25px;
- justify-content: space-between;
- color: #176ED0;
- font-size: 1.375rem;
- border-bottom: 1px solid #176ED0;
- width: calc(100% - 50px);
- margin: auto;
- font-weight: 600;
- }
- .dialogContent {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- grid-template-rows: 1fr 1fr 1fr;
- grid-row-gap: 20px;
- grid-column-gap: 20px;
- padding: 3rem;
- flex: 1;
- overflow: auto;
- -ms-overflow-style: none;
- scrollbar-width: none;
- }
- .diaBox {
- text-align: center;
- }
- .diaBox>img {
- width: 90%;
- height: 7.5rem;
- background-color: #fff;
- }
- /* 淡出动画 */
- .fade-out {
- animation: fadeOut 1s forwards;
- }
- /* 淡入动画 */
- .fade-in {
- animation: fadeIn 1s forwards;
- }
- .backbutton {
- width: 117px;
- height: 42px;
- background: url(images/buttonbg.png) no-repeat;
- background-size: 100% 100%;
- border-radius: 10px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- font-size: 16px;
- color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 10px;
- cursor: pointer;
- position: absolute;
- top: 4vh;
- right: 2vw;
- }
- .backbutton img {
- margin-right: 10px;
- }
- ::-webkit-scrollbar {
- display: none;
- /* Chrome Safari */
- }
- .jbqk {
- display: flex;
- justify-content: space-between;
- margin-bottom: 30px;
- }
- .jbqk img {
- margin: 0 10px;
- }
- .jbqk .list {
- width: 189px;
- height: 80px;
- background: #4EB2AD;
- display: flex;
- font-family: Microsoft YaHei;
- box-sizing: border-box;
- font-size: 18px;
- color: #ffffff;
- align-items: center;
- }
- .jbqk .right {
- display: flex;
- flex-direction: column;
- text-indent: 0;
- justify-content: center;
- height: 100%;
- box-sizing: border-box;
- }
- .jbqk .right>div {
- text-align: left;
- width: auto;
- }
- .jbqk .right>div span:last-child {
- font-size: 12px;
- }
- .jbqk .right>div span:first-child {
- font-size: 26px;
- font-weight: bold;
- }
- .cyfb {
- font-size: 12px;
- line-height: 15px;
- margin-top: 5px;
- }
- @keyframes fadeOut {
- from {
- opacity: 0.8;
- }
- to {
- opacity: 0.6;
- }
- }
- @keyframes fadeIn {
- from {
- opacity: 0.6;
- }
- to {
- opacity: 0.8;
- }
- }
- @media screen and (max-width:1600px) {
- html,
- body {
- font-size: 14px;
- }
- }
- @media screen and (max-width:1400px) {
- html,
- body {
- font-size: 14px;
- }
- }
- @media screen and (max-width:1300px) {
- html,
- body {
- font-size: 10px;
- }
- }
- </style>
- </head>
- <body>
- <div class="" id="indexcygyy" :class="{ 'fade-out': fadeOut, 'fade-in': fadeIn }"
- :style="{ backgroundImage: 'url(' + backgroundImage + ')' }">
- <div class="title">
- <span class="subtitle">{{parkName}}</span>
- <div class="mainTitle">
- <div class="jbqk">
- <div class="list" style="">
- <img src="images/jbqki1.png" alt="">
- <div class="right">
- <div>总面积</div>
- <div><span id="totalSpace">-</span><span>平方公里</span></div>
- </div>
- </div>
- <div class="list" style="background-color: #4B98F6;">
- <img src="images/jbqki2.png" alt="">
- <div class="right">
- <div>建成面积</div>
- <div><span id="buildSpace">-</span><span>平方公里</span></div>
- </div>
- </div>
- <div class="list" style="background-color: #4BB664;">
- <img src="images/jbqki3.png" alt="">
- <div class="right" style="justify-content: flex-start;">
- <div>产业分布</div>
- <span class="cyfb" :title="jbqk.industry">{{this.jbqk.industry?this.jbqk.industry:'- '}}</span>
- </div>
- </div>
- </div>
- <div style="text-indent:2em;">
- {{parkDesc?parkDesc:'暂无简介'}}
- </div>
- </div>
- </div>
- <div class="backbutton" @click="window.history.go(-1)">
- <img src="images/backlogo.png" alt="">
- <span>返回</span>
- </div>
- <div class="content">
- <li class="contentList" @click="golink('tsfw.html')">
- <div class="listLeft">
- <img src="images/tsfw.png" /> 特色服务
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="golink('dqfw.html')">
- <div class="listLeft">
- <img src="images/dqfw.png" /> 党群服务
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="window.open('wybdb.html')">
- <div class="listLeft">
- <img src="images/bdbfw.png" /> 帮代办服务
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="golink('tdcrlist.html',1)">
- <div class="listLeft">
- <img src="images/tdcrfw.png" /> 土地出让服务
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="golink('ztcrlist.html',2)">
- <div class="listLeft">
- <img src="images/ztfw_index.png" /> 载体服务
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="golink('znxzchoice.html')">
- <div class="listLeft">
- <img src="images/tsfw2.png" /> 智能选址
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- <li class="contentList" @click="dialogVisible=!dialogVisible">
- <div class="listLeft">
- <img src="images/mxqy.png" /> 明星企业
- </div>
- <div class="listRight">
- <img src="images/arrowR.png" />
- </div>
- </li>
- </div>
- <div v-if="dialogVisible" class="dialog">
- <div class="dialogHeader">
- <div class="dialogTitle">明星企业</div>
- <div class="close" @click="dialogVisible=!dialogVisible">
- <img src="images/close.png" />
- </div>
- </div>
- <div class="dialogContent">
- <div class="diaBox" v-for="(item,index) in mxqyList" @click="item.link?window.open(item.link):''">
- <img :src="item.logo" alt="">
- <div>{{item.title}}</div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script>
- // 初始化Vue实例
- new Vue({
- el: '#indexcygyy',
- data: function () {
- return {
- reqPtah: '',
- currentTab: -1,
- contentList: [],
- currentTitle: '',
- parkDesc: '',
- parkName: '',
- mxqyList: [],
- backgroundImage: 'images/indexsyyg.png',
- fadeOut: false,
- fadeIn: false,
- id: null,
- dialogVisible: false,
- jbqk: {}
- };
- },
- watch: {
- dialogVisible: {
- handler(val) {
- if (val) {
- this.getDetail(this.id)
- }
- }
- }
- },
- mounted() {
- const url = new URL(window.location.href);
- this.id = url.searchParams.get('id');
- this.getJBQK(this.id)
- if (this.id == 4) {
- this.backgroundImage = 'images/bg-npxq.png';
- } else if (this.id == 6) {
- this.backgroundImage = 'images/bg-dxkjy.png';
- } else if (this.id == 5) {
- this.backgroundImage = 'images/bg-ylcxg.jpg';
- } else {
- this.backgroundImage = 'images/indexsyyg.png';
- }
- },
- methods: {
- goIndex() {
- window.location.href = "indexsyyg.html"
- },
- back() {
- window.location.href = "indexsyyg.html"
- },
- getDetail(id) {
- let that = this;
- $.ajax({
- url: conpath + "/parkData/details/" + id,
- type: "get",
- dataType: "json",
- success: function (data) {
- that.mxqyList = data.filter(item => item.moduleType === "3");
- }
- });
- },
- golink(hrf, val) {
- if (!val) {
- window.location.href = `${hrf}?id=${this.id}`;
- } else {
- if (val === 1) {
- let that = this;
- $.ajax({
- url: conpath + "/sellLand",
- type: "post",
- contentType: 'application/json',
- data: JSON.stringify({
- "currentPage": 1,
- "pageSize": 10000,
- "parkId": that.id,
- "keyword": ''
- }),
- dataType: "json",
- success: function (data) {
- let dataList = data.list;
- that.contentList = dataList;
- if (that.contentList && !that.contentList.length) {
- that.$message.warning('暂无土地出让数据!');
- } else {
- window.location.href = `${hrf}?id=${that.id}`;
- }
- }
- });
- } else {
- let that = this;
- $.ajax({
- url: conpath + "/sellBuild",
- type: "post",
- contentType: 'application/json',
- data: JSON.stringify({
- "currentPage": 1,
- "pageSize": 10000,
- "parkId": that.id,
- "space1": null,
- "application": null
- }),
- dataType: "json",
- success: function (data) {
- let dataList = data.list;
- const contentList = dataList;
- if (contentList && !contentList.length) {
- that.$message.warning('暂无载体服务数据!');
- } else {
- window.location.href = `${hrf}?id=${that.id}`;
- }
- }
- });
- }
- }
- },
- animateValue(obj, start, end, duration) {
- let startTimestamp = null;
- const step = (timestamp) => {
- if (!startTimestamp) startTimestamp = timestamp;
- const progress = Math.min((timestamp - startTimestamp) / duration, 1);
- obj.innerHTML = Math.floor(progress * (end - start) + start);
- if (progress < 1) {
- window.requestAnimationFrame(step);
- } else {
- obj.innerHTML = end;
- obj.classList.remove('animate');
- }
- };
- obj.classList.add('animate');
- window.requestAnimationFrame(step);
- },
- getJBQK(id) {
- let that = this;
- $.ajax({
- url: conpath + "/parkData/" + id,
- type: "get",
- dataType: "json",
- success: function (data) {
- that.parkDesc = data.desc;
- that.jbqk = data;
- that.parkName = data.title;
- document.title = data.title;
- const time = 500;
- // 总面积
- const totalSpaceElement = document.getElementById('totalSpace');
- that.animateValue(totalSpaceElement, 0, data.totalArea ? parseFloat(data.totalArea).toFixed(2) : '-', time);
- // 建成面积
- const buildSpaceElement = document.getElementById('buildSpace');
- that.animateValue(buildSpaceElement, 0, data.buildArea ? parseFloat(data.buildArea).toFixed(2) : '-', time);
- }
- })
- },
- }
- });
- </script>
- </html>
|