|
@@ -28,7 +28,7 @@ import Extend from "../components/Extend/extend";
|
28
|
28
|
import "./foodDetails.less";
|
29
|
29
|
|
30
|
30
|
export default withLayout((props) => {
|
31
|
|
- const { router, person } = props;
|
|
31
|
+ const { router, person, location } = props;
|
32
|
32
|
const { id, subOrderId, scene } = props.router.params;
|
33
|
33
|
|
34
|
34
|
useEffect(() => {
|
|
@@ -112,7 +112,7 @@ export default withLayout((props) => {
|
112
|
112
|
|
113
|
113
|
useEffect(() => {
|
114
|
114
|
if (id) {
|
115
|
|
- getShopDetail(id).then((res) => {
|
|
115
|
+ getShopDetail(id, { location }).then((res) => {
|
116
|
116
|
setDetail(res);
|
117
|
117
|
log.current = res.locaton.toString().split(",")[0];
|
118
|
118
|
lat.current = res.locaton.toString().split(",")[1];
|