|
|
@@ -735,7 +735,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log(option)
|
|
|
+ console.log(option, 'option',option.shopId)
|
|
|
+ this.shopId = option.shopId
|
|
|
+ if(option.lat==''||option.lat==undefined){
|
|
|
+ uni.getLocation({
|
|
|
+ type: 'gcj02', //返回可以用于uni.openLocation的经纬度
|
|
|
+ success: (res) => {
|
|
|
+ console.log(res, '经纬度')
|
|
|
+ this.lat = res.latitude
|
|
|
+ this.lng = res.longitude
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.lat = option.lat
|
|
|
+ this.lng = option.lng
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
+
|
|
|
this.shopTypeId = option.shopTypeId.split(',')
|
|
|
this.showShopTypeId = this.shopTypeId.includes('10')
|
|
|
|
|
|
@@ -753,26 +770,11 @@ export default {
|
|
|
title: '店铺详情'
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- this.shopId = option.shopId
|
|
|
- this.lat = option.lat
|
|
|
- this.lng = option.lng
|
|
|
- this.getData()
|
|
|
-
|
|
|
+
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
mask: true // 是否显示透明蒙层,防止触摸穿透
|
|
|
})
|
|
|
-
|
|
|
- uni.getLocation({
|
|
|
- type: 'gcj02', //返回可以用于uni.openLocation的经纬度
|
|
|
- success: (res) => {
|
|
|
- // console.log(res, '经纬度')
|
|
|
- // this.lat = res.latitude
|
|
|
- // this.lng = res.longitude
|
|
|
- // this.getData()
|
|
|
- }
|
|
|
- })
|
|
|
this.orderId = uni.getStorageSync('orderId') ? uni.getStorageSync('orderId') : ''
|
|
|
},
|
|
|
onHide() {
|
|
|
@@ -966,7 +968,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.$Request.get(urlreq, data).then((res) => {
|
|
|
- console.log(res, '999')
|
|
|
+ console.log(res, '999',data)
|
|
|
if (res.code == 0 && res.data) {
|
|
|
this.dataList = res.data.list
|
|
|
this.shopDet = res.data.goodsShop
|