在无数据的时候提示一下
This commit is contained in:
parent
17e9a8658e
commit
23067c9d9e
@ -59,11 +59,11 @@ function getData(page) {
|
||||
page: page,
|
||||
pagesize: 10
|
||||
}, function(data) {
|
||||
//console.log(data);
|
||||
var data = toJson(data);
|
||||
var html = ''
|
||||
if ('' == data.data.Rows) {
|
||||
mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
|
||||
$('.con').append("<div style='text-align: center;margin-top: 50px;'>无数据</div>");
|
||||
return;
|
||||
}
|
||||
$.each(data.data.Rows, function() {
|
||||
@ -123,7 +123,6 @@ function getData(page) {
|
||||
|
||||
html += '</div></div>'
|
||||
})
|
||||
|
||||
$('.con').append(html);
|
||||
isLoad = false;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user