| | |
| | | user: { |
| | | username: '', |
| | | id: 0, |
| | | type: '' |
| | | type: 'user_id' |
| | | }, |
| | | falg: true, |
| | | list: [] |
| | |
| | | onShow() { |
| | | let that = this |
| | | uni.$on('isRefresh',function(data){ |
| | | console.log(data); |
| | | that.user.username = data.title |
| | | that.user.id = data.id |
| | | that.user.type = data.key |
| | |
| | | data: param, |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | // return |
| | | if (res.code === 200) { |
| | | for (let k of res.data.records) { |
| | |
| | | }, |
| | | async getDetail() { |
| | | let res = await user.getDetail() |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | this.user.username = res.data.username |
| | | this.user.id = res.data.id |