张延森 3 년 전
부모
커밋
1f0d244bfd

+ 1
- 1
config/dev.js 파일 보기

@@ -4,7 +4,7 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.89.147:8080"',
7
-    HOST: '"https://sgl-v2-test.njyunzhi.com"',
7
+    HOST: '"https://sgl-v2.njyunzhi.com"',
8 8
   },
9 9
   mini: {},
10 10
   h5: {}

+ 1
- 1
config/prod.js 파일 보기

@@ -3,7 +3,7 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://sgl-v2-test.njyunzhi.com"',
6
+    HOST: '"https://sgl-v2.njyunzhi.com"',
7 7
   },
8 8
   mini: {},
9 9
   h5: {

+ 1
- 1
project.config.json 파일 보기

@@ -2,7 +2,7 @@
2 2
   "miniprogramRoot": "./dist",
3 3
   "projectname": "miniapp",
4 4
   "description": "十公里",
5
-  "appid": "wx835627a9b9b3932a",
5
+  "appid": "wx06a7372d48d56843",
6 6
   "setting": {
7 7
     "urlCheck": true,
8 8
     "es6": false,

+ 1
- 0
src/components/List/index.jsx 파일 보기

@@ -81,6 +81,7 @@ export default React.forwardRef((props, ref) => {
81 81
   // 请求数据
82 82
   useEffect(() => {
83 83
     fetchRef.current(payload)
84
+    console.log('------------list----------------', payload, request)
84 85
   }, [payload, request])
85 86
 
86 87
   useEffect(() => {

+ 1
- 1
src/components/MoreGuide/style.less 파일 보기

@@ -6,6 +6,6 @@
6 6
     font-size: 28px;
7 7
     font-weight: 400;
8 8
     color: #202020;
9
-    line-height: 54px;
9
+    line-height: 64px;
10 10
     padding-bottom: 10px;
11 11
   }

+ 1
- 1
src/hotel/pages/components/Extend/style.less 파일 보기

@@ -45,7 +45,7 @@
45 45
   }
46 46
   .storezn{
47 47
     color: #202020;
48
-    line-height: 54px;
48
+    line-height: 64px;
49 49
     margin-bottom: 60px;
50 50
     text-align: justify;
51 51
   }

+ 4
- 1
src/pages/details/components/Extend/extend.less 파일 보기

@@ -1,8 +1,11 @@
1 1
 .cardext{
2
+  padding: 0 30px;
3
+  box-sizing: border-box;
4
+
2 5
   .storezn{
3 6
     font-size: 28px;    
4 7
     color: #202020;
5
-    line-height: 54px;
8
+    line-height: 64px;
6 9
     margin-bottom: 40px;
7 10
     text-align: justify;
8 11
   }

+ 2
- 2
src/pages/details/foodDetails/foodDetails.jsx 파일 보기

@@ -109,12 +109,12 @@ export default withLayout((props) => {
109 109
         setimglist(res.imageList || []);
110 110
         setLoading(false)
111 111
       }).catch(() => setLoading(false));
112
-      getShopPackage(id).then((res) => {
112
+      getShopPackage(id, { pageSize: 500 }).then((res) => {
113 113
         setPackage(res.records || []);
114 114
         setNewpgNum(res.records.length);
115 115
         setAllpgNum(res.total);
116 116
       });
117
-      getExtendContent("shop", id, { pageNum: 999 }).then((res) => {
117
+      getExtendContent("shop", id, { pageSize: 500 }).then((res) => {
118 118
         setExtend(res.records || []);
119 119
         setAllextNum(res.total);
120 120
         setNewextNum(res.records.length);

+ 1
- 1
src/pages/details/foodDetails/foodDetails.less 파일 보기

@@ -164,7 +164,7 @@
164 164
 .storezn {
165 165
   font-size: 28px;
166 166
   color: #202020;
167
-  line-height: 54px;
167
+  line-height: 64px;
168 168
   margin-bottom: 44px;
169 169
 }
170 170
 .storezn + image {

+ 2
- 2
src/pages/details/mjDetails/sceneryDetails.jsx 파일 보기

@@ -79,7 +79,7 @@ export default withLayout((props) => {
79 79
           setRecommend(res2 || [])
80 80
         })
81 81
       })
82
-      getExtendContent('tourist', id, { pageNum: 99999 }).then((res) => {
82
+      getExtendContent('tourist', id, { pageSize: 500 }).then((res) => {
83 83
         setExtend(res.records || [])
84 84
         setAllextNum(res.total)
85 85
         setNewextNum(res.records.length)
@@ -158,7 +158,7 @@ export default withLayout((props) => {
158 158
             <view className='title'>
159 159
               <image src={titlejd} />景点介绍
160 160
             </view>
161
-            {(extend || []).map((item) => <Extend item={item} />)}
161
+              {(extend || []).map((item) => <Extend item={item} />)}
162 162
 
163 163
           </view>
164 164
           <view style={{ position: 'relative', marginTop: '6em', display: recommend == '' ? 'none' : '' }}>

+ 7
- 10
src/pages/index/tabs/Guide.jsx 파일 보기

@@ -67,9 +67,7 @@ export default (props) => {
67 67
 
68 68
   const geiZy = () => {
69 69
     setLoading(true)
70
-    getExtendContent('room', roomId, {
71
-
72
-    }).then((res) => {
70
+    getExtendContent('room', roomId, { pageSize: 500 }).then((res) => {
73 71
       // setExtend(res.records || [])
74 72
       setExtend(res.records)
75 73
       setIfroomId('reality')
@@ -162,9 +160,7 @@ export default (props) => {
162 160
   }
163 161
 
164 162
   return (
165
-    <scroll-view scrollY style='height:100%;'  >
166
-      <SpinBox loading={loading}>
167
-
163
+    <scroll-view scrollY style={{ height: '100%' }}  >
168 164
         <view className='Guide-Home-box'>
169 165
           {
170 166
             ifroomId === 'havenot' && (
@@ -177,7 +173,7 @@ export default (props) => {
177 173
           {/* 有民宿的情况下 */}
178 174
           {
179 175
             ifroomId === 'reality' && (
180
-              <view>
176
+              <SpinBox loading={loading}>
181 177
                 <view className='room-box-info-ROOM'>
182 178
                   <view className='room-bi-name-ROOM' >
183 179
                     <view className='room-bin-title-ROOM'>房屋名称</view>
@@ -245,9 +241,11 @@ export default (props) => {
245 241
                     <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
246 242
                     <text className='title-title-boss' >更多指引</text>
247 243
                   </view>
248
-                  {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
244
+                  <view style={{ padding: '0 30rpx', boxSizing: 'border-box' }}>
245
+                    {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
246
+                  </view>
249 247
                 </view>
250
-              </view>
248
+              </SpinBox>
251 249
             )
252 250
           }
253 251
           <view className='Guide-Content-box'>
@@ -261,7 +259,6 @@ export default (props) => {
261 259
           </view>
262 260
 
263 261
         </view>
264
-      </SpinBox>
265 262
     </scroll-view>
266 263
   )
267 264
 }

+ 8
- 7
src/pages/index/tabs/Recommend.jsx 파일 보기

@@ -11,6 +11,7 @@ import { getIndexType, getResourceList } from '@/services/home'
11 11
 import Card from '../components/Card'
12 12
 import './less/Recommend.less'
13 13
 
14
+const listStyle = { height: 'calc(100% - 145px)' }
14 15
 
15 16
 export default (props) => {
16 17
   const { router, person, location } = props
@@ -19,7 +20,7 @@ export default (props) => {
19 20
   const [typeList, setTypeList] = useState([])
20 21
   const listRef = useRef()
21 22
 
22
-  const [queryParams, setQueryParams] = useState({ location: location, pageNum: 1, pageSize: 10, typeId: '' })
23
+  const [queryParams, setQueryParams] = useState({ location, pageNum: 1, pageSize: 10, typeId: '' })
23 24
 
24 25
   // 获取资源表信息
25 26
   const [alllist, setAllList] = useState([])
@@ -27,17 +28,16 @@ export default (props) => {
27 28
   const tabs = [{ title: '附近' }].concat(typeList.map(x => ({ ...x, title: x.typeName })))
28 29
   //切换上面的标签
29 30
   const handleTabChange = (e) => {
31
+    console.log('------------handleTabChange-------', queryParams)
30 32
     const { index } = e.detail
31 33
     setActiveTab(index)
32
-    const tab = tabs[index].typeId
34
+    const tab = tabs[index].typeId || ''
35
+
33 36
     setQueryParams({
34 37
       ...queryParams,
35 38
       typeId: tab
36 39
     })
37 40
 
38
-    if (index == 0) {
39
-      setQueryParams({ location: location, pageNum: 1, pageSize: 10, typeId: '' })
40
-    }
41 41
     //如果context有的话代表他滚动了   那么切换tab页就置顶
42 42
     if (listRef.current?.context) {
43 43
       listRef.current.context.scrollTo({ top: 0 })
@@ -64,6 +64,8 @@ export default (props) => {
64 64
 
65 65
   }
66 66
 
67
+  console.log('-------------------', queryParams)
68
+
67 69
 
68 70
   useDidShow(() => {
69 71
     likeLook()
@@ -102,8 +104,7 @@ export default (props) => {
102 104
       {/* <View style={{ flex:'auto' }}> */}
103 105
         <List
104 106
           ref={listRef}
105
-          style={{ height: 'calc(100% - 145px)' }}
106
-          // style={{ flex: 'auto', height: '100%' }}
107
+          style={listStyle}
107 108
           request={getResourceList}
108 109
           params={queryParams}
109 110
           onDataChange={setAllList}