|
@@ -35,14 +35,14 @@ $(function(){
|
|
|
var pageNos = 1;
|
|
|
var thePageLengths=1;
|
|
|
var pageSizes = 4;
|
|
|
- var provinces=1;
|
|
|
+ var provinces;
|
|
|
function datt(provinces,pageNos){
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
|
- provinceId:provinces || 1,
|
|
|
+ provinceId:provinces,
|
|
|
hot: 1,
|
|
|
pageNo:pageNos || 1,
|
|
|
type:5,
|
|
@@ -111,7 +111,7 @@ $(function(){
|
|
|
dataType: "json",
|
|
|
url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
|
- provinceId:provinces || 1,
|
|
|
+ provinceId:provinces,
|
|
|
hot: 1,
|
|
|
pageNo:pageNos || 1,
|
|
|
type:5,
|
|
@@ -138,8 +138,11 @@ $(function(){
|
|
|
+"</p><a href='"+srctt+"'>MORE+</a>"
|
|
|
+"</div></li>"
|
|
|
}
|
|
|
- $('.policy ol').show();
|
|
|
+ $('.policy ol').show();
|
|
|
$('.policy ul').html(policy_li);
|
|
|
+ if(result.data.list.length===0){
|
|
|
+ $('.policy ul').html('<div class="imgbgs"></div>') ;
|
|
|
+ }
|
|
|
}.bind(this)
|
|
|
})
|
|
|
})
|
|
@@ -181,8 +184,7 @@ $(function(){
|
|
|
$('.more_city .inp').addClass('thon');
|
|
|
$('.place_city ul li').removeClass('thon');
|
|
|
$('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
|
|
|
- var p_val=$(this).attr('value');
|
|
|
- // if(p_val='')
|
|
|
+ var p_val=$(this).attr('value');
|
|
|
provinces=p_val ;
|
|
|
datt(provinces,1);
|
|
|
});
|