4/18 样式修改,缴费部分页面按照ui重做

This commit is contained in:
wangyuxin
2026-04-18 16:24:20 +08:00
parent 72ec4017e8
commit 452bf0b84d
36 changed files with 975 additions and 973 deletions

View File

@@ -4,7 +4,7 @@
<uni-nav-bar :title="arrearsPayment" left-icon="left" @clickLeft="goBack" backgroundColor="transparent"
:border="false">
</uni-nav-bar>
<Loading mask="true" click="true" ref="loading"></Loading>
<!-- 表单区域 -->
<scroll-view class="page" scroll-y="true">
@@ -18,7 +18,7 @@
<text class="amount-text"
:class="{ 'outstandingPaymentClass':outstandingPayment }">{{outstandingPayment?'-¥'+payAmount:'¥'+payAmount}}</text>
</view>
<view style="border-bottom: 1px solid #c7c7c7;padding-bottom: 10px;"></view>
<view style="border-bottom: 2rpx solid #ededed;margin:10rpx 0rpx;"></view>
<!-- 缴费信息 -->
<view class="info-section" style="">
<view v-if="arrearsPayment=='物业费'">
@@ -59,13 +59,15 @@
<text class="info-label">缴费单位</text>
<text class="info-value">HN热力有限公司</text>
</view>
<!-- <view style="border-bottom: 1px solid #c7c7c7;padding-bottom: 10px;"></view> -->
<!-- <view style="border-bottom: 2rpx solid #c7c7c7;padding-bottom:20rpx;"></view> -->
<!-- 缴费金额输入 -->
<view style="border-bottom: 2rpx solid #ededed;margin:10rpx 0rpx;"></view>
<view class="input-section" style="display: flex;">
<text class="amount-input" style="width: auto;">¥</text>
<input type="number" v-model="payAmount" class="amount-input" placeholder="点击输入缴费金额">
<text class="amount-input" style="width: auto;margin: 0rpx 20rpx;">¥</text>
<input type="number" v-model="payNum" class="amount-input" placeholder="点击输入缴费金额">
</input>
</view>
<view style="border-bottom: 2rpx solid #ededed;margin:10rpx 0rpx;"></view>
<view class="arrears-row">
<text class="arrears-text">当前欠费金额¥{{ arrearsAmount }}</text>
<text class="auto-fill-btn" @click="handleAutoFill">点击自动填入</text>
@@ -92,7 +94,7 @@
<!-- 商户信息 & 金额 -->
<view class="pay-info">
<text class="merchant-name">智享日照洗护</text>
<text class="merchant-name">充值金额</text>
<text class="pay-amount">¥{{ payAmount }}</text>
</view>
@@ -153,17 +155,19 @@
</view>
<!-- 3. 缴费成功页 -->
<view v-if="currentStep === 3" class="success-page">
<view class="icon-box">
<!-- 成功图标 -->
<view class="success-icon">
<text class="icon"></text>
</view>
<view class="container" v-if="currentStep==3">
<!-- 成功图标 -->
<view class="success-icon">
<text class="icon-check"></text>
</view>
<!-- 主标题 -->
<view class="title">缴费成功</view>
<!-- 提示文案 -->
<view class="desc">
成功缴纳物业费
</view>
<!-- 成功文字 -->
<view class="success-text">缴费成功</view>
<view class="success-desc">成功缴纳物业费</view>
</view>
@@ -223,6 +227,7 @@
password: "", // 输入的密码
showBankList: false, // 是否显示银行卡列表
arrearsAmount: "21.21",
payNum: '',
// 银行卡列表
bankList: [{
id: 1,
@@ -246,16 +251,13 @@
name: "建设银行储蓄卡(8888)",
icon: "/static/bank-logo.png"
}
}
},
methods: {
handleAutoFill() {
this.payAmount = this.arrearsAmount;
this.payNum = this.arrearsAmount;
uni.vibrateShort({
type: "light"
});
@@ -359,7 +361,7 @@
.page {
flex: 1;
overflow-y: auto;
padding: 0px 20px;
padding: 0px 40rpx;
box-sizing: border-box;
background-color: #
/* fff */
@@ -375,12 +377,12 @@
}
.amount-section {
padding: 30px 0;
padding: 60rpx 0;
text-align: center;
}
.amount-text {
font-size: 28px;
font-size: 56rpx;
font-weight: 600;
}
@@ -389,8 +391,8 @@
}
.info-section {
padding: 0 15px 15px 15px;
/* margin-bottom: 20px; */
padding-top: 20rpx;
/* margin-bottom: 40rpx; */
}
@@ -398,62 +400,62 @@
display: flex;
justify-content: space-between;
align-items: center;
height: 40px;
height: 80rpx;
}
.info-label {
font-size: 15px;
font-size: 30rpx;
color: #666;
}
.info-value {
font-size: 15px;
font-size: 30rpx;
color: #333;
font-weight: 600;
}
.info-payAmountItem {
height: 50px;
line-height: 50px;
margin-bottom: 30px;
height: 100rpx;
line-height: 100rpx;
margin-bottom: 60rpx;
}
.info-payAmount {
font-size: 25px;
font-size: 50rpx;
color: #333;
font-weight: 600;
}
.input-section {
/* padding: 0 15px; */
/* padding: 030rpx; */
}
.amount-input {
width: 100%;
height: 50px;
font-size: 24px;
line-height: 50px;
height: 100rpx;
font-size: 32rpx;
line-height: 100rpx;
border: none;
outline: none;
margin-right: 5px;
margin-right: 10rpx;
}
.btn-section {
padding: 10px 15px 20px;
padding: 20rpx 30rpx 40rpx;
display: flex;
gap: 20rpx;
}
.pay-btn {
width: 100%;
height: 50px;
line-height: 50px;
height: 100rpx;
line-height: 100rpx;
background-color: #007aff;
color: #fff;
border-radius: 8px;
font-size: 16px;
border-radius: 16rpx;
font-size: 32rpx;
border: none;
outline: none;
}
@@ -469,56 +471,57 @@
z-index: 999;
display: flex;
align-items: flex-end;
}
.password-modal {
width: 100%;
background-color: #fff;
border-radius: 12px 12px 0 0;
padding-bottom: 20px;
border-radius: 24rpx 24rpx 0 0;
padding-bottom: 40rpx;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
height: 50px;
padding: 0 15px;
border-bottom: 1px solid #f0f0f0;
height: 100rpx;
padding: 0 30rpx;
border-bottom: 2rpx solid #f0f0f0;
}
.close-icon {
font-size: 22px;
width: 40px;
height: 50px;
font-size: 44rpx;
width: 80rpx;
height: 100rpx;
display: flex;
align-items: center;
}
.modal-title {
font-size: 17px;
font-size: 32rpx;
font-weight: 500;
color: #000;
}
.header-right {
width: 40px;
width: 80rpx;
}
.pay-info {
padding: 20px 15px;
padding: 40rpx 30rpx;
text-align: center;
}
.merchant-name {
display: block;
font-size: 16px;
font-size: 32rpx;
color: #333;
margin-bottom: 10px;
margin-bottom: 20rpx;
}
.pay-amount {
font-size: 32px;
font-size: 64rpx;
font-weight: 500;
color: #000;
}
@@ -527,12 +530,12 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px;
border-bottom: 1px solid #f0f0f0;
padding: 30rpx;
border-bottom: 2rpx solid #f0f0f0;
}
.way-label {
font-size: 15px;
font-size: 30rpx;
color: #666;
}
@@ -542,33 +545,33 @@
}
.bank-icon {
width: 16px;
height: 16px;
margin-right: 3px;
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
}
.bank-name {
font-size: 15px;
font-size: 30rpx;
color: #333;
margin-right: 8px;
margin-right: 16rpx;
}
.arrow-icon {
font-size: 14px;
font-size: 28rpx;
color: #999;
}
/* 银行卡列表 */
.bank-list {
padding: 0 15px;
border-bottom: 1px solid #f0f0f0;
padding: 030rpx;
border-bottom: 2rpx solid #f0f0f0;
}
.bank-item {
display: flex;
align-items: center;
height: 50px;
border-bottom: 1px solid #f5f5f5;
height: 100rpx;
border-bottom: 2rpx solid #f5f5f5;
}
.bank-item:last-child {
@@ -576,19 +579,19 @@
}
.bank-item-icon {
width: 24px;
height: 24px;
margin-right: 10px;
width: 48rpx;
height: 48rpx;
margin-right: 20rpx;
}
.bank-item-name {
flex: 1;
font-size: 15px;
font-size: 30rpx;
color: #333;
}
.check-icon {
font-size: 18px;
font-size: 36rpx;
color: #007aff;
}
@@ -596,23 +599,23 @@
.password-input {
display: flex;
justify-content: space-between;
padding: 20px 15px;
padding: 40rpx 30rpx;
}
.password-item {
width: 50px;
height: 50px;
/* border: 1px solid #dcdcdc; */
width: 100rpx;
height: 100rpx;
/* border: 2rpx solid #dcdcdc; */
background-color: #efefef;
border-radius: 4px;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
}
.password-dot {
width: 12px;
height: 12px;
width: 24rpx;
height: 24rpx;
background-color: #000;
border-radius: 50%;
}
@@ -631,9 +634,9 @@
height: 54px;
line-height: 54px;
text-align: center;
font-size: 24px;
font-size: 48rpx;
color: #000;
border: 1px solid #f0f0f0;
border: 2rpx solid #f0f0f0;
background-color: #fff;
}
@@ -652,48 +655,48 @@
}
/* 3. 缴费成功页 */
.success-page {
width: 100%;
min-height: 100vh;
background-color: #fff;
text-align: center;
}
.icon-box {
/* 全局容器 */
.container {
display: flex;
justify-content: center;
width: 100vw;
height: 150px;
padding: 30px 0px;
flex-direction: column;
align-items: center;
}
/* 成功图标 */
.success-icon {
/* margin-top: 60px; */
margin-bottom: 20px;
width: 100px;
height: 100px;
font-size: 80px;
color: #007aff;
background-color: #007aff;
color: #fff;
width: 220rpx;
height: 220rpx;
border-radius: 50%;
background-color: #1677ff;
display: flex;
align-items: center;
justify-content: center;
margin-top: 200rpx;
margin-bottom: 60rpx;
}
.success-icon .iconfont {}
.icon-check {
color: #fff;
font-size: 130rpx;
font-weight: bold;
line-height: 1;
}
.success-text {
font-size: 20px;
font-weight: 600;
/* 主标题 */
.title {
font-size: 40rpx;
font-weight: bold;
color: #000;
margin-bottom: 10px;
margin-bottom: 20rpx;
}
.success-desc {
font-size: 15px;
color: #999;
margin-bottom: 50px;
/* 提示文案 */
.desc {
font-size: 32rpx;
color: #666;
line-height: 1.6;
text-align: center;
margin-bottom: 150rpx;
}
/* 核心:欠费金额行样式 */
@@ -701,22 +704,21 @@
display: flex;
align-items: center;
justify-content: space-between;
/* padding: 15px; */
margin-bottom: 30px;
/* padding:30rpx; */
margin-bottom: 60rpx;
}
.arrears-text {
font-size: 14px;
color: #333;
font-weight: 600;
font-size: 28rpx;
color: #999;
}
.auto-fill-btn {
font-size: 14px;
font-size: 28rpx;
color: #007aff;
/* 蓝色,匹配设计图 */
font-weight: 500;
padding: 5px 0;
padding: 10rpx 0;
}
.status-bar {