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.
235 lines
8.9 KiB
235 lines
8.9 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<script type="text/javascript" src="${ctx }/hbcyjc/resource/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="${ctx}/js/layer/layer.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_style2.css"/>
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_style.css"/>
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_zlmxg.css"/>
|
|
<%@ include file="/common/theme_css.jsp" %>
|
|
<title>弹窗框架</title>
|
|
</head>
|
|
|
|
|
|
|
|
<style>
|
|
.dgwd_menu li.dgwd_deg{ background-position:-448px -81px;}
|
|
.dgwd_menu li:hover.dgwd_deg, .dgwd_menu a.on li.dgwd_deg{ background-position:-448px -0px;}
|
|
</style>
|
|
|
|
<body>
|
|
<input type="hidden" id="scenicid" name="scenicid" value="${scenicid }"/>
|
|
<input type="hidden" id="cname" name="cname" value="${cname }"/>
|
|
<input type="hidden" id="areacode" name="areacode" value="13"/>
|
|
|
|
<input type="hidden" id="scenic_currnum" />
|
|
<input type="hidden" id="scenic_img" />
|
|
<input type="hidden" id="scenic_mp" />
|
|
<input type="hidden" id="scenic_kfsj" />
|
|
<input type="hidden" id="scenic_gfwz" />
|
|
<input type="hidden" id="scenic_zxdh" />
|
|
<input type="hidden" id="scenic_tsdh" />
|
|
<input type="hidden" id="scenic_zdczl" />
|
|
|
|
|
|
<input type="hidden" id="scenic_month_count"/>
|
|
<input type="hidden" id="scenic_year_count"/>
|
|
|
|
<div class="smwd_wp">
|
|
<div class="smwd_head">
|
|
<div class="dgwd_title">
|
|
<div class="dgwd_com_dj">
|
|
<p class="dgwd_com_name" id="scenicname"></p>
|
|
<span id="sceniclevel"></span>
|
|
</div>
|
|
<h4 id="scenicaddr"></h4>
|
|
<div class="dgwd_menu">
|
|
<ul>
|
|
<a href="javascript:changeSrc(1),cc('${ctx }/hbcyjc/kll/kll_scenic_home.jsp')" id="a_1" name="ccc" title="首页" class="on"><li class="dgwd_home">首页</li></a>
|
|
<a href="javascript:changeSrc(2),cc('${ctx }/zhspjkvideomanage/tozhspjklist.do?id=${scenicid }')" id="a_2" name="ccc" title="视频"><li class="dgwd_sp">视频</li></a>
|
|
<%-- <a href="javascript:changeSrc(3),cc('${ctx}/indexscenicgood/gotoScenicDetil.do?sceniccode=${scenicid }')" id="a_3" name="ccc" title="评价"><li class="dgwd_pj">评价</li></a> --%>
|
|
<a href="javascript:changeSrc(3),cc('${ctx}/indexscenic/gotoScenicDetil.do?sceniccode=${scenicid }')" id="a_3" name="ccc" title="评价"><li class="dgwd_pj">评价</li></a>
|
|
<a href="javascript:changeSrc(4),cc('${ctx }/hbcyjc/kll/kll_scenic_accuse.jsp')" id="a_4" name="ccc" title="投诉"><li class="dgwd_ts">投诉</li></a>
|
|
<a href="javascript:changeSrc(5),cc('${ctx }/lyscenicbasic/gotoDetilLyScenicBasicPage.do?lyScenicBasicId=${jqid }')" id="a_5" name="ccc" title="详情"><li class="dgwd_deg">详情</li></a>
|
|
<div class="clear"></div>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="smwd_iframe">
|
|
<iframe src="${ctx }/hbcyjc/kll/kll_scenic_home.jsp" id="Iframe" name="" width="100%" height="560px" frameborder="0" scrolling="auto"></iframe>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
//初始化数据
|
|
$(function(){
|
|
init();
|
|
});
|
|
function init(){
|
|
var scenicid = document.getElementById("scenicid").value;
|
|
getScenicInfo(scenicid);//景区实时客流量
|
|
}
|
|
function getScenicInfo(scenicid){
|
|
$.ajax({ //获得分页信息
|
|
type: 'get',
|
|
url: _CTX + '/api/v1/operator/scenic-flow/current?uuid=' + scenicid,
|
|
dataType: 'json',
|
|
success: function (json) {
|
|
if(json && json.data && json.data.list && json.data.list.length > 0){
|
|
document.getElementById("scenic_currnum").value = json.data.list[0].currentcount;
|
|
} else {
|
|
document.getElementById("scenic_currnum").value = 0;
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
type : 'POST',
|
|
url : _CTX + '/kllstat/selectScenicInfo.do?scenicid='+scenicid,
|
|
dataType : 'json',
|
|
success : function(json) {
|
|
var scenicinfo = json.scenicinfo;
|
|
|
|
var arrysskll = json.arrysskllr; //实时
|
|
var arryykll = json.arryykll; //月
|
|
var arrynkll = json.arrynkll; //年
|
|
if(scenicinfo.length > 0){
|
|
document.getElementById("scenicname").innerHTML = ""+scenicinfo[0].scenicChineseName;
|
|
|
|
var jqlavel = scenicinfo[0].grade;
|
|
if(jqlavel == "0"){
|
|
jqlavel = "未评级";
|
|
}else if(jqlavel == "1"){
|
|
jqlavel = "A";
|
|
}else if(jqlavel == "2"){
|
|
jqlavel = "AA";
|
|
}else if(jqlavel == "3"){
|
|
jqlavel = "AAA";
|
|
}else if(jqlavel == "4"){
|
|
jqlavel = "AAAA";
|
|
}else if(jqlavel == "5"){
|
|
jqlavel = "AAAAA";
|
|
}
|
|
|
|
document.getElementById("sceniclevel").innerHTML = ""+jqlavel;
|
|
|
|
if(scenicinfo[0].scenicEntryaddress == undefined || scenicinfo[0].scenicEntryaddress == null || scenicinfo[0].scenicEntryaddress == ""){
|
|
document.getElementById("scenicaddr").innerHTML = "地址:暂无";
|
|
}else{
|
|
document.getElementById("scenicaddr").innerHTML = "地址:"+scenicinfo[0].scenicEntryaddress;
|
|
}
|
|
|
|
|
|
|
|
var currentcount = "";
|
|
if(arrysskll.length > 0){
|
|
currentcount = arrysskll[0].currentcount;
|
|
if(currentcount == null || currentcount == "" || currentcount == 0){ //如果没有数据,则显示历史数据
|
|
currentcount = arrysskll[0].historycount;
|
|
if(currentcount == undefined){
|
|
currentcount ="0";
|
|
}
|
|
}
|
|
}else{
|
|
currentcount = "0";
|
|
}
|
|
|
|
var monthcount = ""; //月
|
|
if(arryykll.length > 0){
|
|
monthcount = arryykll[0].monthcount;
|
|
if(monthcount == undefined){
|
|
monthcount ="0";
|
|
}
|
|
}else{
|
|
monthcount = "0";
|
|
}
|
|
|
|
var yearcount = "0";
|
|
if(arrynkll.length > 0){
|
|
var newcount = arrynkll.length-1;
|
|
if(arrynkll.length > 1){
|
|
yearcount = arrynkll[newcount].yearcount;
|
|
}else if(arrynkll.length ==1){
|
|
yearcount = arrynkll[0].yearcount;
|
|
}else{
|
|
yearcount = "0";
|
|
}
|
|
}else{
|
|
yearcount = "0";
|
|
}
|
|
|
|
// document.getElementById("scenic_currnum").value =currentcount; //实时客流量
|
|
document.getElementById('scenic_month_count').value = monthcount; //月人流量
|
|
document.getElementById('scenic_year_count').value = yearcount; //年人流量
|
|
|
|
document.getElementById("scenic_img").value = scenicinfo[0].logoPath;
|
|
if(scenicinfo[0].officialWebSite == undefined || scenicinfo[0].officialWebSite == "" || scenicinfo[0].officialWebSite == null){
|
|
document.getElementById("scenic_gfwz").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_gfwz").value = scenicinfo[0].officialWebSite;
|
|
}
|
|
if(scenicinfo[0].consultingPhone == undefined || scenicinfo[0].consultingPhone == "" || scenicinfo[0].consultingPhone == null){
|
|
document.getElementById("scenic_zxdh").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_zxdh").value = scenicinfo[0].consultingPhone;
|
|
}
|
|
if(scenicinfo[0].complaintsPhone == undefined || scenicinfo[0].complaintsPhone == "" || scenicinfo[0].complaintsPhone == null){
|
|
document.getElementById("scenic_tsdh").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_tsdh").value = scenicinfo[0].complaintsPhone;
|
|
}
|
|
|
|
//日最大承载量
|
|
if(scenicinfo[0].rzdczl == undefined || scenicinfo[0].rzdczl == "" || scenicinfo[0].rzdczl == null){
|
|
document.getElementById("scenic_zdczl").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_zdczl").value = scenicinfo[0].rzdczl;
|
|
}
|
|
|
|
|
|
//开放时间
|
|
if(scenicinfo[0].openTime == undefined || scenicinfo[0].openTime == "" || scenicinfo[0].openTime == null || scenicinfo[0].openTime == "None"){
|
|
document.getElementById("scenic_kfsj").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_kfsj").value = scenicinfo[0].openTime;
|
|
}
|
|
|
|
//门票价格
|
|
if(scenicinfo[0].mpjg == undefined || scenicinfo[0].mpjg == "" || scenicinfo[0].mpjg == null){
|
|
document.getElementById("scenic_mp").value = "待定";
|
|
}else{
|
|
document.getElementById("scenic_mp").value = scenicinfo[0].mpjg;
|
|
}
|
|
|
|
|
|
// document.getElementById("scenic_kfsj").value = "待定";
|
|
// document.getElementById("scenic_mp").value = "待定";
|
|
|
|
|
|
document.getElementById('Iframe').contentWindow.init();
|
|
|
|
// document.getElementById('Iframe').contentWindow.onload = function(){
|
|
// document.getElementById('Iframe').contentWindow.init();
|
|
// }
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function changeSrc(id){
|
|
var isReceiveArr = document.getElementsByName("ccc");
|
|
for(var i=0;i<isReceiveArr.length;i++) {
|
|
$('#a_'+(i+1)).removeClass("on");
|
|
}
|
|
$('#a_'+id).addClass("on");
|
|
}
|
|
function cc(src){
|
|
var scenicid = document.getElementById("scenicid").value;
|
|
document.getElementById('Iframe').src = src;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|