|
@@ -93,18 +93,27 @@ export default class Person extends Component {
|
93
|
93
|
|
94
|
94
|
|
95
|
95
|
putRegisterConsultant().then(res => {
|
96
|
|
- // console.log("匹配成功,请退出小程序重新登录即可")
|
97
|
|
- Taro.showToast({
|
98
|
|
- title: "匹配成功,请退出小程序重新登录即可",
|
99
|
|
- icon: "none",
|
100
|
|
- duration:3000
|
101
|
|
- })
|
|
96
|
+ console.log("res", res)
|
|
97
|
+
|
|
98
|
+ if (res) {
|
|
99
|
+ Taro.showToast({
|
|
100
|
+ title: "匹配成功,请退出小程序重新登录即可",
|
|
101
|
+ icon: "none",
|
|
102
|
+ duration: 3000
|
|
103
|
+ })
|
|
104
|
+ } else {
|
|
105
|
+ Taro.showToast({
|
|
106
|
+ title: "匹配失败,请联系相关管理人员",
|
|
107
|
+ icon: "none",
|
|
108
|
+ duration: 3000
|
|
109
|
+ })
|
|
110
|
+ }
|
102
|
111
|
}).catch(err => {
|
103
|
112
|
console.error(err)
|
104
|
113
|
Taro.showToast({
|
105
|
114
|
title: "匹配失败,请联系相关管理人员",
|
106
|
115
|
icon: "none",
|
107
|
|
- duration:3000
|
|
116
|
+ duration: 3000
|
108
|
117
|
})
|
109
|
118
|
})
|
110
|
119
|
}
|
|
@@ -176,7 +185,7 @@ export default class Person extends Component {
|
176
|
185
|
{
|
177
|
186
|
user.personType == 'Realty Consultant' && (
|
178
|
187
|
<Navigator url={`/pages/person/spread/index`} className="tuiguang">
|
179
|
|
-
|
|
188
|
+
|
180
|
189
|
<Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
|
181
|
190
|
<View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
|
182
|
191
|
</Navigator>
|
|
@@ -193,10 +202,10 @@ export default class Person extends Component {
|
193
|
202
|
<Text className='qiandao-text'>签到得积分,积分兑好礼,马上去签到吧!</Text>
|
194
|
203
|
{/* <View className={user.havaSigned ? 'reday-qiandao-btn' : 'qiandao-btn'} onClick={this.doSign}>{user.havaSigned ? '已签到' : '签到'}</View> */}
|
195
|
204
|
{
|
196
|
|
- user.havaSigned ?
|
197
|
|
- ( <View className='reday-qiandao-btn' onClick={this.doSign}> 已签到</View> ):
|
198
|
|
- (<View className="qiandao__btn" onClick={this.doSign}>签到</View>)
|
199
|
|
- }
|
|
205
|
+ user.havaSigned ?
|
|
206
|
+ (<View className='reday-qiandao-btn' onClick={this.doSign}> 已签到</View>) :
|
|
207
|
+ (<View className='qiandao-btn' onClick={this.doSign}>签到</View>)
|
|
208
|
+ }
|
200
|
209
|
{/* <Text className='integral-cont_btn' onClick={this.goShop}>去兑换</Text> */}
|
201
|
210
|
|
202
|
211
|
</View>
|
|
@@ -213,7 +222,7 @@ export default class Person extends Component {
|
213
|
222
|
<View onClick={() => this.redirectTo(menu.url)} style={{ color: menu.style }} className="menu-item-con" key={`menu-${inx}`}>
|
214
|
223
|
<Image className="left-icon" src={menu.icon} ></Image>
|
215
|
224
|
<View className="menu-maintext">
|
216
|
|
- <Text className="menu-name" style={ menu.style }>{menu.name}</Text>
|
|
225
|
+ <Text className="menu-name" style={menu.style}>{menu.name}</Text>
|
217
|
226
|
<Text className="right-icon"></Text>
|
218
|
227
|
</View>
|
219
|
228
|
</View>
|