Page({ formSubmit: function (e) { wx.request({ url: 'http://localhost:9527/zxlogin/login', data: { 'userid': e.detail.value.userid, 'userpassword': e.detail.value.userpassword, }, header: { "Content-Type": "application/x-www-form-urlencoded" }, methods: { method: "POST", } }) } })