页面1
onShow() {
uni.$on('address', function(data) {
that.data.address = data.address
that.data.coordinate = data.latitude + ',' + data.longitude
// that.latitude = that.latitude
// that.longitude = that.longitude
})
},
页面2
goback() {
var that = this
uni.$emit('address', {
address: that.address,
latitude: that.latitude,
longitude: that.longitude
});
uni.navigateBack({
delta: 1
})
},