| | |
| | | }); |
| | | } |
| | | |
| | | // const baseUrl = 'http://192.168.3.159:9999' |
| | | // const baseUrl = 'https://mx.jzeg.cn:443/app'; |
| | | const baseUrl = "https://mx.jzeg.cn:9998"; |
| | | |
| | | // POST请求 |
| | | function apiLogin({ |
| | | username, |
| | |
| | | |
| | | return new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: "/auth/oauth/token?grant_type=password&scope=server", |
| | | url: baseUrl + "/auth/oauth/token?grant_type=password&scope=server", |
| | | method: "POST", |
| | | data: { |
| | | username, |
| | |
| | | resolve(res); |
| | | }, |
| | | fail: (err) => { |
| | | console.log('错误',err); |
| | | uni.hideLoading(); |
| | | uni.showToast({ |
| | | icon: 'none', |