xyg 6 сар өмнө
parent
commit
6392ab54d7

+ 3 - 3
nngkxxdp/src/main/resources/static/naxsb/dqfw.html

@@ -277,7 +277,7 @@
         el: '#dqfw',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 currentTab: '',
                 currtopId: '',
                 leftList: [],
@@ -294,7 +294,7 @@
             getParkData(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/partyService/listAll/" + id,
+                    url: "partyService/listAll/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -319,7 +319,7 @@
             getrightData(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/partyService/" + id,
+                    url: "partyService/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

+ 21 - 6
nngkxxdp/src/main/resources/static/naxsb/floorone.html

@@ -149,12 +149,12 @@
                 @click="floorChange(tab.id)">
                 {{tab.name}}
             </div>
-            <div class="list" @click="backsw">返回室外</div>
+            <div class="list" @click="backsw">返回室外{{currentFloor}}</div>
         </div>
         <div id="lines" style="display: none;"></div>
         <div id="lineh" style="display: none;"></div>
         <div id="redio" style="display: none;"></div>
-        <div class="detailDiv" v-if="popupShow">
+        <div class="detailDiv" style="display: none;">
             <div v-show="popupType == '1'">
                 <div class="top">
                     <div style="font-weight: bold;font-size: 1.625rem;">{{btnName}}您可以办理:</div>
@@ -410,8 +410,14 @@
         },
         created() {
             this.unitBtnClick();
+            // this.currentFloor = this.$route.query.floorid;
+        },
+        mounted() {
+            const url = new URL(window.location.href);
+            const id = url.searchParams.get('floorid');
+            this.currentFloor = id;
+            console.log(this.currentFloor)
         },
-
         methods: {
             handleCurrentChange(val) {
                 this.getItemList(val, this.btnid)
@@ -425,6 +431,8 @@
                 this.popupShow = false;
                 this.unitBtnClick();
                 this.showthreed();
+                var detailDivs = document.getElementsByClassName('detailDiv');
+                detailDivs[0].style.display = 'none'; // 强制显示元素
             },
             showthreed() {
                 $('.threed').show();
@@ -450,7 +458,7 @@
             getItemList(currentPage, businessId) {
                 var that = this;
                 $.ajax({
-                    url: "http://183.64.61.180:8082/handleBusiness/query",
+                    url: "handleBusiness/query",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({
@@ -473,11 +481,18 @@
     document.querySelectorAll('.namebtn').forEach(function (element) {
         element.addEventListener('click', function (event) {
 
+            var detailDivs = document.getElementsByClassName('detailDiv');
+            detailDivs[0].style.display = 'block'; // 强制显示元素
+
+
+
+            var offset2 = $(detailDivs[0]).offset(); // 获取偏移量
+
             that.nowDiv.popupShow = true;
             //弹窗的宽高
             var element2 = document.getElementsByClassName('detailDiv');
             var offset2 = $('.detailDiv').offset();
-            console.log(offset2)
+            console.log(offset2);
             var rect = element2[0].getBoundingClientRect();
             var height2 = rect.top;
             var left2 = rect.left;
@@ -522,7 +537,7 @@
             if (id) {
                 that.nowDiv.btnid = id;
                 $.ajax({
-                    url: "http://183.64.61.180:8082/handleBusiness/" + id,
+                    url: "handleBusiness/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

+ 4 - 4
nngkxxdp/src/main/resources/static/naxsb/indexcygyy.html

@@ -384,7 +384,7 @@
         el: '#indexcygyy',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 currentTab: -1,
                 titleList: [],
                 currentTitle: '',
@@ -463,7 +463,7 @@
             getSellBuild(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellBuild",
+                    url: "sellBuild",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({
@@ -485,7 +485,7 @@
             getParkData() {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/",
+                    url: "parkData/",
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -501,7 +501,7 @@
             getDetailData(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/" + id,
+                    url: "parkData/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

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

@@ -301,7 +301,7 @@
             getParkData() {
                 let that = this;
                 $.ajax({
-                    url: "http://183.64.61.180:8082/parkData/",
+                    url: "parkData/",
                     type: "get",
                     dataType: "json",
                     success: function (data) {

+ 31 - 6
nngkxxdp/src/main/resources/static/naxsb/qjt.html

@@ -52,6 +52,10 @@
                 top: 45px;
             }
         }
+
+        .building-box {
+            cursor: pointer;
+        }
     </style>
 </head>
 
@@ -306,7 +310,7 @@
                         div.id = child.uuid;
                         let html = '';
                         html += '<div class="building-box" style="width: 100px; top: -146px; left: -48px;">';
-                        html += '<div class="building-text" style="background: #1D96E9;" onclick="infloor(1)">';
+                        html += '<div class="building-text" style="background: #1D96E9;" onclick="handleClick()">';
                         html += '<span>1号楼</span><span style="font-size: 10px;">社保大厅、医保大厅</span>';
                         html += '</div>';
                         html += '<svg width="10" height="10"><polygon id="triangle" points="0,0 10,0 5,10" fill="#1D96E9"/></svg>';
@@ -316,6 +320,17 @@
                         div.innerHTML = html;
                         let tag = new THREE.CSS2DObject(div);
                         child.add(tag);
+                        div.style.pointerEvents = 'auto';
+
+                        div.addEventListener('click', function (event) {
+                            window.location.href = 'floorone.html?floorid=' + 1;
+                        });
+
+
+
+
+
+
                     }
                     // 二号楼
                     if (child.name == 'erhaolou') {
@@ -333,6 +348,11 @@
                         div.innerHTML = html;
                         let tag = new THREE.CSS2DObject(div);
                         child.add(tag);
+                        div.style.pointerEvents = 'auto';
+
+                        div.addEventListener('click', function (event) {
+                            window.location.href = 'floorone.html?floorid=' + 2;
+                        });
                     }
                     // 三号楼
                     if (child.name == 'sanhaolou') {
@@ -350,6 +370,11 @@
                         div.innerHTML = html;
                         let tag = new THREE.CSS2DObject(div);
                         child.add(tag);
+                        div.style.pointerEvents = 'auto';
+
+                        div.addEventListener('click', function (event) {
+                            window.location.href = 'floorone.html?floorid=' + 3;
+                        });
                     }
                     // 四号楼
                     if (child.name == 'sihaolou-Chrome') {
@@ -390,6 +415,11 @@
             });
             scene.add(obj.scene);
 
+
+
+
+
+
             // 计算模型的统计中心
             const box = new THREE.Box3().setFromObject(obj.scene);
             const center = new THREE.Vector3();
@@ -408,11 +438,6 @@
             console.log('load error!' + error);
         })
 
-        function infloor(num) {
-            console.log(num)
-            window.location.href = 'floorone.html?id=' + num;
-        }
-
         function render() {
             // 执行渲染操作
             css2Renderer.render(scene, camera)

+ 14 - 12
nngkxxdp/src/main/resources/static/naxsb/syyggyy.html

@@ -352,7 +352,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
         el: '#ggyq',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 pageSize: 20,
                 jbqk: {},
                 qwysList: [],
@@ -400,7 +400,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
             getJBQK(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/" + id,
+                    url: "parkData/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -427,17 +427,19 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
                 const id = addr.searchParams.get('id');
                 // 设定中心点和地图级别
                 if (id == 1) {
-                    map.centerAndZoom(new BMap.Point(106.651444, 29.48682), 16);
+                    map.centerAndZoom(new BMap.Point(106.651444, 29.48682), 14);
+                    var marker = new BMap.Marker(new BMap.Point(106.651444, 29.48682));        // 创建标注    
+                    map.addOverlay(marker);
                 } else if (id == 2) {
-                    map.centerAndZoom(new BMap.Point(106.76723874457288, 29.583376880811712), 16);
+                    map.centerAndZoom(new BMap.Point(106.76723874457288, 29.583376880811712), 14);
                 } else if (id == 3) {
-                    map.centerAndZoom(new BMap.Point(106.69517131217539, 29.52577313312822), 16);
+                    map.centerAndZoom(new BMap.Point(106.69517131217539, 29.52577313312822), 14);
                 } else if (id == 4) {
-                    map.centerAndZoom(new BMap.Point(106.559829995157, 29.511581648208534), 16);
+                    map.centerAndZoom(new BMap.Point(106.559829995157, 29.511581648208534), 14);
                 } else if (id == 5) {
-                    map.centerAndZoom(new BMap.Point(106.72294027111843, 29.505690776940248), 16);
+                    map.centerAndZoom(new BMap.Point(106.72294027111843, 29.505690776940248), 14);
                 } else {
-                    map.centerAndZoom(new BMap.Point(106.651444, 29.48682), 16);
+                    map.centerAndZoom(new BMap.Point(106.651444, 29.48682), 14);
                 }
                 if (!points) return;
                 let pointList = points.split('@');
@@ -510,7 +512,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
             getDetail(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/details/" + id,
+                    url: "parkData/details/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -535,7 +537,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
             getSellBuild(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellBuild",
+                    url: "sellBuild",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({
@@ -556,7 +558,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
             getSellLand(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellLand",
+                    url: "sellLand",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({
@@ -574,7 +576,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
             getParkActivity(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkActivity",
+                    url: "parkActivity",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({

+ 2 - 2
nngkxxdp/src/main/resources/static/naxsb/tdcr.html

@@ -242,7 +242,7 @@
         el: '#tdcr',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 tdcrDetail: {},
                 imgUrl: '',
                 swiperList: []
@@ -337,7 +337,7 @@
             getLandDetail(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellLand/" + id,
+                    url: "sellLand/" + id,
                     type: "get",
                     async: false,
                     dataType: "json",

+ 4 - 4
nngkxxdp/src/main/resources/static/naxsb/tdcrlist.html

@@ -232,7 +232,7 @@
         data: function () {
             return {
                 // reqPtah: 'http://172.16.99.105:8082',
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 currentPq: 1,
                 contentList: [],
                 pageSize: 1000,
@@ -270,7 +270,7 @@
             getSellLand(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellLand",
+                    url: "sellLand",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({
@@ -290,7 +290,7 @@
             getParkDetail() {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/" + that.currentPq,
+                    url: "parkData/" + that.currentPq,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -335,7 +335,7 @@
             getSellBuild(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellBuild",
+                    url: "sellBuild",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({

+ 2 - 2
nngkxxdp/src/main/resources/static/naxsb/tsfw.html

@@ -217,7 +217,7 @@
         el: '#tsfw',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 // reqPtah: 'http://172.16.99.105:8082',
                 leftList: [],
                 person: '',
@@ -229,7 +229,7 @@
             getParkData(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/specialService/list/" + id,
+                    url: "specialService/list/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

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

@@ -420,7 +420,7 @@
         data: function () {
             return {
                 dialogVisible: false,
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 form: {
                     unitName: '',
                     projectCoding: '',

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

@@ -198,7 +198,7 @@
         data: function () {
             return {
                 dialogVisible: false,
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 form: {
                     overtimeName: '',
                     overtimeAge: '',

+ 2 - 2
nngkxxdp/src/main/resources/static/naxsb/znxz.html

@@ -234,7 +234,7 @@
         el: '#znxz',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 tjdzList: [
                     {
                         name: "软信服务业"
@@ -263,7 +263,7 @@
             getParkData(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/selectionAddr/listAll/" + id,
+                    url: "selectionAddr/listAll/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

+ 2 - 2
nngkxxdp/src/main/resources/static/naxsb/ztcrdetail.html

@@ -277,7 +277,7 @@
         el: '#ztcr',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 ztcrDetail: {},
                 imgUrl: 'images/slide1.png',
                 swiperList: [],
@@ -314,7 +314,7 @@
             getBuildDetail(id) {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellBuild/" + id,
+                    url: "sellBuild/" + id,
                     type: "get",
                     dataType: "json",
                     success: function (data) {

+ 4 - 4
nngkxxdp/src/main/resources/static/naxsb/ztcrlist.html

@@ -229,7 +229,7 @@
         el: '#znxz',
         data: function () {
             return {
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 pageSize: 10000,
                 parkMap: {},
                 maptitle: '',
@@ -344,7 +344,7 @@
             getParkDetail() {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/parkData/" + that.currentPq,
+                    url: "parkData/" + that.currentPq,
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -394,7 +394,7 @@
                     title: "全部"
                 });
                 $.ajax({
-                    url: that.reqPtah + "/parkData",
+                    url: "parkData",
                     type: "get",
                     dataType: "json",
                     success: function (data) {
@@ -407,7 +407,7 @@
             getSellBuild() {
                 let that = this;
                 $.ajax({
-                    url: that.reqPtah + "/sellBuild",
+                    url: "sellBuild",
                     type: "post",
                     contentType: 'application/json',
                     data: JSON.stringify({

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

@@ -239,7 +239,7 @@
         data: function () {
             return {
                 dialogVisible: false,
-                reqPtah: 'http://183.64.61.180:8082',
+                reqPtah: 'http://8.137.113.116:8082',
                 form: {
                     experienceName: '',
                     experienceAge: '',