head.htm 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <div class="ms-head">
  2. <div class="head-menu">
  3. <div class="head-men-left head-menu-flex-center">
  4. <a href="{ms:global.host/}/html/1/index.html">
  5. <img src="http://cdn.mingsoft.net/images/logo.png" />
  6. </a>
  7. <ul class="head-menu-list">
  8. <li class="head-menu-list-li">走进铭飞
  9. <ul class="head-menu-son-list">
  10. <li>
  11. <a target="_blank" href='{ms:global.url/}/53/index.html'>关于我们</a>
  12. </li>
  13. <li>
  14. <a target="_blank" href='{ms:global.url/}/59/index.html'>公司动态</a>
  15. </li>
  16. <li>
  17. <a target="_blank" href='http://mingsoft.net/html/1//5527/index.html#faz'>发展历程</a>
  18. </li>
  19. <li>
  20. <a target="_blank" href='http://mingsoft.net/html/1//5527/index.html#lianx'>加入我们</a>
  21. </li>
  22. <li>
  23. <a target="_blank" href='{ms:global.url/}/19/141/index.html'>联系我们</a>
  24. </li>
  25. </ul>
  26. </li>
  27. <li class="head-menu-list-li">
  28. <a href='{ms:global.url/}/149/index.html'>案例</a>
  29. </li>
  30. <li class="head-menu-list-li">
  31. <a target="_blank" href='http://mstore.mingsoft.net/mstoreShow.do'>插件&模板</a>
  32. <!-- <ul class="head-menu-son-list">
  33. <li><a href='http://mstore.mingsoft.net/mstoreShow.do'>模板</a></li>
  34. <li><a href='http://mstore.mingsoft.net/mstoreShow.do'>插件</a></li>
  35. </ul> -->
  36. </li>
  37. <li class="head-menu-list-li">
  38. <a target="_blank" href='{ms:global.url/}/19/142/index.html'>在线留言</a>
  39. </li>
  40. <li class="head-menu-list-li">技术支持
  41. <ul class="head-menu-son-list">
  42. <li>
  43. <a target="_blank" href='http://bbs.mingsoft.net/mbbs/main.do'>开源社区</a>
  44. </li>
  45. <li>
  46. <a target="_blank" href='https://gitee.com/mingSoft/MCMS'>源码下载</a>
  47. </li>
  48. <li>
  49. <a target="_blank" href='http://doc.ms.mingsoft.net/plugs-cms/'>使用手册</a>
  50. </li>
  51. </ul>
  52. </li>
  53. </ul>
  54. </div>
  55. <div class="head-men-right head-menu-flex-center">
  56. <div class="head-menu-flex-center head-menu-right-search">
  57. <form id="searchDataForm" action="{ms:global.host/}/cms/1/search.do" method="post">
  58. <input type="text" class='ms-search-input' name="basic_title" placeholder="请输入关键字">
  59. <!-- <i class="iconfont ms-search-click">&#xe85e;</i> -->
  60. <input type="submit" value="" class="ms-search-click">
  61. </form>
  62. </div>
  63. <div class="head-menu-right-content" id="ms-login-vue">
  64. <span v-show="!isLogin" style="display: none;">
  65. <span>
  66. <a href='{ms:global.host/}/mcms/login.do'>登录</a>
  67. </span>|<span><a href='{ms:global.host/}/mcms/register.do'>注册</a></span>
  68. </span>
  69. <div class="topbar-info J_userInfo loginSuccess hide-default" v-show="isLogin" style="display: none;">
  70. <a class="user-name" href="{ms:global.host/}/people/center.do">
  71. <img :src="'{ms:global.host/}'+ peopleInfo.puIcon" class="loginImg user_icon" onerror="this.src='http://cdn.mingsoft.net/global/images/msheader.png'">
  72. <b class="userName ms-userName" v-text="peopleInfo.puNickname"></b>
  73. </a>
  74. <a href="javascript:;" class="quitLogin" @click="quitLogin">退出</a>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <script>
  81. var headVue = new Vue({
  82. el: "#ms-login-vue",
  83. data: {
  84. isLogin: undefined, //登录状态
  85. peopleInfo: "", //个人信息
  86. },
  87. mounted: function() {
  88. //获取个人信息
  89. var target = this;
  90. $.ajax({
  91. type: "POST",
  92. url: "{ms:global.host/}/checkLoginStatus.do",
  93. success: function(msg) {
  94. target.isLogin = msg.result;
  95. if(msg.result) {
  96. $.ajax({
  97. type: "POST",
  98. url: "{ms:global.host/}/people/user/info.do",
  99. success: function(msg) {
  100. target.peopleInfo = msg;
  101. }
  102. })
  103. }
  104. }
  105. })
  106. },
  107. methods: {
  108. //退出登录
  109. quitLogin: function() {
  110. var target = this;
  111. $.ajax({
  112. type: "POST",
  113. url: "{ms:global.host/}/people/quit.do",
  114. success: function(msg) {
  115. if(msg.result) {
  116. $("body").append("<form id='msHeadForm' action=''></form>");
  117. $("#msHeadForm").attr("action", "{ms:global.host/}").submit();
  118. }
  119. }
  120. })
  121. },
  122. },
  123. })
  124. /* $(function(){
  125. var r=location.href;
  126. if(r.match("53")){
  127. $(".head-menu-list-li").removeClass("head-active");
  128. $(".head-menu-list-li").eq(0).addClass("head-active");
  129. }else if(r.match("141")){
  130. $(".head-menu-list-li").removeClass("head-active");
  131. $(".head-menu-list-li").eq(0).addClass("head-active");
  132. }else if(r.match("59")){
  133. $(".head-menu-list-li").removeClass("head-active");
  134. $(".head-menu-list-li").eq(0).addClass("head-active");
  135. }else if(r.match("155")){
  136. $(".head-menu-list-li").removeClass("head-active");
  137. $(".head-menu-list-li").eq(1).addClass("head-active");
  138. }else if(r.match("142")){
  139. $(".head-menu-list-li").removeClass("head-active");
  140. $(".head-menu-list-li").eq(3).addClass("head-active");
  141. }
  142. }) */
  143. </script>