许静 5 лет назад
Родитель
Сommit
8ddcbb5f40
1 измененных файлов: 5 добавлений и 3 удалений
  1. 5
    3
      src/pages/agent/recommend/index.js

+ 5
- 3
src/pages/agent/recommend/index.js Просмотреть файл

@@ -61,11 +61,13 @@ export default class Index extends Component {
61 61
   componentWillMount() {
62 62
     // const defaultHouseVal = Taro.getStorageSync('targetHouse')
63 63
 
64
-    const { type,cityId } = this.$router.params
65
-    console.log(this.$router.params,"cityId")
64
+    const { type, cityId } = this.$router.params
65
+    console.log(this.$router.params, "cityId")
66 66
     this.setState({
67
-      reType: type
67
+      reType: type,
68
+      sex: '',
68 69
     }, () => {
70
+      console.log(this.state.sex, "sex")
69 71
       console.log('buildingName' + this.props.proList.records[0].buildingName)
70 72
       if (this.state.reType != 'index') {
71 73
         this.setState({