formSubmit: function(e) {
var that = this;
var userNum = e.detail.value;
wx.request({
url: 'http://test.com',
data: userNum,
header: {
'Content-Type': 'application/json'
},
success: function(res) {
console.log(res.data.userNum)
}
})
var that = this;
var userNum = e.detail.value;
wx.request({
url: 'http://test.com',
data: userNum,
header: {
'Content-Type': 'application/json'
},
success: function(res) {
console.log(res.data.userNum)
}
})
},
data: {
userNum: userNum,
}
<
view
class=
"tell">
<
input
class=
"num"
type=
"number"
placeholder=
"请输入您的电话免费回电"
value=
'{{userNum}}'
bindblur=
'userNumInput'
/
>
<
view
><
button
class=
"mfhb"
bindtap=
'bindInput'>免费回拨
</
button
></
view
>
</
view
>