Lou
2024-01-23 c6d666e54e413ebd581f284d070e7a48c7daca93
物业评价修改,新增我的评价页面
3 files modified
1 files added
152 ■■■■ changed files
pages.json 9 ●●●●● patch | view | raw | blame | history
pages/home/index.vue 60 ●●●● patch | view | raw | blame | history
subPackage/grid/tenement.vue 3 ●●●● patch | view | raw | blame | history
subPackage/user/commentList/commentList.vue 80 ●●●●● patch | view | raw | blame | history
pages.json
@@ -151,6 +151,15 @@
                        "navigationBarBackgroundColor": "#fff",
                        "navigationBarTextStyle": "black"
                    }
                },
                {
                    "path": "commentList/commentList",
                    "style": {
                        "navigationBarTitleText": "我的评价",
                        "enablePullDownRefresh": false,
                        "navigationBarBackgroundColor": "#fff",
                        "navigationBarTextStyle": "black"
                    }
                }
            ]
        },
pages/home/index.vue
@@ -695,40 +695,40 @@
                        unitCode,
                        buildingCode
                    } = res.data;
                    if (isJur == 1) {
                        if (doorplateType == "户室牌") {
                    // if (isJur == 1) {
                    if (doorplateType == "户室牌") {
                        this.$u.func.globalNavigator(
                            `/subPackage/house/roomDetails/index?id=${code}&from=scan`, "navTo")
                    } else if (doorplateType == "中门牌") {
                        if (addressLevel == 4) { //自建房
                            this.$u.func.globalNavigator(
                                `/subPackage/house/roomDetails/index?id=${code}&from=scan`, "navTo")
                        } else if (doorplateType == "中门牌") {
                            if (addressLevel == 4) { //自建房
                                this.$u.func.globalNavigator(
                                    `/subPackage/house/roomDetails/detail?code=${code}`, "navTo")
                            } else { //商铺
                                this.$u.func.globalNavigator(
                                    `/subPackage/house/houseNumber/index?stdId=${code}`, "navTo")
                            }
                        } else if (doorplateType == "楼幢牌") {
                            let url = "/subPackage/house/family/index"
                                `/subPackage/house/roomDetails/detail?code=${code}`, "navTo")
                        } else { //商铺
                            this.$u.func.globalNavigator(
                                `${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&buildingCode=${buildingCode}&aoiCode=${aoiCode}&neiCode=${neiCode}`,
                                "navTo")
                        } else if (doorplateType == "单元牌") {
                            let url = "/subPackage/house/family/index"
                            this.$u.func.globalNavigator(
                                `${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&unitName=${unitName}&unitCode=${unitCode}&neiCode=${neiCode}&buildingCode=${buildingCode}`,
                                "navTo")
                        } else if (doorplateType == "大门牌") {
                            this.$u.func.globalNavigator(
                                `/subPackage/house/list/index?id=${code}&title=${aoiName}&neiName=${neiName}&address=${addressName}&neiCode=${neiCode}&aoiCode=${aoiCode}`,
                                "navTo")
                                `/subPackage/house/houseNumber/index?stdId=${code}`, "navTo")
                        }
                    } else {
                        uni.showModal({
                            title: "提示!",
                            content: "该区域不是您管辖范围",
                            showCancel: false
                        })
                    } else if (doorplateType == "楼幢牌") {
                        let url = "/subPackage/house/family/index"
                        this.$u.func.globalNavigator(
                            `${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&buildingCode=${buildingCode}&aoiCode=${aoiCode}&neiCode=${neiCode}`,
                            "navTo")
                    } else if (doorplateType == "单元牌") {
                        let url = "/subPackage/house/family/index"
                        this.$u.func.globalNavigator(
                            `${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&unitName=${unitName}&unitCode=${unitCode}&neiCode=${neiCode}&buildingCode=${buildingCode}`,
                            "navTo")
                    } else if (doorplateType == "大门牌") {
                        this.$u.func.globalNavigator(
                            `/subPackage/house/list/index?id=${code}&title=${aoiName}&neiName=${neiName}&address=${addressName}&neiCode=${neiCode}&aoiCode=${aoiCode}`,
                            "navTo")
                    }
                    // } else {
                    //     uni.showModal({
                    //         title: "提示!",
                    //         content: "该区域不是您管辖范围",
                    //         showCancel: false
                    //     })
                    // }
                })
            },
subPackage/grid/tenement.vue
@@ -127,7 +127,8 @@
                    isRec: 1,
                    page: 1,
                    size: 10,
                    propertyCompanyId: this.id
                    propertyCompanyId: this.id,
                    checkStatus: 2
                }).then(res => {
                    console.log(res)
                    this.commentList = res.data.records
subPackage/user/commentList/commentList.vue
New file
@@ -0,0 +1,80 @@
<template>
    <view class="">
        <z-paging ref="paging" v-model="list" @query="queryList" :refresher-enabled="false"
            loading-more-no-more-text="没有更多了">
            <view class="bgc-ff">
                <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
                    :activeStyle="{color:'#017BFC'}" :scrollable="false">
                </u-tabs>
            </view>
            <view class="">
            </view>
        </z-paging>
    </view>
</template>
<script>
    import {
        getTenementComment
    } from "@/api/grid/grid.js"
    export default {
        data() {
            return {
                tabList: [
                    {
                        name: "物业公司"
                    },
                    {
                        name: "通知公告"
                    },
                ],
                tabIndex: 0,
                list: []
            }
        },
        methods: {
            changeTab(e) {
                this.tabIndex = e.index;
                this.$refs.paging.reload()
            },
            queryList(pageNo, pageSize) {
                if (this.tabIndex == 0) {
                    this.getTenementCommentList(pageNo, pageSize)
                } else {
                    this.getArticleCommentList(pageNo, pageSize)
                }
            },
            getTenementCommentList(page, size) {
                getTenementComment({
                    isRec: 1,
                    page: page,
                    size: size,
                    propertyCompanyId: this.id,
                    checkStatus: 2,
                    createUser: uni.getStorageSync("userInfo").user_id
                }).then(res => {
                    console.log(res)
                    this.$refs.paging.complete(res.data.records);
                })
            },
            getArticleCommentList(page, size) {
            }
        }
    }
</script>
<style>
</style>