Przeglądaj źródła

Merge branch 'master' of http://116.63.33.55/git/nazw

xyg 7 miesięcy temu
rodzic
commit
3fe1d5b247
1 zmienionych plików z 113 dodań i 147 usunięć
  1. 113 147
      nngkxxdp/src/main/resources/static/naxsb/syyggyy.html

+ 113 - 147
nngkxxdp/src/main/resources/static/naxsb/syyggyy.html

@@ -75,7 +75,7 @@
                         </div>
                         <div class="yqhd">
                             <ul>
-                                <li v-for="(item,index) in yqhdList">{{item.content}}</li>
+                                <li v-for="(item,index) in yqhdList">{{item.title}}</li>
                             </ul>
                         </div>
                     </div>
@@ -100,9 +100,9 @@
                             <span>政策文件</span>
                         </div>
                         <div class="zcwj">
-                            <ul>
-                                <li v-for="(item,index) in zcwjList">
-                                    <div>{{item.content}}</div>
+                            <ul v-if="zcwjList && zcwjList.length > 0">
+                                <li v-for="(item,index) in zcwjList" @click="goToLink(item.link)">
+                                    <div>{{item.title}}</div>
                                 </li>
                             </ul>
                         </div>
@@ -114,13 +114,13 @@
                             <div class="more" @click="ztcrmore">更多>></div>
                         </div>
                         <div class="ztcr">
-                            <div class="list" v-for="(item,index) in ztcrList" @click="goZtcr()">
+                            <div class="list" v-for="(item,index) in ztcrList" @click="goToLink('ztcrdetail.html?ztid=' + item.id)">
                                 <div class="bg">
-                                    <img :src="item.bgsrc" alt="">
-                                    <div class="number">{{item.number}}</div>
+                                    <img :src="item.logo" alt="">
+                                    <div class="number">{{item.space}}</div>
                                 </div>
-                                <div class="title">{{item.title}}</div>
-                                <div class="content">{{item.content}}</div>
+                                <div class="title">{{item.carrierName}}</div>
+                                <div class="content">{{item.subtitle}}</div>
                             </div>
                         </div>
                     </div>
@@ -135,9 +135,9 @@
                                 <div class="right">占地面积(亩)</div>
                             </div>
                             <div class="content">
-                                <div class="list" v-for="(item,index) in tdcrList" @click="goTdcr()">
-                                    <div class="left">{{item.dkbh}}</div>
-                                    <div class="right">{{item.zdmj}}</div>
+                                <div class="list" v-for="(item,index) in tdcrList" @click="goToLink('tdcr.html?tdid=' + item.id)">
+                                    <div class="left">{{item.landName}}</div>
+                                    <div class="right">{{item.landArea}}</div>
                                 </div>
                             </div>
                         </div>
@@ -150,7 +150,7 @@
                             <span>特色服务</span>
                         </div>
                         <div class="tsfw">
-                            <div class="list" v-for="(item,index) in tsfwList" @click="goTsfw(item.link)">
+                            <div class="list" v-for="(item,index) in tsfwList" @click="goToLink(item.link)">
                                 <img :src="item.logo" alt="">
                                 <span>{{ item.title }}</span>
                             </div>
@@ -178,138 +178,35 @@
         el: '#ggyq',
         data: function () {
             return {
+                reqPtah: 'http://172.16.99.105:8082',
+                pageSize: 20,
                 jbqk: {},
                 qwysList: [],
-                yqhdList: [
-                    {
-                        id: 1,
-                        content: '"四园一港"园区法律服务中心开展企业法律知识讲座'
-                    },
-                    {
-                        id: 2,
-                        content: '茶园工业园区首轮服务企业资源对接暨集中签约活动取得圆满成功'
-                    },
-                    {
-                        id: 3,
-                        content: '"金融助力·法律赋能·科技惠企进园区"活动在重庆经开区举行'
-                    },
-                    {
-                        id: 3,
-                        content: '"金融助力·法律赋能·科技惠企进园区"活动在重庆经开区举行'
-                    },
-                    {
-                        id: 3,
-                        content: '"金融助力·法律赋能·科技惠企进园区"活动在重庆经开区举行'
-                    },
-                    {
-                        id: 3,
-                        content: '"金融助力·法律赋能·科技惠企进园区"活动在重庆经开区举行'
-                    }
-                ],
+                yqhdList: [],
                 mxqyList: [],
                 tsfwList: [],
-                zcwjList: [
-                    {
-                        id: 1,
-                        content: '重庆市南岸区人民政府办公室 ​重庆经济技术开发区管理委员会办公室关于印发《南岸区重庆经开区优化营商环境专项行动方案​重庆经济技术开发区管理委员会办公室关于印发《南岸区重庆经开区优化营商环境专项行动方案'
-                    },
-                    {
-                        id: 2,
-                        content: '关于公开征求对《重庆市南岸区重庆经开区培育建设国际消费中心城市核心区十条扶持办法补充政策(征求意见稿)》的通知'
-                    },
-                    {
-                        id: 3,
-                        content: '重庆市南岸区人民政府办公室关于印发《支持绿色创新若干财政金融政策》的通知'
-                    },
-                    {
-                        id: 3,
-                        content: '重庆市南岸区人民政府办公室关于印发《支持绿色创新若干财政金融政策》的通知'
-                    },
-                    {
-                        id: 3,
-                        content: '重庆市南岸区人民政府办公室关于印发《支持绿色创新若干财政金融政策》的通知'
-                    },
-                    {
-                        id: 3,
-                        content: '重庆市南岸区人民政府办公室关于印发《支持绿色创新若干财政金融政策》的通知'
-                    }
-                ],
-                ztcrList: [
-                    {
-                        bgsrc: "images/ztcr1.png",
-                        number: "23786㎡",
-                        title: "办公楼、底商",
-                        content: "原迎龙医药城一期项目"
-                    },
-                    {
-                        bgsrc: "images/ztcr1.png",
-                        number: "23786㎡",
-                        title: "办公楼、底商",
-                        content: "原迎龙医药城一期项目"
-                    },
-                    {
-                        bgsrc: "images/ztcr1.png",
-                        number: "23786㎡",
-                        title: "办公楼、底商",
-                        content: "原迎龙医药城一期项目"
-                    }
-                ],
-                tdcrList: [
-                    {
-                        dkbh: "I26-3/03(部分建完)",
-                        zdmj: "58.45"
-                    },
-                    {
-                        dkbh: "经开区鹿角组团I分区I13-2/02宗地",
-                        zdmj: "62.58"
-                    },
-                    {
-                        dkbh: "I18-1/03(部分、停建)经开区鹿角组团I分区I22/01、I20-3/02号宗地",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    },
-                    {
-                        dkbh: "I19/02(部分建成,载体闲置较多)I21-1/02",
-                        zdmj: "192.11"
-                    }
-                ],
+                zcwjList: [],
+                ztcrList: [],
+                tdcrList: [],
                 fwsxqdList: []
             };
         },
+        mounted() {
+            const url = new URL(window.location.href);
+            const id = url.searchParams.get('id');
+            this.getJBQK(id);
+            this.getDetail(id);
+            this.getSellBuild(id);
+            this.getSellLand(id);
+            this.getParkActivity(id);
+        },
         methods: {
-            goZtcr() {
-                window.location.href = "ztcrdetail.html"
-            },
-            goTdcr() {
-                window.location.href = "tdcr.html"
-            },
             ztcrmore() {
-                window.location.href = "ztcrlist.html"
+                const url = new URL(window.location.href);
+                const id = url.searchParams.get('id');
+                window.open("ztcrlist.html?id=" + id);
             },
-            goTsfw(url) {
+            goToLink(url) {
                 if (url) {
                     window.open(url);
                 }
@@ -317,18 +214,37 @@
             getJBQK(id) {
                 let that = this;
                 $.ajax({
-                    url: "http://172.16.99.105:8082/parkData/" + id,
+                    url: that.reqPtah + "/parkData/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
                         that.jbqk = data;
+                        that.loadMap(data.addr);
                     }
                 })
             },
+            loadMap(points) {
+                let map = new BMap.Map("mapcontainer");
+                map.enableScrollWheelZoom();// 启用滚轮缩放
+                map.enableDragging(); // 启用拖拽功能
+                // 设定中心点和地图级别
+                map.centerAndZoom(new BMap.Point(106.651444,29.48682), 15);
+                if (!points) return;
+                let pointList = points.split('@');
+                let result = [];
+                pointList.forEach(function (point) {
+                    let arr = point.split(',');
+                    result.push(new BMap.Point(arr[0], arr[1]));
+                });
+                // 创建多边形
+                let polygon = new BMap.Polygon(result, {strokeColor:"blue", strokeWeight:2, strokeOpacity:0.5, fillColor:"blue", fillOpacity:0.15});
+                // 将多边形添加到地图中
+                map.addOverlay(polygon);
+            },
             getDetail(id) {
                 let that = this;
                 $.ajax({
-                    url: "http://172.16.99.105:8082/parkData/details/" + id,
+                    url: that.reqPtah + "/parkData/details/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -345,19 +261,69 @@
                         that.mxqyList = data.filter(item => item.moduleType === "3");
                         // 特色服务
                         that.fwsxqdList = data.filter(item => item.moduleType === "4");
+                        // 政策文件
+                        that.zcwjList = data.filter(item => item.moduleType === "5");
                     }
-                })
+                });
+            },
+            getSellBuild(id) {
+                let that = this;
+                $.ajax({
+                    url: that.reqPtah + "/sellBuild",
+                    type: "post",
+                    contentType: 'application/json',
+                    data: JSON.stringify({
+                        "currentPage": 1,
+                        "pageSize": that.pageSize,
+                        "parkId": id
+                    }),
+                    dataType: "json",
+                    success: function (data) {
+                        let dataList = data.list;
+                        dataList.forEach(function (d) {
+                           d.logo = d.imgUrl ? d.imgUrl.split(",")[0] : '';
+                        });
+                        that.ztcrList = dataList;
+                    }
+                });
+            },
+            getSellLand(id) {
+                let that = this;
+                $.ajax({
+                    url: that.reqPtah + "/sellLand",
+                    type: "post",
+                    contentType: 'application/json',
+                    data: JSON.stringify({
+                        "currentPage": 1,
+                        "pageSize": that.pageSize,
+                        "parkId": id
+                    }),
+                    dataType: "json",
+                    success: function (data) {
+                        let dataList = data.list;
+                        that.tdcrList = dataList;
+                    }
+                });
+            },
+            getParkActivity(id) {
+                let that = this;
+                $.ajax({
+                    url: that.reqPtah + "/parkActivity",
+                    type: "post",
+                    contentType: 'application/json',
+                    data: JSON.stringify({
+                        "currentPage": 1,
+                        "pageSize": that.pageSize,
+                        "parkId": id
+                    }),
+                    dataType: "json",
+                    success: function (data) {
+                        let dataList = data.list;
+                        that.yqhdList = dataList;
+                    }
+                });
             }
-
-        },
-        mounted() {
-            const url = new URL(window.location.href);
-            const id = url.searchParams.get('id');
-            this.getJBQK(id);
-            this.getDetail(id);
         }
     });
 </script>
-<script type="text/javascript" src="js/rightmap.js"></script>
-
 </html>