|
@@ -42,8 +42,9 @@ export default class checkin extends Component {
|
42
|
42
|
this.setState({
|
43
|
43
|
data: res
|
44
|
44
|
})
|
45
|
|
- console.log('1111', res.enlist.attendNum)
|
|
45
|
+
|
46
|
46
|
})
|
|
47
|
+ // activityStatus
|
47
|
48
|
}
|
48
|
49
|
|
49
|
50
|
checkinActive () {
|
|
@@ -86,7 +87,7 @@ export default class checkin extends Component {
|
86
|
87
|
}
|
87
|
88
|
|
88
|
89
|
render () {
|
89
|
|
-
|
|
90
|
+
|
90
|
91
|
// const { data = { person: {}, dynamic: {} }, style } = this.props
|
91
|
92
|
// console.log("data" ,this.data)
|
92
|
93
|
return (
|
|
@@ -101,6 +102,9 @@ export default class checkin extends Component {
|
101
|
102
|
<View className="text1"> <Text>{this.state.data.dynamic.title}</Text></View>
|
102
|
103
|
</View >
|
103
|
104
|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
104
|
108
|
{this.state.data.enlist.enlistId != null && <View>
|
105
|
109
|
<View style="text-align: center;display:inline-block;width:100vw;">
|
106
|
110
|
<View style="text-align: center;display:inline-block;" className="line">- - - - - - - - - - - - - - </View>
|
|
@@ -128,6 +132,16 @@ export default class checkin extends Component {
|
128
|
132
|
{/* {console.log(data.person.status)} */}
|
129
|
133
|
</View>}
|
130
|
134
|
{this.state.data.enlist.enlistId == null && <View className="unregistered">
|
|
135
|
+ {this.state.data.dynamic.activityStatus === 1 && <View style="text-align: center;color:#666666">
|
|
136
|
+ 活动未开始
|
|
137
|
+ </View>
|
|
138
|
+ }
|
|
139
|
+ {this.state.data.dynamic.activityStatus === 2 && <View style="text-align: center;color:#666666">
|
|
140
|
+ 活动已结束
|
|
141
|
+ </View>
|
|
142
|
+ }
|
|
143
|
+
|
|
144
|
+{this.state.data.dynamic.activityStatus === 0 && <View>
|
131
|
145
|
<View>
|
132
|
146
|
<Image className="img1" src={require('@assets/checkin/noentry.png')} ></Image>
|
133
|
147
|
</View>
|
|
@@ -135,10 +149,14 @@ export default class checkin extends Component {
|
135
|
149
|
<Text className="messageText" >您还未报名当前活动,请先前往活动报名页报名成功后再进行扫码签到~ </Text>
|
136
|
150
|
|
137
|
151
|
</View>
|
138
|
|
-{console.log(this.state.data.dynamic.dynamicId)}
|
|
152
|
+
|
139
|
153
|
<AtButton type='primary' className="toactivebutton" onClick={() => { this.toactivity(this.state.data.dynamic.dynamicId) }}>立即前往</AtButton>
|
140
|
|
- {/* <Image src={require('@assets/checkin/checkin.png')} style="position: absolute; width:110px;height:110px ;bottom:12vh;left:132.5px" ></Image> */}
|
141
|
|
- </View>}
|
|
154
|
+ </View>
|
|
155
|
+ }
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+ </View>
|
|
159
|
+ }
|
142
|
160
|
</View>
|
143
|
161
|
|
144
|
162
|
);
|