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