无缴费功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="contentStyle" style="">
|
||||
<view class="status-bar"></view>
|
||||
<uni-nav-bar :title="paymentItem.type || '缴费'" left-icon="left" @clickLeft="goBack" backgroundColor="transparent" :border="false"></uni-nav-bar>
|
||||
<uni-nav-bar :title="paymentItem.type === '水费' ? '水表' : '电表'" left-icon="left" @clickLeft="goBack" backgroundColor="transparent" :border="false"></uni-nav-bar>
|
||||
|
||||
<!-- 表单区域 -->
|
||||
<scroll-view class="page" scroll-y="true">
|
||||
@@ -45,9 +45,9 @@
|
||||
<text class="arrears-text">当前欠费金额¥{{ arrearsAmount }}元</text>
|
||||
<!-- <text class="auto-fill-btn" @click="handleAutoFill">点击自动填入</text> -->
|
||||
</view>
|
||||
<view class="arrears-row" v-if="outstandingPayment == false">
|
||||
<!-- <view class="arrears-row" v-if="outstandingPayment == false">
|
||||
<text class="arrears-text">暂未查询到欠费</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -72,7 +72,8 @@
|
||||
</scroll-view>
|
||||
<!-- 立即缴费按钮 -->
|
||||
<view class="btn-section" v-if="currentStep === 1">
|
||||
<button class="pay-btn" @click="handlePay">立即缴费</button>
|
||||
<!-- <button class="pay-btn" @click="handlePay">立即缴费</button> -->
|
||||
<button class="pay-btn" @click="handleToAppPay">请前往App缴费</button>
|
||||
</view>
|
||||
<!-- 返回按钮 -->
|
||||
<view class="btn-section" v-if="currentStep === 2 || currentStep === 3">
|
||||
@@ -148,6 +149,15 @@ const handlePay = () => {
|
||||
// }
|
||||
requestPayOrder();
|
||||
};
|
||||
|
||||
function handleToAppPay() {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '请下载App进行缴费',
|
||||
mask: true
|
||||
});
|
||||
}
|
||||
|
||||
// 统一下单后后端返回的支付参数
|
||||
const payInfo = ref({
|
||||
appId: '', // 公众号/小程序ID
|
||||
@@ -841,4 +851,4 @@ page {
|
||||
font-size: 130rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user