left.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <{*<div class="sidebar jsc-sidebar" id="jsi-nav" data-sidebar-options="">
  2. <{if $smarty.const.IS_LOGIN}>
  3. <div class="user_info"><img src="<{$smarty.const.AVATAR}>"></div>
  4. <div class="m_u_name center"><{$smarty.const.NICKNAME}></div>
  5. <ul class="sidebar-list">
  6. <li><a href="<{$web_cfg.domain}>/?c=index" <{if $action=='index'}>class="current"<{/if}>><span class="m_tq_icon"></span><b>特权活动</b></a></li>
  7. <!-- <li><a href="#"><span class="m_jf_icon"></span><b>积分退换</b></a></li> -->
  8. <!-- <li><a href="#"><span class="m_mjf_icon"></span><b>我的积分</b></a></li> -->
  9. <li><a href="<{$giftsUrl}>" <{if $action=='gift'}>class="current"<{/if}>><span class="m_gf_icon"></span><b>我的奖品</b></a></li>
  10. <!-- <li><a href="#"><span class="m_ts_icon"></span><b>每周任务</b></a></li> -->
  11. <{if $smarty.const.FROMSOURCE_APP!='true'}>
  12. <li><a href="<{$web_cfg.domain}>/member/mobileBind" <{if $action=='member'}>class="current"<{/if}>><span class="m_set_icon"></span><b>资料设置</b></a></li>
  13. <{/if}>
  14. </ul>
  15. <{else}>
  16. <ul class="sidebar-list" style="margin: 20px;">
  17. <li><a href="<{$web_cfg.domain}>/connect/" class="current">微信登录</a></li>
  18. </ul>
  19. <ul class="sidebar-list">
  20. <li><a href="<{$web_cfg.domain}>/?c=index"><span class="m_tq_icon"></span><b>特权活动</b></a></li>
  21. <li><a href="<{$giftsUrl}>"><span class="m_gf_icon"></span><b>我的奖品</b></a></li>
  22. <{if $smarty.const.FROMSOURCE_APP!='true'}>
  23. <li><a href="<{$web_cfg.domain}>/connect/"><span class="m_set_icon"></span><b>资料设置</b></a></li>
  24. <{/if}>
  25. </ul>
  26. <{/if}>
  27. </div>
  28. <script>
  29. $(document).ready(function(){
  30. //----------------公用菜单侧面推出&按钮点击loading begin--------------//
  31. /*
  32. $('#jsi-nav').sidebar({
  33. trigger: '#munu_icon',
  34. pullCb: function () {
  35. $(".v_follow_tips").fadeIn();//关闭侧栏菜单显示关注提示
  36. },
  37. pushCb: function () {
  38. $(".v_follow_tips").fadeOut();//展开侧栏菜单隐藏关注提示
  39. }
  40. });
  41. //loading效果重新加载页面后只执行一次
  42. $("#munu_icon").one("click",function(){
  43. loading();
  44. });
  45. */
  46. function loading(){
  47. $("#munu_icon span").fadeOut().delay(400).fadeIn();
  48. $("#munu_icon #loading").fadeIn().delay(25).fadeOut();
  49. }
  50. //--------------公用菜单侧面推出&按钮点击loading end-------------//
  51. // 返回上一页
  52. $('.menu_back').one("click",function(){
  53. loading();
  54. history.go(-1);
  55. });
  56. //--------------通用表单焦点样式-------------//
  57. //input
  58. $("input[type=text]").focus(function(){
  59. $(this).parent().find("span").hide();
  60. $(this).css("color","#000");
  61. });
  62. $("input[type=text]").blur(function(){
  63. if($(this).val() == ''){
  64. $(this).parent().find("span").show();
  65. }
  66. });
  67. //textarea
  68. $("textarea").focus(function(){
  69. $(this).parent().find("span").hide();
  70. $(this).css("color","#000");
  71. });
  72. $("textarea").blur(function(){
  73. if($(this).val() == ''){
  74. $(this).parent().find("span").show();
  75. }
  76. });
  77. //--------------通用提示层显示3秒消失-------------/
  78. function tips_com(){
  79. $(".a_cover").fadeIn().delay(3000).fadeOut();
  80. $(".v_tips_box").fadeIn().delay(3000).fadeOut();//该提示样式可设置更换
  81. }
  82. });
  83. </script>
  84. *}>