|
@@ -91,7 +91,7 @@ Page({
|
|
|
|
|
|
var that = this
|
|
var that = this
|
|
|
|
|
|
- if(res.data.rows.length==0){
|
|
|
|
|
|
+ if(res.rows.length==0){
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: '暂无更多数据',
|
|
title: '暂无更多数据',
|
|
icon:"none"
|
|
icon:"none"
|
|
@@ -104,8 +104,8 @@ Page({
|
|
}
|
|
}
|
|
if (this.data.isRefresh) {
|
|
if (this.data.isRefresh) {
|
|
this.setData({
|
|
this.setData({
|
|
- enterpriseList: res.data.rows,
|
|
|
|
- total: res.data.total
|
|
|
|
|
|
+ enterpriseList: res.rows,
|
|
|
|
+ total: res.total
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -124,7 +124,7 @@ Page({
|
|
|
|
|
|
} else {
|
|
} else {
|
|
this.setData({
|
|
this.setData({
|
|
- enterpriseList: this.data.enterpriseList.concat(res.data.rows)
|
|
|
|
|
|
+ enterpriseList: this.data.enterpriseList.concat(res.rows)
|
|
})
|
|
})
|
|
// 隐藏加载框
|
|
// 隐藏加载框
|
|
|
|
|