<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 } 調用後臺接口 } }