taro,taro-ui中怎么收集from formId用于发送模板
-
看Vue.js是可以这样处理的
// app.js
Vue.mixin({
methods: {
uploadFormId (e) {
this.req({
url: '/api/v1/formid?formId=' + e.target.formId
})
}
}
})
-
@target 这个小助手也没有用过哦 ,你可以看看https://developers.weixin.qq.com/miniprogram/dev/component/form.html 它有个report-submit 属性 以及 相关文档 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/template-message.html