Commit e1a02c0e authored by agping's avatar agping

iframe优化

parent c3355286
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="getCollection" />
<input type="hidden" class="page-load" id="getCollectionBargain" />
<style>
.detail-modal-header-tab>span{
margin-right: 10px;
......@@ -15,10 +15,10 @@
<span class="office-detail btn btn-default">办公楼</span>
</h4>
<div class="detail-modal-body-sec1">
<iframe src="/index/reportListCJShop" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeShop"></iframe>
</div>
<div class="detail-modal-body-sec2" style="display: none;">
<iframe src="/index/reportListCJOffice" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeOffice"></iframe>
</div>
</div>
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="getCollection" />
<input type="hidden" class="page-load" id="getCollectionAdjust" />
<style>
.detail-modal-header-tab>span{
margin-right: 10px;
......@@ -15,10 +15,10 @@
<span class="office-detail btn btn-default">办公楼</span>
</h4>
<div class="detail-modal-body-sec1">
<iframe src="/index/adjustmentShop" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeShop"></iframe>
</div>
<div class="detail-modal-body-sec2" style="display: none;">
<iframe src="/index/adjustmentOffice" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeOffice"></iframe>
</div>
</div>
......@@ -15,10 +15,10 @@
<span class="office-detail btn btn-default">办公楼</span>
</h4>
<div class="detail-modal-body-sec1">
<iframe src="/index/getCollectionShop" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeShop"></iframe>
</div>
<div class="detail-modal-body-sec2" style="display: none;">
<iframe src="/index/getCollectionOffice" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeOffice"></iframe>
</div>
</div>
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="getCollection" />
<input type="hidden" class="page-load" id="getCollectionRefund" />
<style>
.detail-modal-header-tab>span{
margin-right: 10px;
......@@ -15,10 +15,10 @@
<span class="office-detail btn btn-default">办公楼</span>
</h4>
<div class="detail-modal-body-sec1">
<iframe src="/index/refundListShop" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeShop"></iframe>
</div>
<div class="detail-modal-body-sec2" style="display: none;">
<iframe src="/index/refundListOffice" style="width: 100%;height: 1200px;border: 0;"></iframe>
<iframe src="" style="width: 100%;height: 1200px;border: 0;" class="iframeOffice"></iframe>
</div>
</div>
......@@ -8,7 +8,43 @@
<title>同联地产管理后台</title>
<link rel="stylesheet" href="/resource/css/login.css" type="text/css" />
</head>
<style>
a#btn_loginmodify {
background-color: #FF9419;
}
.main-modify-password{
position: fixed;
z-index: 6666;
width: 600px;
height: 450px;
box-sizing: border-box;
background-color: white;
top: 50%;
left: 50%;
margin-left: -300px;
margin-top: -225px;
padding: 60px 60px 0;
}
.img-cell6{
width: 100px;
float: left;
color: #333;
top: -2px;
}
.main-modify-password div.input-area>input{
float: left;
outline: none;
box-sizing: border-box;
border: 0;
padding: 0;
font-size: 15px;
width: 116px;
margin-left: 100px;
}
.main-modify-password .edit-area>div.input-area{
padding-top: 20px;
}
</style>
<body>
<header>
<div>
......@@ -34,6 +70,29 @@
</div>
</div>
</div>
<!--修改密码-->
<div class="main-modify-password" style="display: none;">
<div class="edit-area">
<p>修改密码</p>
<!--<p><span></span><span></span></p>-->
<div class="input-area">
<div class="img-cell6">原密码:</div>
<input type="password" placeholder="请输入原密码" id="passwdmodify" />
</div>
<div class="input-area">
<div class="img-cell6">新密码:</div>
<input type="password" placeholder="请输入新密码" id="new_passwdmodify" />
</div>
<div class="input-area">
<div class="img-cell6">密码确认:</div>
<input type="password" placeholder="再次输入密码" id="confirm_passwdmodify" />
</div>
<div class="btn-area">
<a href="javascript:;" id="btn_loginmodify">提交</a>
<!--<a href="javascript:;" id="btn_login_temp">正在登录...</a>-->
</div>
</div>
</div>
<footer>{$mac_address}
<p>Copyright 2006-2017 Tonglian Property Co., Ltd. 上海同联房地产经纪事务所 All rights</p>
<input type="hidden" id="mac_address" value='{$mac_address}' />
......
......@@ -5,6 +5,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
pageSize: 10,
/*每页显示多少条*/
id: '',
isOffice:1,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -14,20 +15,26 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var that = receiv;
var _doc = $(document);
//点击按钮 显示隐藏iframe
$('.iframeShop').attr('src', '/index/getCollectionShop');
// 商铺
$(document).on('click','.shop-detail',function(e){
$(".detail-modal-body-sec1").show();
$(".detail-modal-body-sec2").hide();
$(this).addClass('btn-info').removeClass('btn-default');
$(".office-detail").addClass('btn-default').removeClass('btn-info');
// $('.iframeShop').attr('src', '/index/getCollectionShop');
});
// 办公楼
$(document).on('click','.office-detail',function(e){
$(".detail-modal-body-sec1").hide();
$(".detail-modal-body-sec2").show();
$(this).addClass('btn-info').removeClass('btn-default');
$(".shop-detail").addClass('btn-default').removeClass('btn-info');
if(receiv.isOffice == 1){
$('.iframeOffice').attr('src', '/index/getCollectionOffice');
receiv.isOffice =2;
}
});
},
};
......
define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
receiv = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
isOffice:1,
init: function() {
//初始化dot
$(document.body).append(template);
receiv.event();
},
event: function() {
var that = receiv;
var _doc = $(document);
//点击按钮 显示隐藏iframe
$('.iframeShop').attr('src', '/index/adjustmentShop');
// 商铺
$(document).on('click','.shop-detail',function(e){
$(".detail-modal-body-sec1").show();
$(".detail-modal-body-sec2").hide();
$(this).addClass('btn-info').removeClass('btn-default');
$(".office-detail").addClass('btn-default').removeClass('btn-info');
// $('.iframeShop').attr('src', '/index/getCollectionShop');
});
// 办公楼
$(document).on('click','.office-detail',function(e){
$(".detail-modal-body-sec1").hide();
$(".detail-modal-body-sec2").show();
$(this).addClass('btn-info').removeClass('btn-default');
$(".shop-detail").addClass('btn-default').removeClass('btn-info');
if(receiv.isOffice == 1){
$('.iframeOffice').attr('src', '/index/adjustmentOffice');
receiv.isOffice =2;
}
});
},
};
return receiv;
});
\ No newline at end of file
define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
receiv = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
isOffice:1,
init: function() {
//初始化dot
$(document.body).append(template);
receiv.event();
},
event: function() {
var that = receiv;
var _doc = $(document);
//点击按钮 显示隐藏iframe
$('.iframeShop').attr('src', '/index/reportListCJShop');
// 商铺
$(document).on('click','.shop-detail',function(e){
$(".detail-modal-body-sec1").show();
$(".detail-modal-body-sec2").hide();
$(this).addClass('btn-info').removeClass('btn-default');
$(".office-detail").addClass('btn-default').removeClass('btn-info');
// $('.iframeShop').attr('src', '/index/getCollectionShop');
});
// 办公楼
$(document).on('click','.office-detail',function(e){
$(".detail-modal-body-sec1").hide();
$(".detail-modal-body-sec2").show();
$(this).addClass('btn-info').removeClass('btn-default');
$(".shop-detail").addClass('btn-default').removeClass('btn-info');
if(receiv.isOffice == 1){
$('.iframeOffice').attr('src', '/index/reportListCJOffice');
receiv.isOffice =2;
}
});
},
};
return receiv;
});
\ No newline at end of file
......@@ -1269,25 +1269,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
//收款记录 导出
exportExcel: function() {
// var commite_time_start = $('#comit_time_start').val();
// var commite_time_end = $('#comit_time_end').val();
// var into_time_start = $('#into_time_start').val();
// var into_time_end = $('#into_time_end').val();
// var changed_type = $('#changed_type').val();
// var changed_id = $('#changed_id').val();
// var back_id_money = $('#back_id_money').val();
// var shoped_id = $('#shoped_id').val();
// var shoped_addr = $('#shoped_addr').val();
// var commit_home = $('#commit_home').val();
// var commit_shop = $('#commit_shop').val();
// var comit_name = refund.agent_id_phone;
// var comit_phone = $('#comit_phone').val();
// var choose_type = $('.btn-group').find('.btn-info').html();
// var is_selt = $('#is_type').val();
// var get_id = $('#get_id').val();
// var status = refund.check_status;
// receiv.buildSearchParams();
var _url = '/index/getCollectionExcel?';
var _url = '/office/getCollectionExcel?';
window.open(_url + receiv.buildSearchParamsLiu);
},
......@@ -1416,7 +1398,7 @@ define(['doT', 'text!temp/office_receivables_template_tpl.html', 'css!style/home
params.pageSize = that.pageSize ;
$.ajax({
type: 'GET',
url: '/index/getCollection',
url: '/office/getCollection',
data: params,
timeout: 30000,
dataType: 'json',
......
define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
receiv = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
isOffice:1,
init: function() {
//初始化dot
$(document.body).append(template);
receiv.event();
},
event: function() {
var that = receiv;
var _doc = $(document);
//点击按钮 显示隐藏iframe
$('.iframeShop').attr('src', '/index/refundListShop');
// 商铺
$(document).on('click','.shop-detail',function(e){
$(".detail-modal-body-sec1").show();
$(".detail-modal-body-sec2").hide();
$(this).addClass('btn-info').removeClass('btn-default');
$(".office-detail").addClass('btn-default').removeClass('btn-info');
// $('.iframeShop').attr('src', '/index/getCollectionShop');
});
// 办公楼
$(document).on('click','.office-detail',function(e){
$(".detail-modal-body-sec1").hide();
$(".detail-modal-body-sec2").show();
$(this).addClass('btn-info').removeClass('btn-default');
$(".shop-detail").addClass('btn-default').removeClass('btn-info');
if(receiv.isOffice == 1){
$('.iframeOffice').attr('src', '/index/refundListOffice');
receiv.isOffice =2;
}
});
},
};
return receiv;
});
\ No newline at end of file
$(function() {
var agentID='';
//进入登录页 发现有父元素 跳转新的登录页
if(window !== window.parent){//没有菜单 给提醒
window.top.location.replace(location.origin);
......@@ -19,6 +20,33 @@ $(function() {
$(this).parent().removeClass('input-area-active');
});
//点击修改密码 提交
$(document).on('click', '#btn_loginmodify', function() {
$.ajax({
'type': 'POST',
'url': '/index/modifyAgentPassword',
data: {
"agent_id": agentID,
"old_password": $('#passwdmodify').val(),
"new_password": $('#new_passwdmodify').val(),
"confirm_password": $('#confirm_passwdmodify').val()
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
alert('修改成功,请重新登录!');
$('.main-modify-password').hide();//修改密码
$('#passwd').val('');//置空原密码
}else{
alert(data.msg)
}
}
});
});
//回车按键
$(document).keypress(function(event) {
var keynum = (event.keyCode ? event.keyCode : event.which);
......@@ -54,7 +82,6 @@ $(function() {
return false;
};
//登陆的时候 获取电脑端 浏览器的型号和版本信息
var NV = {};
var UA = navigator.userAgent.toLowerCase();
......@@ -148,8 +175,13 @@ $(function() {
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
if(data.data.is_need_modify_password){
agentID = data.data.id;
$('.main-modify-password').show();//修改密码
return;
}
localStorage.setItem('pcUserInfo', encodeURIComponent(JSON.stringify(data.data))); //存储PC后台登录用户所有信息
// location.href = '/admin.php/index/performanceRanking';
location.href = '/admin.php/index/mainIndex';
localStorage.removeItem('id_details_str');
} else {
......
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