From a03267e764fb4920a6ab0b42477c8e046b9b2750 Mon Sep 17 00:00:00 2001 From: Hong <1470048117@qq.com> Date: Fri, 26 Jul 2024 14:59:01 +0800 Subject: [PATCH] 7.26( --- pages/driver/index/post.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pages/driver/index/post.vue b/pages/driver/index/post.vue index 80c1d64..2ef9d03 100644 --- a/pages/driver/index/post.vue +++ b/pages/driver/index/post.vue @@ -94,6 +94,7 @@ uni.showLoading({ title: '发布中...' }); + const city = uni.getStorageSync('current_city'); let obj = { content: this.content, image: this.picList.join(','), @@ -104,7 +105,7 @@ cover: this.videoImage, wide: this.videoInfo.width, high: this.videoInfo.height, - city:this.city, + city:city, } // console.log(obj); plazaNoteAdd(obj).then(res => { @@ -183,16 +184,16 @@ this.issueType = options.issueType this.mobileType = uni.getStorageSync('appDetail') - uni.getLocation({ - type: 'gcj02', - geocode: true, - success: res => { - this.city=res.address.city - }, - fail: err => { - // console.log('报错', err); - } - }) + // uni.getLocation({ + // type: 'gcj02', + // geocode: true, + // success: res => { + // this.city=res.address.city + // }, + // fail: err => { + // // console.log('报错', err); + // } + // }) } }