|
|
|
|
|
|
|
|
if (options.baseUrl) { |
|
|
if (options.baseUrl) { |
|
|
options.url = options.baseUrl |
|
|
options.url = options.baseUrl |
|
|
} |
|
|
} |
|
|
//默认json数据格式提交 |
|
|
|
|
|
|
|
|
//默认json数据格式提交` |
|
|
let contentType = 'application/x-www-form-urlencoded' |
|
|
let contentType = 'application/x-www-form-urlencoded' |
|
|
//根据type判断数据传输格式 |
|
|
//根据type判断数据传输格式 |
|
|
if (options.type && options.type === 2) { |
|
|
if (options.type && options.type === 2) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}else { |
|
|
|
|
|
|
|
|
} else { |
|
|
wx.showModal({ |
|
|
wx.showModal({ |
|
|
title: '提示', |
|
|
title: '提示', |
|
|
content: res.data.errorMsg, |
|
|
content: res.data.errorMsg, |