Vue.component('guidance-list', { template: '', data: function() { return { guidanceList: "", curPage:1 } }, props:["guidanceData"], methods: { viewDetail: function(id) { top.layer.open({ type: 2, title: '指导详情', maxmin: true, area: ['1000px', '600px'], shadeClose: false, content: '../html/lay_gui_article_detail.html?id='+id }) } }, watch:{ guidanceData:function(val){ this.guidanceList=this.guidanceData; } }, mounted: function() { var divH = $("#tab-iframe",parent.document).height() - 75; $(".consultation-list").slimScroll({ height: divH,color: '#666'}); } })