微信小程序消息推送,前端操作

<form bindsubmit="getFormId" report-submit="true">
    <button form-type="submit">
      立即预约
    </button>
  </form>
form_submit: function (e) {
    console.log(e)
    if (e.detail.formId === 'the formId is a mock one') {
      return
    } else {
      let data = { formId: e.detail.formId }
      调用后台接口
    }
  }

 

posted @ 2019-05-31 14:29  亦心晗  阅读(1891)  评论(0编辑  收藏  举报