|
|
|
|
@ -149,11 +149,11 @@ const request = options => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// 当前页面请求数量+1
|
|
|
|
|
if (options.bindThis) {
|
|
|
|
|
options.bindThis.setData({
|
|
|
|
|
//loadingCount: options.bindThis.data.loadingCount + 1
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// if (options.bindThis) {
|
|
|
|
|
// options.bindThis.setData({
|
|
|
|
|
// //loadingCount: options.bindThis.data.loadingCount + 1
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options.url = HOST + options.api;
|
|
|
|
|
@ -216,11 +216,11 @@ const request = options => {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
// 当前页面请求数量-1
|
|
|
|
|
if (options.bindThis) {
|
|
|
|
|
options.bindThis.setData({
|
|
|
|
|
loadingCount: options.bindThis.data.loadingCount - 1
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// if (options.bindThis) {
|
|
|
|
|
// options.bindThis.setData({
|
|
|
|
|
// loadingCount: options.bindThis.data.loadingCount - 1
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|