index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <style type="text/css">
  2. .icon-center{
  3. display: block;
  4. font-size:20px;
  5. text-align: center;
  6. }
  7. .weui-header .weui-header-left, .weui-header .weui-header-right {
  8. position: absolute;
  9. top: 14px;
  10. display: block;
  11. font-size: 12px;
  12. line-height: 21px;
  13. color: #FFF;
  14. }
  15. .weui_tab_bd{
  16. /*-webkit-overflow-scrolling: touch;*/
  17. }
  18. .weui-navigator-list2{
  19. background-color: #ffffff;
  20. border: 1px solid #6eb7ff;
  21. border-radius: 1vw;
  22. }
  23. .weui-navigator-list2 li{
  24. width: 45vw;
  25. background-color: #ffffff;
  26. border-radius: 1vw;
  27. }
  28. .weui-navigator-list2 li.weui-state-active1{
  29. background-color: #6eb7ff;
  30. color: #ffffff !important;
  31. }
  32. .weui-navigator-list2 li.weui-state-hover, .weui-navigator-list2 li.weui-state-active a:after {
  33. display: none;
  34. }
  35. .weui-navigator-list2 li.weui-state-hover, .weui-navigator-list2 li.weui-state-active a {
  36. color: #ffffff!important;
  37. }
  38. .wsss a{
  39. color: #ffffff !important;
  40. }
  41. </style>
  42. <link href="/static/mobile/weui/style/weui.css" rel="stylesheet">
  43. <link href="/static/mobile/weui/style/weui2.css?v=1" rel="stylesheet">
  44. <link href="/static/mobile/weui/style/weui3.css" rel="stylesheet">
  45. <div class="weui_tab tab-bottom">
  46. <div class="weui-header">
  47. <div class="bg-blue">
  48. <div class="weui-header-left"></div>
  49. <h1 class="weui-header-title"><a href="javascript:;">{$user.HospitalName}<span class="icon icon-74"></span></a></h1>
  50. <div class="weui-header-right">
  51. {if $special && $isSpecial}
  52. <a style="color:#fff;font-size: 12px;" href="{:url('tc')}">套餐点餐</a>
  53. {/if}
  54. </div>
  55. </div>
  56. <div id="tagnav1" class="weui-navigator weui-navigator-wrapper" style="margin-top: 10px;margin-bottom: 10px;">
  57. <ul class="weui-navigator-list weui-navigator-list2">
  58. <li class="{$is_spot==1?'weui-state-active1 wsss':''}">
  59. <a href="{:url('indexchange')}?spot=1">今日</a>
  60. </li>
  61. {if !$bDinder}
  62. <li class="{$is_spot==2?'weui-state-active1 wsss':''}">
  63. <a href="{:url('indexchange')}?spot=2">明日</a>
  64. </li>
  65. {/if}
  66. </ul>
  67. </div>
  68. <div id="tagnav" class="weui-navigator weui-navigator-wrapper">
  69. <ul class="weui-navigator-list">
  70. {foreach $typeList as $k=>$value}
  71. <li class="{$dinner_type_id==$value['id']?'weui-state-active':''}">
  72. <a href="{:url('index')}?dinner_type_id={$value['id']}">{$value['name']}</a>
  73. </li>
  74. {/foreach}
  75. </ul>
  76. </div>
  77. </div>
  78. <div class="weui_tab_bd">
  79. {include file="../application/h5/view/wx_book_dinner/Dinner.html"}
  80. </div>
  81. <div class="weui_tabbar ">
  82. <a href="{:url('index')}" class="weui_tabbar_item weui_bar_item_on">
  83. <div class="weui_tabbar_icon">
  84. <span class="icon icon-29 icon-center"></span>
  85. </div>
  86. <p class="weui_tabbar_label">主页</p>
  87. </a>
  88. <a href="{:url('cart')}" class="weui_tabbar_item">
  89. <div class="weui_tabbar_icon">
  90. <span class="icon icon-24 icon-center"></span>
  91. </div>
  92. <p class="weui_tabbar_label">我的购物车
  93. {if $cartCount >0}
  94. <span class="weui-badge" id="badgecart" data-cart="{$cartCount}">{$cartCount}</span>
  95. {else}
  96. <span class="weui-badge" id="badgecart" data-cart="{$cartCount}" style="display:none;">{$cartCount}</span>
  97. {/if}
  98. </p>
  99. </a>
  100. <a href="{:url('order')}" class="weui_tabbar_item">
  101. <div class="weui_tabbar_icon">
  102. <span class="icon icon-99 icon-center"></span>
  103. </div>
  104. <p class="weui_tabbar_label">我的订单</p>
  105. </a>
  106. </div>
  107. </div>
  108. {include file="../application/h5/view/wx_book_dinner/header.html"}
  109. <script>
  110. $(function(){
  111. $('.weui_tab').tab({
  112. defaultIndex: 0,
  113. activeClass:'weui_bar_item_on',
  114. onToggle:function(index){
  115. }
  116. });
  117. });
  118. </script>