|
@@ -10,8 +10,12 @@
|
|
|
<view>{{monthlyItem.vehicleNo}}</view>
|
|
|
<view>{{monthlyItem.roadName}}</view>
|
|
|
</view>
|
|
|
- <view class="mlit-right" v-if="monthlyItem.energyType === 1">汽油车</view>
|
|
|
- <view class="mlit-right" v-if="monthlyItem.energyType === 3">新能源</view>
|
|
|
+ <view class="mlit-right">
|
|
|
+ <view class="mlit-right-items" v-if="monthlyItem.feeStatus === 0">未缴费</view>
|
|
|
+ <view class="mlit-right-items" v-if="monthlyItem.feeStatus === 1">已缴费</view>
|
|
|
+ <view class="mlit-right-item" v-if="monthlyItem.energyType === 1">汽油车</view>
|
|
|
+ <view class="mlit-right-item" v-if="monthlyItem.energyType === 2">新能源</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="monthly-list-item-bottom" >
|
|
|
<view class="mlib-item">
|
|
@@ -24,6 +28,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <u-button class="rem" type="error" size="mini" @click="cancelMonth(monthlyItem.monthId)">取消缴费</u-button>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</mescroll-body>
|
|
@@ -111,6 +116,25 @@
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+ cancelMonth(monthId){
|
|
|
+ console.log('monthId',monthId)
|
|
|
+ this.$u.api.cancelMonth({monthId: monthId})
|
|
|
+ .then(res=>{
|
|
|
+ if(res.code === 200){
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: err.msg,
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: err.msg,
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err=>{
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|