rqs.js 499 字节
const BASE_URL = 'http://xide.shs.broing.cn';
export const rqs = (url, data, method) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: BASE_URL + url,
			data: data || {},
			method: method || 'POST',
			header: {
			token: uni.getStorageSync('token'),
			// token: '48030bcf-798c-4593-be36-d43a87b645ff',
			success: (res) => {
				console.log('调用成功');
				resolve(res)
			},
			fail: (err) => {
				console.log('调用失败');
				reject(err)
			}
			}
		})
	})


}