Commit 2569a7e4 authored by 于广洋's avatar 于广洋

修改接口的后台返回赋值

parent 776f8f9f
......@@ -115,8 +115,8 @@
hideLoading();
var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) {
companyInfo.bean.gzTaxInfos.push(
if (companyInfo.returnCode == "00") {
/*companyInfo.content.gzTaxInfos.push(
{
"sbxxId":"20200612181124bda9492c2fe34faeb3f4f686260363eb",
"ssdabh":"91120225MA05KP981U",
......@@ -181,12 +181,12 @@
"nssbqq2":null,
"nssbqz2":null
}
);
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean);
);*/
companyInfo.content.config = config
initpage = initPage(companyInfo.content);
} else {
hideLoading();
alertWarning("请求失败!");
alertWarning(companyInfo.returnMessage);
// 弹出错误对话框
}
},
......
......@@ -107,7 +107,7 @@
});
} else {
hideLoading();
alertWarning("请求失败!");
alertWarning(companyInfo.returnMessage);
// 弹出错误对话框
}
},
......
......@@ -142,9 +142,9 @@
var companyInfo = data;
companyInfo.config = config
$("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) {
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean);
if (companyInfo.returnCode == "00") {
companyInfo.content.config = config
initpage = initPage(companyInfo.content);
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
......@@ -155,7 +155,7 @@
});
});
} else {
alertWarning("请求失败!");
alertWarning(companyInfo.returnMessage);
// 弹出错误对话框
}
},
......
......@@ -137,9 +137,9 @@
// $("#token").attr("value","");
var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) {
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean);
if (companyInfo.returnCode == "00") {
companyInfo.content.config = config
initpage = initPage(companyInfo.content);
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
......@@ -151,7 +151,7 @@
});
} else {
hideLoading();
alertWarning("请求失败!");
alertWarning(companyInfo.returnMessage);
// 弹出错误对话框
}
},
......
......@@ -15,6 +15,6 @@ function getUrlParam (name) {
var config = {
webUrl:"http://sbjs.tjsat.gov.cn:8088/web/onlineReport/jsp/",
// webUrl:"http://localhost/web/onlineReport/jsp/"
url:"http://192.168.105.153:8091",// 全局的url,现在貌似没什么用了。不过先留着
url:"",// 全局的url,现在貌似没什么用了。不过先留着
}
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