|
@@ -99,7 +99,7 @@ class ApplyDepart extends Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- componentDidMount() {}
|
|
|
|
|
|
+ componentDidMount() { }
|
|
|
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
if (this.state.current === 0) {
|
|
if (this.state.current === 0) {
|
|
@@ -108,6 +108,7 @@ class ApplyDepart extends Component {
|
|
}
|
|
}
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
|
+ let userInfor = Taro.getStorageSync('userInfor');
|
|
return (
|
|
return (
|
|
<View className="applyDepart">
|
|
<View className="applyDepart">
|
|
<MessageNoticebar />
|
|
<MessageNoticebar />
|
|
@@ -127,6 +128,7 @@ class ApplyDepart extends Component {
|
|
<AtButton
|
|
<AtButton
|
|
circle
|
|
circle
|
|
size="small"
|
|
size="small"
|
|
|
|
+ disabled={item.type === 1 && userInfor.type !== 3}
|
|
type={
|
|
type={
|
|
this.state.type == item.type ? "primary" : "secondary"
|
|
this.state.type == item.type ? "primary" : "secondary"
|
|
}
|
|
}
|