|
@@ -49,10 +49,6 @@ export default class Person extends Component {
|
49
|
49
|
doSign() {
|
50
|
50
|
const { user: { id, havaSigned } } = this.state
|
51
|
51
|
if (havaSigned) {
|
52
|
|
- Taro.showToast({
|
53
|
|
- title: '你已经签到过了',
|
54
|
|
- icon: 'none'
|
55
|
|
- })
|
56
|
52
|
return
|
57
|
53
|
}
|
58
|
54
|
|
|
@@ -175,7 +171,7 @@ export default class Person extends Component {
|
175
|
171
|
</View>
|
176
|
172
|
<View className='qiandao-con'>
|
177
|
173
|
<Text className='qiandao-text'>签到得积分,积分兑好礼,马上去签到吧!</Text>
|
178
|
|
- <View className="qiandao-btn" onClick={this.doSign}>签到</View>
|
|
174
|
+ <View className={user.havaSigned?'reday-qiandao-btn' : 'qiandao-btn'} onClick={this.doSign}>{user.havaSigned ? '已签到' : '签到'}</View>
|
179
|
175
|
|
180
|
176
|
{/* <Text className='integral-cont_btn' onClick={this.goShop}>去兑换</Text> */}
|
181
|
177
|
|