李志伟 3 年之前
父節點
當前提交
61ffc138a4

二進制
src/assets/icons/landlord/我的收入.png 查看文件


二進制
src/assets/icons/landlord/我的收入按下.png 查看文件


二進制
src/assets/icons/landlord/房源管理.png 查看文件


二進制
src/assets/icons/landlord/房源管理按下.png 查看文件


+ 2
- 2
src/pages/details/foodDetails/foodDetails.jsx 查看文件

@@ -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];

+ 1
- 1
src/services/home.js 查看文件

@@ -58,7 +58,7 @@ export const getCollectList = (params) => request(`/save`, { params })
58 58
  * @param {*} id 
59 59
  * @returns 
60 60
  */
61
-export const getShopDetail = (id) => request(`/shop/${id}`)
61
+export const getShopDetail = (id, params) => request(`/shop/${id}`, { params })
62 62
 
63 63
 
64 64