Selaa lähdekoodia

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

张延森 5 vuotta sitten
vanhempi
commit
87847118b4

+ 1
- 2
src/components/charts/Line.js Näytä tiedosto

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

+ 4
- 3
src/pages/agent/recommend/index.js Näytä tiedosto

@@ -271,7 +271,7 @@ export default class Index extends Component {
271 271
       status: 1
272 272
     }
273 273
     recommendClient(param).then(res => {
274
-
274
+      // if (res) {
275 275
       Taro.showToast({
276 276
         title: '提交成功'
277 277
       })
@@ -279,6 +279,7 @@ export default class Index extends Component {
279 279
         Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
280 280
       }, 700)
281 281
       this.clearInputEvent()
282
+      // }
282 283
     })
283 284
   }
284 285
   // 性别
@@ -444,7 +445,7 @@ export default class Index extends Component {
444 445
             <Text className='customers__txt'>意向楼盘</Text>
445 446
             {
446 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 449
                   {this.state.floorArray[this.state.floorID].buildingName}
449 450
                 </View>
450 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,7 +455,7 @@ export default class Index extends Component {
454 455
           <View className='info info__4__1'>
455 456
             <Text className='customers__txt'>置业顾问</Text>
456 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 459
                 {this.state.adviserArray[this.state.adviserID].name}
459 460
               </View>
460 461
             </Picker>

+ 4
- 0
src/pages/agent/recommend/index.scss Näytä tiedosto

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

+ 1
- 1
src/pages/person/customerAnalysis/index.js Näytä tiedosto

@@ -62,7 +62,7 @@ export default class customer extends Taro.Component {
62 62
     const tabList = [{ title: '客户分析' }, { title: '我的客户' }]
63 63
     const { customerNum, current } = this.state
64 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 66
         <AtTabsPane current={current} index={0} >
67 67
           <View >
68 68
             {

+ 6
- 1
src/pages/person/customerAnalysis/index.scss Näytä tiedosto

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

+ 1
- 0
src/pages/person/customerAnalysis/item/index.scss Näytä tiedosto

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

+ 13
- 10
src/pages/person/customerAnalysis/myCustomer.js Näytä tiedosto

@@ -59,6 +59,9 @@ export default class myCustomer extends Taro.Component {
59 59
     if (value == 1) {
60 60
       this.queryVisitRecord(1);
61 61
     } else if (value == 2) {
62
+      this.setState({
63
+        activityList: []
64
+      })
62 65
       this.queryActivityList(1);
63 66
     } else if (value == 3) {
64 67
       this.queryFollowRecord(1);
@@ -461,7 +464,7 @@ export default class myCustomer extends Taro.Component {
461 464
           </View>
462 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 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 468
           <AtTabsPane current={this.state.current} index={0} >
466 469
             <View className="tab-pane1 pane">
467 470
               <View className="status">{customerDetail.status == 1 ? '报备' : customerDetail.status == 2 ? '到访' : customerDetail.status == 3 ? '认筹' : '签约'}</View>
@@ -477,7 +480,7 @@ export default class myCustomer extends Taro.Component {
477 480
             <View className="tab-pane2 pane">
478 481
               <ListView
479 482
                 className="wrap"
480
-                style="height:calc(100vh - 320rpx)"
483
+                style="height:calc(100vh - 300rpx)"
481 484
                 needInit
482 485
                 isEmpty={isEmpty}
483 486
                 emptyText="暂无访问记录~"
@@ -513,7 +516,7 @@ export default class myCustomer extends Taro.Component {
513 516
             <View className="tab-pane3 pane">
514 517
               <ListView
515 518
                 className="wrap"
516
-                style="height:calc(100vh - 320rpx)"
519
+                style="height:calc(100vh - 300rpx)"
517 520
                 needInit
518 521
                 isEmpty={isEmpty2}
519 522
                 emptyText="暂无活动信息~"
@@ -528,13 +531,13 @@ export default class myCustomer extends Taro.Component {
528 531
                   <View className="empty__text">暂无活动信息~</View> */}
529 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 542
                 </View>
540 543
               </ListView>

+ 7
- 7
src/pages/project/detail/index.js Näytä tiedosto

@@ -170,7 +170,7 @@ export default class Index extends Component {
170 170
     const { buildingId } = this.state
171 171
     const payload = { pageSize: 999, pageNumber: 1, buildingId }
172 172
     queryActivityList(payload).then(res => {
173
-      console.log(res,'Activity')
173
+      console.log(res, 'Activity')
174 174
       this.setState({
175 175
         activityList: res || []
176 176
       })
@@ -893,11 +893,11 @@ export default class Index extends Component {
893 893
             <View className="activity" >
894 894
               {console.log(activityList, '----activityList-----')}
895 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 901
               <View
902 902
                 style={{ position: 'relative' }}>
903 903
                 <HelpGroupBanner
@@ -1162,7 +1162,7 @@ export default class Index extends Component {
1162 1162
 
1163 1163
                       {/* 围观人数 */}
1164 1164
                       <View className='watch__people__num'>
1165
-                        <View className='top__txt'>{total}人围观</View>
1165
+                        <View className='top__txt'>{projectDetail.pvNum || 0}人围观</View>
1166 1166
                         <View className='bottom__img' onClick={this.onViewFans.bind(this)}>
1167 1167
                           <View className="records">
1168 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 Näytä tiedosto

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

+ 3
- 5
src/pages/project/item/index.js Näytä tiedosto

@@ -25,7 +25,7 @@ export default class Index extends Component {
25 25
     return (
26 26
       <View className='item' onClick={onClick.bind(this, data)}>
27 27
         <View className='item__top'>
28
-          {console.log(data,'data')}
28
+          {console.log(data, 'data')}
29 29
           <Image className='item__img' mode="aspectFill" src={getThumbnail(imgSrc)}></Image>
30 30
           {data.marketStatus &&
31 31
             <View className={data.marketStatus == '在售' ? 'item__status sale' : data.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{data.marketStatus}</View>}
@@ -38,7 +38,7 @@ export default class Index extends Component {
38 38
             </View>
39 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 42
           {buildingTag.length > 0 && (
43 43
             <View className="item__tags row">
44 44
               {buildingTag.slice(0, 3).map(tag => <View className='tag' key={tag.tagId}>{tag.tagName}</View>)}
@@ -54,13 +54,11 @@ export default class Index extends Component {
54 54
 
55 55
           {total > 0 && (
56 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 58
               <View className='see__img'>
60 59
                 {records.slice(0, 4).map(item => <Image className='userImg' key={item.uvId} src={getThumbnail(item.photoOravatar)}></Image>)}
61 60
                 {records.length > 4 && <Image className="dot-img" src={getThumbnail(dotImg)}></Image>}
62 61
               </View>
63
-
64 62
             </View>
65 63
           )}
66 64
         </View>

+ 0
- 1
src/pages/signin/index.js Näytä tiedosto

@@ -31,7 +31,6 @@ export default class Index extends Component {
31 31
         }
32 32
       })
33 33
     })
34
-
35 34
   }
36 35
 
37 36
   getPhoneNumber(e) {