uniapp 解决post参数丢失问题
uni.request({ url: 'https://www.demo.com/request', header: {'content-type': 'application/x-www-form-urlencoded'} method: 'POST', data: { mobile: 13120119102, code: 333354 }, success: function(result) { console.log(result); } });
官方文档的基础上 加一行即可
header: {'content-type': 'application/x-www-form-urlencoded'}