wxml:
<form bindsubmit=’formSubmit’> <button type=’submit’ form-type=’submit’>登录</button> </form>
js:
formSubmit:function(e){ wx.redirectTo({ url: “/page/index/index”, }) }