|
...
|
...
|
@@ -18,9 +18,16 @@ Component({ |
|
|
|
|
|
|
|
},
|
|
|
|
attached(){
|
|
|
|
this.setData({
|
|
|
|
enclosure:JSON.parse(this.data.post.enclosure||null)
|
|
|
|
})
|
|
|
|
// this.setData({
|
|
|
|
// enclosure:JSON.parse(this.data.post.enclosure||null)
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
observers: {
|
|
|
|
'post': function(post) {
|
|
|
|
this.setData({
|
|
|
|
enclosure:JSON.parse(post.enclosure||null)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 组件的方法列表
|
...
|
...
|
|