appointment-detail.js 881 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. var Request = new Object();
  2. Request = GetRequest();
  3. var code = Request.code,
  4. param = JSON.parse(decodeURIComponent(Request.param)),
  5. kwObj = JSON.parse(decodeURIComponent(Request.kwObj))
  6. function closeLayer() {
  7. var index = top.layer.getFrameIndex(window.name);
  8. top.layer.close(index);
  9. }
  10. new Vue({
  11. el: '#app',
  12. data: function() {
  13. return {
  14. appointinfo: null
  15. }
  16. },
  17. mounted: function() {
  18. var loadingid = top.layer.load(1, {
  19. shade: [0.1,'#fff'] //0.1透明度的白色背景
  20. }),
  21. vm = this
  22. APIService.getPatientReservation({
  23. code: code
  24. }).then(function(res) {
  25. top.layer.close(loadingid)
  26. if(res.status == 200) {
  27. vm.appointinfo = res.data
  28. } else {
  29. top.showErrorMessage(res.msg || "预约挂号详情获取失败!")
  30. }
  31. }).catch(function(e) {
  32. top.layer.close(loadingid)
  33. console && console.error(e)
  34. })
  35. },
  36. methods: {
  37. }
  38. })