优化 站内信
parent
394cda3efd
commit
8c5b703c47
|
@ -2,6 +2,10 @@
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
||||||
|
<view v-if="showLoading" style="width:500rpx;margin:0 auto;text-align: center;height:800rpx;line-height: 800rpx;">
|
||||||
|
<u-loading mode="flower" ></u-loading>
|
||||||
|
<text>正在加载中</text>
|
||||||
|
</view>
|
||||||
<u-cell-group v-if="current == 0">
|
<u-cell-group v-if="current == 0">
|
||||||
<view v-for="(item,index) in lists" :key="index">
|
<view v-for="(item,index) in lists" :key="index">
|
||||||
<u-cell-item :arrow="false" v-if="item.status =='UN_READY'" style="position: relative;"
|
<u-cell-item :arrow="false" v-if="item.status =='UN_READY'" style="position: relative;"
|
||||||
|
@ -63,6 +67,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showLoading:true,
|
||||||
params: {
|
params: {
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
|
@ -131,6 +136,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
|
this.showLoading = true;
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.current = e;
|
this.current = e;
|
||||||
if (e == 0) {
|
if (e == 0) {
|
||||||
|
@ -149,6 +155,7 @@
|
||||||
messages(this.params).then(res => {
|
messages(this.params).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
|
this.showLoading = false
|
||||||
if (res.data.result.records == '') {
|
if (res.data.result.records == '') {
|
||||||
console.log(11111)
|
console.log(11111)
|
||||||
this.status = "nomore"
|
this.status = "nomore"
|
||||||
|
|
Loading…
Reference in New Issue