form表单提交发送模板消息如何能不用用户主动点击就默认发送模板消息
form表单提交发送模板消息如何能不用用户主动点击就默认发送模板消息, 现在必须得用户手动点击 form表单: https://developers.weixin.qq.com/miniprogram/dev/component/form.html 模板消息 : https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/template-message.html [代码]<form bindsubmit="formSubmit" bindreset="formReset" [代码][代码]report-submit[代码][代码]=[代码][代码]"true"[代码][代码]>
<view class="btn-area">
<button form-type="submit">Submit</button>
</view></form>[代码][代码]Page({[代码][代码] formSubmit(e) { [代码] [代码] console.log(e.detail.formId)[代码] [代码] //这时才能从参数中获取 formId [代码] [代码] //能不能 ?不用用户主动点击就默认发送模板消息 ? [代码] [代码] }, [代码][代码]})[代码]