MS-FUUVYHVOEAYJ\Administrator il y a 6 mois
Parent
commit
5bba95ef25

+ 1 - 1
nngkxxdp/src/main/resources/static/naxsb/cybj.html

@@ -4,7 +4,7 @@
 <head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <title></title>
+  <title>产业布局</title>
   <!-- 引入 Vue -->
   <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
   <!-- 引入样式 -->

BIN
nngkxxdp/src/main/resources/static/naxsb/images/jbqki1.png


BIN
nngkxxdp/src/main/resources/static/naxsb/images/jbqki2.png


BIN
nngkxxdp/src/main/resources/static/naxsb/images/jbqki3.png


+ 33 - 22
nngkxxdp/src/main/resources/static/naxsb/indexbmhq.html

@@ -4,7 +4,7 @@
 <head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <title></title>
+  <title>四园一港</title>
   <!-- 引入 Vue -->
   <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
   <!-- 引入样式 -->
@@ -99,6 +99,7 @@
       padding: 25px;
       box-sizing: border-box;
     }
+
     /* .el-collapse-item:hover{
       transform: scale(1.2);
     } */
@@ -113,22 +114,23 @@
       letter-spacing: 2px;
       /* font-weight: 600; */
       padding: 15px;
-      border-bottom: 1px solid rgba(255, 255, 255, .3);
+      border-bottom: none;
     }
-    .el-collapse-item__header:hover{
+
+    .el-collapse-item__header:hover {
       transform: scale(1.2);
     }
 
     .el-collapse-item__wrap {
       background-color: transparent;
-      border-bottom: 1px solid rgba(255, 255, 255, .3);
+      border-bottom: none;
     }
 
     .el-collapse-item__content {
       padding: 0 15px 15px 15px;
     }
 
-    .el-collapse-item.is-disabled .el-collapse-item__header{
+    .el-collapse-item.is-disabled .el-collapse-item__header {
       cursor: pointer;
     }
 
@@ -196,6 +198,14 @@
       cursor: pointer;
     }
 
+    .el-collapse-item {
+      border-bottom: 1px solid rgba(255, 255, 255, .3);
+    }
+
+    .el-collapse-item:last-child {
+      border-bottom: none;
+    }
+
     /* 淡出动画 */
     .fade-out {
       animation: fadeOut 1s forwards;
@@ -269,8 +279,8 @@
             </div>
           </template>
           <div class="collapseItem">
-            <div class="link" @click="goToLink('wybdb.html')">帮代办</div>
-            <div class="link" @click="goToLink('wyyy.html')">延时办</div>
+            <div class="link" @click="window.open('wybdb.html')">帮代办</div>
+            <div class="link" @click="window.open('wyyy.html')">延时办</div>
             <div class="link" @click="goToLink('qysmzq.html')">生命周期</div>
           </div>
         </el-collapse-item>
@@ -282,7 +292,8 @@
             </div>
           </template>
           <div class="collapseItem">
-            <div class="link" v-for="(item, index)  in this.titleList" :key="index" @click="tsmore(item.id)">{{item.title}}</div>
+            <div class="link" v-for="(item, index)  in this.titleList" :key="index" @click="tsmore(item.id)">
+              {{item.title}}</div>
           </div>
         </el-collapse-item>
         <el-collapse-item name="3" disabled>
@@ -337,7 +348,7 @@
         fadeIn: false
       };
     },
-    created() {},
+    created() { },
     mounted() {
       this.getParkData()
     },
@@ -357,19 +368,19 @@
         window.location.href = "indexsyy.html?id=" + id;
       },
       getParkData() {
-                let that = this;
-                $.ajax({
-                    url: conpath + "/parkData/",
-                    type: "get",
-                    dataType: "json",
-                    success: function (data) {
-                        data.forEach(function (item) {
-                            item.subtitleList = item.subtitle ? item.subtitle.split(",").slice(0, 3) : [];
-                        })
-                        that.titleList = data;
-                    }
-                })
-            }
+        let that = this;
+        $.ajax({
+          url: conpath + "/parkData/",
+          type: "get",
+          dataType: "json",
+          success: function (data) {
+            data.forEach(function (item) {
+              item.subtitleList = item.subtitle ? item.subtitle.split(",").slice(0, 3) : [];
+            })
+            that.titleList = data;
+          }
+        })
+      }
     }
   });
 </script>

+ 124 - 6
nngkxxdp/src/main/resources/static/naxsb/indexsyy.html

@@ -114,7 +114,7 @@
       font-size: 1.37rem;
       font-family: Microsoft YaHei;
       letter-spacing: 2px;
-      font-weight: 600;
+      /* font-weight: 600; */
       padding: 25px;
       width: 100%;
       display: flex;
@@ -217,7 +217,7 @@
       color: #176ED0;
       font-size: 1.375rem;
       border-bottom: 1px solid #176ED0;
-      width: calc(100% - 45px);
+      width: calc(100% - 50px);
       margin: auto;
       font-weight: 600;
     }
@@ -279,6 +279,64 @@
       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;
@@ -330,7 +388,33 @@
     :style="{ backgroundImage: 'url(' + backgroundImage + ')' }">
     <div class="title">
       <span class="subtitle">{{parkName}}</span>
-      <div class="mainTitle">{{parkDesc?parkDesc:'暂无简介'}}</div>
+      <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>
+        {{parkDesc?parkDesc:'暂无简介'}}
+      </div>
     </div>
     <div class="backbutton" @click="window.history.go(-1)">
       <img src="images/backlogo.png" alt="">
@@ -353,7 +437,7 @@
           <img src="images/arrowR.png" />
         </div>
       </li>
-      <li class="contentList" @click="golink('wybdb.html')">
+      <li class="contentList" @click="window.open('wybdb.html')">
         <div class="listLeft">
           <img src="images/bdbfw.png" />&emsp;帮代办服务
         </div>
@@ -377,6 +461,14 @@
           <img src="images/arrowR.png" />
         </div>
       </li>
+      <li class="contentList" @click="golink('znxzchoice.html')">
+        <div class="listLeft">
+          <img src="images/tsfw2.png" />&emsp;智能选址
+        </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" />&emsp;明星企业
@@ -419,7 +511,8 @@
         fadeOut: false,
         fadeIn: false,
         id: null,
-        dialogVisible: false
+        dialogVisible: false,
+        jbqk: {}
       };
     },
     watch: {
@@ -518,6 +611,22 @@
         }
 
       },
+      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({
@@ -526,7 +635,16 @@
           dataType: "json",
           success: function (data) {
             that.parkDesc = data.desc;
-            that.parkName = data.title
+            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);
           }
         })
       },