许静 5 lat temu
rodzic
commit
a70cf9545c

+ 1
- 1
src/components/authorize/index.js Wyświetl plik

@@ -63,7 +63,7 @@ export default class Index extends Component {
63 63
         <Image className="avatar_img" src={user.avatar} />
64 64
         <View className="user_name">{user.nickname}</View>
65 65
         <Button className='auth-btn' open-type="getPhoneNumber" onGetphonenumber={this.getPhoneNumber}>微信授权一键登录</Button>
66
-        <View className='adver-btn' onClick={this.handleLogin}><Text>我是置业顾问,立即登录~</Text></View>
66
+        {/* <View className='adver-btn' onClick={this.handleLogin}><Text>我是置业顾问,立即登录~</Text></View> */}
67 67
       </View>
68 68
     )
69 69
   }

+ 6
- 2
src/pages/city/index.js Wyświetl plik

@@ -21,6 +21,7 @@ export default class Index extends Component {
21 21
 
22 22
   componentWillMount() {
23 23
     this.initData()
24
+    console.log(this.props,"this.props.citylist")
24 25
   }
25 26
 
26 27
   initData() {
@@ -52,7 +53,7 @@ export default class Index extends Component {
52 53
     const { cityList } = this.props
53 54
 
54 55
     const searchList = cityList.filter(item => (item.name.includes(keywords)))
55
-
56
+    console.log(searchList, "-----------searchList----------")
56 57
     this.setState({
57 58
       searchList,
58 59
       keywords
@@ -73,6 +74,7 @@ export default class Index extends Component {
73 74
           scrollY>
74 75
 
75 76
           <View className="search-wrap">
77
+            {console.log(searchList, "-----------searchListview----------")}
76 78
             <Search placeholder="搜索意向城市" onInput={this.handleSearch} onSearch={this.handleSearch}></Search>
77 79
             {
78 80
               keywords && (
@@ -80,7 +82,9 @@ export default class Index extends Component {
80 82
                   {
81 83
                     searchList.length > 0 ? (
82 84
                       searchList.map(item => (
83
-                        <View key={item.id} className="list-item" onClick={this.handleSelected.bind(this, item)}>{item.name}</View>
85
+                        <View key={item.id} className="list-item" onClick={this.handleSelected.bind(this, item)}>{item.name}
86
+                          {console.log(item, "-------item------")}
87
+                        </View>
84 88
                       ))
85 89
                     ) : <View className="empty">暂无结果</View>
86 90
                   }

+ 1
- 1
src/pages/person/authorize/index.js Wyświetl plik

@@ -48,7 +48,7 @@ export default class Index extends Component {
48 48
         <Image className="avatar_img" src={person.avatarurl}/>
49 49
         <View className="user_name">{person.nickname}</View>
50 50
         <Button  className='auth-btn' open-type="getPhoneNumber" onGetphonenumber={this.getPhoneNumber}>微信授权一键登录</Button>
51
-        <View className='adver-btn' onClick={this.handleLogin}><Text>我是置业顾问,立即登录~</Text></View>
51
+        {/* <View className='adver-btn' onClick={this.handleLogin}><Text>我是置业顾问,立即登录~</Text></View> */}
52 52
       </View>
53 53
     )
54 54
   }

+ 1
- 0
src/reducers/city.js Wyświetl plik

@@ -11,6 +11,7 @@ const INITIAL_STATE = {
11 11
 export default function news(state = INITIAL_STATE, action) {
12 12
   switch (action.type) {
13 13
     case CITY_LIST: {
14
+      console.log(action.payload, "!!action.payload!!")
14 15
       return {
15 16
         ...state,
16 17
         cityList: action.payload