<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<!--{if $a == "nav"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>模块入口</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savenav" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      前台模块入口开关
      <em class="text_tip_inline">（模块关闭之后，前台手机+PC的链接入口将隐藏）</em>
    </div>
    <div class="layui-card-body">
      <div class="oe_setnav">
        <div class="oe_ntable">
          <table class="layui-table set_nav">
            <thead>
              <tr>
                <th width="8%">标识</th>
                <th width="15%">模块名称</th>
                <th width="10%">开关</th>
                <th>简介</th>
              </tr>
            </thead>
            <tr>
              <td class="text_center"><span class="ico party<!--{if $config.nav_party == '1'}--> current<!--{/if}-->"><i class="iconfont icon-huodong1"></i></span></td>
              <td>活动模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_party" id="nav_party" value="<!--{$config.nav_party}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_party" lay-text="开启|关闭"<!--{if $config.nav_party == '1'}--> checked<!--{/if}--> />
              </td>
              <td>可发布活动报名，实现会员线上发起报名、线下签到等功能。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico dynamic<!--{if $config.nav_dynamic == '1'}--> current<!--{/if}-->"><i class="iconfont icon-dongtai2"></i></span></td>
              <td>动态模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_dynamic" id="nav_dynamic" value="<!--{$config.nav_dynamic}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_dynamic" lay-text="开启|关闭"<!--{if $config.nav_dynamic == '1'}--> checked<!--{/if}--> />
              </td>
              <td>用户可发表心情动态，同步更新上传相册、头像等，可参加网站的互动性。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico article<!--{if $config.nav_article == '1'}--> current<!--{/if}-->"><i class="iconfont icon-Information"></i></span></td>
              <td>文章模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_article" id="nav_article" value="<!--{$config.nav_article}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_article" lay-text="开启|关闭"<!--{if $config.nav_article == '1'}--> checked<!--{/if}--> />
              </td>
              <td>网站发布公告，情感及相关资讯类文章，提高网站的可读性。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico diary<!--{if $config.nav_diary == '1'}--> current<!--{/if}-->"><i class="iconfont icon-rizhi1"></i></span></td>
              <td>日记模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_diary" id="nav_diary" value="<!--{$config.nav_diary}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_diary" lay-text="开启|关闭"<!--{if $config.nav_diary == '1'}--> checked<!--{/if}--> />
              </td>
              <td>用户可以展示发布的日记、文章功能，并且可以开放评论，后台可以设置审核机制。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico story<!--{if $config.nav_story == '1'}--> current<!--{/if}-->"><i class="iconfont icon-hunqing"></i></span></td>
              <td>成功案例模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_story" id="nav_story" value="<!--{$config.nav_story}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_story" lay-text="开启|关闭"<!--{if $config.nav_story == '1'}--> checked<!--{/if}--> />
              </td>
              <td>展示及发布会员成功脱单的案例，也给会员脱单提高信心。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico safety<!--{if $config.nav_safety == '1'}--> current<!--{/if}-->"><i class="iconfont icon-anquan"></i></span></td>
              <td>防骗中心模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_safety" id="nav_safety" value="<!--{$config.nav_safety}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_safety" lay-text="开启|关闭"<!--{if $config.nav_safety == '1'}--> checked<!--{/if}--> />
              </td>
              <td>用户举报的入口，管理员审核后列入黑名单，并全网展示，并提高网站的诚信度。</td>
            </tr>
            <tr>
              <td class="text_center"><span class="ico feed<!--{if $config.nav_guestbook == '1'}--> current<!--{/if}-->"><i class="iconfont icon-liuyan"></i></span></td>
              <td>留言反馈模块</td>
              <td class="text_center">
                <input type="hidden" name="nav_guestbook" id="nav_guestbook" value="<!--{$config.nav_guestbook}-->" />
                <input type="checkbox" lay-skin="switch" lay-filter="nav_guestbook" lay-text="开启|关闭"<!--{if $config.nav_guestbook == '1'}--> checked<!--{/if}--> />
              </td>
              <td>该功能用户通过该渠道向网站反馈建议及心声，完善平台客户体验。</td>
            </tr>
          </table>
        </div>
        
      </div>
      
    </div>
  </div> 
  </form>
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script>
$(function(){
    layui.use('form', function(){
        $form = layui.form;
        
        //活动
        $form.on('switch(nav_party)', function(data){
            if (this.checked) {
                $("#nav_party").val("1");
            }
            else {
                $("#nav_party").val("0");
            }
        });
        
        //动态
        $form.on('switch(nav_dynamic)', function(data){
            if (this.checked) {
                $("#nav_dynamic").val("1");
            }
            else {
                $("#nav_dynamic").val("0");
            }
        });
        
        //文章
        $form.on('switch(nav_article)', function(data){
            if (this.checked) {
                $("#nav_article").val("1");
            }
            else {
                $("#nav_article").val("0");
            }
        });
        
        //日记
        $form.on('switch(nav_diary)', function(data){
            if (this.checked) {
                $("#nav_diary").val("1");
            }
            else {
                $("#nav_diary").val("0");
            }
        });
        
        //案例
        $form.on('switch(nav_story)', function(data){
            if (this.checked) {
                $("#nav_story").val("1");
            }
            else {
                $("#nav_story").val("0");
            }
        });
        
        //防骗
        $form.on('switch(nav_safety)', function(data){
            if (this.checked) {
                $("#nav_safety").val("1");
            }
            else {
                $("#nav_safety").val("0");
            }
        });
        
        //留言
        $form.on('switch(nav_guestbook)', function(data){
            if (this.checked) {
                $("#nav_guestbook").val("1");
            }
            else {
                $("#nav_guestbook").val("0");
            }
        });
        
    });
});
</script>
<!--{/if}-->
</body>
</html>