|
@@ -82,7 +82,7 @@
|
|
|
})
|
|
|
if (_status == '已禁用') {
|
|
|
this.isShowAlert = true
|
|
|
- this.alertTitle == '账号审核中'
|
|
|
+ this.alertTitle = '账号审核中'
|
|
|
this.confirmText = '退出APP'
|
|
|
this.showCancelButton = false
|
|
|
} else {
|
|
@@ -123,7 +123,7 @@
|
|
|
methods: {
|
|
|
confirmClick() {
|
|
|
// #ifdef APP-PLUS
|
|
|
- if (this.alertTitle == '账号审核中') {
|
|
|
+ if (this.alertTitle = '账号审核中') {
|
|
|
if (uni.getSystemInfoSync().platform == 'ios') {
|
|
|
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
|
|
|
} else if (uni.getSystemInfoSync().platform == 'android') {
|
|
@@ -203,12 +203,8 @@
|
|
|
this.mescroll = mescroll;
|
|
|
},
|
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
|
- upCallback(page) {
|
|
|
+ upCallback(page) {debugger
|
|
|
// 此处可以继续请求其他接口
|
|
|
- // if(page.num == 1){
|
|
|
- // // 请求其他接口...
|
|
|
- // }
|
|
|
-
|
|
|
// 如果希望先请求其他接口,再触发upCallback,可参考以下写法
|
|
|
// if(!this.isInitxx){
|
|
|
// apiGetxx().then(res=>{
|
|
@@ -226,6 +222,7 @@
|
|
|
pageSize: page.size,
|
|
|
currentPage: page.num,
|
|
|
}).then(res => {
|
|
|
+ if (page.num == 1) this.news = []; //如果是第一页需手动制空列表
|
|
|
this.news = this.news.concat(res.data.records); //追加新数据
|
|
|
// this.news = res.data.records
|
|
|
this.mescroll.endBySize(res.data.records.length, res.data.total);
|