测试
This commit is contained in:
@@ -23,15 +23,6 @@ export default {
|
||||
Tabbar
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin']),
|
||||
|
||||
onChange(e) {
|
||||
this.params = e.params
|
||||
this.component = e.type
|
||||
}
|
||||
},
|
||||
|
||||
onLoad () {
|
||||
uni.setStorageSync('address', {
|
||||
lat: '',
|
||||
@@ -49,6 +40,13 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin']),
|
||||
|
||||
onChange(e) {
|
||||
this.params = e.params
|
||||
this.component = e.type
|
||||
},
|
||||
|
||||
getLocation () {
|
||||
this.injectJWeixin(['getLocation']).then(() => {
|
||||
wx.getLocation({
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
this.img = decodeURIComponent(query.url)
|
||||
this.height = uni.getSystemInfoSync().windowHeight
|
||||
|
||||
if (uni.getStorageSync('address').address) {
|
||||
if (!uni.getStorageSync('address').address) {
|
||||
this.getLocation()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user