home.js 472 B

12345678910111213141516171819202122232425262728
  1. toastr.options = {
  2. "closeButton": true,
  3. "positionClass": "toast-top-center",
  4. "preventDuplicates": true
  5. }
  6. new Vue({
  7. el: '#app',
  8. data: {
  9. },
  10. mounted: function() {
  11. }
  12. });
  13. //【慢病患者情况】轮播事件回调处理函数
  14. function updateSliderCallback(sliderIndex) {
  15. var type = ""; //全部
  16. if(sliderIndex == 1) { //高血压
  17. type = "1";
  18. } else if(sliderIndex == 2) { //糖尿病
  19. type = "2";
  20. }
  21. EventBus.$emit('get-banding-info', {
  22. type: type
  23. });
  24. }