This commit is contained in:
Hong
2024-07-26 14:59:01 +08:00
parent 0a12d080cc
commit a03267e764

View File

@@ -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);
// }
// })
}
}