微信小程序消息推送,前端操作
<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 } 调用后台接口 } }
亦心晗