张延森 3 vuotta sitten
vanhempi
commit
0eb44cb461
2 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 1
    1
      config/prod.js
  2. 5
    4
      src/pages/index/index.jsx

+ 1
- 1
config/prod.js Näytä tiedosto

10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
13
-    Version: '"V0.0.87-20211220"'
13
+    Version: '"V0.0.88-20211224"'
14
   },
14
   },
15
   mini: {},
15
   mini: {},
16
   h5: {
16
   h5: {

+ 5
- 4
src/pages/index/index.jsx Näytä tiedosto

1
-import { useState, useEffect } from 'react'
1
+import { useState, useEffect, useCallback } from 'react'
2
 import { useSelector } from 'react-redux'
2
 import { useSelector } from 'react-redux'
3
 import Taro from '@tarojs/taro'
3
 import Taro from '@tarojs/taro'
4
 import { ScrollView } from '@tarojs/components'
4
 import { ScrollView } from '@tarojs/components'
75
     }
75
     }
76
   }, [city?.id])
76
   }, [city?.id])
77
 
77
 
78
+  const toBuilingList = useCallback(() => Taro.navigateTo({ url: `/pages/index/buildingList/index` }), [])
78
 
79
 
79
   return (
80
   return (
80
     <view className='Page Index'>
81
     <view className='Page Index'>
124
 
125
 
125
           {/* 全部项目 */}
126
           {/* 全部项目 */}
126
           <view className='AllProject'>
127
           <view className='AllProject'>
127
-            <ColumnTitle Name='全部项目' Icon='icon-aixin' ShowMore ToMore={() => { Taro.navigateTo({ url: `/pages/index/buildingList/index` }) }}></ColumnTitle>
128
+            <ColumnTitle Name='推荐楼盘' Icon='icon-aixin' ShowMore ToMore={toBuilingList}></ColumnTitle>
128
             <view className='ProjectList'>
129
             <view className='ProjectList'>
129
               {
130
               {
130
                 ProjectList.map((item, index) => (
131
                 ProjectList.map((item, index) => (
135
           </view>
136
           </view>
136
 
137
 
137
           {/* bottom */}
138
           {/* bottom */}
138
-          <view className='PageBottom'>
139
-            <text>已经到底了~</text>
139
+          <view className='PageBottom' onClick={toBuilingList}>
140
+            <text>点击查看更多</text>
140
           </view>
141
           </view>
141
 
142
 
142
         </view>
143
         </view>