Browse Source

fix(coach): 修复列表页暂无更多数据的判断逻辑- 修改了多个页面中的数据加载判断条件

- 优化了暂无更多数据的判断逻辑,提高了代码的准确性和可靠性
-统一了判断条件的写法,提高了代码的可读性和可维护性
master
liutong 10 months ago
parent
commit
b62967248e
  1. 2
      pages/coach/class/info.vue
  2. 2
      pages/coach/class/list.vue
  3. 2
      pages/coach/course/list.vue
  4. 2
      pages/coach/job/list.vue
  5. 2
      pages/coach/my/arrival_statistics.vue
  6. 2
      pages/coach/my/my_attendance.vue
  7. 2
      pages/coach/student/info.vue
  8. 2
      pages/common/my_attendance.vue
  9. 2
      pages/common/sys_msg_list.vue
  10. 2
      pages/market/clue/edit_clues_log.vue
  11. 2
      pages/market/my/signed_client_list.vue
  12. 2
      pages/student/index/job_list.vue
  13. 2
      pages/student/index/physical_examination.vue
  14. 2
      pages/student/my/lesson_consumption.vue
  15. 2
      pages/student/timetable/index.vue

2
pages/coach/class/info.vue

@ -276,7 +276,7 @@ export default {
} }
// //
if (this.filteredData.page * this.filteredData.limit > this.filteredData.total || this.filteredData.limit > this.filteredData.total) { if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/class/list.vue

@ -116,7 +116,7 @@ export default {
console.log(111,(this.filteredData.page * this.filteredData.limit) ,(this.filteredData.total)) console.log(111,(this.filteredData.page * this.filteredData.limit) ,(this.filteredData.total))
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/course/list.vue

@ -328,7 +328,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if (this.filteredData.page * this.filteredData.limit > this.filteredData.total || this.filteredData.limit > this.filteredData.total) { if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/job/list.vue

@ -96,7 +96,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/my/arrival_statistics.vue

@ -114,7 +114,7 @@ export default {
} }
// //
if (this.filteredData.page * this.filteredData.limit > this.filteredData.total || this.filteredData.limit > this.filteredData.total) { if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/my/my_attendance.vue

@ -355,7 +355,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/coach/student/info.vue

@ -239,7 +239,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/common/my_attendance.vue

@ -469,7 +469,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/common/sys_msg_list.vue

@ -98,7 +98,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/market/clue/edit_clues_log.vue

@ -227,7 +227,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/market/my/signed_client_list.vue

@ -113,7 +113,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/student/index/job_list.vue

@ -104,7 +104,7 @@ import memberApi from '@/api/member.js';
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/student/index/physical_examination.vue

@ -102,7 +102,7 @@ import memberApi from '@/api/member.js';
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/student/my/lesson_consumption.vue

@ -92,7 +92,7 @@ import memberApi from '@/api/member.js';
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if(this.filteredData.page * this.filteredData.limit > this.filteredData.total){ if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

2
pages/student/timetable/index.vue

@ -232,7 +232,7 @@ export default {
let data = {...this.filteredData} let data = {...this.filteredData}
// //
if (this.filteredData.page * this.filteredData.limit > this.filteredData.total || this.filteredData.limit > this.filteredData.total) { if ((this.filteredData.page - 1) * this.filteredData.limit >= this.filteredData.total) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
title: '暂无更多', title: '暂无更多',

Loading…
Cancel
Save