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