|
@@ -60,7 +60,7 @@ export default class Detail extends Component {
|
60
|
60
|
queryInfo: {}
|
61
|
61
|
}
|
62
|
62
|
|
63
|
|
- componentWillMount() {
|
|
63
|
+ componentWillMount () {
|
64
|
64
|
ready.queue(() => {
|
65
|
65
|
if (this.toggleGrantPhone()) {
|
66
|
66
|
console.log("eeeeeeeeeeeeeeeeeeeeeeeeee")
|
|
@@ -95,7 +95,7 @@ export default class Detail extends Component {
|
95
|
95
|
}
|
96
|
96
|
})
|
97
|
97
|
}
|
98
|
|
- componentWillUnmount() {
|
|
98
|
+ componentWillUnmount () {
|
99
|
99
|
const { recordId } = this.state
|
100
|
100
|
recordId && updatePoint(recordId)
|
101
|
101
|
|
|
@@ -105,7 +105,7 @@ export default class Detail extends Component {
|
105
|
105
|
// this.reportClientFn()
|
106
|
106
|
// }
|
107
|
107
|
|
108
|
|
- loadDetail() {
|
|
108
|
+ loadDetail () {
|
109
|
109
|
const { id, qrcodeParams, queryInfo } = this.state
|
110
|
110
|
Taro.showLoading()
|
111
|
111
|
// const consultant = Taro.getStorageSync('consultantId') || ''
|
|
@@ -212,7 +212,7 @@ export default class Detail extends Component {
|
212
|
212
|
}
|
213
|
213
|
|
214
|
214
|
|
215
|
|
- handleSignup() {
|
|
215
|
+ handleSignup () {
|
216
|
216
|
const { detail: { buildingId, dynamicId }, isSign } = this.state
|
217
|
217
|
const { userInfo: { person: { phone, name, nickname } } } = this.props
|
218
|
218
|
|
|
@@ -229,7 +229,7 @@ export default class Detail extends Component {
|
229
|
229
|
})
|
230
|
230
|
}
|
231
|
231
|
|
232
|
|
- handleFavor() {
|
|
232
|
+ handleFavor () {
|
233
|
233
|
const { detail: { dynamicId }, isSaved } = this.state
|
234
|
234
|
if (isSaved) {
|
235
|
235
|
cancelFavorActivity(dynamicId).then(res => {
|
|
@@ -261,7 +261,7 @@ export default class Detail extends Component {
|
261
|
261
|
})
|
262
|
262
|
}
|
263
|
263
|
|
264
|
|
- handleGetPhone(e) {
|
|
264
|
+ handleGetPhone (e) {
|
265
|
265
|
const { detail: { buildingId } } = this.state
|
266
|
266
|
getUserPhone(e, { buildingId: buildingId || '' }, (phoneNumber) => {
|
267
|
267
|
if (phoneNumber) {
|
|
@@ -355,7 +355,7 @@ export default class Detail extends Component {
|
355
|
355
|
// })
|
356
|
356
|
}
|
357
|
357
|
|
358
|
|
- handleMoreClick() {
|
|
358
|
+ handleMoreClick () {
|
359
|
359
|
// App.zhuge.track('查看置业顾问列表')
|
360
|
360
|
console.log()
|
361
|
361
|
Taro.navigateTo({
|
|
@@ -422,7 +422,7 @@ export default class Detail extends Component {
|
422
|
422
|
})
|
423
|
423
|
}
|
424
|
424
|
|
425
|
|
- hideModal() {
|
|
425
|
+ hideModal () {
|
426
|
426
|
this.setState({
|
427
|
427
|
canChoose: 'none'
|
428
|
428
|
})
|
|
@@ -454,7 +454,7 @@ export default class Detail extends Component {
|
454
|
454
|
return true
|
455
|
455
|
}
|
456
|
456
|
|
457
|
|
- render() {
|
|
457
|
+ render () {
|
458
|
458
|
const { detail, loaded, isSaved, isSign, posterVisible, posterData, queryInfo, posterShow, consultData, consultShow, grantPhoneVisible, grantAvatarVisible } = this.state
|
459
|
459
|
const { userInfo = {} } = this.props
|
460
|
460
|
const { person: { phone, personId, nickname, name, tel } = {} } = userInfo
|
|
@@ -534,8 +534,36 @@ export default class Detail extends Component {
|
534
|
534
|
{
|
535
|
535
|
consultShow && <Consultant style="bottom:140rpx" personId={personId} name={name || nickname} data={consultData}></Consultant>
|
536
|
536
|
}
|
537
|
|
- <View className="bot-nav flex">
|
|
537
|
+ <View className="NewBottom flex-h">
|
538
|
538
|
{
|
|
539
|
+ posterShow && (
|
|
540
|
+ <Button className='Btn' onClick={() => { this.togglePosterStatus(true) }}>
|
|
541
|
+ <Image mode="heightFix" src={require('@/assets/tupian_3@3x.png')}></Image>
|
|
542
|
+ <Text>海报</Text>
|
|
543
|
+ </Button>
|
|
544
|
+ )
|
|
545
|
+ }
|
|
546
|
+ <Button className="Btn" open-type="share">
|
|
547
|
+ <Image mode="heightFix" src={require('@/assets/fasong@3x.png')} className="btn-icon"></Image>
|
|
548
|
+ <Text className="txt">分享</Text>
|
|
549
|
+ </Button>
|
|
550
|
+
|
|
551
|
+ <Button className="Btn" onClick={this.handleFavor}>
|
|
552
|
+ <Text className={`iconfont ${isSaved ? 'icon-shoucang selected' : 'icon-shoucang1'}`} style={{fontSize: `20px`}}></Text>
|
|
553
|
+ <Text className="txt">收藏</Text>
|
|
554
|
+ </Button>
|
|
555
|
+ <View className='flex-item'></View>
|
|
556
|
+ {
|
|
557
|
+ parseInt(detail.isEnlist) != 0 && detail.activityStatus != 2 && (parseInt(detail.isEnlist) == 2 ? (<Button disabled='true' className='submit-btn hasSigned'>报名人数已满</Button>) : ((phone ? (
|
|
558
|
+ <Button disabled={isSign} className={`submit-btn ${isSign ? 'hasSigned' : ''}`} onClick={this.handleSignup}>{isSign ? '已报名' : '立即报名'}</Button>
|
|
559
|
+ ) : (
|
|
560
|
+ <Button disabled={isSign} className='submit-btn' open-type="getPhoneNumber" onGetphonenumber={this.handleGetPhone}>{isSign ? '已报名' : '立即报名'}</Button>
|
|
561
|
+ ))))
|
|
562
|
+ }
|
|
563
|
+ {detail.activityStatus == 2 &&
|
|
564
|
+ <Button disabled='true' className={`submit-btn ${isSign ? 'hasSigned' : ''}`}>{isSign ? '已报名' : '立即报名'}</Button>
|
|
565
|
+ }
|
|
566
|
+ {/* {
|
539
|
567
|
posterShow && (
|
540
|
568
|
<Button className='btn poster-btn' onClick={() => { this.togglePosterStatus(true) }}>
|
541
|
569
|
<Image mode="aspectFill" src={require('@/assets/tupian_3@3x.png')} className="btn-icon"></Image>
|
|
@@ -561,7 +589,7 @@ export default class Detail extends Component {
|
561
|
589
|
}
|
562
|
590
|
{detail.activityStatus == 2 &&
|
563
|
591
|
<Button disabled='true' className='submit-btn hasSigned' >{isSign ? '已报名' : '立即报名'}</Button>
|
564
|
|
- }
|
|
592
|
+ } */}
|
565
|
593
|
|
566
|
594
|
{/* {phone ? (
|
567
|
595
|
<Button disabled={isSign} className={`submit-btn ${isSign ? 'hasSigned' : ''}`} onClick={this.handleSignup}>{isSign ? '已报名' : '立即报名'}</Button>
|