Commit 420c335e authored by sugar's avatar sugar

Merge branch 'dev' of http://rungit.jxdsy.cn:10000/sugar/land_army into dev

parents 26e725e2 3f469f57
......@@ -563,3 +563,52 @@ if (!function_exists('get_banner')) {
return $banner;
}
}
function sendCurl($url, $curlPost = '', $header = 0)
{
$ch = curl_init(); //初始化curl
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_URL, $url); //设置URL
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //设置为返回模式
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, 1); //获取头文件信息
} else {
curl_setopt($ch, CURLOPT_HEADER, 0); //不获取头文件信息
}
if (!empty($curlPost)) {
curl_setopt($ch, CURLOPT_POST, 1); //设置POST
curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); //POST参数
}
$output = curl_exec($ch);
$error = curl_error($ch);
curl_close($ch);
return $output;
}
function postCurl($url, $curlPost = '', $header = 0)
{
$ch = curl_init(); //初始化curl
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_URL, $url); //设置URL
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //设置为返回模式
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, 1); //获取头文件信息
} else {
curl_setopt($ch, CURLOPT_HEADER, 0); //不获取头文件信息
}
if (!empty($curlPost)) {
curl_setopt($ch, CURLOPT_POST, 1); //设置POST
curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); //POST参数
}
$output = curl_exec($ch);
$error = curl_error($ch);
curl_close($ch);
return $output;
}
......@@ -298,4 +298,5 @@ return [
//API接口地址
'api_url' => 'https://api.fastadmin.net',
],
'LJApi_ip'=>"http://testluma.com",
];
......@@ -31,11 +31,12 @@
<div class="homebanners" style="background-image: url('{$indexbanner.photo ?? ""}');">
<div class="container banner_search">
<div class="search_tags">
<img class="search_logo" src="/static/images/home/search_logo.png" alt="">
<h1>军队基层政治工作课程网站</h1>
<p class="describes">Military grass-roots political work course website</p>
<img class="search_logo" src="/static/images/home/search_logo1.png" alt="">
<!-- <h1>军队基层政治工作课程网站</h1> -->
<img class="websitenameimg" src="/static/images/home/websitename2.png" alt="">
<!-- <p class="describes">Military grass-roots political work course website</p> -->
<div class="searchinput">
<input class="seinputss" id="seinputss" type="text" name="keywords" placeholder="请输入关键字">
<input autocomplete="off" class="seinputss" id="seinputss" type="text" name="keywords" placeholder="请输入关键字">
<button class="submit_search" id="submit_search">搜索</button>
</div>
</div>
......
......@@ -249,7 +249,8 @@
</div>
<div class="jxyx_plate_seven">
<!-- 在线课堂 -->
<div class="jxyx_plate_seven" id="jxyx_plate_seven">
<div class="container">
<div class="jxyx_tit">
<img class="jxyx_titing" src="/static/images/jxyxindex/UshSbnDU1O765d5B.png" alt="">
......
......@@ -25,10 +25,10 @@
{include file="common/headnavs" /}
<div class="container">
<ol class="breadcrumb">
<ol class="breadcrumb" id="breadcrumb">
<li><a href="{:url('index/index')}">首页</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li classid="{$vo.id}">{$vo.title}</li>
<li classid="{$vo.id}"><a href="javascript:;">{$vo.title}</a></li>
{/foreach}
<li class="active">正文</li>
</ol>
......
......@@ -60,10 +60,10 @@
</div>
</div>
<ol class="breadcrumb">
<ol class="breadcrumb" id="breadcrumb">
<li><a href="{:url('index/index')}">首页</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li>{$vo.title}</li>
<li classid="{$vo.id}"><a href="javascript:;">{$vo.title}</a></li>
{/foreach}
</ol>
<ul class="newscateslist" id="newscateslist">
......
......@@ -51,7 +51,7 @@
<div class="news_head_names">全部动态</div>
</div>
<ol class="breadcrumb">
<ol class="breadcrumb" id="breadcrumb">
<li><a href="#">首页</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li><a href="#">{$vo}</a></li>
......
......@@ -30,12 +30,12 @@
<div class="newscatemain clearfix">
<div class="container">
<div class="newstitleones" style="margin-bottom:10px;">
<!-- <div class="newstitleones" style="margin-bottom:10px;">
<h3>教学公告</h3>
<p>TEACHING ANNOUNCEMENT</p>
</div>
</div> -->
<div class="newscate_views">
<div class="newscate_views" style="margin-top:32px;">
{foreach name="teachclass" item="vo"}
<div class="newscate_views_item">
<div class="newscate_views_tit">
......
......@@ -49,10 +49,10 @@
</div>
</div>
<div class="container">
<ol class="breadcrumb linesbreadcrumb">
<li><a href="#">首页</a></li>
<ol class="breadcrumb linesbreadcrumb" id="breadcrumb">
<li><a href="/">首页</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li classid="{$vo.id}"><a href="#">{$vo.title}</a></li>
<li classid="{$vo.id}"><a href="javascript:;">{$vo.title}</a></li>
{/foreach}
</ol>
</div>
......
......@@ -32,10 +32,10 @@
<div class="videoviewing_main">
<div class="container ">
<div>
<ol class="breadcrumb">
<li><a href="#">首页</a></li>
<ol class="breadcrumb" id="breadcrumb">
<li><a href="/">首页</a></li>
{foreach name="classTitle" item="vo" key="k"}
<li classid="{$vo.id}"><a href="#">{$vo.title}</a></li>
<li classid="{$vo.id}"><a href="javascript:;">{$vo.title}</a></li>
{/foreach}
</ol>
<div class="clearfix">
......
......@@ -31,10 +31,10 @@
<!-- 专业动态 -->
<div class="newscatesbanner">
<div class="container newscatesbannercon">
<div class="newsbanner_title clearfix">
<!-- <div class="newsbanner_title clearfix">
<h2>专业动态</h2>
<p>PROFESSIONAL NEWS</p>
</div>
</div> -->
<div id="cateindexs" class="carousel slide catebannerswiper clearfix" >
<ol class="carousel-indicators">
{foreach name="CourseArticles" item="vo" key="k"}
......
......@@ -233,6 +233,12 @@ a:focus, a:hover {
line-height: 1;
}
.homebanners .banner_search .search_tags .websitenameimg {
display: block;
margin: 0 auto;
margin-top: 28px;
}
.homebanners .banner_search .search_tags .describes {
line-height: 1;
margin-top: 9px;
......
......@@ -218,6 +218,11 @@ $navwidth:120px;
font-size: 54px;
line-height: 1;
}
.websitenameimg{
display: block;
margin: 0 auto;
margin-top: 28px;
}
.describes{
line-height: 1;
margin-top: 9px;
......
/***
* v w_code
*
*/
$(function(){
//返回顶部
if ($("meta[name=toTop]").attr("content") == "true") {
......@@ -135,7 +140,7 @@ $(function(){
for(var i = 0;i<navitemslist.length;i++){
var navitem = $(".head_navs").find(".navitems").eq(i);
var itemhref = navitem.find(".alink ").attr("href");
console.info(itemhref);
// console.info(itemhref);
if(itemhref.indexOf(pathname)!=-1){
// console.info('选中',i)
$(".ulnavlist .navitems").find('.alink').removeClass('active');
......@@ -187,6 +192,103 @@ $(function(){
$("#left_jtx1").hide();
}
}
//链接规则处理 都是小写 处理面包屑点击事件
// 转换成大写:toUpperCase()
// 转换成小写:toLowerCase()
var webSiteurlRule = [
{titlename:"首页",urlmate:"index/index/index"},
{titlename:"专业动态",urlmate:"index/dynamic/seconddynamic"},
{titlename:"教学公告",urlmate:"index/teachnotice/secondnotice"},
{titlename:"教学运行",urlmate:"index/teachrun/secondteachrun"},
{titlename:"课程资源",urlmate:"index/courseresource/index"},
{titlename:"教研成果",urlmate:"index/scientific/index"},
{titlename:"互动平台",urlmate:"index/interactive/index"},
{titlename:"战时政治工作",urlmate:"index/Wartimepolitical/index"},
{titlename:"文体俱乐部",urlmate:"index/Sportsclub/index"},
//教学运行
{titlename:"教学文件",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_one"},
{titlename:"基本教案",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_two"},
{titlename:"自编教材",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_three"},
{titlename:"教学案例",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_four"},
{titlename:"政工想定",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_five"},
{titlename:"在线课堂",urlmate:"index/teachrun/secondteachrun.html#jxyx_plate_seven"},
//课程资源
{titlename:"重要论述",urlmate:"index/courseresource/index.html#jxyx_plate_zylss50"},
{titlename:"经典文献",urlmate:"index/courseresource/index.html#jxyx_plate_zylss51"},
{titlename:"政工法规",urlmate:"index/courseresource/index.html#jxyx_plate_zylss52"},
{titlename:"调研报告",urlmate:"index/courseresource/index.html#jxyx_plate_zylss53"},
{titlename:"研究文章",urlmate:"index/courseresource/index.html#jxyx_plate_zylss54"},
{titlename:"影音资料",urlmate:"index/courseresource/index.html#jxyx_plate_zylss55"},
//教研成果
{titlename:"获奖成果",urlmate:"index/scientific/index.html#jycg_plate_one60"},
{titlename:"学术著作",urlmate:"index/scientific/index.html#jycg_plate_one61"},
{titlename:"学术文章",urlmate:"index/scientific/index.html#jycg_plate_one62"},
{titlename:"科研题目",urlmate:"index/scientific/index.html#jycg_plate_one63"},
//互动平台
{titlename:"课后作业",urlmate:"index/interactive/index.html#hdpt_plate_100"},
{titlename:"作业展评",urlmate:"index/interactive/index.html#hdpt_plate_101"},
//战时政治工作
{titlename:"历史经验",urlmate:"index/Wartimepolitical/index#tszt_plate_120"},
{titlename:"成果交流",urlmate:"index/Wartimepolitical/index#tszt_plate_121"},
{titlename:"热点追踪",urlmate:"index/Wartimepolitical/index#tszt_plate_122"},
{titlename:"实践探究",urlmate:"index/Wartimepolitical/index#tszt_plate_123"},
//文体俱乐部
{titlename:"板报展板",urlmate:"index/Sportsclub/index#wtjlb_plate_130"},
{titlename:"演讲主持",urlmate:"index/Sportsclub/index#wtjlb_plate_131"},
{titlename:"曲艺小品",urlmate:"index/Sportsclub/index#wtjlb_plate_132"},
{titlename:"美术设计",urlmate:"index/Sportsclub/index#wtjlb_plate_133"},
]
var CrumbsList = $("#breadcrumb").find("li");
for(var ks=0;ks<CrumbsList.length;ks++){
var CrumbsNavItem = CrumbsList[ks];
var ItemPageNavName = $(CrumbsNavItem).text();
// console.info(ItemPageNavName,"菜单栏的名字");
for(var aa=0;aa<webSiteurlRule.length;aa++){
var RuleItem = webSiteurlRule[aa];
if(ItemPageNavName==RuleItem.titlename){
$(CrumbsNavItem).find('a').attr("href","/index.php/"+RuleItem.urlmate);
}
}
var hrefUrl = $(CrumbsNavItem).find('a').attr("href");
hrefUrl = hrefUrl?hrefUrl:"";
if(hrefUrl.indexOf("javascript:;")!=-1){
//没能匹配成功
var classid = $(CrumbsNavItem).attr("classid");
classid = parseInt(classid);
if(classid>=20){//分类list
$(CrumbsNavItem).find('a').attr("href","/index.php/index/article/articleList?class_id="+classid);
}
}
}
//设置内页的顶部导航栏选中
if(CrumbsList.length!=0){
var navitemslist = $(".head_navs").find(".navitems");
for(var ks1=0;ks1<CrumbsList.length;ks1++){//循环面包屑
var CrumbsNavItem = CrumbsList[ks1];
var ItemPageNavName = $(CrumbsNavItem).text();
for(var jc=0;jc<navitemslist.length;jc++){//循环菜单栏
var navitemss = navitemslist[jc];
var navitemssTit = $(navitemss).text();
if(jc!=0 && navitemssTit==ItemPageNavName){
$(".ulnavlist .navitems").find('.alink').removeClass('active');
$(".head_navs").find(".navitems").eq(jc).find('.alink').addClass('active');
break;
}
}
}
}
})
// 浏览器下载
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment