From 4512cc3235c9a65b192290f4abf2548bca3c3c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Thu, 5 Sep 2024 14:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E9=9D=9E=E6=B4=B2=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/volunteer/activityArchive/add.vue | 12 +++++++++--- .../modules/volunteer/activityArchive/index.vue | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/modules/volunteer/activityArchive/add.vue b/src/views/modules/volunteer/activityArchive/add.vue index 078fa12cc..ba15f310f 100644 --- a/src/views/modules/volunteer/activityArchive/add.vue +++ b/src/views/modules/volunteer/activityArchive/add.vue @@ -271,8 +271,8 @@ export default { linkman:"", linkMobile:"", address:"", - longitude: this.$store.state.user.longitude, //经度 - latitude: this.$store.state.user.latitude,//纬度 + longitude:'', //经度 + latitude: '',//纬度 type:"", online:0, sponsors:[{ @@ -337,12 +337,18 @@ export default { this.formData.notQuota=1 } - console.log( this.formData.quota); + // console.log( this.formData.quota); } }, components: { fileList,Tinymce,UploadImage}, mounted () { + console.log(this.formData.latitude); + + if (!this.formData.latitude || this.formData.latitude == "" || this.formData.latitude == "0") { + this.formData.latitude = 39.9088810666821; + this.formData.longitude = 116.39743841556731; + } // this.startLoading() // await this.loadInfo() // this.endLoading() diff --git a/src/views/modules/volunteer/activityArchive/index.vue b/src/views/modules/volunteer/activityArchive/index.vue index 06a24ec87..d27e23e02 100644 --- a/src/views/modules/volunteer/activityArchive/index.vue +++ b/src/views/modules/volunteer/activityArchive/index.vue @@ -232,7 +232,7 @@ endTime:this.formData.endTime, online:this.formData.online } - requestGet(url, params).then((res) => { + requestPost(url, params).then((res) => { if (res.code == 0) { this.total = res.data.total || 0; this.tableData = res.data.list;