< form bindsubmit = "formSubmit" > < image class = 'background' src = '../../images/index/zcbg@2x.png' mode = 'widthFix' > < view class = 'table_view' > < view class = 'item1' > < input style = 'font-size:15px;' placeholder = '请输入手机号' ></ input > </ view > < view class = 'colum' > < view class = 'item2' > < input style = 'font-size:15px;' placeholder = '请输入验证码' ></ input > </ view > < button class = 'num' bindtab = 'tTelph' > < image class = 'buttonNum' src = '../../images/index/hqyzm@2x.png' bindtab = 'tTelph' mode = "widthFix" ></ image > </ button > </ view > < view class = 'item4' > < input style = 'font-size:15px;' type = "password" placeholder = '请输入密码' ></ input > </ view > < view class = 'item5' > < picker-view indicator-style = "height: 50px;" style = ";font-size:15px;width: 180px; height: 45px;" value = "{{value}}" bindchange = "bindChange" > < picker-view-column > < view wx:for = "{{hangye_list}}" style = "line-height: 50px" >{{item.name}}</ view > </ picker-view-column > </ picker-view > </ view > < view class = 'item6' > < picker-view indicator-style = "height: 50px;" style = ";font-size:15px;width: 180px; height: 45px;" value = "{{value}}" bindchange = "bindChange" > < picker-view-column > < view wx:for = "{{zhiwei_list}}" style = "line-height: 50px" >{{item.name}}</ view > </ picker-view-column > </ picker-view > </ view > < view class = 'item7' bindtab = "submit" > <!-- <button class='item7' bindtab="submit" > --> <!-- <cover-image class='but_img_reg' src='../../images/index/zc@2x.png' ></cover-image> --> < image class = 'registerButton' src = '../../images/index/zc@2x.png' mode = "widthFix" catchtab = "sub" ></ image > <!-- </button> --> </ view > </ view > </ image > < button class = 'but' style = 'color:red' bindtab = "hello" > < image class = 'buttonNum' src = '../../images/index/hqyzm@2x.png' bindtab = 'tTelph' ></ image ></ button > </ form > |
你好,请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
有这个吗 bindchange
bindsubmit需要一个button是form-type为submit,这个bingsubmit才会触发,同时form上要有report-submit
先不讨论form的点击事件 button的点击事件是无效的
你是要做表单提交吗,麻烦自己去先看清楚文档
我是要点击图片触发 点击事件得到手机的验证码 表单提交我还没写呢
那你那里的事件点击无效
<
button
class
=
'num'
bindtab
=
'tTelph'
>
<
image
class
=
'buttonNum'
src
=
'../../images/index/hqyzm@2x.png'
bindtab
=
'tTelph'
mode
=
"widthFix"
></
image
>
</
button
>