| | |
| | | eventChannel.on('url', function(data) { |
| | | that.commonUrl = data.data |
| | | }) |
| | | this.locOwner() |
| | | |
| | | setTimeout(()=> { |
| | | this.locOwner() |
| | | },100) |
| | | }, |
| | | methods: { |
| | | locOwner() { |
| | | let _this = this |
| | | let that = this |
| | | uni.request({ |
| | | url: _this.commonUrl + '/locOwner/list/auth', |
| | | url: 'http://10.10.10.100:8080/bfwms' + '/locOwner/list/auth', |
| | | data:{curr:1,limit:15}, |
| | | header: { 'token':uni.getStorageSync('token') }, |
| | | method:'GET', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.owner = res.data.records |
| | | that.owner = res.data.records |
| | | for (let k of res.data.records) { |
| | | _this.owners.push(k.owner) |
| | | that.owners.push(k.owner) |
| | | } |
| | | } |
| | | }, |
| | | fail(res) { |
| | | } |
| | | }) |
| | | }, |