瀏覽代碼

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into v3.5

周立森 5 年之前
父節點
當前提交
e3b95cf2b3

+ 1
- 1
src/pages/Welcome.jsx 查看文件

54
             borderRadius: '12px', width: '32%', marginRight: '2%'
54
             borderRadius: '12px', width: '32%', marginRight: '2%'
55
           }}>
55
           }}>
56
             <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
56
             <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
57
-            <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{(data.selectRegisteredCount && data.selectRegisteredCount + 95) || '0'}</span>
57
+            <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectRegisteredCount || '0'}</span>
58
           </div>
58
           </div>
59
         }
59
         }
60
         {checkData.includes('number_of_new_users') &&
60
         {checkData.includes('number_of_new_users') &&

+ 1
- 2
src/pages/activity/ActivityList.jsx 查看文件

129
             <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{row.weight === 1 ? '取消置顶' : '置顶'}<Icon type="vertical-align-top" className={styles.edit} /></span>
129
             <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{row.weight === 1 ? '取消置顶' : '置顶'}<Icon type="vertical-align-top" className={styles.edit} /></span>
130
             {row.isEnlist != 2 && <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
130
             {row.isEnlist != 2 && <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
131
           </AuthButton>
131
           </AuthButton>
132
-          <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={newQrcode.bind(this, row)}>下载二维码<Icon type="qrcode" className={styles.shoppingCart} /></span>
132
+          <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={newQrcode.bind(this, row)}>{row.isEnlist == '1' ? '下载二维码' : ''}<Icon type="qrcode" className={styles.shoppingCart} /></span>
133
         </>
133
         </>
134
       ),
134
       ),
135
     },
135
     },
136
   ];
136
   ];
137
-
138
   const getSignList = dynamicId => {
137
   const getSignList = dynamicId => {
139
     router.push({
138
     router.push({
140
       pathname: '/activity/SignList',
139
       pathname: '/activity/SignList',

+ 1
- 1
src/pages/activity/drainage/DrainageList.jsx 查看文件

57
           gettaDrainage({ pageNum: 1, pageSize: 10 })
57
           gettaDrainage({ pageNum: 1, pageSize: 10 })
58
         }).catch((err) => {
58
         }).catch((err) => {
59
           console.log('111111', err)
59
           console.log('111111', err)
60
-          message.info(err.msg || err.message)
60
+          // message.info(err.msg || err.message)
61
         })
61
         })
62
       }
62
       }
63
     });
63
     });

+ 5
- 1
src/pages/activity/helpActivity/helpRecord.jsx 查看文件

32
 
32
 
33
   componentDidUpdate (preProps, preState) {
33
   componentDidUpdate (preProps, preState) {
34
     const { helpId } = this.state.visibleData
34
     const { helpId } = this.state.visibleData
35
-
36
     if (this.props.visibleData.visible !== preState.visibleData.visible) {
35
     if (this.props.visibleData.visible !== preState.visibleData.visible) {
37
       this.getList({ helpRecordInitiateId: helpId, pageNumber: 1, pageSize: 5 })
36
       this.getList({ helpRecordInitiateId: helpId, pageNumber: 1, pageSize: 5 })
38
       this.setState({ visibleData: this.props.visibleData });
37
       this.setState({ visibleData: this.props.visibleData });
42
   // 弹框确定按钮
41
   // 弹框确定按钮
43
   // eslint-disable-next-line react/sort-comp
42
   // eslint-disable-next-line react/sort-comp
44
   handleOk () {
43
   handleOk () {
44
+    this.setState({ visibleData: { visible: false, helpId: '', realtyConsultant: '' } })
45
     this.props.onCancel()
45
     this.props.onCancel()
46
   }
46
   }
47
 
47
 
48
   // 弹框取消按钮
48
   // 弹框取消按钮
49
   handleCancel () {
49
   handleCancel () {
50
+    this.setState({ visibleData: { visible: false, helpId: '', realtyConsultant: '' } })
50
     this.props.onCancel()
51
     this.props.onCancel()
51
   }
52
   }
52
 
53
 
53
   getList (params) {
54
   getList (params) {
55
+    if (params.helpRecordInitiateId === '') {
56
+      return
57
+    }
54
     request({ ...apis.helpActivity.helpPeopleDetails, params: { ...params } }).then(res => {
58
     request({ ...apis.helpActivity.helpPeopleDetails, params: { ...params } }).then(res => {
55
       this.setState({ dataSource: res })
59
       this.setState({ dataSource: res })
56
     }).catch(err => {
60
     }).catch(err => {

+ 27
- 4
src/pages/building/list/add/components/amap.jsx 查看文件

4
 import styles from '../amap.less'
4
 import styles from '../amap.less'
5
 
5
 
6
 class Amap extends React.Component {
6
 class Amap extends React.Component {
7
+
7
   constructor(props) {
8
   constructor(props) {
8
     super(props);
9
     super(props);
10
+    
9
     // 高德地图 Marker 实例
11
     // 高德地图 Marker 实例
10
     this.markerInstance = undefined
12
     this.markerInstance = undefined
11
     // 高德地图 Map 实例
13
     // 高德地图 Map 实例
12
     this.mapInstance = undefined
14
     this.mapInstance = undefined
15
+
13
     this.amapEvents = {
16
     this.amapEvents = {
14
       created: mapInstance => {
17
       created: mapInstance => {
15
         console.log('高德地图 Map 实例创建成功;如果你要亲自对实例进行操作,可以从这里开始。比如:');
18
         console.log('高德地图 Map 实例创建成功;如果你要亲自对实例进行操作,可以从这里开始。比如:');
20
           // 实例化Autocomplete
23
           // 实例化Autocomplete
21
           const autoOptions = {
24
           const autoOptions = {
22
             // city 限定城市,默认全国
25
             // city 限定城市,默认全国
23
-            city: '全国',
26
+            // city: '025',
24
             // input 为绑定输入提示功能的input的DOM ID
27
             // input 为绑定输入提示功能的input的DOM ID
25
             input: 'amapInput',
28
             input: 'amapInput',
26
           }
29
           }
76
       },
79
       },
77
     }
80
     }
78
     this.markerPosition = { longitude: 120, latitude: 30 };
81
     this.markerPosition = { longitude: 120, latitude: 30 };
82
+    const { value } = this.props
83
+    console.log('项目地图 value', value)
84
+
85
+
86
+
87
+    this.setMapPosition.bind(this)
79
   }
88
   }
80
 
89
 
81
-  render() {
90
+  componentDidUpdate(prevProps) {
82
     const { value } = this.props
91
     const { value } = this.props
83
-    if (value) {
84
-     // this.markerInstance.setPosition(value.split(','))
92
+    // console.log('项目地图 value', value)
93
+    console.log('this.markerInstance: ', this.markerInstance, this.props)
94
+    if (this.props.value !== prevProps.value) {
95
+      if (value) {
96
+        console.log('项目地图 value', value)
97
+        this.setMapPosition(value)
98
+      }
99
+    }
100
+  }
101
+
102
+  setMapPosition(value) {
103
+    console.log('获取this:', this.markerInstance)
104
+    if (this.markerInstance) {
105
+      // this.markerInstance.setPosition(value)
85
     }
106
     }
107
+  }
86
 
108
 
109
+  render() {
87
     return (
110
     return (
88
       <>
111
       <>
89
         <div style={{ width: '100%', height: '400px', position: 'relative' }}>
112
         <div style={{ width: '100%', height: '400px', position: 'relative' }}>

+ 2
- 2
src/pages/building/list/add/components/base.jsx 查看文件

111
               rules: [{ required: true, message: '请输入楼盘名' }],
111
               rules: [{ required: true, message: '请输入楼盘名' }],
112
             })(<Input />)}
112
             })(<Input />)}
113
           </Form.Item>
113
           </Form.Item>
114
-          <Form.Item label="别名" >
114
+          {/* <Form.Item label="别名" >
115
             {getFieldDecorator('name')(<Input />)}
115
             {getFieldDecorator('name')(<Input />)}
116
-          </Form.Item>
116
+          </Form.Item> */}
117
           <Form.Item label="项目类型">
117
           <Form.Item label="项目类型">
118
             {getFieldDecorator('buildingProjectType')(<BudildingProjectType />)}
118
             {getFieldDecorator('buildingProjectType')(<BudildingProjectType />)}
119
           </Form.Item>
119
           </Form.Item>

+ 1
- 1
src/pages/building/list/index.jsx 查看文件

118
       </p>
118
       </p>
119
       <p className={Styles.cardText}>
119
       <p className={Styles.cardText}>
120
         <span className={Styles.title}>楼盘名称</span>
120
         <span className={Styles.title}>楼盘名称</span>
121
-        <span >:{data.name}</span>
121
+        <span >:{data.buildingName || data.name}</span>
122
       </p>
122
       </p>
123
       <p className={Styles.cardItem}>
123
       <p className={Styles.cardItem}>
124
         <span className={Styles.title}>均价</span>
124
         <span className={Styles.title}>均价</span>

+ 1
- 1
src/pages/carouselFigure/SelectNews.jsx 查看文件

27
         pageSize: 999,
27
         pageSize: 999,
28
       }
28
       }
29
     }).then((data) => {
29
     }).then((data) => {
30
-      setList(data.list || [])
30
+      setList(data.records || [])
31
 
31
 
32
       updateNews(buildingId ? undefined : value);
32
       updateNews(buildingId ? undefined : value);
33
     })
33
     })

+ 1
- 1
src/pages/indexEcharts/components/UserBehavior.jsx 查看文件

272
           {!props.BuildSelectHide && <span style={{ fontSize: '0.09rem', color: '#888', marginLeft: '0.06rem' }}>最近七天</span>}
272
           {!props.BuildSelectHide && <span style={{ fontSize: '0.09rem', color: '#888', marginLeft: '0.06rem' }}>最近七天</span>}
273
         </p>
273
         </p>
274
         <div style={{ float: 'right', marginTop: '-40px', marginBottom: '20px' }}>
274
         <div style={{ float: 'right', marginTop: '-40px', marginBottom: '20px' }}>
275
-          {!props.BuildSelectHide && <BuildSelect slot="action" onChange={(e => handleBuildingChange(e))} checkFirst></BuildSelect>}
275
+          {!props.BuildSelectHide && <BuildSelect slot="action" onChange={(e => handleBuildingChange(e))}></BuildSelect>}
276
         </div>
276
         </div>
277
         <EChart options={options} style={style} />
277
         <EChart options={options} style={style} />
278
         {props.tableShow &&
278
         {props.tableShow &&

+ 2
- 2
src/pages/integralMall/writeOff.jsx 查看文件

108
   return (
108
   return (
109
     <>
109
     <>
110
       <Tabs onChange={callback} type="card">
110
       <Tabs onChange={callback} type="card">
111
-        <TabPane tab="扫码核销" key="1">
111
+        {/* <TabPane tab="扫码核销" key="1">
112
           <Row>
112
           <Row>
113
             <Col span={8} style={{ textAlign: 'center' }}>
113
             <Col span={8} style={{ textAlign: 'center' }}>
114
               <img src={erweima} style={{ width: '50px', height: '50px', margin: '30px auto' }} />
114
               <img src={erweima} style={{ width: '50px', height: '50px', margin: '30px auto' }} />
129
             </Col>
129
             </Col>
130
           </Row>
130
           </Row>
131
           <Dialog onEnter={handleEnter} onChange={changeCode} />
131
           <Dialog onEnter={handleEnter} onChange={changeCode} />
132
-        </TabPane>
132
+        </TabPane> */}
133
         <TabPane tab="手机号核销" key="2">
133
         <TabPane tab="手机号核销" key="2">
134
           <Row>
134
           <Row>
135
             <Col span={12} style={{ textAlign: 'center' }}>
135
             <Col span={12} style={{ textAlign: 'center' }}>