content-tabs.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. Vue.component('content-tabs', {
  2. template: '<div class="row content-tabs">\
  3. <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>\
  4. </button>\
  5. <nav class="page-tabs J_menuTabs">\
  6. <div class="page-tabs-content">\
  7. <a href="javascript:;" class="active J_menuTab" data-id="index_v1.html">首页\
  8. <i class="fa fa-times"></i></a>\
  9. </div>\
  10. </nav>\
  11. <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>\
  12. </button>\
  13. <div class="btn-group roll-nav roll-right">\
  14. <div class="search-box">\
  15. <img src="../../img/sousuo_icon.png">\
  16. <input type="search" class="search-input" placeholder="居民身份证号或医保卡号">\
  17. </div>\
  18. <button class="btn-blue">搜索患者</button>\
  19. <button class="btn-green">读卡</button>\
  20. </div>\
  21. </div>',
  22. props: [],
  23. data: function() {
  24. return {
  25. }
  26. },
  27. methods: {
  28. logout: function() {
  29. window.localStorage.removeItem(httpRequest.agentName);
  30. location.replace("../login/login.html")
  31. }
  32. }
  33. })