| | |
| | | // import request from '@/config/request'; |
| | | import { BaseUrl } from '@/utils/request.js' |
| | | |
| | | // let baseUrl = "/"; |
| | | // let BaseUrl = "/"; |
| | | // const CURRENT_KEY = 'CURRENT_KEY'; |
| | | // const PARAM_KEY = 'PARAM_KEY'; |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | // const baseUrl = 'http://192.168.3.159:9999' |
| | | // const baseUrl = 'https://mx.jzeg.cn:443/app'; |
| | | // let baseUrl = 'http://192.168.0.114:9999'; |
| | | |
| | | const baseUrl = "https://mx.jzeg.cn:9998"; // 正式服务 |
| | | |
| | | // POST请求 |
| | | function apiLogin({ |
| | | username, |
| | |
| | | |
| | | return new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: baseUrl + "/auth/oauth/token?grant_type=password&scope=server", |
| | | url: BaseUrl + "/auth/oauth/token?grant_type=password&scope=server", |
| | | method: "POST", |
| | | data: { |
| | | username, |
| | |
| | | |
| | | return new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: baseUrl + `/auth/mobile/token/social?grant_type=mobile&mobile=MINI@${code}`, |
| | | url: BaseUrl + `/auth/mobile/token/social?grant_type=mobile&mobile=MINI@${code}`, |
| | | method: "POST", |
| | | header: { |
| | | "TENANT-ID": "5", |