添加物业费支付页面、活动状态报名显示、车位参数
This commit is contained in:
@@ -30,10 +30,12 @@
|
||||
<!-- 已缴费/欠费列表 -->
|
||||
<view class="bill-list" v-if="detailslist.length != 0">
|
||||
<view class="bill-item" @click="goToBill(item)" v-for="item,index in detailslist" :key="index">
|
||||
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/water.png"
|
||||
v-if="item.type=='水费'"></image>
|
||||
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/electric.png"
|
||||
v-if="item.type=='电费'"></image>
|
||||
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/property.png"
|
||||
v-if="item.type=='0'"></image>
|
||||
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/parkingIcon.png"
|
||||
v-if="item.type=='1'"></image>
|
||||
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/垃圾处理2x.png"
|
||||
v-if="item.type=='2'"></image>
|
||||
<view class="bill-info">
|
||||
<view class="bill-title">{{switchStatus(item.type)}}
|
||||
<view class="bill-status debt" v-if="item.balance<0">已欠费</view>
|
||||
@@ -183,7 +185,7 @@
|
||||
title: err.msg || '网络异常',
|
||||
icon: 'none'
|
||||
})
|
||||
console.error('列表接口报错:', err)
|
||||
// console.error('列表接口报错:', err)
|
||||
}
|
||||
}
|
||||
onShow(() => {
|
||||
@@ -216,10 +218,10 @@
|
||||
paymentList.value = data
|
||||
} catch (err) {
|
||||
uni.showToast({
|
||||
title: `${err}`,
|
||||
title: err.msg || '网络异常',
|
||||
icon: 'none'
|
||||
})
|
||||
console.error('列表接口报错:', err)
|
||||
// console.error('列表接口报错:', err)
|
||||
} finally {
|
||||
|
||||
}
|
||||
@@ -227,18 +229,19 @@
|
||||
// 方法
|
||||
const goToBill = (item) => {
|
||||
uni.setStorageSync('arrearsPayment', item)
|
||||
// if (item.balance < 0) {
|
||||
// uni.redirectTo({
|
||||
// url: '/pageSubPack/payment-list/arrearsPayment'
|
||||
// })
|
||||
// } else {
|
||||
// uni.redirectTo({
|
||||
// url: '/pageSubPack/payment-list/noArrearsPayment'
|
||||
// })
|
||||
// }
|
||||
uni.redirectTo({
|
||||
url: '/pageSubPack/payment-list/arrearsPayment'
|
||||
})
|
||||
|
||||
const type = String(item.type || '')
|
||||
// 物业费、车位费、垃圾处理费走物业费缴纳页;水费、电费走欠费缴纳页
|
||||
const isProperty = ['物业费', '车位费', '垃圾处理费', '垃圾费', '0', '1', '2'].includes(type)
|
||||
if (isProperty) {
|
||||
uni.redirectTo({
|
||||
url: `/pageSubPack/payment-list/propertyFeePayment?amount=${item.amount || ''}`
|
||||
})
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/pageSubPack/payment-list/arrearsPayment'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -277,27 +280,26 @@
|
||||
|
||||
|
||||
|
||||
// Zy --------------
|
||||
|
||||
const detailslist = ref([])
|
||||
const getBillDetails = ()=>{
|
||||
getTopUpDetails({
|
||||
userId:uni.getStorageSync('userId'),
|
||||
villageId:uni.getStorageSync('currentVillageId'),
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
detailslist.value = res.data;
|
||||
})
|
||||
}
|
||||
const switchStatus= (type)=>{
|
||||
if(type === '0'){
|
||||
return "物业费"
|
||||
}else if(type === '1'){
|
||||
return '车位费'
|
||||
}else if(type === '2'){
|
||||
return '垃圾处理费'
|
||||
const switchStatus = (type) => {
|
||||
const typeMap = {
|
||||
'0': '物业费',
|
||||
'1': '车位费',
|
||||
'2': '垃圾处理费'
|
||||
}
|
||||
return typeMap[type] || type
|
||||
}
|
||||
// Zy --------------
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user