封装
const commonUrl = "https://www.xxxxxx/upload/"; //公共路径
// post请求封装
function postRequest(url, data) {
var promise = new Promise((resolve, reject) => {
var that = this;
var postData = data;
uni.request({
url: commonUrl + url,
data: postData,
method: "POST",
header: {
"content-type": "application/x-www-form-urlencoded"