部分样式修复/缴费记录/水电费明细样式修改完成
@@ -97,21 +97,21 @@ export default {
|
||||
flex-shrink: 0;
|
||||
width: 340rpx;
|
||||
height: 88rpx;
|
||||
border: 2rpx solid #007aff;
|
||||
border: 2rpx solid #FF2F31;
|
||||
border-radius: 44rpx;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #007aff;
|
||||
color: #FF2F31;
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.main-btn:active {
|
||||
background-color: #e6f0ff;
|
||||
border-color: #0066d8;
|
||||
color: #0066d8;
|
||||
border-color: #FF2F31;
|
||||
color: #FF2F31;
|
||||
}
|
||||
|
||||
/* 内部内容居中控制 */
|
||||
@@ -127,6 +127,6 @@ export default {
|
||||
}
|
||||
.btn-content .label {
|
||||
font-size: 28rpx;
|
||||
color: #007aff;
|
||||
color: #FF2F31;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -380,7 +380,7 @@
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#909399",
|
||||
"selectedColor": "#2979ff",
|
||||
"selectedColor": "#252B44",
|
||||
// "borderStyle": "#909399",
|
||||
"borderStyle": "white",
|
||||
"backgroundColor": "#ffffff",
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
<template>
|
||||
<view class="bill-list-page">
|
||||
<!-- 自定义导航栏 -->
|
||||
<customNavbar
|
||||
title="我的账单"
|
||||
></customNavbar>
|
||||
<customNavbar title="我的账单"></customNavbar>
|
||||
|
||||
<!-- 筛选栏 -->
|
||||
<view class="filter-bar">
|
||||
@@ -23,13 +21,8 @@
|
||||
|
||||
<!-- 年份列表 -->
|
||||
<view class="year-list">
|
||||
<view
|
||||
class="year-item"
|
||||
v-for="year in years"
|
||||
:key="year"
|
||||
:class="{ active: currentYear === year }"
|
||||
@click="selectYear(year)"
|
||||
>
|
||||
<view class="year-item" v-for="year in years" :key="year"
|
||||
:class="{ active: currentYear === year }" @click="selectYear(year)">
|
||||
{{ year }}年
|
||||
</view>
|
||||
</view>
|
||||
@@ -38,48 +31,25 @@
|
||||
|
||||
<!-- 支出/收入切换 -->
|
||||
<view class="tab-bar">
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === 'out' }"
|
||||
@click="switchTab('out')"
|
||||
>
|
||||
<view class="tab-item" :class="{ active: currentTab === 'out' }" @click="switchTab('out')">
|
||||
支出
|
||||
</view>
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === 'in' }"
|
||||
@click="switchTab('in')"
|
||||
>
|
||||
<view class="tab-item" :class="{ active: currentTab === 'in' }" @click="switchTab('in')">
|
||||
收入
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 账单列表 -->
|
||||
<scroll-view
|
||||
scroll-y
|
||||
class="scroll-content"
|
||||
:scroll-top="0"
|
||||
:refresher-enabled="true"
|
||||
:refresher-triggered="isRefreshing"
|
||||
@refresherrefresh="refresh"
|
||||
@scrolltolower="loadMore"
|
||||
>
|
||||
<scroll-view scroll-y class="scroll-content" :scroll-top="0" :refresher-enabled="true"
|
||||
:refresher-triggered="isRefreshing" @refresherrefresh="refresh" @scrolltolower="loadMore">
|
||||
<view v-if="bills.length > 0">
|
||||
<view
|
||||
class="bill-item"
|
||||
v-for="item in bills"
|
||||
:key="item.id"
|
||||
@click="goDetail(item)"
|
||||
>
|
||||
<view class="bill-item" v-for="item in bills" :key="item.id" @click="goDetail(item)">
|
||||
<!-- 左侧信息 -->
|
||||
<view class="bill-left">
|
||||
<text class="bill-name">{{ item.feeName }}</text>
|
||||
<text class="bill-date" v-if="item.payTime">支付时间:{{ item.payTime }}</text>
|
||||
<text
|
||||
class="bill-status"
|
||||
v-if="currentTab === 'out'"
|
||||
>{{ item.status }}</text>
|
||||
<text class="bill-status" v-if="currentTab === 'out'">{{ item.status }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 右侧金额 + 箭头 -->
|
||||
@@ -100,7 +70,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
currentTab: 'out', // in 收 / out 支
|
||||
@@ -139,8 +109,7 @@ export default {
|
||||
loadBills() {
|
||||
// 模拟数据加载
|
||||
if (this.currentTab === 'in') {
|
||||
this.bills = [
|
||||
{
|
||||
this.bills = [{
|
||||
id: 'b101',
|
||||
feeName: '第一期(2024.12.01-2024.12.31)',
|
||||
payTime: '2024-12-05',
|
||||
@@ -156,8 +125,7 @@ export default {
|
||||
},
|
||||
];
|
||||
} else {
|
||||
this.bills = [
|
||||
{
|
||||
this.bills = [{
|
||||
id: 'b201',
|
||||
feeName: '第一期租金(2024.12.01-2024.12.31)',
|
||||
payTime: '2024-12-05',
|
||||
@@ -199,17 +167,18 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bill-list-page {
|
||||
.bill-list-page {
|
||||
background: #f7f8fa;
|
||||
min-height: 100vh;
|
||||
padding-top: 120rpx; /* 给导航栏留空间 */
|
||||
}
|
||||
padding-top: 120rpx;
|
||||
/* 给导航栏留空间 */
|
||||
}
|
||||
|
||||
.filter-bar {
|
||||
.filter-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -218,60 +187,61 @@ export default {
|
||||
margin: 20rpx;
|
||||
border-radius: 12rpx;
|
||||
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
/* 年份筛选 */
|
||||
.year-filter {
|
||||
/* 年份筛选 */
|
||||
.year-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
/* 支出/收入切换 */
|
||||
.tab-bar {
|
||||
/* 支出/收入切换 */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
.tab-item {
|
||||
padding: 12rpx 32rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 24rpx;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: #ff3b30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 自定义年份选择器样式 */
|
||||
.year-picker-popup {
|
||||
/* 自定义年份选择器样式 */
|
||||
.year-picker-popup {
|
||||
background: #fff;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-header {
|
||||
.popup-header {
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
.popup-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.year-list {
|
||||
.year-list {
|
||||
padding: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.year-item {
|
||||
.year-item {
|
||||
font-size: 32rpx;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
@@ -294,14 +264,14 @@ export default {
|
||||
background: #ff5252;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-content {
|
||||
.scroll-content {
|
||||
margin-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.bill-item {
|
||||
.bill-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: #fff;
|
||||
@@ -309,9 +279,9 @@ export default {
|
||||
border-radius: 12rpx;
|
||||
padding: 20rpx;
|
||||
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
.bill-left {
|
||||
.bill-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -327,9 +297,9 @@ export default {
|
||||
color: #ADADB1;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bill-right {
|
||||
.bill-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -338,10 +308,10 @@ export default {
|
||||
color: #F34038;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty {
|
||||
.empty {
|
||||
margin-top: 200rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -2,27 +2,44 @@
|
||||
<view class="pay-history-page">
|
||||
<customNavbar title="缴费记录" />
|
||||
|
||||
<!-- 筛选栏 -->
|
||||
<view class="filter-bar">
|
||||
<!-- 年份筛选点击区域 -->
|
||||
<view class="year-filter" @click="toggleYearPicker">
|
||||
<text class="year-text">{{ currentYear }}年</text>
|
||||
<u-icon name="arrow-down" size="24" color="#666"></u-icon>
|
||||
</view>
|
||||
|
||||
<!-- 自定义年份选择器弹窗 -->
|
||||
<u-popup v-model="showYearPicker" mode="bottom" border-radius="20rpx" :closeable="true">
|
||||
<view class="year-picker-popup">
|
||||
<!-- 弹窗标题 -->
|
||||
<view class="popup-header">
|
||||
<text class="popup-title">选择年份</text>
|
||||
</view>
|
||||
|
||||
<!-- 年份列表 -->
|
||||
<view class="year-list">
|
||||
<view class="year-item" v-for="year in years" :key="year"
|
||||
:class="{ active: currentYear === year }" @click="selectYear(year)">
|
||||
{{ year }}年
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 顶部tab切换 -->
|
||||
<view class="tab-bar">
|
||||
<view
|
||||
v-for="(tab, index) in tabs"
|
||||
:key="index"
|
||||
:class="['tab-item', activeTab === tab.value ? 'active' : '']"
|
||||
@click="activeTab = tab.value"
|
||||
>
|
||||
<view v-for="(tab, index) in tabs" :key="index"
|
||||
:class="['tab-item', activeTab === tab.value ? 'active' : '']" @click="activeTab = tab.value">
|
||||
{{ tab.label }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 收支记录列表 -->
|
||||
<scroll-view scroll-y class="scroll-content">
|
||||
<view v-if="filteredRecords.length > 0" class="record-list">
|
||||
<view
|
||||
v-for="(item, index) in filteredRecords"
|
||||
:key="index"
|
||||
class="record-item"
|
||||
@click="goDetail(item)"
|
||||
>
|
||||
<view v-for="(item, index) in filteredRecords" :key="index" class="record-item" @click="goDetail(item)">
|
||||
<!-- 左侧信息 -->
|
||||
<view class="left">
|
||||
<view class="title">{{ item.feeName }}</view>
|
||||
@@ -31,10 +48,7 @@
|
||||
|
||||
<!-- 右侧金额 + 图标 -->
|
||||
<view class="right">
|
||||
<view
|
||||
class="amount"
|
||||
:class="item.type === 'income' ? 'income' : 'expense'"
|
||||
>
|
||||
<view class="amount" :class="item.type === 'income' ? 'income' : 'expense'">
|
||||
{{ item.type === 'income' ? '+' : '-' }}{{ item.amount.toFixed(2) }}
|
||||
</view>
|
||||
<u-icon name="arrow-right" size="32" color="#ccc"></u-icon>
|
||||
@@ -50,16 +64,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
activeTab: 'income', // 默认显示“收”
|
||||
tabs: [
|
||||
{ label: '收', value: 'income' },
|
||||
{ label: '支', value: 'expense' },
|
||||
],
|
||||
records: [
|
||||
tabs: [{
|
||||
label: '收入',
|
||||
value: 'income'
|
||||
},
|
||||
{
|
||||
label: '支出',
|
||||
value: 'expense'
|
||||
},
|
||||
],
|
||||
records: [{
|
||||
id: 1,
|
||||
type: 'income', // 收
|
||||
feeName: '第一期租金(2024.01.01 - 2024.03.31)',
|
||||
@@ -84,6 +102,10 @@ export default {
|
||||
amount: 8500,
|
||||
},
|
||||
],
|
||||
// 年份筛选相关
|
||||
currentYear: 2025,
|
||||
years: [2025, 2024, 2023, 2022, 2021],
|
||||
showYearPicker: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -92,6 +114,17 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 切换年份选择器显示
|
||||
toggleYearPicker() {
|
||||
this.showYearPicker = !this.showYearPicker;
|
||||
},
|
||||
// 选择年份
|
||||
selectYear(year) {
|
||||
this.currentYear = year;
|
||||
this.showYearPicker = false;
|
||||
// 重新加载数据
|
||||
// this.load();
|
||||
},
|
||||
statusText(status) {
|
||||
const map = {
|
||||
paid: '已支付 / 已收款',
|
||||
@@ -106,38 +139,101 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.pay-history-page {
|
||||
.pay-history-page {
|
||||
background: #f8f8f8;
|
||||
min-height: 100vh;
|
||||
padding-top: 175rpx;
|
||||
padding-top: 120rpx;
|
||||
.filter-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
padding: 24rpx 30rpx;
|
||||
margin: 20rpx;
|
||||
margin-bottom: 0;
|
||||
border-radius: 12rpx;
|
||||
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
/* 年份筛选 */
|
||||
.year-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 支出/收入切换 */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
background: #fff;
|
||||
margin: 0 20rpx;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.05);
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 24rpx 0;
|
||||
padding: 12rpx 32rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
border-radius: 24rpx;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.active {
|
||||
color: #007aff;
|
||||
font-weight: 700;
|
||||
background: #eaf3ff;
|
||||
color: #fff;
|
||||
background: #ff3b30;
|
||||
}
|
||||
}
|
||||
|
||||
/* 自定义年份选择器样式 */
|
||||
.year-picker-popup {
|
||||
background: #fff;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
|
||||
.popup-header {
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.year-list {
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.year-item {
|
||||
font-size: 32rpx;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
padding: 24rpx;
|
||||
border-radius: 12rpx;
|
||||
margin-bottom: 16rpx;
|
||||
background: #f5f5f5;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #ff3b30;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #ff5252;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.record-list {
|
||||
@@ -155,24 +251,28 @@ export default {
|
||||
|
||||
.left {
|
||||
flex: 1;
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 8rpx;
|
||||
font-weight:5600;
|
||||
color: #2D2B2C;
|
||||
}
|
||||
|
||||
.sub {
|
||||
font-size: 24rpx;
|
||||
color: #888;
|
||||
margin-bottom: 6rpx;
|
||||
color: #86868C;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.status {
|
||||
font-size: 24rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
&.paid {
|
||||
color: #4caf50;
|
||||
color: #73B936;
|
||||
}
|
||||
|
||||
&.unpaid {
|
||||
color: #f56c6c;
|
||||
color: #F34038;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -180,15 +280,18 @@ export default {
|
||||
.right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.amount {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
margin-right: 10rpx;
|
||||
|
||||
&.income {
|
||||
color: #4caf50;
|
||||
color: #73B936;
|
||||
}
|
||||
|
||||
&.expense {
|
||||
color: #f56c6c;
|
||||
color: #F34038;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -198,5 +301,5 @@ export default {
|
||||
.empty {
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,16 +1,8 @@
|
||||
<template>
|
||||
<view class="user-center">
|
||||
<customNavbar
|
||||
title="个人中心"
|
||||
ref="navbar"
|
||||
:is-transparent="navbarStyle.isTransparent"
|
||||
:bg-color="navbarStyle.bgColor"
|
||||
:text-color="navbarStyle.textColor"
|
||||
:opacity="navbarStyle.opacity"
|
||||
:extra-icons="navbarStyle.extraIcons"
|
||||
:show-home="false"
|
||||
:show-back="false"
|
||||
/>
|
||||
<customNavbar title="个人中心" ref="navbar" :is-transparent="navbarStyle.isTransparent"
|
||||
:bg-color="navbarStyle.bgColor" :text-color="navbarStyle.textColor" :opacity="navbarStyle.opacity"
|
||||
:extra-icons="navbarStyle.extraIcons" :show-home="false" :show-back="false" />
|
||||
<!-- 顶部用户信息 -->
|
||||
<view class="user-header">
|
||||
<u-avatar :src="avatar" size="133"></u-avatar>
|
||||
@@ -134,8 +126,8 @@
|
||||
user, // user 信息放这里即可
|
||||
show: true,
|
||||
showGetProfile: false,
|
||||
userType:'',
|
||||
oaAuth:'',
|
||||
userType: '',
|
||||
oaAuth: '',
|
||||
gridList: [{
|
||||
name: "我的合同",
|
||||
icon: "/static/icon/sign.png",
|
||||
@@ -262,7 +254,9 @@
|
||||
})
|
||||
}
|
||||
let url = "/login/checkExpiration";
|
||||
this.$u.get(url, {}, {'WT': token}).then(obj => {
|
||||
this.$u.get(url, {}, {
|
||||
'WT': token
|
||||
}).then(obj => {
|
||||
if (obj.data) {
|
||||
uni.reLaunch({
|
||||
url: '../login/login'
|
||||
@@ -319,7 +313,9 @@
|
||||
let life = uni.getStorageSync('lifeData') || {}
|
||||
let token = life.vuex_token
|
||||
let url = "/login/userOtherInfo";
|
||||
this.$u.get(url, {}, {'WT': token}).then(obj => {
|
||||
this.$u.get(url, {}, {
|
||||
'WT': token
|
||||
}).then(obj => {
|
||||
this.userType = obj.data.userType;
|
||||
this.oaAuth = obj.data.oaAuth;
|
||||
});
|
||||
@@ -331,9 +327,9 @@
|
||||
<style lang="scss" scoped>
|
||||
.user-center {
|
||||
padding-top: 120rpx;
|
||||
background-image: url(https://eyidu.ydszw.cn/static/img/test/my-bg.png);
|
||||
background-image: url("https://eyidu.ydszw.cn/static/img/test/my-bg.png");//只支持网络图片,请自行上传至图片服务器并替换
|
||||
background-color: #fff;
|
||||
background-repeat: space;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 750rpx 731rpx;
|
||||
min-height: 100vh;
|
||||
}
|
||||
@@ -380,10 +376,10 @@
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.contract-view{
|
||||
.contract-view {
|
||||
width: 96%;
|
||||
margin: 0 auto;
|
||||
background-image: url("https://eyidu.ydszw.cn/static/img/test/my-bg2.png");//只支持网络图片,请自行上传至图片服务器
|
||||
background-image: url("https://eyidu.ydszw.cn/static/img/test/my-bg2.png"); //只支持网络图片,请自行上传至图片服务器并替换
|
||||
background-repeat: round;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
@@ -436,6 +436,10 @@
|
||||
padding: 40rpx 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
|
||||
&::v-deep .u-btn {
|
||||
background: #ff3b30;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
<view class="page-box">
|
||||
<view class="tabSwiper" v-for="(item, index) in dataList" :key="item.id" @click="clickContent(item)">
|
||||
<u-icon name="bell" :size="35" color="#2979ff" class="bell-icon"></u-icon>
|
||||
<u-icon name="bell" :size="35" color="#FF2F31" class="bell-icon"></u-icon>
|
||||
<view class="content-wrapper">
|
||||
<view class="top">
|
||||
<view class="title">{{ item.title }}</view>
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
:key="index"
|
||||
@click="toDetail(item)"
|
||||
>
|
||||
<view class="record-icon">
|
||||
<image src="/static/icon/水费.png" class="icon-1" v-if="item.feeType=='水费'"></image>
|
||||
<image src="/static/icon/电费.png" class="icon-2" v-else></image>
|
||||
</view>
|
||||
<!-- 左侧信息 -->
|
||||
<view class="record-left">
|
||||
<text class="record-title">{{ item.feeType }}({{ item.period }})</text>
|
||||
@@ -75,7 +79,7 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.water-electric-page {
|
||||
padding: 175rpx 20rpx 20rpx 20rpx;
|
||||
padding: 120rpx 20rpx 20rpx 20rpx;
|
||||
|
||||
.header {
|
||||
background-color: #fff;
|
||||
@@ -104,20 +108,35 @@ export default {
|
||||
padding: 24rpx 30rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
||||
|
||||
.record-icon{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.icon-1{
|
||||
width: 33rpx;
|
||||
height: 47rpx;
|
||||
}
|
||||
|
||||
.icon-2{
|
||||
width: 35rpx;
|
||||
height: 57rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.record-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10rpx;
|
||||
|
||||
.record-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: #2D2B2C;
|
||||
}
|
||||
|
||||
.record-time {
|
||||
font-size: 24rpx;
|
||||
color: #888;
|
||||
color: #86868C;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,8 +144,8 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
font-weight: 400;
|
||||
color: #222222;
|
||||
|
||||
.amount {
|
||||
display: flex;
|
||||
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
static/icon/水费.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
static/icon/电费.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
BIN
static/index.png
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.8 KiB |