单击事件
js
xxxx: function (event) {
var postId = event.currentTarget.dataset.postid;
},
.wxml
catchtap='bh' data-postId="{{xxx}}"
区域显示
<block wx:if="{{qx=='主席' }}">
xxxxxx
</block>
循环
<block wx:for="{{datalist}}" wx:for-item="item" wx:for-index="idx">
<view class="weui-cell weui-cell_access" catchtap='show' data-postId="{{item.id}}"> </view>
</block>
e.detail.formId 推送
}
bindsubmit: function (e) {
var formData = e.detail.value;
formData.aa
},