<block wx:for='{{post_key}}' wx:key="key" wx:for-item='item'>
<view catchtap='onPostTap' data-postid="{{item.postId}}">
<template is='postItem' data='{{...item}}' />
</view>
</block>
-
let postId=event.currentTarget.dataset.postid;
-
console.log(postId);
