|
@@ -194,7 +194,20 @@
|
|
|
page: this.pages,
|
|
|
limit:this.limit
|
|
|
}, failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
this.isLoadMore = false
|
|
|
this.loadStatus = 'nomore'
|
|
|
if(this.pages>1){this.pages=1}
|
|
@@ -216,7 +229,20 @@
|
|
|
page: this.pages,
|
|
|
limit:this.limit
|
|
|
}, failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
this.isLoadMore = false
|
|
|
this.loadStatus = 'nomore'
|
|
|
if(this.pages>1){this.pages=1}
|
|
@@ -238,7 +264,20 @@
|
|
|
page: this.pages,
|
|
|
limit:this.limit
|
|
|
}, failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
this.isLoadMore = false
|
|
|
this.loadStatus = 'nomore'
|
|
|
if(this.pages>1){this.pages=1}
|
|
@@ -261,7 +300,20 @@
|
|
|
page: this.pages,
|
|
|
limit:this.limit
|
|
|
}, failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
this.isLoadMore = false
|
|
|
this.loadStatus = 'nomore'
|
|
|
if(this.pages>1){this.pages=1}
|
|
@@ -328,7 +380,20 @@
|
|
|
page: pages,
|
|
|
limit:limit
|
|
|
},failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
that.isLoadMore=false
|
|
|
that.loadStatus = 'nomore'
|
|
|
if(that.pages>1){that.pages-=1}
|
|
@@ -353,11 +418,20 @@
|
|
|
currentPage:this.currentPage,keywords:this.keywords}).then(res => {
|
|
|
})
|
|
|
.catch(res => {
|
|
|
- uni.showToast({
|
|
|
- title: res.errmsg,
|
|
|
- icon:'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
+ if(res.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
else if(this.TabCur == 2){
|
|
@@ -366,7 +440,20 @@
|
|
|
page: pages,
|
|
|
limit:limit
|
|
|
},failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
that.isLoadMore=false
|
|
|
that.loadStatus = 'nomore'
|
|
|
if(that.pages>1){that.pages-=1}
|
|
@@ -392,7 +479,20 @@
|
|
|
page: pages,
|
|
|
limit:limit
|
|
|
},failres => {
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
+ if(failres.errmsg){
|
|
|
+ uni.showToast({
|
|
|
+ title: failres.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
that.isLoadMore=false
|
|
|
that.loadStatus = 'nomore'
|
|
|
if(that.pages>1){that.pages-=1}
|