Commit 5e74434a authored by 彭令令's avatar 彭令令

24450 支持未享受缓缴的企业办理退税:韩林要求按照局端样式做修改;且添加关闭按钮,点击参数传“0”

parent 55f96899
......@@ -105,7 +105,7 @@ function getIEVersion() {
_show: function(title, msg, btnOk, btnNo, value, type, callback) {
var _html = "";
_html += '<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">' + title + '</span>'
if (type == "confirm") {
if (type == "confirm"||type == "confirms") {
_html += '<img id="mb_img" src="../../static/tools/images/close.png">';
_html += '<div id="mb_msg">' + msg + '</div>';
}
......@@ -114,14 +114,18 @@ function getIEVersion() {
_html += '<input id="mb_btn_ok" type="button" value=' + btnOk + '>';
_html += '</div>';
}
if (type == "confirm" || type == "confirms") {
_html += '<div id="mb_msg">' + msg + '</div>';
if (type == "confirm") {
_html += '<input id="mb_btn_ok" type="button" value=' + btnOk + '>';
_html += '<input id="mb_btn_no" type="button" value=' + btnNo + '>';
//_html += '<input id="mb_btn_ok" type="button" value=' + btnOk + '>';
_html += '</div>';
}
if (type == "confirms") {
_html += '<input id="mb_btn_ok1" type="button" value=' + btnOk + '>';
_html += '<input id="mb_btn_no1" type="button" value=' + btnNo + '>';
//_html += '<input id="mb_btn_ok" type="button" value=' + btnOk + '>';
_html += '</div>';
}
//必须先将_html添加到body,再设置Css样式
$("body").append(_html);
GenerateCss(type);
......@@ -143,11 +147,11 @@ function getIEVersion() {
});
$("#mb_btn_no").click(function () {
$.alerts._hide();
if (callback) callback(false);
// if (callback) callback(false);
});
$("#mb_img").click(function () {
$.alerts._hide();
if (callback) callback(false);
// if (callback) callback(false);
});
$("#mb_btn_no").focus();
$("#mb_btn_ok, #mb_btn_no").keypress(function (e) {
......@@ -156,18 +160,22 @@ function getIEVersion() {
});
break;
case 'confirms':
$("#mb_btn_ok").click(function () {
$("#mb_btn_ok1").click(function () {
$.alerts._hide();
if (callback) callback(true);
});
$("#mb_btn_no").click(function () {
$("#mb_btn_no1").click(function () {
$.alerts._hide();
if (callback) callback(false);
});
$("#mb_btn_no").focus();
$("#mb_btn_ok, #mb_btn_no").keypress(function (e) {
if (e.keyCode == 13) $("#mb_btn_ok").trigger('click');
if (e.keyCode == 27) $("#mb_btn_no").trigger('click');
$("#mb_img").click(function () {
$.alerts._hide();
if (callback) callback("99");
});
$("#mb_btn_no1").focus();
$("#mb_btn_ok1, #mb_btn_no1").keypress(function (e) {
if (e.keyCode == 13) $("#mb_btn_ok1").trigger('click');
if (e.keyCode == 27) $("#mb_btn_no1").trigger('click');
});
break;
}
......@@ -321,7 +329,7 @@ function getIEVersion() {
bottom: '15px'
});
} else {
$("#mb_btn_ok,#mb_btn_no").css({
$("#mb_btn_ok,#mb_btn_no,#mb_btn_ok1,#mb_btn_no1").css({
width: '80px',
height: '30px',
color: 'white',
......@@ -335,6 +343,19 @@ function getIEVersion() {
right: '105px',
bottom: '10px',
});
$("#mb_btn_ok1").css({
backgroundColor: '#53ACF3',
marginRight: '6px',
right: '112px',
bottom: '10px',
width:'24%'
});
$("#mb_btn_no1").css({
backgroundColor: '#53ACF3',
marginRight: '6px',
right: '23px',
bottom: '10px',
});
}
$("#mb_btn_no").css({
border: '1px solid #CCCCCC',
......@@ -1447,13 +1468,15 @@ var JSTOOL = function() {
},
})
var czlxbz = ""
myConfirmNoclose("提示", "hhhhhhhhhhhhhh", "去退税", "不再提示", function (result) {
if (result) {
myConfirmNoclose("系统提示", "hhhhhhhhhhhhhh", "立即申请退税", "不再提醒", function (result) {
if (result==true) {
czlxbz = "1"
}else {
}else if (result==false){
czlxbz = "3"
}else {
czlxbz = "0"
}
if (successIf || czlxbz=="3") {
if (successIf || czlxbz=="3" || czlxbz=="0") {
$.ajax({
type: "post",
url: config.url + "/online/zxtb/saveHjtsCzlx",
......
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