|
@@ -138,6 +138,8 @@ export default class myCustomer extends Taro.Component {
|
138
|
138
|
const { records, list, total, current, pages } = res || {}
|
139
|
139
|
const _list = records || list || []
|
140
|
140
|
const newList = current <= 1 ? _list : this.state.activityList.concat(_list)
|
|
141
|
+ console.log(_list, "list")
|
|
142
|
+ console.log(newList, "newList")
|
141
|
143
|
this.setState({
|
142
|
144
|
activityList: newList,
|
143
|
145
|
isEmpty2: total == 0,
|
|
@@ -445,6 +447,7 @@ export default class myCustomer extends Taro.Component {
|
445
|
447
|
const { customerDetail, visitRecord, activityList, followRecord, followVisible, baseVisible, isEmpty, hasMore, isEmpty2, hasMore2, isEmpty3, hasMore3 } = this.state
|
446
|
448
|
return (
|
447
|
449
|
<View>
|
|
450
|
+ {console.log(activityList, "item")}
|
448
|
451
|
{followVisible && this.renderFollowBox()}
|
449
|
452
|
{baseVisible && this.renderBaseBox()}
|
450
|
453
|
<View className="user_con" style=" margin: 0 20rpx 40rpx 20rpx; height:256rpx;box-shadow:0rpx 4rpx 12rpx 0rpx rgba(0,0,0,0.12); border-radius:12rpx;">
|
|
@@ -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 - 310rpx)" 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 - 310rpx)"
|
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 - 310rpx)"
|
517
|
520
|
needInit
|
518
|
521
|
isEmpty={isEmpty2}
|
519
|
522
|
emptyText="暂无活动信息~"
|
|
@@ -529,11 +532,15 @@ export default class myCustomer extends Taro.Component {
|
529
|
532
|
</View>
|
530
|
533
|
}
|
531
|
534
|
{activityList.length &&
|
|
535
|
+
|
532
|
536
|
activityList.map(item => (
|
533
|
|
- <ActivityItem
|
534
|
|
- data={item}
|
535
|
|
- key={item.id + 'activity'}>
|
536
|
|
- </ActivityItem>
|
|
537
|
+ <Block key={item.id + 'activity'}>
|
|
538
|
+ {console.log(item, "item7777777777")}
|
|
539
|
+ <ActivityItem
|
|
540
|
+ data={item}
|
|
541
|
+ >
|
|
542
|
+ </ActivityItem>
|
|
543
|
+ </Block>
|
537
|
544
|
))
|
538
|
545
|
}
|
539
|
546
|
</View>
|