|
|
@@ -735,7 +735,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- // console.log(option)
|
|
|
+ console.log(option)
|
|
|
this.shopTypeId = option.shopTypeId.split(',')
|
|
|
this.showShopTypeId = this.shopTypeId.includes('10')
|
|
|
|
|
|
@@ -755,6 +755,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.shopId = option.shopId
|
|
|
+ this.lat = option.lat
|
|
|
+ this.lng = option.lng
|
|
|
+ this.getData()
|
|
|
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
@@ -763,11 +766,11 @@ export default {
|
|
|
|
|
|
uni.getLocation({
|
|
|
type: 'gcj02', //返回可以用于uni.openLocation的经纬度
|
|
|
- success: (res) => {
|
|
|
+ success: (res) => {
|
|
|
// console.log(res, '经纬度')
|
|
|
- this.lat = res.latitude
|
|
|
- this.lng = res.longitude
|
|
|
- this.getData()
|
|
|
+ // this.lat = res.latitude
|
|
|
+ // this.lng = res.longitude
|
|
|
+ // this.getData()
|
|
|
}
|
|
|
})
|
|
|
this.orderId = uni.getStorageSync('orderId') ? uni.getStorageSync('orderId') : ''
|