修改首页轮播报错、活动显示、公共页样式显示、我的车位等bug

This commit is contained in:
zhouyanli
2026-06-13 17:49:19 +08:00
parent b395631400
commit 5040564655
13 changed files with 190 additions and 76 deletions

View File

@@ -11,7 +11,6 @@
<view class="container">
<!-- 已缴费/欠费列表 -->
<view class="bill-list" v-if="paymentList.length != 0">
<view class="bill-item" @click="goToBill(item)" v-for="item,index in paymentList" :key="index">
<image class="billIcon" src="https://wuyeadmin.bugtc.com/images/propertyImgs/water.png"
v-if="item.type=='水费'"></image>
@@ -27,6 +26,25 @@
<view class="arrow"></view>
</view>
</view>
<!-- 已缴费/欠费列表 -->
<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>
<view class="bill-info">
<view class="bill-title">{{switchStatus(item.type)}}
<view class="bill-status debt" v-if="item.balance<0">已欠费</view>
</view>
<!-- <view class="bill-desc">{{item.villageName+item.buildingName+item.fullAddress}}</view> -->
<view class="bill-desc">{{item.name}}</view>
</view>
<view class="arrow"></view>
</view>
</view>
<!-- 新增缴费区域 -->
<view class="add-section">
@@ -81,7 +99,8 @@
import {
getTopUpSelectByResident,
postInsertOpenId,
postSubscribeAuth
postSubscribeAuth,
getTopUpDetails,
} from '/pageSubPack/api/apiSub.js'
// 响应式数据
const statusBarHeight = ref(20)
@@ -102,13 +121,13 @@
// address: '山东省日照市东港区桂花园别墅2号楼2层',
// icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/heating.png",
// },
// {
// id: 3,
// name: '电费',
// status: '已欠费',
// address: '山东省日照市东港区桂花园别墅2号楼2层',
// icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/electric.png",
// }
{
id: 3,
name: '电费',
status: '已欠费',
address: '山东省日照市东港区桂花园别墅2号楼2层',
icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/electric.png",
}
])
const addList = ref([
@@ -168,6 +187,11 @@
}
}
onShow(() => {
// Zy --------------
getBillDetails()
// Zy --------------
// 不再自动请求订阅消息,改为用户点击触发
})
// 生命周期
@@ -250,6 +274,30 @@
}
uni.removeStorageSync('sourcePage')
}
// Zy --------------
const detailslist = ref([])
const getBillDetails = ()=>{
getTopUpDetails({
userId:uni.getStorageSync('userId'),
villageId:uni.getStorageSync('currentVillageId'),
}).then(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 '垃圾处理费'
}
}
// Zy --------------
</script>
<style lang="scss">