25519 “预售提醒”页面中“选择类型”数据拉取不及时,导致多数时候显示不出来:查询的时候增加loading弹窗
This commit is contained in:
parent
399d321ecb
commit
9c1e73bc1c
@ -167,13 +167,15 @@ var Remind = {
|
|||||||
Remind.checkType(Remind.trainsHis[key]);
|
Remind.checkType(Remind.trainsHis[key]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Public.showLoading('正在查询数据');
|
||||||
cn12306.queryTicket(data,function(json) {
|
cn12306.queryTicket(data,function(json) {
|
||||||
if (json["status"] == true && json["httpstatus"] == 200) {
|
if (json["status"] == true && json["httpstatus"] == 200) {
|
||||||
if (json['data'].length > 0) {
|
if (json['data'].length > 0) {
|
||||||
Remind.trainsHis[key] = json['data'];
|
Remind.trainsHis[key] = json['data'];
|
||||||
Remind.checkType(json['data']);
|
Remind.checkType(json['data']);
|
||||||
|
Public.hideLoading();
|
||||||
}else{
|
}else{
|
||||||
|
Public.hideLoading();
|
||||||
Public.alert('没有找到从<strong>'+$('#startStationName').val()+'</strong>到<strong>'+$('#endStationName').val()+'</strong>的列车');
|
Public.alert('没有找到从<strong>'+$('#startStationName').val()+'</strong>到<strong>'+$('#endStationName').val()+'</strong>的列车');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user