修复bug

This commit is contained in:
zhouyanli
2026-08-01 11:57:30 +08:00
parent 703078c4c4
commit cc43bcd0e7
2 changed files with 6 additions and 16 deletions

View File

@@ -3,9 +3,7 @@
{ {
"path": "pages/arrearsPayment/arrearsPayment", "path": "pages/arrearsPayment/arrearsPayment",
"style": { "style": {
"navigationBarTitleText": "缴费", "navigationBarTitleText": "缴费"
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#F8F8F8"
} }
} }
], ],

View File

@@ -1,9 +1,5 @@
<template> <template>
<view class="contentStyle"> <view class="contentStyle">
<view class="status-bar"></view>
<uni-nav-bar title="缴费" backgroundColor="transparent" :border="false">
</uni-nav-bar>
<scroll-view class="page" scroll-y="true"> <scroll-view class="page" scroll-y="true">
<view class="container"> <view class="container">
<view v-if="currentStep === 2" class="container"> <view v-if="currentStep === 2" class="container">
@@ -18,7 +14,9 @@
<button class="pay-btn" @click="handlePay">立即缴费</button> <button class="pay-btn" @click="handlePay">立即缴费</button>
</view> </view>
<view class="btn-section" v-if="currentStep === 2"> <view class="btn-section" v-if="currentStep === 2">
<button class="pay-btn" @click="handleFinished">完成</button> <button class="pay-btn" open-type="launchApp" app-parameter="payResult=success" @error="handleLaunchAppError">
返回
</button>
</view> </view>
</view> </view>
</template> </template>
@@ -98,13 +96,8 @@ const handlePay = async () => {
} }
} }
const handleFinished = () => { const handleLaunchAppError = () => {
uni.showModal({ uni.showToast({ title: '请点击左上角关闭返回', icon: 'none', duration: 2000 })
title: '提示',
content: '请点击右上角关闭按钮返回花开物业',
showCancel: false,
confirmText: '知道了'
})
} }
</script> </script>
@@ -122,5 +115,4 @@ page { background-color: #f9f9f9; }
.icon-check { color: #fff; font-size: 130rpx; font-weight: bold; } .icon-check { color: #fff; font-size: 130rpx; font-weight: bold; }
.title { font-size: 40rpx; font-weight: bold; color: #000; margin-bottom: 20rpx; } .title { font-size: 40rpx; font-weight: bold; color: #000; margin-bottom: 20rpx; }
.desc { font-size: 32rpx; color: #666; text-align: center; margin-bottom: 150rpx; } .desc { font-size: 32rpx; color: #666; text-align: center; margin-bottom: 150rpx; }
.status-bar { width: 100vw; height: 46px; }
</style> </style>