From 3af39ca6a9f6c096da53a1e7f7e5418bb3b4dccc Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 3 Nov 2022 16:30:42 +0800 Subject: [PATCH] bug --- .../components/activitiesAdd.vue | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue index e6a56e4e..01b9e539 100644 --- a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue +++ b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue @@ -144,7 +144,7 @@ export default { exitTime: [], exitBegintime: '', exitEndtime: '', - exitIntegral: '', + exitIntegral: '', }, formRules: { title: [{required: true, message: "请输入活动名称", trigger: "blur"}], @@ -181,7 +181,6 @@ export default { this.id = this.params.id this.getDetail() setTimeout(() => { - this.getMap(this.info.lng,this.info.lat,this.info.address) },500) } }, @@ -272,17 +271,17 @@ export default { version: '2.0', plugins: ['AMap.PlaceSearch', 'AMap.AutoComplete', 'AMap.Geocoder'], }).then((AMap) => { - this.mapDetail = new AMap.Map(document.getElementById("mapDetail"), { - resizeEnable: true, - zooms: [6, 20], - zoom: 11, + this.mapDetail = new AMap.Map(document.getElementById("mapDetail"), { + resizeEnable: true, + zooms: [6, 20], + zoom: 11, + }) + var marker = new AMap.Marker({ + position: new AMap.LngLat(lng,lat), + title: address + }) + this.mapDetail.add(marker); }) - }) - var marker = new AMap.Marker({ - position: new AMap.LngLat(lng,lat), - title: address - }) - this.mapDetail.add(marker); }, update() { @@ -301,6 +300,7 @@ export default { this.info = res.data this.placeDetail.lng = res.data.lng this.placeDetail.lat = res.data.lat + this.getMap(this.info.lng,this.info.lat,this.info.address) } }) }, @@ -310,7 +310,7 @@ export default { selectVote(e) { this.form.voteUsers = e }, - + handleAreaSelect(v) { this.form.areaName = v?.[0]?.label }, @@ -417,4 +417,4 @@ export default { } } } - \ No newline at end of file +