|
@@ -36,8 +36,10 @@ export default class Index extends Component {
|
36
|
36
|
keywords: '',
|
37
|
37
|
loaded: false,
|
38
|
38
|
maskBanner: '',
|
39
|
|
- shareImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
|
|
39
|
+ shareImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/cff400dab32e9230f6bf7498b8291d7.jpg',
|
|
40
|
+ // shareImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
|
40
|
41
|
// shareImg: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1565358322510-share.jpg',
|
|
42
|
+ adImage: 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/f58480ff83787b64235b729bca5d805.jpg',
|
41
|
43
|
bannerList: [],
|
42
|
44
|
helpGroupList: [],
|
43
|
45
|
newsList: [],
|
|
@@ -169,9 +171,9 @@ export default class Index extends Component {
|
169
|
171
|
this.props.dispatchProjectScreen(payload).then(res => {
|
170
|
172
|
const banner = res[0]
|
171
|
173
|
|
172
|
|
- const maskVisible = this.props.screenShow !== (banner || {}).contentId
|
|
174
|
+ const maskVisible = banner && this.props.screenShow !== (banner || {}).contentId
|
173
|
175
|
// debugger
|
174
|
|
- if (maskVisible && banner) {
|
|
176
|
+ if (maskVisible) {
|
175
|
177
|
Taro.hideTabBar({
|
176
|
178
|
animation: true
|
177
|
179
|
})
|
|
@@ -179,7 +181,7 @@ export default class Index extends Component {
|
179
|
181
|
|
180
|
182
|
this.setState({
|
181
|
183
|
maskVisible,
|
182
|
|
- maskBanner: banner
|
|
184
|
+ maskBanner: banner || {}
|
183
|
185
|
}, () => {
|
184
|
186
|
const { dispatch } = getStore()
|
185
|
187
|
dispatch({ type: SET_SCREEN_SHOWED, payload: (banner || {}).contentId })
|
|
@@ -548,7 +550,7 @@ export default class Index extends Component {
|
548
|
550
|
}
|
549
|
551
|
|
550
|
552
|
renderMaskBanner() {
|
551
|
|
- const { maskBanner } = this.state
|
|
553
|
+ const { maskBanner = {} } = this.state
|
552
|
554
|
return (
|
553
|
555
|
<View className="mask-banner">
|
554
|
556
|
<View className="content">
|
|
@@ -576,7 +578,7 @@ export default class Index extends Component {
|
576
|
578
|
|
577
|
579
|
render() {
|
578
|
580
|
const { curCity } = this.props
|
579
|
|
- const { newsList, achieve } = this.state
|
|
581
|
+ const { newsList, achieve, adImage } = this.state
|
580
|
582
|
const { userInfo: { person: { personType, phone } } } = this.props
|
581
|
583
|
const { unReadNum, userInfo: { person } } = this.props
|
582
|
584
|
return (
|
|
@@ -622,12 +624,22 @@ export default class Index extends Component {
|
622
|
624
|
(personType !== ROLE_CODE['CONSULTANT']) && (
|
623
|
625
|
<View className='section sectionn-customer' style={newsList.length ? "padding-bottom:0rpx;" : ""} >
|
624
|
626
|
<View className='section-content' onClick={this.toRecomonedPage.bind(this, personType)}>
|
625
|
|
- <Image src={require('@assets/index/logo.png')} className='logo_img' mode="widthFix"></Image>
|
626
|
|
- <View className='section-content_title'>
|
627
|
|
- <Text>推荐客户 赢积分好礼</Text>
|
628
|
|
- <Text>更多惊喜在积分商城等着你</Text>
|
629
|
|
- </View>
|
630
|
|
- <Image src={require('@assets/index/recommend.png')} className='section-content_img' mode="widthFix"></Image>
|
|
627
|
+ {
|
|
628
|
+ adImage ?
|
|
629
|
+ (
|
|
630
|
+ <Image src={adImage} style="width: 100%; height: 100%" mode="widthFix"></Image>
|
|
631
|
+ ) :
|
|
632
|
+ (
|
|
633
|
+ <Block>
|
|
634
|
+ <Image src={require('@assets/index/logo.png')} className='logo_img' mode="widthFix"></Image>
|
|
635
|
+ <View className='section-content_title'>
|
|
636
|
+ <Text>推荐客户 赢积分好礼</Text>
|
|
637
|
+ <Text>更多惊喜在积分商城等着你</Text>
|
|
638
|
+ </View>
|
|
639
|
+ <Image src={require('@assets/index/recommend.png')} className='section-content_img' mode="widthFix"></Image>
|
|
640
|
+ </Block>
|
|
641
|
+ )
|
|
642
|
+ }
|
631
|
643
|
</View>
|
632
|
644
|
</View>
|
633
|
645
|
)
|