切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
zhangwei
6 years ago
提交
4fbdac3d82fd0d8b49dc61ce45716e576197ef3b
2 个父辈
183cb6da
bd9089de
Merge branch 'master' of
http://114.215.101.231:8099/jinglong/xingqiu
隐藏空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
11 行增加
和
10 行删除
app/portal/controller/LoginController.php
public/themes/simpleboot3/public/assets/js/public.js
public/themes/simpleboot3/public/footer.html
public/themes/simpleboot3_mobile/portal/star/get_more_ecology.html
public/themes/simpleboot3_mobile/public/assets/js/public.js
public/themes/simpleboot3_mobile/public/footer.html
app/portal/controller/LoginController.php
查看文件 @
4fbdac3
...
...
@@ -230,10 +230,9 @@ class LoginController extends HomeBaseController
->
join
(
'city_category c'
,
'p.city_id = c.id'
,
'LEFT'
)
->
join
(
'portal_category_post c_p'
,
'p.id = c_p.post_id'
,
'LEFT'
)
->
where
(
'p.post_title'
,
'like'
,
'%'
.
$keyword
.
'%'
)
->
where
(
'c_p.category_id'
,
'<>'
,
CityCategoryModel
::
xqyy
)
->
where
(
'c_p.category_id'
,
'<>'
,
CityCategoryModel
::
xyhl
)
->
where
(
'p.delete_time'
,
0
)
->
field
(
'p.id,p.post_title,p.post_excerpt,p.post_favorites,c.name city_name'
)
->
field
(
'p.id,p.post_title,p.post_excerpt,p.post_favorites,c.name city_name
,c.id city_id
'
)
->
order
(
'p.weigh desc'
)
->
paginate
(
$limit
,
false
,[
'query'
=>
request
()
->
param
()]);
$data
=
$res
->
toArray
();
...
...
@@ -253,7 +252,7 @@ class LoginController extends HomeBaseController
foreach
(
$category
as
$item
){
if
(
$value
[
'id'
]
==
$item
[
'post_id'
]){
$value
[
'category_name'
]
=
$item
[
'name'
];
$value
[
'post_url'
]
=
$this
->
getDetailUrl
(
$item
[
'id'
]);
$value
[
'post_url'
]
=
$this
->
getDetailUrl
(
$item
[
'id'
]
,
$value
[
'city_id'
]
);
}
}
}
...
...
@@ -263,7 +262,6 @@ class LoginController extends HomeBaseController
->
alias
(
'p'
)
->
join
(
'portal_category_post c_p'
,
'p.id = c_p.post_id'
,
'LEFT'
)
->
where
(
'p.post_title'
,
'like'
,
'%'
.
$keyword
.
'%'
)
->
where
(
'c_p.category_id'
,
'<>'
,
CityCategoryModel
::
xqyy
)
->
where
(
'c_p.category_id'
,
'<>'
,
CityCategoryModel
::
xyhl
)
->
where
(
'p.delete_time'
,
0
)
->
count
();
...
...
@@ -279,12 +277,15 @@ class LoginController extends HomeBaseController
}
//获取各个板块详情页位置
public
function
getDetailUrl
(
$c_id
){
public
function
getDetailUrl
(
$c_id
,
$city_id
){
$url
=
''
;
switch
(
$c_id
)
{
case
CityCategoryModel
::
xqgs
:
$url
=
'/portal/star/getStoryDetail'
;
break
;
case
CityCategoryModel
::
xqyy
:
$url
=
'/portal/region/getMoreVideo?city_id='
.
$city_id
;
break
;
case
CityCategoryModel
::
whmj
:
$url
=
'/portal/star/getSceneryDetail'
;
break
;
...
...
public/themes/simpleboot3/public/assets/js/public.js
查看文件 @
4fbdac3
...
...
@@ -129,7 +129,7 @@ $(function(){
});
});
//关于我们
$
(
'#about_us'
).
click
(
function
(){
$
(
'#about_us
,#about_us1
'
).
click
(
function
(){
window
.
location
.
href
=
'/portal/index/aboutUs'
;
});
//搜索
...
...
public/themes/simpleboot3/public/footer.html
查看文件 @
4fbdac3
...
...
@@ -9,7 +9,7 @@
<!-- 关于我们 -->
<div
class=
"about_top"
>
<!-- 标题 -->
<span
class=
"title"
>
<span
class=
"title"
id=
"about_us1"
style=
"cursor: pointer;"
>
<p
class=
"ch"
>
关于我们
</p>
<p
class=
"eg"
>
About Us
</p>
</span>
...
...
public/themes/simpleboot3_mobile/portal/star/get_more_ecology.html
查看文件 @
4fbdac3
...
...
@@ -28,7 +28,7 @@
<div
class=
"hp_dyCon"
>
<ul>
<volist
name=
"res['data']"
id=
"vo"
>
<a
href=
"/portal/star/get
Hotel
Detail?id={$vo.id}"
>
<a
href=
"/portal/star/get
Ecology
Detail?id={$vo.id}"
>
<li>
<div
class=
"hp_dyConImg"
>
<img
src=
"{:cmf_get_image_url($vo.thumbnail)}"
alt=
""
/>
...
...
public/themes/simpleboot3_mobile/public/assets/js/public.js
查看文件 @
4fbdac3
...
...
@@ -163,7 +163,7 @@ $(function() {
});
});
//关于我们
$
(
'#about_us'
).
click
(
function
()
{
$
(
'#about_us
,#about_us1
'
).
click
(
function
()
{
window
.
location
.
href
=
'/portal/index/aboutUs'
;
});
//搜索
...
...
public/themes/simpleboot3_mobile/public/footer.html
查看文件 @
4fbdac3
...
...
@@ -2,7 +2,7 @@
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/footer.css"
>
<div
class=
"bottom_nav"
>
<div
class=
"bottom_nav_title"
>
<div
class=
"bottom_nav_ch"
>
关于我们
</div>
<div
class=
"bottom_nav_ch"
id=
"about_us1"
>
关于我们
</div>
<div
class=
"bottom_nav_en"
>
About Us
</div>
</div>
<div
class=
"bottom_nav_contant"
>
...
...
请
注册
或
登录
后发表评论