|
@@ -83,9 +83,9 @@
|
|
|
border-radius="16"
|
|
|
margin="20rpx 40rpx"
|
|
|
padding="30">
|
|
|
- <view slot="body" class="">
|
|
|
- <view>已缴费{{totalCount}}笔,合计{{totalActualAmount}}元</view>
|
|
|
- <view>当前欠费{{totalPayCount}}笔,合计{{totalPayAmount}}元</view>
|
|
|
+ <view slot="body" class="myorders">
|
|
|
+ <view class="myorders-item">当前已缴费<text style="color: #008CFF;">{{totalCount||'0'}}</text>笔,合计<text style="color: #008CFF;">{{totalActualAmount||'0'}}</text>元</view>
|
|
|
+ <view class="myorders-item">当前欠费<text style="color: #FF482B;">{{totalPayCount||'0'}}</text>笔,合计<text style="color: #FF482B;">{{totalPayAmount||'0'}}</text>元</view>
|
|
|
</view>
|
|
|
</u-card>
|
|
|
<!-- ===================================== 无停车信息 ===================================== -->
|
|
@@ -394,19 +394,26 @@ export default {
|
|
|
orderNavclick () {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
- })
|
|
|
+ });
|
|
|
+ console.log('this.recordList[1]',this.recordList[1]);
|
|
|
+ console.log('orderNav',this.orderNav)
|
|
|
+ if(!this.recordList[1]){return}
|
|
|
this.$u.api.feePay({ vehicleId: this.recordList[1] })
|
|
|
.then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
+ console.log('res',res);
|
|
|
+ if (res?.code == 200) {
|
|
|
this.handleGetIndexData()
|
|
|
} else {
|
|
|
- this.$refs.uToast.show({
|
|
|
- title: res.msg,
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
+
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // title: res?.msg,
|
|
|
+ // type: 'error'
|
|
|
+ // })
|
|
|
}
|
|
|
uni.hideLoading()
|
|
|
- })
|
|
|
+ }).catch(err =>{
|
|
|
+ console.log('orderNavclick err',err)
|
|
|
+ })
|
|
|
},
|
|
|
/**
|
|
|
* 跳转页面
|
|
@@ -488,10 +495,10 @@ export default {
|
|
|
enableFeepay.push(0)
|
|
|
}
|
|
|
})
|
|
|
- this.totalActualAmount = res.data.payedInfo.totalActualAmount
|
|
|
- this.totalCount = res.data.payedInfo.totalCount
|
|
|
- this.totalPayAmount = res.data.payingInfo.totalPayAmount
|
|
|
- this.totalPayCount = res.data.payingInfo.totalCount
|
|
|
+ this.totalActualAmount = res.data?.payedInfo?.totalActualAmount
|
|
|
+ this.totalCount = res.data?.payedInfo?.totalCount
|
|
|
+ this.totalPayAmount = res.data?.payingInfo?.totalPayAmount
|
|
|
+ this.totalPayCount = res.data?.payingInfo?.totalCount
|
|
|
this.recordList = enableFeepay
|
|
|
this.orderNav = enableFeepay[0]
|
|
|
this.contractStatus = enableFeepay[2]
|
|
@@ -512,6 +519,7 @@ export default {
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
+ console.log('err',err)
|
|
|
this.$refs.uToast.show({
|
|
|
title: '系统异常',
|
|
|
type: 'error'
|