this.$ajax({
method: 'post',
headers:{
'Content-Type': 'application/x-www-form-urlencoded'
},
transformRequest: [function (data) {
data = Qs.stringify(data);
return data;
}],
url: '-----------',
data: {
name: this.nameText,
industry: '来自mobile端的试用申请',
email: this.mailText,
tel: this.phoneText,
companyName: this.companyText
}
}).then(res => { }).catch(err => { })
发送时格式如下,没有{}包裹