Commit 1076fa37 by 杨树贤

修改超时时间

parent 01373727
...@@ -49,7 +49,7 @@ class BrandSelectorPresenter ...@@ -49,7 +49,7 @@ class BrandSelectorPresenter
page: pageIndex page: pageIndex
}, },
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (res) { success: function (res) {
if (!res) return layer.msg('网络错误,请重试', {icon: 5}); if (!res) return layer.msg('网络错误,请重试', {icon: 5});
if (res.code === 0) { if (res.code === 0) {
......
...@@ -67,7 +67,7 @@ function ajax(url, data) { ...@@ -67,7 +67,7 @@ function ajax(url, data) {
data: data, data: data,
async: false, async: false,
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (resp) { success: function (resp) {
if (resp) { if (resp) {
result = resp; result = resp;
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
page: pageIndex page: pageIndex
}, },
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (res) { success: function (res) {
if (!res) return layer.msg('网络错误,请重试', {icon: 5}); if (!res) return layer.msg('网络错误,请重试', {icon: 5});
if (res.errcode === 0) { if (res.errcode === 0) {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
type: 'post', type: 'post',
async: true, async: true,
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (res) { success: function (res) {
if (res.err_code === 0) { if (res.err_code === 0) {
$.each(res.data, function (index, value) { $.each(res.data, function (index, value) {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
type: 'GET', type: 'GET',
async: true, async: true,
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (res) { success: function (res) {
console.log(supplier_name); console.log(supplier_name);
console.log(tax_number); console.log(tax_number);
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
type: 'GET', type: 'GET',
async: true, async: true,
dataType: 'json', dataType: 'json',
timeout: 10000, timeout: 20000,
success: function (res) { success: function (res) {
admin.btnLoading('#recheck_company_info', false); admin.btnLoading('#recheck_company_info', false);
if (res.err_code === 0) { if (res.err_code === 0) {
......
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 sign in to comment