修复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

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