Sfoglia il codice sorgente

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

周立森 5 anni fa
parent
commit
e3b95cf2b3

+ 1
- 1
src/pages/Welcome.jsx Vedi File

@@ -54,7 +54,7 @@ const welcome = (props) => {
54 54
             borderRadius: '12px', width: '32%', marginRight: '2%'
55 55
           }}>
56 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 58
           </div>
59 59
         }
60 60
         {checkData.includes('number_of_new_users') &&

+ 1
- 2
src/pages/activity/ActivityList.jsx Vedi File

@@ -129,12 +129,11 @@ const header = props => {
129 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 130
             {row.isEnlist != 2 && <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
131 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 137
   const getSignList = dynamicId => {
139 138
     router.push({
140 139
       pathname: '/activity/SignList',

+ 1
- 1
src/pages/activity/drainage/DrainageList.jsx Vedi File

@@ -57,7 +57,7 @@ const header = (props) => {
57 57
           gettaDrainage({ pageNum: 1, pageSize: 10 })
58 58
         }).catch((err) => {
59 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 Vedi File

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

+ 27
- 4
src/pages/building/list/add/components/amap.jsx Vedi File

@@ -4,12 +4,15 @@ import { Map, Marker } from 'react-amap';
4 4
 import styles from '../amap.less'
5 5
 
6 6
 class Amap extends React.Component {
7
+
7 8
   constructor(props) {
8 9
     super(props);
10
+    
9 11
     // 高德地图 Marker 实例
10 12
     this.markerInstance = undefined
11 13
     // 高德地图 Map 实例
12 14
     this.mapInstance = undefined
15
+
13 16
     this.amapEvents = {
14 17
       created: mapInstance => {
15 18
         console.log('高德地图 Map 实例创建成功;如果你要亲自对实例进行操作,可以从这里开始。比如:');
@@ -20,7 +23,7 @@ class Amap extends React.Component {
20 23
           // 实例化Autocomplete
21 24
           const autoOptions = {
22 25
             // city 限定城市,默认全国
23
-            city: '全国',
26
+            // city: '025',
24 27
             // input 为绑定输入提示功能的input的DOM ID
25 28
             input: 'amapInput',
26 29
           }
@@ -76,14 +79,34 @@ class Amap extends React.Component {
76 79
       },
77 80
     }
78 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 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 110
     return (
88 111
       <>
89 112
         <div style={{ width: '100%', height: '400px', position: 'relative' }}>

+ 2
- 2
src/pages/building/list/add/components/base.jsx Vedi File

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

+ 1
- 1
src/pages/building/list/index.jsx Vedi File

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

+ 1
- 1
src/pages/carouselFigure/SelectNews.jsx Vedi File

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

+ 1
- 1
src/pages/indexEcharts/components/UserBehavior.jsx Vedi File

@@ -272,7 +272,7 @@ const UserBehavior = props => {
272 272
           {!props.BuildSelectHide && <span style={{ fontSize: '0.09rem', color: '#888', marginLeft: '0.06rem' }}>最近七天</span>}
273 273
         </p>
274 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 276
         </div>
277 277
         <EChart options={options} style={style} />
278 278
         {props.tableShow &&

+ 2
- 2
src/pages/integralMall/writeOff.jsx Vedi File

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