top.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Vue.component('top',{
  2. template: '<div class="ui-grid ui-grid-middle bgc-0c93e4 pr20">\
  3. <div class="ui-col-1"> \
  4. <img src="../../img/logo_taitou.png"> \
  5. </div> \
  6. <div class="ui-col-0 mr10"> \
  7. <div class="dropdown"> \
  8. <a data-toggle="dropdown" class="dropdown-toggle" href="#">\
  9. <img src="../../img/d-default.png" width="40" class="c-images-cycle">\
  10. </a>\
  11. <ul class="dropdown-menu animated fadeInRight m-t-xs">\
  12. <li><a class="J_menuItem" href="">修改头像</a></li>\
  13. <li><a class="J_menuItem" href="">个人资料</a></li>\
  14. <li><a class="J_menuItem" href="">信箱</a></li>\
  15. </ul>\
  16. </div>\
  17. </div>\
  18. <div class="ui-col-0 mr20">\
  19. <div class="c-fff c-f16">张三</div>\
  20. <div class="c-fff c-f12 c-62baf4">健管师</div>\
  21. </div>\
  22. <div class="ui-col-0">\
  23. <a @click="logout">\
  24. <img src="../../img/tuichu_icon.png">\
  25. <span class="c-f12 c-fff">安全退出</span>\
  26. </a>\
  27. </div>\
  28. </div>',
  29. props: [],
  30. data: function() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. logout: function() {
  36. // window.localStorage.removeItem(httpRequest.agentName);
  37. // location.replace("../login/login.html")
  38. }
  39. }
  40. })