|
@@ -352,7 +352,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
el: '#ggyq',
|
|
|
data: function () {
|
|
|
return {
|
|
|
- reqPtah: 'http://8.137.113.116:8082',
|
|
|
+ reqPtah: '',
|
|
|
pageSize: 20,
|
|
|
jbqk: {},
|
|
|
qwysList: [],
|
|
@@ -400,7 +400,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
getJBQK(id) {
|
|
|
let that = this;
|
|
|
$.ajax({
|
|
|
- url: "parkData/" + id,
|
|
|
+ url: that.reqPtah + "/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), 14);
|
|
|
+ map.centerAndZoom(new BMap.Point(106.651444, 29.45682), 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), 14);
|
|
|
+ map.centerAndZoom(new BMap.Point(106.76723874457288, 29.573276880811712), 14);
|
|
|
} else if (id == 3) {
|
|
|
- map.centerAndZoom(new BMap.Point(106.69517131217539, 29.52577313312822), 14);
|
|
|
+ map.centerAndZoom(new BMap.Point(106.69517131217539, 29.51577313312822), 15);
|
|
|
} else if (id == 4) {
|
|
|
- map.centerAndZoom(new BMap.Point(106.559829995157, 29.511581648208534), 14);
|
|
|
+ map.centerAndZoom(new BMap.Point(106.559829995157, 29.501581648208534), 15);
|
|
|
} else if (id == 5) {
|
|
|
- map.centerAndZoom(new BMap.Point(106.72294027111843, 29.505690776940248), 14);
|
|
|
+ map.centerAndZoom(new BMap.Point(106.72194027111843, 29.513690776940248), 16);
|
|
|
+ } else if (id == 6) {
|
|
|
+ map.centerAndZoom(new BMap.Point(106.70580793222035, 29.514020426917684), 16);
|
|
|
} else {
|
|
|
map.centerAndZoom(new BMap.Point(106.651444, 29.48682), 14);
|
|
|
}
|
|
@@ -459,6 +461,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
});
|
|
|
// 将多边形添加到地图中
|
|
|
map.addOverlay(polygon);
|
|
|
+
|
|
|
// 创建文本标签
|
|
|
if (id == 1) {
|
|
|
var opts = {
|
|
@@ -485,6 +488,11 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
position: new BMap.Point(106.71894027111843, 29.522690776940248), // 指定文本标签所在的地理位置
|
|
|
offset: new BMap.Size(10, 10) // 设置文本偏移量
|
|
|
};
|
|
|
+ } else if (id == 6) {
|
|
|
+ var opts = {
|
|
|
+ position: new BMap.Point(106.70480793222035, 29.523020426917684), // 指定文本标签所在的地理位置
|
|
|
+ offset: new BMap.Size(10, 10) // 设置文本偏移量
|
|
|
+ };
|
|
|
} else {
|
|
|
var opts = {
|
|
|
position: new BMap.Point(106.644876, 29.491868), // 指定文本标签所在的地理位置
|
|
@@ -496,7 +504,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
// 自定义文本标签样式
|
|
|
label.setStyle({
|
|
|
color: "#FFFFFF",
|
|
|
- fontSize: "40px",
|
|
|
+ fontSize: "22px",
|
|
|
height: "auto",
|
|
|
lineHeight: "20px",
|
|
|
fontFamily: "微软雅黑",
|
|
@@ -512,7 +520,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
getDetail(id) {
|
|
|
let that = this;
|
|
|
$.ajax({
|
|
|
- url: "parkData/details/" + id,
|
|
|
+ url: that.reqPtah + "/parkData/details/" + id,
|
|
|
type: "get",
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
@@ -537,7 +545,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
getSellBuild(id) {
|
|
|
let that = this;
|
|
|
$.ajax({
|
|
|
- url: "sellBuild",
|
|
|
+ url: that.reqPtah + "/sellBuild",
|
|
|
type: "post",
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify({
|
|
@@ -558,7 +566,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
getSellLand(id) {
|
|
|
let that = this;
|
|
|
$.ajax({
|
|
|
- url: "sellLand",
|
|
|
+ url: that.reqPtah + "/sellLand",
|
|
|
type: "post",
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify({
|
|
@@ -576,7 +584,7 @@ border: 1px solid #EFA34E;color: #EFA34E;"><span>企业人才</span><span>服务
|
|
|
getParkActivity(id) {
|
|
|
let that = this;
|
|
|
$.ajax({
|
|
|
- url: "parkActivity",
|
|
|
+ url: that.reqPtah + "/parkActivity",
|
|
|
type: "post",
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify({
|