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

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

58
  * @param {*} id 
58
  * @param {*} id 
59
  * @returns 
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