You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/account/help.html.erb

61 lines
3.0 KiB

<%= stylesheet_link_tag 'css/public','css/edu-index','css/edu-class'%>
<%= stylesheet_link_tag '/editormd/css/editormd' %>
<%= javascript_include_tag '/editormd/editormd' %>
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
<%= javascript_include_tag '/editormd/lib/marked.min.js','/editormd/lib/prettify.min.js','/editormd/lib/raphael.min.js','/editormd/lib/underscore.min.js','/editormd/lib/sequence-diagram.min.js',
'/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js' %>
<%= content_for(:header_tags) do %>
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
<% end %>
<div class="edu-index-show-con pt30 clearfix mb30" >
<div class="with20 fl">
<ul class="edu-class-leftnav " style="text-align: left">
<li class="<%= @index == 1 ? 'active':'' %>"><a href="<%= help_path(:index => 1) %>" class="ml15">关于我们</a></li>
<li class="<%= @index == 2 ? 'active':'' %>"><a href="<%= help_path(:index => 2) %>" class="ml15">联系我们</a></li>
<li class="<%= @index == 3 ? 'active':'' %>"><a href="<%= help_path(:index => 3) %>" class="ml15">合作伙伴</a></li>
<li class="<%= @index == 4 ? 'active':'' %>"><a href="<%= help_path(:index => 4) %>" class="ml15">服务协议</a></li>
<li class="<%= @index == 5 ? 'active':'' %>"><a href="<%= help_path(:index => 5) %>" class="ml15">帮助中心</a></li>
<li class="<%= @index == 6 ? 'active':'' %>"><a href="<%= User.current.logged? ? help_path(:index => 6) : signin_path %>" class="ml15">意见反馈</a></li>
</ul>
</div>
<div class="with80 fl" id = 'right' style="text-align: left">
</div>
<div id="hidden_div_block" class="undis">
<textarea style="display: none" id="hidden_textarea"></textarea>
</div>
</div>
<script>
$.ajax({
url:'<%= help_path() %>',
data: {index: '<%= @index %>'},
type: 'post',
dataType: 'script'
})
$(function(){
KindEditor.ready(function(K){
$("#hidden_div_block").each(function(){
var params = {};
params.kindutil = K;
params.div_form = $(this);
params.placeholder = "请填写具体内容,帮助我们了解您的建议与意见";
params.textarea = $("#hidden_textarea",params.div_form);
if(params.textarea.data('init') == undefined) {
params.editor = init_exercise_quetison_editor(params);
//new_quetion_editor = params.editor;
params.textarea.data('init', 1);
}
});
});
});
var title = ["关于我们","联系我们","合作伙伴","服务协议","帮助中心","意见反馈"]
$('.edu-class-leftnav li').on('click',function(){
$(this).siblings().removeClass('active')
var i = $(this).index()
$("title").html(title[i])
$(this).addClass('active');
$("a",this)[0].click();
})
</script>