xxMainMobileBody.htm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>mainBody</title>
  5. <style type="text/css">
  6. li.xxLi{
  7. width:23%;
  8. line-height: 25px;
  9. float:left;
  10. font-size:95%;
  11. padding:3px 0px 5px 5px;
  12. }
  13. .xx{
  14. background:#F2F2F2;
  15. }
  16. .xx > div {
  17. width:100%;
  18. float:left;
  19. }
  20. .checkedTest{
  21. color: rgb(210,80,21);
  22. border-bottom: 3px solid rgb(210,80,21);
  23. }
  24. .secoundList{
  25. height: 26px;
  26. border-bottom: 1px solid #888888;
  27. }
  28. </style>
  29. <script>
  30. $(function() {
  31. var type = "$!type";
  32. loadXxMain(type);
  33. });
  34. /**
  35. * 加载智能舍页面
  36. */
  37. function loadXxMain(type) {
  38. var param = [
  39. { name: "mcid", value: $("#mcid").val()},
  40. { name: "type", value: type}
  41. ];
  42. //加载内容页
  43. $("a:[class='checkedTest']").removeClass("checkedTest");
  44. $("#" + type).addClass("checkedTest");
  45. huimvMobile.loadMobilePage("xxMainBody", type + "MobileBody.htm", param);
  46. }
  47. </script>
  48. </head>
  49. <body>
  50. <input type="hidden" value="$!mcid" id="mcid"/>
  51. <div class="xx">
  52. <div style="width:100%">
  53. <ul class="secoundList">
  54. #if("$!xxtz_kz_xxtz" == "true")
  55. <li class="xxLi"><a href="#" onclick="javascript:loadXxMain('xxtz');" id="xxtz">消息通知</a></li>
  56. #end
  57. #if("$!xxtz_kz_xtgg" == "true")
  58. <li class="xxLi"><a href="#" onclick="javascript:loadXxMain('xtgg');" id="xtgg">系统公告</a></li>
  59. #end
  60. </ul>
  61. </div>
  62. <div id="xxMainBody" style="width:100%"></div>
  63. </div>
  64. </body>
  65. </html>