Commit b418aa93 by 陈超

T

parent 3d6e1ea4
......@@ -319,17 +319,18 @@
el: "#app",
data: function() {
return {
data: {},
info: {},
bought: false,
isCollect: false
}
},
created:function(){
this.data = {:json_encode($data)};
this.info = {:json_encode($data)};
console.log(this.info)
},
computed: {
isCollect: function() {
return this.data.iscollect == 1
return this.info.iscollect == 1
},
shareIcon: function() {
return this.isCollect ? "__THEME__/img/share_star.png" : "__THEME__/img/share_unstar.png"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment