Browse Source

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into v3.5.1

张延森 5 years ago
parent
commit
87847118b4

+ 1
- 2
src/components/charts/Line.js View File

163
 
163
 
164
   render() {
164
   render() {
165
     // this.refreshChart(this.props.source)
165
     // this.refreshChart(this.props.source)
166
-
167
     return (
166
     return (
168
-      <View style="width:100vw;height:500rpx;position: relative;">
167
+      <View style="width:100vw;height:480rpx;position: relative;">
169
         <View className="map-container">
168
         <View className="map-container">
170
           <ec-canvas ref={this.handleEcComponent} ec={this.state.ec}></ec-canvas>
169
           <ec-canvas ref={this.handleEcComponent} ec={this.state.ec}></ec-canvas>
171
         </View>
170
         </View>

+ 4
- 3
src/pages/agent/recommend/index.js View File

271
       status: 1
271
       status: 1
272
     }
272
     }
273
     recommendClient(param).then(res => {
273
     recommendClient(param).then(res => {
274
-
274
+      // if (res) {
275
       Taro.showToast({
275
       Taro.showToast({
276
         title: '提交成功'
276
         title: '提交成功'
277
       })
277
       })
279
         Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
279
         Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
280
       }, 700)
280
       }, 700)
281
       this.clearInputEvent()
281
       this.clearInputEvent()
282
+      // }
282
     })
283
     })
283
   }
284
   }
284
   // 性别
285
   // 性别
444
             <Text className='customers__txt'>意向楼盘</Text>
445
             <Text className='customers__txt'>意向楼盘</Text>
445
             {
446
             {
446
               reType == 'index' ? (<Picker className='input customers__name' onChange={this.bindFloorChange} value={this.state.floorID} range={this.state.floorArray} range-key="buildingName">
447
               reType == 'index' ? (<Picker className='input customers__name' onChange={this.bindFloorChange} value={this.state.floorID} range={this.state.floorArray} range-key="buildingName">
447
-                <View class="picker" style={this.state.floorColor}>
448
+                <View class="picker overtext" style={this.state.floorColor}>
448
                   {this.state.floorArray[this.state.floorID].buildingName}
449
                   {this.state.floorArray[this.state.floorID].buildingName}
449
                 </View>
450
                 </View>
450
               </Picker>) : (<Input className="input customers__name" style='color:#999;' disabled='disabled' name="name" value={this.state.intention} onInput={this.bindFloorChange.bind(this)} placeholder="" />)
451
               </Picker>) : (<Input className="input customers__name" style='color:#999;' disabled='disabled' name="name" value={this.state.intention} onInput={this.bindFloorChange.bind(this)} placeholder="" />)
454
           <View className='info info__4__1'>
455
           <View className='info info__4__1'>
455
             <Text className='customers__txt'>置业顾问</Text>
456
             <Text className='customers__txt'>置业顾问</Text>
456
             <Picker className='input customers__adviser' onChange={this.bindAdviserChange} value={this.state.adviserID} range={this.state.adviserArray} range-key="name">
457
             <Picker className='input customers__adviser' onChange={this.bindAdviserChange} value={this.state.adviserID} range={this.state.adviserArray} range-key="name">
457
-              <View class="picker" style={this.state.adviserColor}>
458
+              <View class="picker overtext" style={this.state.adviserColor}>
458
                 {this.state.adviserArray[this.state.adviserID].name}
459
                 {this.state.adviserArray[this.state.adviserID].name}
459
               </View>
460
               </View>
460
             </Picker>
461
             </Picker>

+ 4
- 0
src/pages/agent/recommend/index.scss View File

2
 .ani {
2
 .ani {
3
   position: absolute;
3
   position: absolute;
4
 }
4
 }
5
+.overtext{
6
+  max-width: 100%;
7
+  @include text-ellipsis;
8
+}
5
 
9
 
6
 .recommend__customers {
10
 .recommend__customers {
7
   position: relative;
11
   position: relative;

+ 1
- 1
src/pages/person/customerAnalysis/index.js View File

62
     const tabList = [{ title: '客户分析' }, { title: '我的客户' }]
62
     const tabList = [{ title: '客户分析' }, { title: '我的客户' }]
63
     const { customerNum, current } = this.state
63
     const { customerNum, current } = this.state
64
     return (
64
     return (
65
-      <AtTabs className="tab-box" current={current} tabList={tabList} onClick={this.handleClick.bind(this)} swipeable={false}>
65
+      <AtTabs  className="tab-box overflow-tab" current={current} tabList={tabList} onClick={this.handleClick.bind(this)} swipeable={false}>
66
         <AtTabsPane current={current} index={0} >
66
         <AtTabsPane current={current} index={0} >
67
           <View >
67
           <View >
68
             {
68
             {

+ 6
- 1
src/pages/person/customerAnalysis/index.scss View File

113
     }
113
     }
114
   }
114
   }
115
 }
115
 }
116
+.overflow-tab{
117
+  .at-tabs-pane{
118
+    overflow-y: hidden;
119
+  }
120
+}
116
 .empty{
121
 .empty{
117
   width:100%;
122
   width:100%;
118
   height:40vh;
123
   height:40vh;
250
       }
255
       }
251
     }
256
     }
252
     .tab-pane3{
257
     .tab-pane3{
253
-      padding: 20px 40px;
258
+      padding: 20px 30px;
254
     }
259
     }
255
   }
260
   }
256
   .tab-pane4{
261
   .tab-pane4{

+ 1
- 0
src/pages/person/customerAnalysis/item/index.scss View File

15
   width: 98%;
15
   width: 98%;
16
   margin: 0 1%;
16
   margin: 0 1%;
17
   position: relative;
17
   position: relative;
18
+  margin-bottom: 16px ;
18
   .type{
19
   .type{
19
     position: absolute;
20
     position: absolute;
20
     left:0;
21
     left:0;

+ 13
- 10
src/pages/person/customerAnalysis/myCustomer.js View File

59
     if (value == 1) {
59
     if (value == 1) {
60
       this.queryVisitRecord(1);
60
       this.queryVisitRecord(1);
61
     } else if (value == 2) {
61
     } else if (value == 2) {
62
+      this.setState({
63
+        activityList: []
64
+      })
62
       this.queryActivityList(1);
65
       this.queryActivityList(1);
63
     } else if (value == 3) {
66
     } else if (value == 3) {
64
       this.queryFollowRecord(1);
67
       this.queryFollowRecord(1);
461
           </View>
464
           </View>
462
           <View onClick={this.handleTelClick.bind(this, customerDetail)} className='user__left__phone'>{customerDetail.phone}<Image style="width:36rpx;height:36rpx;margin-left:20rpx;" src={phoneImg} /></View>
465
           <View onClick={this.handleTelClick.bind(this, customerDetail)} className='user__left__phone'>{customerDetail.phone}<Image style="width:36rpx;height:36rpx;margin-left:20rpx;" src={phoneImg} /></View>
463
         </View>
466
         </View>
464
-        <AtTabs height="calc(100vh - 320rpx)" className="my-tab" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
467
+        <AtTabs height="calc(100vh - 300rpx)" className="my-tab" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
465
           <AtTabsPane current={this.state.current} index={0} >
468
           <AtTabsPane current={this.state.current} index={0} >
466
             <View className="tab-pane1 pane">
469
             <View className="tab-pane1 pane">
467
               <View className="status">{customerDetail.status == 1 ? '报备' : customerDetail.status == 2 ? '到访' : customerDetail.status == 3 ? '认筹' : '签约'}</View>
470
               <View className="status">{customerDetail.status == 1 ? '报备' : customerDetail.status == 2 ? '到访' : customerDetail.status == 3 ? '认筹' : '签约'}</View>
477
             <View className="tab-pane2 pane">
480
             <View className="tab-pane2 pane">
478
               <ListView
481
               <ListView
479
                 className="wrap"
482
                 className="wrap"
480
-                style="height:calc(100vh - 320rpx)"
483
+                style="height:calc(100vh - 300rpx)"
481
                 needInit
484
                 needInit
482
                 isEmpty={isEmpty}
485
                 isEmpty={isEmpty}
483
                 emptyText="暂无访问记录~"
486
                 emptyText="暂无访问记录~"
513
             <View className="tab-pane3 pane">
516
             <View className="tab-pane3 pane">
514
               <ListView
517
               <ListView
515
                 className="wrap"
518
                 className="wrap"
516
-                style="height:calc(100vh - 320rpx)"
519
+                style="height:calc(100vh - 300rpx)"
517
                 needInit
520
                 needInit
518
                 isEmpty={isEmpty2}
521
                 isEmpty={isEmpty2}
519
                 emptyText="暂无活动信息~"
522
                 emptyText="暂无活动信息~"
528
                   <View className="empty__text">暂无活动信息~</View> */}
531
                   <View className="empty__text">暂无活动信息~</View> */}
529
                     </View>
532
                     </View>
530
                   }
533
                   }
531
-                  {activityList.length &&
532
-                    activityList.map(item => (
533
-                      <ActivityItem
534
-                        data={item}
535
-                        key={item.id + 'activity'}>
536
-                      </ActivityItem>
537
-                    ))
534
+                  {activityList.length && activityList.map(item => (
535
+                    <ActivityItem
536
+                      data={item}
537
+                      key={item.id + 'activity'}
538
+                    >
539
+                    </ActivityItem>
540
+                  ))
538
                   }
541
                   }
539
                 </View>
542
                 </View>
540
               </ListView>
543
               </ListView>

+ 7
- 7
src/pages/project/detail/index.js View File

170
     const { buildingId } = this.state
170
     const { buildingId } = this.state
171
     const payload = { pageSize: 999, pageNumber: 1, buildingId }
171
     const payload = { pageSize: 999, pageNumber: 1, buildingId }
172
     queryActivityList(payload).then(res => {
172
     queryActivityList(payload).then(res => {
173
-      console.log(res,'Activity')
173
+      console.log(res, 'Activity')
174
       this.setState({
174
       this.setState({
175
         activityList: res || []
175
         activityList: res || []
176
       })
176
       })
893
             <View className="activity" >
893
             <View className="activity" >
894
               {console.log(activityList, '----activityList-----')}
894
               {console.log(activityList, '----activityList-----')}
895
               <View className="section-head">
895
               <View className="section-head">
896
-                 <Text className="section-head__title">热门活动</Text>
897
-                 <View className="section-head__more" onClick={this.handleActivityMoreClick}>
898
-                   更多活动<Text className="iconfont icon-more"></Text>
899
-                 </View>
900
-               </View>
896
+                <Text className="section-head__title">热门活动</Text>
897
+                <View className="section-head__more" onClick={this.handleActivityMoreClick}>
898
+                  更多活动<Text className="iconfont icon-more"></Text>
899
+                </View>
900
+              </View>
901
               <View
901
               <View
902
                 style={{ position: 'relative' }}>
902
                 style={{ position: 'relative' }}>
903
                 <HelpGroupBanner
903
                 <HelpGroupBanner
1162
 
1162
 
1163
                       {/* 围观人数 */}
1163
                       {/* 围观人数 */}
1164
                       <View className='watch__people__num'>
1164
                       <View className='watch__people__num'>
1165
-                        <View className='top__txt'>{total}人围观</View>
1165
+                        <View className='top__txt'>{projectDetail.pvNum || 0}人围观</View>
1166
                         <View className='bottom__img' onClick={this.onViewFans.bind(this)}>
1166
                         <View className='bottom__img' onClick={this.onViewFans.bind(this)}>
1167
                           <View className="records">
1167
                           <View className="records">
1168
                             {records.slice(0, 9).map(item => <Image src={item.photoOravatar} className='user__img' key={item.personId} />)}
1168
                             {records.slice(0, 9).map(item => <Image src={item.photoOravatar} className='user__img' key={item.personId} />)}

+ 2
- 3
src/pages/project/detail/index.scss View File

610
 
610
 
611
       .top__txt {
611
       .top__txt {
612
         font-size: 26px;
612
         font-size: 26px;
613
-        width: 20%;
613
+        width: 30%;
614
         color: rgba(0, 0, 0, 0.37);
614
         color: rgba(0, 0, 0, 0.37);
615
       }
615
       }
616
 
616
 
617
       .bottom__img {
617
       .bottom__img {
618
-        margin-top: 20px;
619
-        width: 80%;
618
+        width: 70%;
620
         display: flex;
619
         display: flex;
621
         align-items: center;
620
         align-items: center;
622
         margin-left: 5px;
621
         margin-left: 5px;

+ 3
- 5
src/pages/project/item/index.js View File

25
     return (
25
     return (
26
       <View className='item' onClick={onClick.bind(this, data)}>
26
       <View className='item' onClick={onClick.bind(this, data)}>
27
         <View className='item__top'>
27
         <View className='item__top'>
28
-          {console.log(data,'data')}
28
+          {console.log(data, 'data')}
29
           <Image className='item__img' mode="aspectFill" src={getThumbnail(imgSrc)}></Image>
29
           <Image className='item__img' mode="aspectFill" src={getThumbnail(imgSrc)}></Image>
30
           {data.marketStatus &&
30
           {data.marketStatus &&
31
             <View className={data.marketStatus == '在售' ? 'item__status sale' : data.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{data.marketStatus}</View>}
31
             <View className={data.marketStatus == '在售' ? 'item__status sale' : data.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{data.marketStatus}</View>}
38
             </View>
38
             </View>
39
           </View>
39
           </View>
40
 
40
 
41
-          <View className='item__right__region row'><Text className="location-icon iconfont icon-daohangdizhi"></Text>{data.buildingArea||''}</View>
41
+          <View className='item__right__region row'><Text className="location-icon iconfont icon-daohangdizhi"></Text>{data.buildingArea || ''}</View>
42
           {buildingTag.length > 0 && (
42
           {buildingTag.length > 0 && (
43
             <View className="item__tags row">
43
             <View className="item__tags row">
44
               {buildingTag.slice(0, 3).map(tag => <View className='tag' key={tag.tagId}>{tag.tagName}</View>)}
44
               {buildingTag.slice(0, 3).map(tag => <View className='tag' key={tag.tagId}>{tag.tagName}</View>)}
54
 
54
 
55
           {total > 0 && (
55
           {total > 0 && (
56
             <View className='item__bottom__right'>
56
             <View className='item__bottom__right'>
57
-              <Text className='item__bottom__seenum'>{total}人围观</Text>
58
-
57
+              <Text className='item__bottom__seenum'>{data.pvNum || 0}人围观</Text>
59
               <View className='see__img'>
58
               <View className='see__img'>
60
                 {records.slice(0, 4).map(item => <Image className='userImg' key={item.uvId} src={getThumbnail(item.photoOravatar)}></Image>)}
59
                 {records.slice(0, 4).map(item => <Image className='userImg' key={item.uvId} src={getThumbnail(item.photoOravatar)}></Image>)}
61
                 {records.length > 4 && <Image className="dot-img" src={getThumbnail(dotImg)}></Image>}
60
                 {records.length > 4 && <Image className="dot-img" src={getThumbnail(dotImg)}></Image>}
62
               </View>
61
               </View>
63
-
64
             </View>
62
             </View>
65
           )}
63
           )}
66
         </View>
64
         </View>

+ 0
- 1
src/pages/signin/index.js View File

31
         }
31
         }
32
       })
32
       })
33
     })
33
     })
34
-
35
   }
34
   }
36
 
35
 
37
   getPhoneNumber(e) {
36
   getPhoneNumber(e) {