toBeReserved-list.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Vue.component('reserved-list', {
  2. template: `<ul class="consultation-list">
  3. <li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in toBeReservedList">
  4. <p class="follow-up-doctor"><span class="start-time pull-right">开始时间:{{list.czrq}}</span>随访医生:{{list.doctorName}}</p>
  5. <div class="follow-user-info">
  6. <p>科室/医院:{{list.deptName}}/{{list.orgName}}</p>
  7. <p class="completion-time">预约时间:{{list.startTime}}</p>
  8. </div>
  9. </li>
  10. </ul>`,
  11. data: function() {
  12. return {
  13. toBeReservedList: "",
  14. curPage:1
  15. }
  16. },
  17. props:["reserveData"],
  18. methods: {
  19. viewDetail:function(){
  20. top.layer.open({
  21. type: 2,
  22. maxmin: true,
  23. area: ['1000px', '650px'],
  24. shadeClose: false,
  25. moveOut:true,
  26. btn:'返回',
  27. success: function(layero){
  28. layero.find('.layui-layer-btn').css({'text-align': 'center','border-top': '1px solid #ececec','padding-top': '7.5px'});
  29. layero.find('.layui-layer-btn').find('a').addClass("layui-btn").css({background: '#f96565',color: '#fff',width: '100px',border: 'none', height: '34px','line-height':'22px',padding: '6px 12px','font-size': '14px'});
  30. },
  31. content: '../html/lay_detail_reserved.html'
  32. });
  33. }
  34. },
  35. watch:{
  36. reserveData:function(){
  37. this.toBeReservedList = this.reserveData;
  38. }
  39. },
  40. mounted: function() {
  41. var divH = $("#tab-iframe",parent.document).height() - 75;
  42. $(".consultation-list").slimScroll({ height: divH,color: '#666'});
  43. }
  44. })