|
@@ -1,6 +1,12 @@
|
|
<template>
|
|
<template>
|
|
<!-- 包月 -->
|
|
<!-- 包月 -->
|
|
<view class="monthly">
|
|
<view class="monthly">
|
|
|
|
+ <u-navbar
|
|
|
|
+ title-color="#fff"
|
|
|
|
+ :custom-back="customBack"
|
|
|
|
+ :border-bottom="false"
|
|
|
|
+ back-icon-color="#CCE8FF"
|
|
|
|
+ :background="{background: '#008CFF' }" title="我的包月"></u-navbar>
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" >
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" >
|
|
<scroll-view scroll-y style="height: 100%; width: 100%;" v-for="(monthlyItem, index) in monthlyList" :key="monthlyItem.id">
|
|
<scroll-view scroll-y style="height: 100%; width: 100%;" v-for="(monthlyItem, index) in monthlyList" :key="monthlyItem.id">
|
|
<view class="monthly-list">
|
|
<view class="monthly-list">
|
|
@@ -28,7 +34,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-button class="rem" type="error" size="mini" @click="cancelMonth(monthlyItem.monthId)">取消缴费</u-button>
|
|
|
|
|
|
+ <u-button class="rem" v-if="monthlyItem.feeStatus=='0'" type="error" size="mini" @click="cancelMonth(monthlyItem.monthId)">取消缴费</u-button>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</mescroll-body>
|
|
</mescroll-body>
|
|
@@ -53,6 +59,12 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ customBack(){
|
|
|
|
+ this.$u.route({
|
|
|
|
+ type:'switchTab',
|
|
|
|
+ url: 'pages/center/index'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
/*下拉刷新的回调*/
|
|
/*下拉刷新的回调*/
|
|
downCallback(){
|
|
downCallback(){
|
|
// 第2种: 下拉刷新和上拉加载调同样的接口, 则不用第1种, 直接mescroll.resetUpScroll()即可
|
|
// 第2种: 下拉刷新和上拉加载调同样的接口, 则不用第1种, 直接mescroll.resetUpScroll()即可
|
|
@@ -116,11 +128,11 @@
|
|
this.mescroll.endErr()
|
|
this.mescroll.endErr()
|
|
}
|
|
}
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
- console.log('err',err);
|
|
|
|
- this.$refs.uToast.show({
|
|
|
|
- title: err.msg,
|
|
|
|
- type: 'error',
|
|
|
|
- });
|
|
|
|
|
|
+ // console.log('err',err);
|
|
|
|
+ // this.$refs.uToast.show({
|
|
|
|
+ // title: err.msg,
|
|
|
|
+ // type: 'error',
|
|
|
|
+ // });
|
|
});
|
|
});
|
|
|
|
|
|
},
|
|
},
|