无缴费功能

This commit is contained in:
Zy
2026-10-17 10:12:28 +08:00
parent 27d9fddccc
commit b3866c1f1d
3 changed files with 32 additions and 15 deletions

View File

@@ -1,9 +1,10 @@
<template>
<view class="contentStyle" style="">
<view class="status-bar"></view>
<uni-nav-bar title="生活缴费" backgroundColor="transparent" :border="false"></uni-nav-bar>
<!-- <uni-nav-bar title="生活缴费" backgroundColor="transparent" :border="false"></uni-nav-bar> -->
<uni-nav-bar title="" backgroundColor="transparent" :border="false"></uni-nav-bar>
<view class="topbox">
<image class="titleImg" :src="`${imgBaseUrl}/images/propertyImgs/payTitle.png`"></image>
<!-- <image class="titleImg" :src="`${imgBaseUrl}/images/propertyImgs/payTitle.png`"></image> -->
<image class="payImg" :src="`${imgBaseUrl}/images/propertyImgs/payImg.png`"></image>
</view>
<scroll-view class="page" scroll-y="true">
@@ -11,7 +12,8 @@
<!-- 未登录提示条 -->
<view class="login-tip" v-if="!isLogin" @click="handleLoginPrompt">
<image class="login-tip-icon" :src="`${imgBaseUrl}/images/login/phone.png`"></image>
<text class="login-tip-text">登录后可查看缴费账单</text>
<!-- <text class="login-tip-text">登录后可查看缴费账单</text> -->
<text class="login-tip-text">登录后可查看记录</text>
<text class="login-tip-link">去登录</text>
</view>
@@ -23,7 +25,7 @@
<view class="bill-info">
<view class="bill-title">
{{ item.type }}
{{ item.type === '水费' ? '水表' : '电表' }}
<view class="bill-status debt" v-if="item.balance < 0">已欠费</view>
<text :class="item.balance < 0 ? 'balance-debt' : 'balance-normal'">(余额:{{ item.balance || 0.0 }}元)</text>
</view>
@@ -36,8 +38,9 @@
<!-- 新增缴费区域 -->
<view class="add-section">
<view class="section-header">
<text class="section-title">新增缴费</text>
<text class="record-link" @click="goToRecord">缴费记录</text>
<!-- <text class="section-title">新增缴费</text> -->
<text class="section-title">新增设备</text>
<!-- <text class="record-link" @click="goToRecord">缴费记录</text> -->
</view>
<view class="grid-list">
@@ -158,7 +161,8 @@ onShow(() => {
const handleLoginPrompt = () => {
if (isLogin.value) return;
requireAuth({
title: '查看缴费账单',
// title: '查看缴费账单',
title: '',
onLoggedIn: () => {
refreshLoginState();
getPayList();
@@ -201,7 +205,8 @@ const goToRecord = () => {
const goToAdd = (type) => {
if (!isLogin.value) {
requireAuth({
title: '新增缴费',
// title: '新增缴费',
title: '新增设备',
onLoggedIn: () => {
refreshLoginState();
goToAdd(type);