var postsData = require (".. /.. / data/posts-data.js");
Page ({
data: {
autoplay: true,
circular: true
},
onLoad: function (options) {
this.data.post_key = postsData.postList //,
//this.setData({post_key: postsData.postList})
}
})
<block wx:for="{{post_key}}">