7.24(发布地址

This commit is contained in:
Hong
2024-07-24 15:49:46 +08:00
parent 10ee23e0a9
commit d78b5a511d
4 changed files with 29 additions and 8 deletions

View File

@@ -80,6 +80,7 @@
videoInfo: {}, videoInfo: {},
mobileType: {}, mobileType: {},
buttFlag: false, buttFlag: false,
city:''
}; };
}, },
methods: { methods: {
@@ -103,7 +104,9 @@
cover: this.videoImage, cover: this.videoImage,
wide: this.videoInfo.width, wide: this.videoInfo.width,
high: this.videoInfo.height, high: this.videoInfo.height,
city:this.city,
} }
// console.log(obj);
plazaNoteAdd(obj).then(res => { plazaNoteAdd(obj).then(res => {
this.buttFlag = false this.buttFlag = false
if (res.data.image != '') { if (res.data.image != '') {
@@ -180,6 +183,18 @@
this.categoryId = options.type this.categoryId = options.type
this.issueType = options.issueType this.issueType = options.issueType
this.mobileType = uni.getStorageSync('appDetail') this.mobileType = uni.getStorageSync('appDetail')
uni.getLocation({
type: 'gcj02',
geocode: true,
success: res => {
this.city=res.address.city
},
fail: err => {
// console.log('报错', err);
}
})
} }
} }
</script> </script>

View File

@@ -74,7 +74,7 @@
endTopicData:{}, endTopicData:{},
//话题id //话题id
topicId:'', topicId:'',
city:''
}; };
}, },
methods: { methods: {
@@ -99,7 +99,8 @@
type: 1, type: 1,
categoryId: this.categoryId, categoryId: this.categoryId,
topicIds:this.topicId, topicIds:this.topicId,
activeTopicId:this.activeTopicId activeTopicId:this.activeTopicId,
city:this.city
} }
plazaNoteAdd(obj).then(res => { plazaNoteAdd(obj).then(res => {
uni.setStorageSync('endTopicData',{}) uni.setStorageSync('endTopicData',{})
@@ -137,12 +138,17 @@
this.categoryId = options.type this.categoryId = options.type
this.activeTopicId=options.activeTopicId this.activeTopicId=options.activeTopicId
this.topicId=options.topicId this.topicId=options.topicId
// getCommunityTopicList({
// limit:3, uni.getLocation({
// page:1 type: 'gcj02',
// }).then(res=>{ geocode: true,
// this.topicList=res.data.list success: res => {
// }) this.city=res.address.city
},
fail: err => {
// console.log('报错', err);
}
})
} }
} }
</script> </script>

Binary file not shown.

Binary file not shown.