|
@@ -74,7 +74,7 @@ export default class Detail extends Component {
|
74
|
74
|
if (this.toggleGrantPhone()) {
|
75
|
75
|
this.toggleGrantAvatar()
|
76
|
76
|
}
|
77
|
|
-
|
|
77
|
+
|
78
|
78
|
this.initPageData()
|
79
|
79
|
})
|
80
|
80
|
}
|
|
@@ -127,13 +127,13 @@ export default class Detail extends Component {
|
127
|
127
|
// 调起授权电话
|
128
|
128
|
toggleGrantPhone = () => {
|
129
|
129
|
const { userInfo: { person: { phone, tel } } } = this.props
|
130
|
|
-
|
|
130
|
+
|
131
|
131
|
if (!phone && !tel) {
|
132
|
132
|
this.setState({ grantPhoneVisible: true })
|
133
|
133
|
return false
|
134
|
134
|
}
|
135
|
|
- console.log('phone:',phone,'tel:',tel,'!!!!!')
|
136
|
|
- console.log(this.props,'this.propsphone!!!!!')
|
|
135
|
+ console.log('phone:', phone, 'tel:', tel, '!!!!!')
|
|
136
|
+ console.log(this.props, 'this.propsphone!!!!!')
|
137
|
137
|
|
138
|
138
|
return true
|
139
|
139
|
}
|
|
@@ -143,11 +143,11 @@ export default class Detail extends Component {
|
143
|
143
|
const { userInfo: { person: { avatarurl } } } = this.props
|
144
|
144
|
|
145
|
145
|
if (!avatarurl || avatarurl.indexOf('wx.qlogo.cn') === -1) {
|
146
|
|
- console.log(this.props.userInfo,"this.props")
|
|
146
|
+ console.log(this.props.userInfo, "this.props")
|
147
|
147
|
this.setState({ grantAvatarVisible: true })
|
148
|
148
|
return false
|
149
|
149
|
}
|
150
|
|
- console.log(avatarurl,"avatarurl")
|
|
150
|
+ console.log(avatarurl, "avatarurl")
|
151
|
151
|
return true
|
152
|
152
|
}
|
153
|
153
|
|
|
@@ -606,7 +606,10 @@ export default class Detail extends Component {
|
606
|
606
|
}
|
607
|
607
|
{
|
608
|
608
|
isStarter && actState === ActInProcess && helpState === HelpInProcess &&
|
609
|
|
- (<View className="assistance-btn"><FormIdCollector><Button className="assistance-btn" onClick={this.askForHelp}>邀请好友助力</Button></FormIdCollector></View>)
|
|
609
|
+ // (<Block>
|
|
610
|
+ // <View className="set-btn">生成海报</View>
|
|
611
|
+ <View className="assistance-btn"><FormIdCollector><Button className="assistance-btn" onClick={this.askForHelp}>邀请好友助力</Button></FormIdCollector></View>
|
|
612
|
+ // </Block>)
|
610
|
613
|
}
|
611
|
614
|
{
|
612
|
615
|
!isStarter && actState === ActInProcess &&
|
|
@@ -627,13 +630,11 @@ export default class Detail extends Component {
|
627
|
630
|
)
|
628
|
631
|
}
|
629
|
632
|
</View>
|
630
|
|
- <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
|
|
633
|
+ <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------------------- </View>
|
631
|
634
|
<View style="padding:0 40rpx">
|
632
|
635
|
<Image src={transferImage(detail.activityInstructions)} mode="widthFix" style="width:100%;margin-bottom:20px;"></Image>
|
633
|
636
|
</View>
|
634
|
|
-
|
635
|
637
|
</ScrollView>
|
636
|
|
-
|
637
|
638
|
<action-sheet hidden={!actionSheetVisible} bindchange={this.toggleActionVisible}>
|
638
|
639
|
<action-sheet-item open-type="share">
|
639
|
640
|
<Button open-type="share" className='share__friend' onClick={this.toggleActionVisible}>分享给好友</Button>
|