张延森 3 anos atrás
pai
commit
0eb44cb461
2 arquivos alterados com 6 adições e 5 exclusões
  1. 1
    1
      config/prod.js
  2. 5
    4
      src/pages/index/index.jsx

+ 1
- 1
config/prod.js Ver arquivo

@@ -10,7 +10,7 @@ module.exports = {
10 10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11 11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12 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 15
   mini: {},
16 16
   h5: {

+ 5
- 4
src/pages/index/index.jsx Ver arquivo

@@ -1,4 +1,4 @@
1
-import { useState, useEffect } from 'react'
1
+import { useState, useEffect, useCallback } from 'react'
2 2
 import { useSelector } from 'react-redux'
3 3
 import Taro from '@tarojs/taro'
4 4
 import { ScrollView } from '@tarojs/components'
@@ -75,6 +75,7 @@ export default withLayout((props) => {
75 75
     }
76 76
   }, [city?.id])
77 77
 
78
+  const toBuilingList = useCallback(() => Taro.navigateTo({ url: `/pages/index/buildingList/index` }), [])
78 79
 
79 80
   return (
80 81
     <view className='Page Index'>
@@ -124,7 +125,7 @@ export default withLayout((props) => {
124 125
 
125 126
           {/* 全部项目 */}
126 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 129
             <view className='ProjectList'>
129 130
               {
130 131
                 ProjectList.map((item, index) => (
@@ -135,8 +136,8 @@ export default withLayout((props) => {
135 136
           </view>
136 137
 
137 138
           {/* bottom */}
138
-          <view className='PageBottom'>
139
-            <text>已经到底了~</text>
139
+          <view className='PageBottom' onClick={toBuilingList}>
140
+            <text>点击查看更多</text>
140 141
           </view>
141 142
 
142 143
         </view>