select-hospital.js 397 B

1234567891011121314151617181920212223
  1. var hospitalId = GetRequest1("hospitalId"),
  2. hosName = GetRequest1("hosName");
  3. new Vue({
  4. el: "#main",
  5. data: {
  6. info: ""
  7. },
  8. mounted: function() {
  9. this.info = JSON.stringify({
  10. hospitalId: hospitalId,
  11. hosName: hosName
  12. });
  13. this.bindEvents();
  14. },
  15. methods: {
  16. bindEvents: function() {
  17. EventBus.$emit("jump-step", {
  18. step: 2
  19. }); //step: 跳转的步数
  20. }
  21. }
  22. })