浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

吃个甘蔗嚼一年 3 年前
父节点
当前提交
4e2b5876ad
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/pages/details/mjDetails/sceneryDetails.jsx
  2. 1
    1
      src/services/home.js

+ 1
- 1
src/pages/details/mjDetails/sceneryDetails.jsx 查看文件

67
 
67
 
68
   useEffect(() => {
68
   useEffect(() => {
69
     if (id) {
69
     if (id) {
70
-      getTouristDetail(id).then((res) => {
70
+      getTouristDetail(id, { location }).then((res) => {
71
         setDetail(res)
71
         setDetail(res)
72
         setimglist(res.imageList || [])
72
         setimglist(res.imageList || [])
73
         getRecommendList({ location: res.locaton }).then((res2) => {
73
         getRecommendList({ location: res.locaton }).then((res2) => {

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

101
  * @param {*} id 
101
  * @param {*} id 
102
  * @returns 
102
  * @returns 
103
  */
103
  */
104
-export const getTouristDetail = (id) => request(`/tourist/${id}`)
104
+export const getTouristDetail = (id, params) => request(`/tourist/${id}`, { params })
105
 
105
 
106
 
106
 
107
 /**
107
 /**