修复bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user