jialh
2025-07-31 ed87e07347868d7407c3623a6b30aa241f4fb109
更新
8个文件已修改
1个文件已添加
186 ■■■■■ 已修改文件
api/fee/feeApi.js 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/index/index-menu.vue 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/index/index-notice.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
conf/config.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/car/ownerCars.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/family/family.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/family/familyList.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/fee/webview.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/fee/feeApi.js
@@ -25,6 +25,9 @@
import {
    getPayInfo
} from '../../factory/WexinAppPayFactory.js'
import {
    loginByOpenId
} from '../user/sessionApi.js';
// #endif
@@ -303,8 +306,8 @@
 * @param {*} _that 
 * @param {*} _data 
 */
export function payFeeWechat(_that, _data,_successUrl) {
    if(!_successUrl ){
export function payFeeWechat(_that, _data, _successUrl) {
    if (!_successUrl) {
        _successUrl = "/pages/successPage/successPage?msg=支付成功&objType=3003";
    }
    wx.showLoading({
@@ -359,7 +362,7 @@
                return;
            }
            wx.showToast({
                title: "缴费失败"+res.data.msg,
                title: "缴费失败" + res.data.msg,
                icon: 'none',
                duration: 2000
            });
@@ -573,8 +576,8 @@
 * @param {Object} _data
 * @param {Object} _successUrl
 */
export function cashierPayFee(_that, _data,_successUrl) {
    if(!_successUrl ){
export function cashierPayFee(_that, _data, _successUrl) {
    if (!_successUrl) {
        _successUrl = "/pages/successPage/successPage?msg=支付成功&objType=3003";
    }
    wx.showLoading({
@@ -587,32 +590,42 @@
        //动态数据
        success: function(res) {
            wx.hideLoading();
            console.log('=====res=====', res);
            if (res.data.code == '0') {
                let data = res.data; //成功情况下跳转
                let data = res.data;
                // uni.navigateTo({
                //     url: data.qrCode
                // })
                uni.navigateTo({
                    url: '/pages/fee/webview?url=' + encodeURIComponent(data.qrCode)
                });
                // let data = res.data; //成功情况下跳转
                // #ifdef MP-WEIXIN
                uni.requestPayment({
                    'timeStamp': data.timeStamp,
                    'nonceStr': data.nonceStr,
                    'package': data.package,
                    'signType': data.signType,
                    'paySign': data.sign,
                    'success': function(res) {
                        uni.navigateTo({
                            url: _successUrl
                        })
                    },
                    'fail': function(res) {
                        console.log('fail:' + JSON.stringify(res));
                        _that.banButton = false;
                    }
                });
                // #endif
                // #ifdef H5
                WexinPayFactory.wexinPay(data, function() {
                    uni.navigateTo({
                        url: _successUrl
                    })
                });
                // uni.requestPayment({
                //     'timeStamp': data.timeStamp,
                //     'nonceStr': data.nonceStr,
                //     'package': data.package,
                //     'signType': data.signType,
                //     'paySign': data.sign,
                //     'success': function(res) {
                //         uni.navigateTo({
                //             url: _successUrl
                //         })
                //     },
                //     'fail': function(res) {
                //         console.log('fail:' + JSON.stringify(res));
                //         _that.banButton = false;
                //     }
                // });
                // // #endif
                // // #ifdef H5
                // WexinPayFactory.wexinPay(data, function() {
                //     uni.navigateTo({
                //         url: _successUrl
                //     })
                // });
                // #endif
                return;
@@ -632,7 +645,7 @@
                return;
            }
            wx.showToast({
                title: "缴费失败"+res.data.msg,
                title: "缴费失败" + res.data.msg,
                icon: 'none',
                duration: 2000
            });
@@ -649,7 +662,4 @@
        }
    });
}
}
components/index/index-menu.vue
@@ -1,12 +1,12 @@
<template>
    <view>
        <view class="home_list">
        <!-- <view class="home_list">
            <view class="home_item" v-for="(item,index) in home_list" :key="index" @click="to(item)">
                <image :src="item.src"></image>
                <view class="text">{{item.name}}</view>
            </view>
        </view>
        </view> -->
        <view class="serve_box">
            <view class="serve_title">功能服务<text class="more" @click="more()">更多</text></view>
@@ -84,8 +84,10 @@
        getCommunityQrCode,
        getCommunityId
    } from '@/api/community/communityApi.js';
    import {queryNotices} from '@/api/index/indexApi.js';
    import {
        queryNotices
    } from '@/api/index/indexApi.js';
    export default {
        name: "indexMenu",
@@ -95,7 +97,7 @@
                serve_list: [],
                callPropertyModal: false,
                property: {},
                noticeText:'暂无公告',
                noticeText: '暂无公告',
                new_list: [{
                        src: this.imgUrl + '/h5/images/serve/new1.png',
                        name: '报事报修',
@@ -141,30 +143,37 @@
                            ownerAuth: true
                        },
                    ],
                    this.serve_list = [{
                            name: '生活缴费',
                            src: this.imgUrl + '/h5/images/serve/1.png',
                            href: '/pages/fee/oweFee',
                            ownerAuth: true
                        },
                    this.serve_list = [
                        // {
                        //     name: '生活缴费',
                        //     src: this.imgUrl + '/h5/images/serve/1.png',
                        //     href: '/pages/fee/oweFee',
                        //     ownerAuth: true
                        // },
                        {
                            name: '房屋费',
                            name: '缴物业费',
                            src: this.imgUrl + '/h5/images/serve/5.png',
                            href: '/pages/fee/roomFeeListNew',
                            ownerAuth: true
                        },
                        {
                            name: '车位费',
                            name: '缴停车费',
                            src: this.imgUrl + '/h5/images/serve/9.png',
                            href: '/pages/fee/payParkingFeeList',
                            ownerAuth: true
                        },
                        {
                            name: '一键开门',
                            src: this.imgUrl + '/h5/images/serve/8.png',
                            href: '/pages/machine/openDoor',
                            ownerAuth: true
                            name: '投诉建议',
                            src: this.imgUrl + '/h5/images/serve/12.png',
                            href: '/pages/complaint/complaint',
                            ownerAuth: false
                        },
                        // {
                        //     name: '一键开门',
                        //     src: this.imgUrl + '/h5/images/serve/8.png',
                        //     href: '/pages/machine/openDoor',
                        //     ownerAuth: true
                        // },
                        // {
                        //     name: '人脸识别',
                        //     src: this.imgUrl + '/h5/images/serve/8.png',
@@ -241,8 +250,8 @@
                    clientType: 'H5'
                }).then((_notices) => {
                    let _notice = "";
                    for(let _nIndex = 0;_nIndex < _notices.length; _nIndex++){
                        _notice +=("【公告"+(_nIndex+1)+"】"+_notices[_nIndex].title+";   ");
                    for (let _nIndex = 0; _nIndex < _notices.length; _nIndex++) {
                        _notice += ("【公告" + (_nIndex + 1) + "】" + _notices[_nIndex].title + ";   ");
                    }
                    that.noticeText = _notice;
                });
@@ -252,7 +261,7 @@
                    url: '/pages/homemaking/homemaking'
                })
            },
            _toNoticePage:function(){
            _toNoticePage: function() {
                this.vc.navigateTo({
                    url: '/pages/notice/index'
                });
components/index/index-notice.vue
@@ -1,7 +1,7 @@
<template>
    <view>
        <view class="active_box">
            <view class="active_title">社区活动</view>
            <view class="active_title">社区公告</view>
            <view class="active_list">
                <!--:scroll-left="scrollLeft"-->
                <scroll-view scroll-x class="bg-white nav" scroll-with-animation>
conf/config.js
@@ -15,12 +15,12 @@
// #ifndef H5
//服务器域名 小程序 或者 app 时 后端地址 
// const baseUrl = 'https://wuye.yhupai.com/';
const baseUrl = 'http://192.168.31.137:8008/';
const baseUrl = 'https://zxshlx.com/';
// const baseUrl = 'http://192.168.31.137:8008/';
// const baseUrl = 'http://localhost:3000/';
// #endif
let commonBaseUrl = 'https://wuye.yhupai.com/';
let commonBaseUrl = 'https://zxshlx.com/';
//商城的url
pages.json
@@ -1089,6 +1089,13 @@
            {
                "navigationBarTitleText" : ""
            }
        },
        {
            "path" : "pages/fee/webview",
            "style" :
            {
                "navigationBarTitleText" : ""
            }
        }
    ],
    "tabBar": {
pages/car/ownerCars.vue
@@ -12,9 +12,9 @@
                </view>
            </view>
        </view>
        <view class="flex flex-direction">
        <!-- <view class="flex flex-direction">
            <button @click="_applyParking()" class="cu-btn line-blue margin-tb-sm lg">申请车位</button>
        </view>
        </view> -->
    </view>
</template>
@@ -58,11 +58,11 @@
                    url:'/pages/car/carDetail?carId='+_car.memberId
                })
            },
            _applyParking: function() {
                uni.navigateTo({
                    url: '/pages/car/applyparking'
                })
            }
            // _applyParking: function() {
            //     uni.navigateTo({
            //         url: '/pages/car/applyparking'
            //     })
            // }
        }
    }
</script>
pages/family/family.vue
@@ -3,11 +3,11 @@
        <view class="block__title">基本信息</view>
        <view class="cu-form-group">
            <view class="title">姓名</view>
            <input v-model="name" placeholder="请输入成员名称"></input>
            <input v-model="name" placeholder="必填,请输入成员名称"></input>
        </view>
        <view class="cu-form-group">
            <view class="title">身份证</view>
            <input v-model="idCard" placeholder="请输入身份证" ></input>
            <input v-model="idCard" placeholder="选填,请输入身份证" ></input>
        </view>
        <view class="cu-form-group">
            <view class="title">性别</view>
pages/family/familyList.vue
@@ -26,6 +26,7 @@
                </view>
                
                <view class="solid-top flex justify-end margin-top padding-top-sm padding-bottom-sm">
                    <button  class="cu-btn sm bg-green " @click="_deleteOwnerMember(item)">修改</button>
                    <button  class="cu-btn sm bg-red " @click="_deleteOwnerMember(item)">删除</button>
                </view>
            </view>
pages/fee/webview.vue
New file
@@ -0,0 +1,23 @@
<template>
  <view>
    <web-view :src="url"></web-view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      url: ''
    };
  },
  onLoad(options) {
    // 从 URL 中获取参数
    this.url = options.url ? decodeURIComponent(options.url) : '';
  }
};
</script>
<style scoped>
/* 样式可选 */
</style>