H5端齐采药项目,uniapp框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
297 B

import {
SERVERIP
} from './http'
export const req = (url, data = {}, method = 'GET') => {
return new Promise((resolve, reject) => {
uni.request({
url: SERVERIP + url,
data: data,
method: method,
success(res) {
resolve(res)
},
fail(err) {
reject(err)
}
})
})
}