| | |
| | | |
| | | scoreTopHeight: 0, //距离顶部多高 |
| | | |
| | | userInfo: {}, //个人信息 |
| | | isParty: false, //这是党员 |
| | | userInfo: uni.getStorageSync('userInfo'), //个人信息 |
| | | isParty: false, //true 党员 false 管理员 |
| | | }; |
| | | }, |
| | | onPageScroll(e) { |
| | |
| | | if (params.id) { |
| | | this.id = params.id |
| | | } |
| | | |
| | | getUserInfo().then(res => { |
| | | if (res.data == null || res.data.accountLevel == 5) { |
| | | this.isParty = true |
| | | } |
| | | this.userInfo = { |
| | | ...res.data |
| | | } |
| | | }) |
| | | this.isParty = uni.getStorageSync('userInfo').identity == 1 ? true : false |
| | | // getUserInfo().then(res => { |
| | | // if (res.data == null || res.data.accountLevel == 5) { |
| | | // this.isParty = true |
| | | // } |
| | | // this.userInfo = { |
| | | // ...res.data |
| | | // } |
| | | // }) |
| | | }, |
| | | methods: { |
| | | open() {}, |