|
@@ -6,7 +6,7 @@ import Poster from './poster'
|
6
|
6
|
import { agentCurrent } from '@services/agent'
|
7
|
7
|
import BackHomeBtn from '@components/BackHomeBtn'
|
8
|
8
|
import { getMiniQrcode } from '@services/common'
|
9
|
|
-const topImg ='https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/index/top.jpg'
|
|
9
|
+const topImg = 'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/index/top.jpg'
|
10
|
10
|
@connect(state => state.user, { ...actions })
|
11
|
11
|
|
12
|
12
|
export default class Index extends Component {
|
|
@@ -38,7 +38,7 @@ export default class Index extends Component {
|
38
|
38
|
|
39
|
39
|
}
|
40
|
40
|
onShareAppMessage = () => {
|
41
|
|
- const { agent: { nickname,personId,agentCode } } = this.state
|
|
41
|
+ const { agent: { nickname, personId, agentCode } } = this.state
|
42
|
42
|
return {
|
43
|
43
|
title: `${nickname}邀请你成为经纪人`,
|
44
|
44
|
path: `/pages/agent/become/index?id=${personId}&from=share&recommender=${personId}&agentCode=${agentCode}`,//分享地址
|
|
@@ -53,7 +53,7 @@ export default class Index extends Component {
|
53
|
53
|
return
|
54
|
54
|
}
|
55
|
55
|
const { userInfo: { person } } = this.props
|
56
|
|
- const { agent: { avatarurl, phone, agentCode },qrcode } = this.state
|
|
56
|
+ const { agent: { avatarurl, phone, agentCode }, qrcode } = this.state
|
57
|
57
|
let data = {
|
58
|
58
|
codeImg: qrcode,
|
59
|
59
|
avatarurl: avatarurl,//访问者头像
|
|
@@ -81,7 +81,7 @@ export default class Index extends Component {
|
81
|
81
|
}
|
82
|
82
|
}
|
83
|
83
|
render() {
|
84
|
|
- const { posterVisible, posterData, posterShow, agent,qrcode } = this.state
|
|
84
|
+ const { posterVisible, posterData, posterShow, agent, qrcode } = this.state
|
85
|
85
|
return (
|
86
|
86
|
<Block>
|
87
|
87
|
{/* 生成海报 */}
|
|
@@ -91,7 +91,7 @@ export default class Index extends Component {
|
91
|
91
|
<View className='agent_info'>
|
92
|
92
|
<Image src={agent.avatarurl} className='agent_avatar'></Image>
|
93
|
93
|
<View className='agent_info-center'>
|
94
|
|
- <View>手机号:<Text className='agent_info-tel'>{agent.phone}</Text></View>
|
|
94
|
+ <View>手机号:<Text className='agent_info-tel'>{agent.tel || agent.phone}</Text></View>
|
95
|
95
|
<View>我的推荐码:<Text className='agent_info-code'>{agent.agentCode}</Text></View>
|
96
|
96
|
</View>
|
97
|
97
|
<Image src={qrcode} className='agent_code'></Image>
|