Commit 2fa9322a authored by lvtz's avatar lvtz

fix 主题列表展示

parent 151e6ab9
...@@ -276,7 +276,7 @@ Page({ ...@@ -276,7 +276,7 @@ Page({
this.setData({ this.setData({
mixedthemeList: data.list || [] mixedthemeList: data.list || []
}, () => { }, () => {
if (this.data.mixedthemeTotal > this.data.mixedthemeList) { if (this.data.mixedthemeTotal > this.data.mixedthemeList.length) {
let page = this.data.page + 1; let page = this.data.page + 1;
this.setData({ this.setData({
page, page,
...@@ -292,7 +292,7 @@ Page({ ...@@ -292,7 +292,7 @@ Page({
this.setData({ this.setData({
mixedthemeList: data.list || [] mixedthemeList: data.list || []
}, () => { }, () => {
if (this.data.mixedthemeTotal > this.data.mixedthemeList) { if (this.data.mixedthemeTotal > this.data.mixedthemeList.length) {
let page = this.data.page + 1; let page = this.data.page + 1;
this.setData({ this.setData({
page, page,
...@@ -312,7 +312,7 @@ Page({ ...@@ -312,7 +312,7 @@ Page({
mixedthemeList: _list mixedthemeList: _list
// [`mixedthemeList[${this.data.page - 1}]`]: data.list // [`mixedthemeList[${this.data.page - 1}]`]: data.list
}, () => { }, () => {
if (this.data.mixedthemeTotal > this.data.mixedthemeList) { if (this.data.mixedthemeTotal > this.data.mixedthemeList.length) {
let page = this.data.page + 1; let page = this.data.page + 1;
this.setData({ this.setData({
page, page,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment