测试
This commit is contained in:
@@ -182,6 +182,13 @@
|
||||
this.albumId = query.albumId
|
||||
}
|
||||
|
||||
uni.setStorageSync('address', {
|
||||
lat: '',
|
||||
lng: '',
|
||||
address: '',
|
||||
weather: '',
|
||||
cityCode: ``
|
||||
})
|
||||
this.img = decodeURIComponent(query.url)
|
||||
this.height = uni.getSystemInfoSync().windowHeight
|
||||
|
||||
@@ -318,7 +325,7 @@
|
||||
},
|
||||
|
||||
getLocation () {
|
||||
this.injectJWeixin(['getLocation']).then(res => {
|
||||
this.injectJWeixin(['getLocation']).then(() => {
|
||||
wx.getLocation({
|
||||
type: 'wgs84',
|
||||
success: res => {
|
||||
@@ -349,6 +356,8 @@
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
}).catch(e => {
|
||||
alert(JOSON.stringify(e))
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -101,19 +101,6 @@
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
})
|
||||
|
||||
this.injectJWeixin(['getLocation']).then(res => {
|
||||
console.log(res)
|
||||
wx.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (res) {
|
||||
var latitude = res.latitude
|
||||
var longitude = res.longitude
|
||||
var speed = res.speed
|
||||
var accuracy = res.accuracy
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
destroyed () {
|
||||
@@ -121,22 +108,6 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin']),
|
||||
getLocation () {
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: res => {
|
||||
console.log(res)
|
||||
this.$http.get('https://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1').then(res => {
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
fail: error => {
|
||||
console.log(error)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
linkTo (url) {
|
||||
uni.setStorageSync('waterConfig', this.configList)
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -54,19 +54,6 @@
|
||||
this.day = date.format('DD')
|
||||
this.lunar = `${result.monthStr}${result.dayStr}`
|
||||
this.week = new Date().getDay()
|
||||
|
||||
this.injectJWeixin(['getLocation']).then(res => {
|
||||
console.log(res)
|
||||
wx.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (res) {
|
||||
var latitude = res.latitude
|
||||
var longitude = res.longitude
|
||||
var speed = res.speed
|
||||
var accuracy = res.accuracy
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
destroyed () {
|
||||
@@ -74,22 +61,6 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin']),
|
||||
getLocation () {
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: res => {
|
||||
console.log(res)
|
||||
this.$http.get('https://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1').then(res => {
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
fail: error => {
|
||||
console.log(error)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
linkTo (url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
|
||||
Reference in New Issue
Block a user